/* ==========================================================================
   blaturidebucatarie.ro — „Contul meu” și bucățile contului din alte pagini (B9).
   Aspectul WooCommerce + tema MyMedi de azi (captura desktop/30_contul-meu.png, mobil/30_contul-meu.png): „Autentificare” |
   „Înregistrare” în două coloane, titluri 26/600, etichete 16 px, câmpuri pastilă #F0F2F5 (clasele .bb-form din site.css),
   butoane pastilă bej 18 px. Logat: meniul contului în stânga, secțiunea în dreapta. Se încarcă după comanda.css (refolosește
   .bb-fin__rand, .bb-fin-tabel, .bb-cos-meta, .bb-cmd__erori). Iconița din header are stilurile în site.css (.bb-ct-mini).
   ========================================================================== */

.bb-ct { padding-top: 6px; padding-bottom: 80px; }
.bb-ct__h2 { font-size: 26px; line-height: 32px; font-weight: 600; margin: 0 0 28px; letter-spacing: -.2px; }
.bb-ct-text { font-size: 16px; line-height: 26px; margin: 0 0 20px; }
.bb-ct-text a, .bb-ct-uitat a { color: #000; text-decoration: underline; text-underline-offset: 2px; }
.bb-ct-text a:hover, .bb-ct-uitat a:hover { color: var(--bb-accent); }
.bb-ct-ingust { max-width: 560px; }
.bb-ct-sectiune { margin: 0 0 40px; }

/* ---------- formulare ---------- */
.bb-ct-form .bb-ct-rand { margin: 0 0 24px; }
.bb-ct-form label { font-size: 16px; font-weight: 400; margin: 0 0 6px; }
.bb-ct-form--lat { max-width: 760px; }
.bb-ct-rand--trimite { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-bottom: 14px !important; }
.bb-ct-btn { min-width: 160px; font-size: 18px; padding: 10px 30px; }
.bb-ct-btn:hover { background: transparent; border-color: var(--bb-accent); color: var(--bb-accent); }
.bb-ct-bifa { display: inline-flex !important; align-items: center; gap: 10px; margin: 0 !important; cursor: pointer; font-size: 16px; }
.bb-ct-bifa input { width: 16px; height: 16px; margin: 0; accent-color: var(--bb-accent); }
.bb-ct-uitat { margin: 0; font-size: 16px; }
.bb-ct-ajutor { display: block; font-size: 13px; line-height: 20px; color: #555; font-style: italic; margin: 6px 0 0 4px; }
.bb-ct-fieldset { border: 1px solid var(--bb-gri); border-radius: 4px; padding: 20px 25px 4px; margin: 10px 0 30px; }
.bb-ct-fieldset legend { font-size: 18px; font-weight: 600; padding: 0 8px; }

/* parola + „arată / ascunde” (ca .show-password-input din WooCommerce) */
.bb-ct-parola { position: relative; display: block; }
.bb-ct-parola input { padding-right: 56px !important; }
.bb-ct-parola input::-ms-reveal, .bb-ct-parola input::-ms-clear { display: none; }   /* butonul propriu al Edge: rămâne doar „ochiul” nostru */
.bb-ct-ochi {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; padding: 4px;
    border: 0; background: none; color: #000; cursor: pointer; border-radius: 50%;
}
.bb-ct-ochi[hidden] { display: none; }
.bb-ct-ochi svg { width: 24px; height: 24px; display: block; }
.bb-ct-ochi:hover { color: var(--bb-accent); }
.bb-ct-ochi .bb-ct-ochi__deschis { display: none; }
.bb-ct-ochi.is-vizibil .bb-ct-ochi__deschis { display: block; }
.bb-ct-ochi.is-vizibil .bb-ct-ochi__inchis { display: none; }

/* buton care arată ca un link (ieșirea din panou, ca linkul WooCommerce) */
.bb-ct-link { padding: 0; border: 0; background: none; font: inherit; color: var(--bb-accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.bb-ct-link:hover { color: #000; }

/* ---------- notificări (woocommerce-message / -info / -error) ---------- */
.bb-ct-mesaj { border-left: 4px solid var(--bb-accent); background: #f7f3ee; color: #000; padding: 14px 20px; border-radius: 4px; margin: 0 0 30px; font-size: 15px; line-height: 24px; }
.bb-ct-mesaj--succes { border-left-color: var(--bb-verde); background: #f1f9f4; }
.bb-ct-mesaj--cu-buton { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.bb-ct-erori { margin-bottom: 30px; }

/* ---------- „Autentificare” | „Înregistrare” ---------- */
.bb-ct-intrare { display: grid; grid-template-columns: 1fr 1fr; gap: 0 124px; padding-top: 15px; }

/* ---------- logat: meniul contului + secțiunea ---------- */
.bb-ct__grila { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 50px; padding-top: 30px; align-items: start; }
.bb-ct-nav ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bb-gri); }
.bb-ct-nav__el { border-bottom: 1px solid var(--bb-gri); }
.bb-ct-nav__el a, .bb-ct-nav__el button {
    display: block; width: 100%; padding: 13px 0; border: 0; background: none; font: inherit; font-size: 16px; line-height: 24px;
    font-weight: 500; color: #000; text-align: left; cursor: pointer;
}
.bb-ct-nav__el a:hover, .bb-ct-nav__el button:hover { color: var(--bb-accent); }
.bb-ct-nav__el.is-activ a { color: var(--bb-accent); font-weight: 600; }
.bb-ct-panou p { margin: 0 0 18px; }

/* tabele (comenzi, configurații) */
.bb-ct-tabel { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 24px; border: 1px solid var(--bb-gri); border-radius: 4px; }
.bb-ct-tabel th, .bb-ct-tabel td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bb-gri); }
.bb-ct-tabel thead th { font-weight: 600; background: var(--bb-fundal-lista); }
.bb-ct-tabel tbody tr:last-child th, .bb-ct-tabel tbody tr:last-child td { border-bottom: 0; }
.bb-ct-tabel tbody th { font-weight: 600; }
.bb-ct-tabel tbody th a { color: var(--bb-accent); }
.bb-ct-tabel tbody th a:hover { color: #000; }
.bb-ct-tabel__actiuni, .bb-ct-tabel__dreapta { text-align: right !important; white-space: nowrap; }
.bb-ct-paginare { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }

/* o comandă */
.bb-ct-comanda-rez { font-size: 16px; line-height: 26px; margin: 0 0 30px; }
.bb-ct-comanda-rez mark { background: none; color: #000; font-weight: 600; }
.bb-ct-nota { white-space: pre-line; text-align: left !important; }

/* adrese */
.bb-ct-adrese { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.bb-ct-adresa__cap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bb-ct-adresa__cap .bb-ct__h2 { font-size: 22px; line-height: 28px; margin-bottom: 16px; }
.bb-ct-adresa__edit { color: var(--bb-accent); text-decoration: underline; text-underline-offset: 2px; font-size: 15px; }
.bb-ct-adresa__edit:hover { color: #000; }
.bb-ct-adresa address { font-style: normal; border: 1px solid var(--bb-gri); border-radius: 4px; padding: 18px 20px; line-height: 26px; min-height: 100px; }

/* configurațiile salvate */
.bb-ct-config__nr { width: 40px; color: #555; }
.bb-ct-config__nume { display: block; font-size: 16px; }
.bb-ct-config__data { display: block; color: #555; font-size: 13px; line-height: 20px; margin-bottom: 4px; }
.bb-ct-config__produs { display: block; font-size: 14px; line-height: 22px; }
.bb-ct-config__produs a { color: #000; text-decoration: underline; text-underline-offset: 2px; text-transform: uppercase; }
.bb-ct-config__produs a:hover { color: var(--bb-accent); }
.bb-ct-config__nota { display: block; font-size: 13px; line-height: 20px; color: #6b5440; margin: 6px 0 0; }
.bb-ct-config__rezumat { font-size: 13px; line-height: 20px; white-space: pre-line; margin: 6px 0 0; }
.bb-ct-config__detalii { margin-top: 8px; }
.bb-ct-config__detalii summary { cursor: pointer; color: var(--bb-accent); font-size: 14px; width: max-content; }
.bb-ct-config__detalii summary:hover { color: #000; }
.bb-ct-config__actiuni { width: 1%; }
.bb-ct-config__actiuni form { display: inline-block; margin: 0 0 0 8px; }

/* ---------- pagina de comandă: „Ești client care se întoarce?” + „Creezi un cont?” ---------- */
.bb-ct-revine { margin: 0 0 30px; }
.bb-ct-revine__cap { list-style: none; cursor: pointer; border-left: 4px solid var(--bb-accent); background: #f7f3ee; padding: 14px 20px; border-radius: 4px; font-size: 15px; line-height: 24px; }
.bb-ct-revine__cap::-webkit-details-marker { display: none; }
.bb-ct-revine__link { color: var(--bb-accent); text-decoration: underline; text-underline-offset: 2px; }
.bb-ct-revine__cap:hover .bb-ct-revine__link { color: #000; }
.bb-ct-revine__form { border: 1px solid var(--bb-gri); border-radius: 4px; padding: 25px 30px 25px; margin-top: 15px; max-width: 900px; }
.bb-ct-revine__form .bb-ct-rand--trimite { margin: 0 0 16px; }
.bb-ct-creeaza { margin-top: -4px; }

/* ---------- „Salvează configurația” (calculator, coș) ---------- */
.bbc-comanda { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bbc-salveaza {
    min-width: 200px; padding: 10px 25px; border: 1px solid var(--bb-accent); border-radius: 60px; background: #fff;
    color: var(--bb-accent); font: inherit; font-size: 18px; line-height: 24px; cursor: pointer; transition: background-color .18s, border-color .18s, color .18s;
}
.bbc-salveaza:hover, .bbc-salveaza:focus-visible { background: #000; border-color: #000; color: #fff; }
.bbc-salveaza[disabled] { opacity: .6; cursor: progress; }
.bbc-salveaza-mesaj { flex: 1 0 100%; margin: 0; font-size: 14px; line-height: 21px; color: var(--bb-verde); }
.bbc-salveaza-mesaj.is-eroare { color: #e2401c; }
.bbc-salveaza-mesaj[hidden] { display: none; }
.bbc-salveaza-mesaj a { color: inherit; text-decoration: underline; font-weight: 600; }
.bb-ct-cos-salveaza { margin: 12px 0 0; }

/* fereastra „Identificator(nume) configuratie” (ca modalul temei de azi) */
.bb-ct-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .6); }
.bb-ct-modal[hidden] { display: none; }
.bb-ct-modal__cutie { position: relative; width: 440px; max-width: 100%; background: #fff; border-radius: 10px; padding: 40px 36px 34px; text-align: center; box-shadow: 0 0 20px rgba(0, 0, 0, .3); }
.bb-ct-modal__titlu { font-size: 22px; line-height: 28px; font-weight: 600; margin: 0 0 18px; }
.bb-ct-modal__text { font-size: 14px; line-height: 22px; color: #444; margin: 0 0 16px; }
.bb-ct-modal__cutie input { text-align: left; }
.bb-ct-modal__err { color: var(--bb-rosu); font-size: 14px; line-height: 20px; margin: 10px 0 0; }
.bb-ct-modal__err[hidden] { display: none; }
.bb-ct-modal__butoane { margin: 22px 0 0; }
.bb-ct-modal__x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: 0; background: none; color: #000; cursor: pointer; border-radius: 50%; }
.bb-ct-modal__x:hover { background: var(--bb-gri); }
.bb-ct-modal__x svg { width: 18px; height: 18px; }

/* ---------- ecrane mai mici ---------- */
@media (max-width: 1199px) {
    .bb-ct-intrare { gap: 0 60px; }
}
@media (max-width: 991px) {
    .bb-ct-intrare { grid-template-columns: 1fr; gap: 30px; padding-top: 20px; }
    .bb-ct__grila { grid-template-columns: 1fr; gap: 30px; padding-top: 16px; }
    .bb-ct-nav ul { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
    .bb-ct-nav__el { border: 0; }
    .bb-ct-nav__el a, .bb-ct-nav__el button { width: auto; padding: 6px 16px; border-radius: 60px; background: var(--bb-gri); font-size: 14px; line-height: 22px; }
    .bb-ct-nav__el.is-activ a { background: var(--bb-accent); color: #fff; }
    .bb-ct-adrese { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .bb-ct { padding-bottom: 60px; }
    .bb-ct__h2 { font-size: 26px; line-height: 32px; margin-bottom: 22px; }
    .bb-ct-intrare__col + .bb-ct-intrare__col { padding-top: 10px; }
    .bb-ct-btn { min-width: 0; }
    /* tabelele devin carduri (shop_table_responsive WooCommerce) */
    .bb-ct-tabel { border: 0; }
    .bb-ct-tabel thead { display: none; }
    .bb-ct-tabel, .bb-ct-tabel tbody, .bb-ct-tabel tr { display: block; width: 100%; }
    .bb-ct-tabel tr { border: 1px solid var(--bb-gri); border-radius: 4px; margin-bottom: 15px; padding: 6px 15px; }
    .bb-ct-tabel th, .bb-ct-tabel td { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--bb-gri) !important; text-align: right; }
    .bb-ct-tabel tr > :last-child { border-bottom: 0 !important; }
    .bb-ct-tabel [data-title]::before { content: attr(data-title) ": "; font-weight: 600; text-align: left; }
    .bb-ct-tabel__actiuni, .bb-ct-tabel__dreapta { justify-content: flex-end !important; }
    .bb-ct-config td { display: block; text-align: left; }
    .bb-ct-config__nr { display: none !important; }
    .bb-ct-config__actiuni { width: auto; display: flex !important; justify-content: flex-start !important; gap: 8px; }
    .bb-ct-config__actiuni form { margin: 0; }
    .bb-ct-revine__form { padding: 20px; }
    .bbc-salveaza, .bbc-comanda__btn { flex: 1 1 100%; }
    .bb-ct-modal__cutie { padding: 36px 20px 26px; }
}
