/* ================================================================
   NOVUM 1979 · consimțământ cookie, în culorile site-ului (04.10.2026)
   Dan: „aici vreau logo și pe culoarea site-ului". Fereastra are hârtia sertarelor și a ferestrelor de pe site
   (--hartie), logoul NOVUM în colț, file-pastilă ca meniul (fila curentă = contur) și butoane-pastilă cu
   umplerea care urcă, ca pe site. „Refuz toate" și „Accept toate" arată la fel: refuzul trebuie să fie la fel
   de ușor ca acordul. Fără linii despărțitoare. Culorile vin din v2.css, cu rezervă pentru paginile vechi.
   ================================================================ */
.nvc[hidden] { display: none; }
.nvc { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
body.nvc-open { overflow: hidden; }

.nvc-overlay {
    position: absolute; inset: 0; background: rgba(28, 31, 38, .5);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .26s ease;
}
.nvc.is-on .nvc-overlay { opacity: 1; }

.nvc-card {
    position: relative; width: min(680px, 100%); max-height: min(88vh, 760px);
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--hartie, #F7F5F1); color: var(--ink, #1C1F26);
    font-family: var(--font, 'Urbanist', 'Helvetica Neue', Arial, sans-serif);
    border-radius: var(--r-lg, 23px); box-shadow: 0 40px 90px -30px rgba(28, 31, 38, .55);
    opacity: 0; transform: translateY(14px) scale(.985);
    transition: opacity .28s ease, transform .28s cubic-bezier(.32, 1.05, .4, 1);
}
.nvc.is-on .nvc-card { opacity: 1; transform: none; }
.nvc-card:focus { outline: none; }

/* --------------------------------------------------------- antet: logoul + filele */
.nvc-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; padding: 22px 28px 0; }
.nvc .nvc-brand { display: block; flex: none; color: var(--ink, #1C1F26); line-height: 0; }
.nvc .nvc-brand .logo-cr { display: block; width: 118px; height: auto; }

.nvc-tabs { display: flex; gap: 2px; }
.nvc .nvc-tab {
    display: inline-flex; align-items: center; height: 36px; padding: 0 15px; border: 0; border-radius: 999px; background: none;
    font: 600 13.5px/1 var(--font, 'Urbanist', sans-serif); letter-spacing: .01em; color: var(--ink-60, rgba(28, 31, 38, .6));
    cursor: pointer; transition: background .2s, color .2s, box-shadow .2s;
}
.nvc .nvc-tab:hover { color: var(--ink, #1C1F26); background: var(--ink-06, rgba(28, 31, 38, .06)); }
.nvc .nvc-tab.is-active { color: var(--ink, #1C1F26); background: none; box-shadow: inset 0 0 0 1px var(--ink, #1C1F26); }
.nvc .nvc-tab:focus-visible, .nvc .nvc-btn:focus-visible, .nvc-legal a:focus-visible { outline: 2px solid var(--ink, #1C1F26); outline-offset: 2px; }

/* --------------------------------------------------------- panouri */
.nvc-pane { display: none; padding: 20px 28px 26px; overflow-y: auto; overscroll-behavior: contain; }
.nvc-pane.is-active { display: block; }
.nvc-pane h2 { margin: 0 0 10px; font-size: clamp(23px, 1vw + 15px, 28px); line-height: 1.15; letter-spacing: -.02em; font-weight: 200;
    color: var(--ink, #1C1F26); text-wrap: balance; }
.nvc-pane p { margin: 0 0 10px; font-size: 14px; line-height: 1.6; color: var(--ink-60, rgba(28, 31, 38, .6)); }
.nvc-pane .nvc-lead { margin-bottom: 18px; }
.nvc-pane .nvc-note { margin-top: 14px; font-size: 12.5px; }

/* --------------------------------------------------------- categorii */
.nvc-cats { display: grid; gap: 4px; margin: 0 0 22px; }
.nvc-cat { display: flex; align-items: flex-start; gap: 14px; padding: 13px 14px; border-radius: var(--r, 15px); cursor: pointer; transition: background .15s; }
.nvc-cat:hover { background: var(--ink-06, rgba(28, 31, 38, .06)); }
.nvc-cat.is-locked { cursor: default; opacity: .72; }
.nvc-cat.is-locked:hover { background: none; }
.nvc-cat-txt strong { display: block; margin-bottom: 3px; font-size: 15px; font-weight: 600; color: var(--ink, #1C1F26); }
.nvc-cat-txt small { display: block; font-size: 13px; line-height: 1.5; color: var(--ink-60, rgba(28, 31, 38, .6)); }

/* comutator: starea se vede din poziția bulinei, nu doar din culoare */
.nvc-sw { position: relative; flex: none; width: 40px; height: 24px; margin-top: 1px; }
.nvc-sw input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.nvc-sw i { position: absolute; inset: 0; border-radius: 999px; pointer-events: none; background: rgba(28, 31, 38, .16); transition: background .2s; }
.nvc-sw i::after {
    content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(28, 31, 38, .3); transition: transform .2s cubic-bezier(.4, 0, .2, 1);
}
.nvc-sw input:checked + i { background: var(--ink, #1C1F26); }
.nvc-sw input:checked + i::after { transform: translateX(16px); }
.nvc-sw input:focus-visible + i { box-shadow: 0 0 0 3px rgba(28, 31, 38, .2); }
.nvc-sw input:disabled + i { background: rgba(28, 31, 38, .32); }

/* --------------------------------------------------------- butoane: pastila cu umplerea care urcă, ca pe site */
.nvc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nvc .nvc-btn {
    position: relative; isolation: isolate; overflow: hidden; flex: 1 1 0; min-width: max-content;
    display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
    border: 0; border-radius: 60px; font: 700 14.5px/1 var(--font, 'Urbanist', sans-serif); letter-spacing: .01em;
    white-space: nowrap; cursor: pointer; transition: color .35s;
}
.nvc .nvc-btn::before {
    content: ''; position: absolute; z-index: -1; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; border-radius: 50%;
    transform: translate(-50%, -50%) translateY(76%); transition: transform .55s cubic-bezier(.2, .8, .2, 1); pointer-events: none;
}
.nvc .nvc-btn--plin { background: var(--ink, #1C1F26); color: #fff; }
.nvc .nvc-btn--plin::before { background: #464C59; }
.nvc .nvc-btn--contur { background: transparent; color: var(--ink, #1C1F26); box-shadow: inset 0 0 0 1px var(--ink, #1C1F26); }
.nvc .nvc-btn--contur::before { background: var(--ink, #1C1F26); }
@media (hover: hover) {
    .nvc .nvc-btn:hover::before { transform: translate(-50%, -50%); }
    .nvc .nvc-btn--contur:hover { color: #fff; }
}

.nvc-pane .nvc-legal { margin: 16px 0 0; text-align: center; font-size: 12.5px; }
.nvc-legal a { color: var(--ink, #1C1F26); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.nvc-legal span { margin: 0 8px; color: var(--ink-60, rgba(28, 31, 38, .6)); }

/* --------------------------------------------------------- tabelul din „Detalii": rânduri-plăci, fără linii */
.nvc-table { display: grid; gap: 6px; }
.nvc-tr { display: grid; grid-template-columns: 1.5fr 2.2fr 1fr 1.1fr; gap: 10px; padding: 11px 14px; border-radius: 12px;
    background: var(--ink-06, rgba(28, 31, 38, .06)); font-size: 12.5px; line-height: 1.45; }
.nvc-tr > span:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.nvc-th { padding-top: 0; padding-bottom: 0; background: none; font-size: 12px; font-weight: 600; color: var(--ink-60, rgba(28, 31, 38, .6)); }
.nvc-tr code { font-size: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.nvc-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 600;
    background: rgba(28, 31, 38, .08); color: var(--ink-60, rgba(28, 31, 38, .6)); }
.nvc-badge-necessary { background: var(--ink, #1C1F26); color: #fff; }

/* --------------------------------------------------------- widget plutitor */
.nvc-widget[hidden] { display: none; }
/* fără cerc: doar icoana, în albastrul închis al temei */
.nvc-widget {
    position: fixed; left: 24px; bottom: 24px; z-index: 150;
    display: flex; align-items: center; justify-content: center; padding: 4px;
    background: none; border: 0; box-shadow: none;
    color: var(--clay, #2A2E37);
    filter: drop-shadow(0 4px 9px rgba(28, 31, 38, 0.26));
    transition: color 0.2s ease, filter 0.2s ease;
}
.nvc-widget:hover { color: var(--clay-deep, #1C1F26); filter: drop-shadow(0 7px 14px rgba(28, 31, 38, 0.34)); }
/* Widgetul e fix pe ecran, deci trece peste secțiuni de culori diferite.
   Când ajunge peste una închisă (banda de personalizare, footer) devine alb. */
.nvc-widget.on-dark { color: #FFFFFF; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5)); }
.nvc-widget.on-dark:hover { color: #FFFFFF; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.65)); }
.icon-cookie {
    display: block;
    transition: transform 0.75s cubic-bezier(0.33, 1.1, 0.4, 1);
}
.nvc-widget:hover .icon-cookie,
.nvc-widget:focus-visible .icon-cookie { transform: rotate(360deg); }
@media (prefers-reduced-motion: reduce) {
    .icon-cookie { transition: none; }
    .nvc-widget:hover .icon-cookie { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .nvc-overlay, .nvc-card, .nvc-sw i::after, .nvc .nvc-tab, .nvc .nvc-btn::before { transition: none; }
}

/* --------------------------------------------------------- telefon: foaie de jos */
@media (max-width: 620px) {
    .nvc { padding: 0; align-items: flex-end; }
    .nvc-card { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: var(--r-lg, 23px) var(--r-lg, 23px) 0 0; }
    .nvc-head { padding: 18px 18px 0; }
    .nvc .nvc-brand .logo-cr { width: 100px; }
    .nvc .nvc-tab { height: 34px; padding: 0 11px; font-size: 13px; }
    .nvc-pane { padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
    .nvc-cat { gap: 12px; padding: 11px 10px; }
    /* refuz | accept pe un rând, „Salvează selecția" dedesubt, pe toată lățimea */
    .nvc-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .nvc .nvc-btn { min-width: 0; min-height: 48px; padding: 0 12px; font-size: 14px; }
    .nvc-actions [data-nvc="save"] { grid-column: 1 / -1; order: 3; }
    .nvc-tr { grid-template-columns: 1fr; gap: 3px; padding: 12px 14px; }
    .nvc-th { display: none; }
    .nvc-tr span::before { content: attr(data-l) ': '; font-weight: 700; opacity: .6; }
    .nvc-tr span:first-child::before { content: none; }
    .nvc-widget { left: 14px; bottom: 14px; }
    .icon-cookie { width: 38px; height: 38px; }
}
