/* „Comandă pe WhatsApp” (partials/wa-comanda, assets/js/wa-comanda.js): butonul de sub „Adaugă în coș” / din coș și
   fereastra (dialog nativ), în cerneala și hârtia NOVUM. Iconița WhatsApp e în culoarea textului (fără verde). */
.wa-buton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; }
.ic-wa { flex: 0 0 auto; }
/* pagina produsului: pe rândul cu „Adaugă în coș”, imediat după el (Dan, 25.10: „pune după add to bag”); pe telefon
   cantitatea ia rândul de sus, iar dedesubt stau „Adaugă în coș” și sigla WhatsApp, una lângă alta */
.buy-row .wa-buton--rand { flex: 0 0 auto; margin: 0; padding-left: 24px; padding-right: 24px; gap: 8px; white-space: nowrap; }
@media (max-width: 760px) {
    .buy-row:has(.wa-buton--rand) { flex-direction: row; flex-wrap: wrap; }
    .buy-row:has(.wa-buton--rand) .qty-stepper { flex: 1 0 100%; }
    .buy-row .wa-buton--rand { width: 58px; padding-left: 0; padding-right: 0; }
    .buy-row .wa-buton--rand .wa-buton__txt { display: none; }
}
/* margin: auto = în mijlocul ecranului: resetarea globală a site-ului (margin 0) o lipea de colțul din stânga-sus */
.wa-fereastra { margin: auto; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 22px;
    background: #F7F5F1; color: #1C1F26; box-shadow: 0 30px 80px rgba(28, 31, 38, .28); }
.wa-fereastra::backdrop { background: rgba(28, 31, 38, .45); backdrop-filter: blur(3px); }
.wa-fereastra__cutie { position: relative; display: grid; gap: 16px; padding: 26px 24px 22px; }
.wa-fereastra h3 { margin: 0; padding-right: 44px; font-size: 22px; font-weight: 600; line-height: 1.2; }
.wa-fereastra__inchide { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
    border: 0; border-radius: 999px; background: rgba(28, 31, 38, .06); color: inherit; cursor: pointer; }
.wa-fereastra__inchide:hover { background: rgba(28, 31, 38, .12); }
.wa-articole { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wa-articole li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: #FFFFFF; }
.wa-articole img { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 10px; object-fit: cover; }
.wa-art__nume { margin: 0; font-weight: 600; line-height: 1.35; }
.wa-art__pret { margin: 2px 0 0; color: rgba(28, 31, 38, .66); font-variant-numeric: tabular-nums; }
.wa-articole .wa-total { justify-content: space-between; padding: 2px 4px; background: transparent; }
.wa-articole .wa-eroare { color: #9E0B43; }
.wa-cantitate { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; }
.wa-cantitate[hidden], .wa-qr[hidden] { display: none; }
.wa-qty { display: inline-flex; align-items: center; border-radius: 999px; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(28, 31, 38, .14); }
.wa-qty button { width: 42px; height: 42px; padding: 0; border: 0; background: none; color: inherit; font-size: 18px; cursor: pointer; }
.wa-qty input { width: 54px; border: 0; background: none; color: inherit; font: inherit; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.wa-qty input::-webkit-inner-spin-button, .wa-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.wa-pasi { display: grid; gap: 6px; margin: 0; padding-left: 20px; color: rgba(28, 31, 38, .82); line-height: 1.45; }
.wa-mergi { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.wa-mergi[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.wa-qr { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 14px; background: #FFFFFF; }
.wa-qr__cod { width: 116px; flex: 0 0 auto; }
.wa-qr__cod svg { display: block; width: 100%; height: auto; }
.wa-qr p { margin: 0; color: rgba(28, 31, 38, .7); font-size: 14px; line-height: 1.45; }
.wa-nota { margin: 0; color: rgba(28, 31, 38, .62); font-size: 13px; text-align: center; }
.wa-fereastra :focus-visible { outline: 2px solid #1C1F26; outline-offset: 2px; }
@media (max-width: 480px) {
    .wa-fereastra__cutie { padding: 22px 16px 18px; }
    .wa-qr { display: none !important; }
}
