/* Cookie-uri și acord: bannerul jos (pe telefon toată lățimea, pe calculator o casetă în stânga jos) */
.sc { position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; padding: 0 12px 12px; pointer-events: none; }
.sc[hidden] { display: none; }
.sc-box {
  pointer-events: auto; max-width: 460px; margin: 0; padding: 16px; border-radius: var(--radius, 8px);
  background: var(--paper, #fff); color: var(--ink, #18202b); border: 1px solid var(--line, #d9dee5);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18); font-size: .95rem; max-height: calc(100vh - 24px); overflow: auto;
}
.sc-title { margin: 0 0 4px; font-weight: 700; font-size: 1.05rem; }
.sc-text { margin: 0 0 12px; color: var(--ink-2, #4a5563); }
.sc-text a { color: inherit; }
.sc-cats { margin: 0 0 12px; padding: 0; border: 0; display: grid; gap: 8px; }
.sc-cats[hidden] { display: none; }
.sc-cat { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 6px; background: var(--wash, #f1f3f6); cursor: pointer; }
.sc-cat input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; }
.sc-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* butoanele au același aspect: „Refuz” nu e mai greu de găsit decât „Accept” */
.sc-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sc-btn {
  min-height: 44px; padding: 0 10px; border-radius: var(--radius, 8px); font: inherit; font-weight: 600; cursor: pointer;
  background: var(--ink, #18202b); color: var(--paper, #fff); border: 1px solid var(--ink, #18202b);
}
.sc-btn[hidden] { display: none; }
.sc-btn:hover { filter: brightness(1.15); }
.sc-btn:focus-visible, .sc-link:focus-visible { outline: 3px solid var(--focus, #1f5fd1); outline-offset: 2px; }
.sc-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
/* pagina /cookie-uri */
.sc-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sc-table th, .sc-table td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line, #d9dee5); }
.sc-table code { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .sc-table thead { display: none; }
  .sc-table, .sc-table tbody, .sc-table tr, .sc-table td { display: block; }
  .sc-table tr { padding: 10px 0; border-bottom: 1px solid var(--line, #d9dee5); }
  .sc-table td { border: 0; padding: 2px 0; }
  .sc-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink-2, #4a5563); }
  .sc-table td:first-child::before { content: none; }
}
@media (max-width: 420px) {
  .sc { padding: 0; }
  .sc-box { max-width: none; border-radius: 12px 12px 0 0; border-width: 1px 0 0; }
}
@media print { .sc { display: none; } }
