/* dv-consent (2026-10-28): banner on the kit's .dvh-cookie (position, surface, type come from components.css),
   three buttons of equal weight; the "Setări cookie" dialog with the kit switches. */
.dvc-banner[hidden], .dvc-poke { display: none !important; }
.dvc-banner p { margin: 0; }
.dvc-banner a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.dvh-cookie .dvc-actions { grid-template-columns: 1fr 1fr; }
.dvh-cookie .dvc-actions .dvh-btn { padding-inline: var(--sp-3); white-space: normal; text-align: center; line-height: 1.2; }
.dvh-cookie .dvc-actions [data-dvc-open] { grid-column: 1 / -1; grid-row: 2; }
@media (min-width: 480px) {
  .dvh-cookie .dvc-actions { grid-template-columns: repeat(3, 1fr); }
  .dvh-cookie .dvc-actions [data-dvc-open] { grid-column: auto; grid-row: auto; }
}
@media (min-width: 900px) {
  .dvh-cookie.dvc-banner { width: 560px; }
}

.dvc-dialog {
  position: fixed; inset: 0; margin: auto; /* the kit's reset zeroes the UA margin that centres a modal dialog */
  width: min(560px, calc(100vw - 2 * var(--sp-4))); max-height: min(88dvh, calc(100dvh - 2 * var(--sp-4)));
  padding: 0; overflow: auto; z-index: var(--z-modal);
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-media);
  box-shadow: var(--shadow-overlay); font-size: var(--fs-meta); line-height: var(--lh-meta);
}
.dvc-dialog::backdrop { background: rgb(26 23 27 / .45); }
.dvc-dialog__in { display: grid; gap: var(--sp-4); padding: var(--sp-5); margin: 0; }
.dvc-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.dvc-dialog h2 { margin: 0; font-size: var(--fs-h3); line-height: 1.2; }
.dvc-x {
  display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; margin: -10px -10px -10px 0; padding: 0;
  color: var(--ink); background: transparent; border: 0; border-radius: var(--radius-control, 4px); cursor: pointer;
}
.dvc-x:hover { background: var(--band); }
.dvc-x:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.dvc-intro, .dvc-cat p, .dvc-more, .dvc-live { margin: 0; }
.dvc-intro, .dvc-cat p { color: var(--muted); }
.dvc-cats { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.dvc-cat { display: grid; gap: var(--sp-1); padding-block: var(--sp-3); border-bottom: 1px solid var(--line); }
.dvc-cat__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 44px; }
.dvc-cat h3 { margin: 0; font-size: var(--fs-ui); font-weight: var(--fw-strong); line-height: 1.3; }
.dvc-always { flex: none; font-size: var(--fs-meta); font-weight: var(--fw-strong); color: var(--muted); }
.dvc-cat .dvh-switch { flex: none; }
.dvc-dialog__actions { display: grid; grid-template-columns: 1fr; gap: var(--sp-2); }
.dvc-dialog__actions .dvh-btn { min-height: 44px; padding-inline: var(--sp-3); white-space: normal; text-align: center; line-height: 1.2; }
@media (min-width: 520px) {
  .dvc-dialog__actions { grid-template-columns: repeat(3, 1fr); }
}
.dvc-more a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.dvc-live:empty { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .dvc-dialog[open] { animation: dvc-in .18s ease-out; }
  @keyframes dvc-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
}
@media print { .dvc-banner, .dvc-dialog { display: none !important; } }
