/* ==========================================================================
   atelieruldeblaturi.ro — coșul („Comanda ta”), finalizarea („Trimite comanda”), „Comandă primită”, „Contul meu” (B8).
   Aspectul WooCommerce + tema MyMedi de azi: titlul paginii 50/60 (34/40 pe telefon) cu numărul „(N)” mic, sus; tabelul coșului
   cu chenar #F0F2F5; „Total coș” în casetă #F0F2F5; finalizarea în două coloane (68 % / 32 %), „Comanda ta” cu chenar bej 3 px;
   câmpurile #F0F2F5 pastilă (clasele .bb-form din site.css); butoanele pastilă bej (.bb-btn).
   ========================================================================== */

.bb-cmd { padding-bottom: 80px; }
.bb-cmd__titlu { font-size: 50px; line-height: 60px; font-weight: 600; margin: 0 0 40px; letter-spacing: -.5px; }
.bb-cmd__nr { font-size: 42%; line-height: 20px; font-weight: 400; vertical-align: super; margin-left: 10px; }
.bb-cmd__eroare,
.bb-cmd__erori { background: #fff5f5; border-left: 4px solid var(--bb-rosu); color: #000; padding: 14px 20px; border-radius: 4px; margin: 0 0 30px; font-size: 15px; line-height: 24px; }
.bb-cmd__erori ul { margin: 0; padding-left: 18px; }
.bb-cmd__erori li { margin: 2px 0; }

/* ---------- coș gol (ca azi: coșul gri, textul, „Înapoi la magazin”) ---------- */
.bb-cos-gol { text-align: center; padding: 40px 0 110px; }
.bb-cos-gol__cos { width: 112px; height: 100px; color: #9a9a9a; display: block; margin: 0 auto 22px; }
.bb-cos-gol__text { font-size: 16px; margin: 0 0 30px; }
.bb-cos-gol__btn { min-width: 200px; font-size: 18px; padding: 10px 32px; }
.bb-cos-gol__btn:hover { background: transparent; border-color: var(--bb-accent); color: var(--bb-accent); }

/* ---------- coș plin ---------- */
.bb-cos { display: flex; align-items: flex-start; gap: 30px; }
.bb-cos__lista { flex: 1 1 75%; min-width: 0; }
.bb-cos__totaluri { flex: 0 0 25%; min-width: 280px; }

.bb-cos-tabel { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 26px; }
.bb-cos-tabel th { text-align: left; font-weight: 600; padding: 10px 20px; color: #000; }
.bb-cos-tabel td { padding: 25px 20px; vertical-align: middle; border: 0 solid var(--bb-gri); border-bottom-width: 1px; }
.bb-cos-tabel tbody tr:first-child td { border-top-width: 1px; }
.bb-cos-tabel tbody td:first-child { border-left-width: 1px; }
.bb-cos-tabel tbody td:last-child { border-right-width: 1px; }
.bb-cos-tabel tbody tr:first-child td:first-child { border-top-left-radius: 4px; }
.bb-cos-tabel tbody tr:first-child td:last-child { border-top-right-radius: 4px; }
.bb-cos-tabel tbody tr:last-child td:first-child { border-bottom-left-radius: 4px; }
.bb-cos-tabel tbody tr:last-child td:last-child { border-bottom-right-radius: 4px; }
.bb-cos-tabel__x { width: 40px; padding-left: 10px !important; padding-right: 10px !important; text-align: center; }
.bb-cos-tabel__img { width: 130px; }
.bb-cos-tabel__img img { width: 90px; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 4px; display: block; }
.bb-cos-tabel__pret, .bb-cos-tabel__sub { width: 15%; white-space: nowrap; }
td.bb-cos-tabel__sub { font-weight: 600; }
.bb-cos-x { width: 24px; height: 24px; padding: 0; border: 0; background: none; font-size: 22px; line-height: 1; color: #000; cursor: pointer; border-radius: 50%; }
.bb-cos-x:hover { color: var(--bb-accent); }
.bb-cos-linie__titlu { font-weight: 600; color: #000; text-transform: uppercase; display: inline-block; margin-bottom: 6px; }
a.bb-cos-linie__titlu:hover { color: var(--bb-accent); }
.bb-cos-linie__modifica { display: block; width: fit-content; margin: 0 0 8px; font-weight: 700; color: var(--bb-accent); text-decoration: underline; text-underline-offset: 3px; }
.bb-cos-linie__modifica:hover { text-decoration: none; }
.bb-cos-linie--indisponibil td { background: #fffaf5; }
.bb-cos-linie__eroare { color: var(--bb-rosu); font-size: 14px; line-height: 22px; margin: 8px 0 0; }
.bb-cos-linie__eroare a { color: var(--bb-rosu); text-decoration: underline; }
/* sub blat, pe un rând (ca pe WP): „Salvează configurația” + „Descarcă ofertă PDF”; mesajul „salvată” vine dedesubt */
.bb-cos-linie__butoane { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 0; }
.bb-cos-linie__butoane .bb-ct-cos-salveaza { margin: 0; }
.bb-cos-linie__butoane .bb-ct-cos-mesaj { order: 1; }

/* alegerile din calculator (dl.variation WooCommerce) */
.bb-cos-meta { margin: 0; font-size: 14px; line-height: 22px; color: #000; }
.bb-cos-meta > div { display: block; margin: 0; }
.bb-cos-meta dt { display: inline; font-weight: 600; }
.bb-cos-meta dd { display: inline; margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.bb-cos-meta--mic { font-size: 13px; line-height: 20px; margin-top: 4px; color: #333; }

/* „Total coș” */
.bb-cos-totaluri { background: var(--bb-gri); border-radius: 4px; padding: 5px 20px 30px; }
.bb-cos-totaluri__titlu { font-size: 18px; line-height: 20px; font-weight: 600; margin: 0 -20px; padding: 15px 20px; border-bottom: 1px solid #fff; }
.bb-cos-totaluri__tabel { width: 100%; border-collapse: collapse; margin: 6px 0 20px; font-size: 16px; }
.bb-cos-totaluri__tabel th { text-align: left; font-weight: 400; padding: 10px 0; }
.bb-cos-totaluri__tabel td { text-align: right; font-weight: 600; padding: 10px 0; white-space: nowrap; }
.bb-cos-totaluri__total th, .bb-cos-totaluri__total td { border-top: 1px solid #fff; padding-top: 14px; }
.bb-cos-totaluri__total td strong { font-size: 120%; line-height: 26px; }
.bb-cos-totaluri__btn { font-size: 18px; padding: 12px 20px; }
.bb-cos-totaluri__btn:hover { background: transparent; border-color: var(--bb-accent); color: var(--bb-accent); }

/* ---------- finalizarea comenzii ---------- */
.bb-fin { display: flex; align-items: flex-start; gap: 30px; }
.bb-fin__client { flex: 0 0 calc(68% - 30px); min-width: 0; border: 1px solid var(--bb-gri); border-radius: 4px; padding: 25px 30px 30px; }
.bb-fin__comanda { flex: 1 1 32%; min-width: 0; }
.bb-fin__h3 { font-size: 24px; line-height: 30px; font-weight: 600; margin: 0 0 20px; }
.bb-fin__h2 { font-size: 24px; line-height: 30px; font-weight: 600; margin: 20px 0 15px; }
.bb-fin__campuri { display: flex; flex-wrap: wrap; gap: 0 30px; }
.bb-fin__rand { width: 100%; margin: 0 0 20px; }
.bb-fin__rand--jum { width: calc(50% - 15px); }
.bb-fin.bb-form label { font-size: 16px; font-weight: 400; margin: 0 0 8px; }
.bb-oblig { color: inherit; text-decoration: none; border: 0; font-weight: 400; }
.bb-optional { font-weight: 400; }
.bb-fin__rand--eroare input, .bb-fin__rand--eroare select, .bb-fin__rand--eroare textarea { border-color: var(--bb-rosu) !important; }
.bb-fin__err { display: block; color: var(--bb-rosu); font-size: 14px; line-height: 20px; margin-top: 6px; padding-left: 4px; }
.bb-fin.bb-form textarea { min-height: 98px; }
.bb-fin__bifa { display: inline-flex !important; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 400 !important; }
.bb-fin__bifa input { width: 18px; height: 18px; margin: 4px 0 0; flex: 0 0 auto; accent-color: var(--bb-accent); }
.bb-fin__bifa-titlu { font-size: 18px; line-height: 26px; margin-bottom: 20px; }
.bb-fin__bifa-titlu .bb-fin__bifa { font-size: 18px !important; line-height: 26px; font-weight: 600 !important; }
.bb-fin__capcana { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* calendarul în română (Data aproximativa masuratori) */
.bb-cal { position: relative; display: block; }
.bb-cal input { cursor: pointer; }
.bb-cal__panou { position: absolute; left: 0; top: calc(100% + 6px); z-index: 50; width: 300px; max-width: calc(100vw - 40px); background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .12); padding: 12px; }
.bb-cal__cap { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bb-cal__luna { font-weight: 600; text-transform: capitalize; }
.bb-cal__nav { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--bb-gri); display: inline-flex; align-items: center; justify-content: center; }
.bb-cal__nav:hover:not(:disabled) { background: var(--bb-accent); color: #fff; }
.bb-cal__nav:disabled { opacity: .35; cursor: default; }
.bb-cal__grila { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 14px; line-height: 20px; }
.bb-cal__zi-sapt { font-size: 12px; color: #666; padding: 4px 0; }
.bb-cal__zi { height: 36px; border: 0; border-radius: 50%; background: none; font-size: 14px; }
.bb-cal__zi:hover:not(:disabled) { background: var(--bb-gri); }
.bb-cal__zi:disabled { color: #c4c4c4; cursor: default; }
.bb-cal__zi--azi { box-shadow: inset 0 0 0 1px var(--bb-accent); }
.bb-cal__zi--ales { background: var(--bb-accent) !important; color: #fff; }
.bb-cal__jos { display: flex; justify-content: space-between; margin-top: 8px; font-size: 14px; }
.bb-cal__jos button { border: 0; background: none; color: var(--bb-accent); padding: 4px 6px; }

/* „Comanda ta” (recapitularea) */
.bb-fin__comanda-titlu { font-size: 24px; line-height: 30px; font-weight: 600; margin: 25px 0 0; padding: 0 20px; position: relative; z-index: 2; }
.bb-fin__recapitulare { border: 3px solid var(--bb-accent); border-radius: 4px; padding: 70px 20px 30px; margin-top: -55px; background: #fff; }
.bb-fin-tabel { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 24px; }
.bb-fin-tabel th, .bb-fin-tabel td { padding: 15px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bb-gri); }
.bb-fin-tabel thead th { font-weight: 600; }
.bb-fin-tabel tfoot th { font-weight: 400; }
.bb-fin-tabel tfoot tr:last-child th, .bb-fin-tabel tfoot tr:last-child td { border-bottom: 0; }
.bb-fin-tabel__suma { text-align: right !important; white-space: nowrap; width: 30%; padding-left: 12px !important; }
.bb-fin-tabel__nume { font-weight: 600; text-transform: uppercase; }
.bb-fin-tabel__cant { font-weight: 600; white-space: nowrap; }
.bb-fin-tabel__total strong { font-size: 140%; line-height: 26px; font-weight: 600; }
.bb-fin-tabel__nota { text-align: right; }
.bb-fin__plata { border-top: 1px solid var(--bb-gri); margin-top: 5px; }
.bb-fin__metode { list-style: none; margin: 0; padding: 15px 0; }
.bb-fin__metode li > input { margin: 0 5px 0 0; accent-color: var(--bb-accent); }
.bb-fin__metode li > label { display: inline !important; font-weight: 600 !important; }
.bb-fin__plata-box { position: relative; background: var(--bb-gri); border-radius: 4px; padding: 18px 25px; margin: 14px 0 0; font-size: 14px; line-height: 22px; }
.bb-fin__plata-box::before { content: ""; position: absolute; top: -10px; left: 18px; border: 10px solid transparent; border-top: 0; border-bottom-color: var(--bb-gri); }
.bb-fin__plata-box p { margin: 0; }
.bb-fin__termeni { font-size: 15px; line-height: 24px; margin: 6px 0 20px; }
.bb-fin__termeni a { color: var(--bb-accent); text-decoration: underline; }
.bb-fin__trimite { font-size: 18px; padding: 12px 20px; }
.bb-fin__trimite:hover { background: transparent; border-color: var(--bb-accent); color: var(--bb-accent); }
.bb-fin__trimite[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ---------- comandă primită ---------- */
.bb-multumim__mesaj { font-size: 18px; line-height: 28px; font-weight: 600; margin: 0 0 25px; color: var(--bb-verde); }
.bb-multumim__rezumat { list-style: none; display: flex; flex-wrap: wrap; margin: 0 0 40px; padding: 0; }
.bb-multumim__rezumat li { padding: 0 25px 0 0; margin: 0 25px 15px 0; border-right: 1px dashed #d3d3d3; font-size: 13px; line-height: 20px; text-transform: uppercase; color: #333; }
.bb-multumim__rezumat li:last-child { border-right: 0; margin-right: 0; }
.bb-multumim__rezumat strong { display: block; font-size: 16px; line-height: 26px; text-transform: none; color: #000; font-weight: 600; }
.bb-multumim__h2 { font-size: 24px; line-height: 30px; font-weight: 600; margin: 0 0 18px; }
.bb-multumim__detalii { max-width: 900px; margin-bottom: 40px; }
.bb-fin-tabel--chenar { border: 1px solid var(--bb-gri); }
.bb-fin-tabel--chenar th, .bb-fin-tabel--chenar td { padding: 14px 20px; }
.bb-fin-tabel--chenar .bb-fin-tabel__suma { padding-right: 20px; }
.bb-multumim__adrese { display: flex; flex-wrap: wrap; gap: 30px; max-width: 900px; }
.bb-multumim__adresa { flex: 1 1 300px; }
.bb-multumim__adresa address { font-style: normal; border: 1px solid var(--bb-gri); border-radius: 4px; padding: 18px 20px; line-height: 26px; }

/* ---------- contul meu (pagina simplă) ---------- */
.bb-cont-client__titlu { font-size: 34px; line-height: 40px; }
.bb-cont-client__grila { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.bb-cont-client__text p { font-size: 16px; line-height: 28px; }
.bb-cont-client__butoane { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.bb-cont-client__contact { background: var(--bb-gri); border-radius: 4px; padding: 25px 30px; }
.bb-cont-client__h2 { font-size: 22px; line-height: 26px; margin: 0 0 16px; }
.bb-cont-client__lista { list-style: none; margin: 0; padding: 0; }
.bb-cont-client__lista li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 16px; line-height: 24px; flex-wrap: wrap; }
.bb-cont-client__lista a { color: #000; font-weight: 600; }
.bb-cont-client__lista a:hover { color: var(--bb-accent); }
.bb-cont-client__program, .bb-cont-client__adresa { flex-direction: column; align-items: flex-start !important; gap: 0 !important; }
.bb-cont-client__adresa a { font-weight: 400 !important; text-decoration: underline; }
.bb-cont-client__lista .bb-i { color: var(--bb-accent); }

/* ---------- ecrane mai mici ---------- */
@media (max-width: 1279px) {
    .bb-cmd__titlu { font-size: 45px; line-height: 50px; }
}
@media (max-width: 991px) {
    .bb-cos, .bb-fin { flex-direction: column; gap: 40px; }
    .bb-cos__lista, .bb-cos__totaluri, .bb-fin__client, .bb-fin__comanda { flex: 1 1 auto; width: 100%; min-width: 0; }
    .bb-fin__client { padding: 15px 20px 20px; }
    .bb-fin__recapitulare { padding: 60px 20px 30px; margin-top: -58px; }
    .bb-cont-client__grila { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 767px) {
    .bb-cmd { padding-bottom: 60px; }
    .bb-cmd__titlu { font-size: 34px; line-height: 40px; margin-bottom: 30px; }
    /* tabelul coșului devine carduri (shop_table_responsive WooCommerce) */
    .bb-cos-tabel thead { display: none; }
    .bb-cos-tabel, .bb-cos-tabel tbody, .bb-cos-tabel tr { display: block; width: 100%; }
    .bb-cos-tabel tr { position: relative; border: 1px solid var(--bb-gri); border-radius: 4px; margin-bottom: 15px; padding: 15px 15px 5px; }
    .bb-cos-tabel td { display: block; border: 0 !important; padding: 0 0 10px !important; width: auto !important; border-radius: 0 !important; }
    .bb-cos-tabel td.bb-cos-tabel__x { position: absolute; top: 8px; right: 8px; padding: 0 !important; }
    .bb-cos-tabel td.bb-cos-tabel__img img { width: 120px; }
    .bb-cos-tabel td.bb-cos-tabel__nume { padding-right: 24px !important; }
    .bb-cos-tabel td.bb-cos-tabel__pret, .bb-cos-tabel td.bb-cos-tabel__sub { display: flex; justify-content: space-between; border-top: 1px solid var(--bb-gri) !important; padding-top: 10px !important; }
    .bb-cos-tabel td[data-title]::before { content: attr(data-title) ": "; font-weight: 600; }
    .bb-cos-tabel td.bb-cos-tabel__nume::before { content: none; }
    .bb-cos-linie__titlu { font-size: 15px; line-height: 22px; }
    .bb-fin__rand--jum { width: 100%; }
    .bb-fin__campuri { gap: 0; }
    .bb-fin__h3, .bb-fin__h2, .bb-fin__comanda-titlu { font-size: 22px; line-height: 28px; }
    .bb-fin__bifa-titlu .bb-fin__bifa { font-size: 16px !important; line-height: 24px; }
    .bb-multumim__rezumat { flex-direction: column; }
    .bb-multumim__rezumat li { border-right: 0; margin-right: 0; padding-right: 0; border-bottom: 1px dashed #d3d3d3; padding-bottom: 10px; }
    .bb-fin-tabel--chenar th, .bb-fin-tabel--chenar td { padding: 12px 12px; }
    .bb-cont-client__titlu { font-size: 28px; line-height: 34px; }
    .bb-cont-client__contact { padding: 20px; }
}

/* ---------- atelier (B2B): coșul = dosarul de oferte ---------- */
.bb-cos-lei { display: block; font-size: 12px; line-height: 18px; color: #555; font-weight: 400; white-space: nowrap; }
.bb-cos-totaluri__tabel .bb-cos-lei { margin-top: 2px; }
.bb-cos-meta__client dd { font-weight: 600; }
.bb-cos-actualizeaza { display: flex; justify-content: flex-end; margin: 16px 0 0; }
.bb-cos-curs { margin: 14px 0 0; font-size: 12px; line-height: 18px; color: #555; }
.bb-cos-linie--indisponibil .bb-cos-meta { opacity: .75; }

/* atelier: două metode de plată — ca WooCommerce, se vede doar descrierea metodei alese */
.bb-fin__metode input[type="radio"]:not(:checked) ~ .bb-fin__plata-box { display: none; }
.bb-fin__metode li + li { margin-top: 10px; }
