
.consent-open { overflow: hidden !important; }
.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 18px;
  pointer-events: none;
}
.consent-overlay.is-visible { display: flex; }
.consent-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(17, 31, 28, .44);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}
.consent-modal {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: linear-gradient(180deg, #fbf8f2 0%, #f5f1e8 100%);
  border: 1px solid rgba(222, 215, 202, .95);
  border-radius: 28px;
  box-shadow: 0 26px 80px rgba(17, 31, 28, .28);
  padding: 28px 28px 22px;
  pointer-events: auto;
}
.consent-close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: var(--primary);
  font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 3;
}
.consent-head { padding-right: 48px; }
.consent-head h2 { margin-bottom: 12px; }
.consent-head p { margin-bottom: 0; font-size: 1.05rem; color: var(--muted); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.consent-btn {
  min-width: 168px; border-radius: 14px; padding: 14px 20px; font-weight: 700; font-size: 0.98rem;
  box-shadow: none; cursor: pointer; border: 1px solid transparent;
}
.consent-btn-primary, .consent-btn-primary-alt { color: #fff; }
.consent-btn-primary { background: var(--primary); }
.consent-btn-primary-alt { background: var(--accent); }
.consent-btn-secondary { background: #fff; color: var(--primary); border-color: var(--border); }
.consent-categories { display: grid; gap: 16px; }
.consent-category { background: rgba(255,255,255,.62); border: 1px solid var(--border); border-radius: 22px; padding: 22px 22px 18px; }
.consent-category-main { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; }
.consent-copy h3 { margin-bottom: 8px; font-size: 1.9rem; }
.consent-copy p { margin-bottom: 14px; color: var(--muted); font-size: 1rem; }
.consent-info-toggle, .footer-consent-link {
  padding: 0; border: 0; background: transparent; color: var(--primary); font-weight: 700; text-decoration: underline;
  text-underline-offset: 2px; cursor: pointer;
}
.footer-consent-link { font: inherit; }
.consent-switch-wrap { display: flex; align-items: center; justify-content: flex-end; min-width: 112px; }
.consent-always-on { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; border-radius: 999px; background: rgba(31,95,84,.12); color: var(--primary); font-weight: 700; font-size: .88rem; }
.consent-switch { position: relative; display: inline-flex; cursor: pointer; }
.consent-switch input { position: absolute; opacity: 0; pointer-events: none; }
.consent-switch-track { position: relative; width: 88px; height: 36px; border-radius: 999px; background: #d94841; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: background .2s ease; }
.consent-switch-thumb { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.18); transition: transform .2s ease; }
.consent-switch-text { position: absolute; top: 50%; transform: translateY(-50%); font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: #fff; }
.consent-switch-text-off { right: 12px; }
.consent-switch-text-on { left: 14px; opacity: 0; }
.consent-switch input:checked + .consent-switch-track { background: var(--primary); }
.consent-switch input:checked + .consent-switch-track .consent-switch-thumb { transform: translateX(52px); }
.consent-switch input:checked + .consent-switch-track .consent-switch-text-off { opacity: 0; }
.consent-switch input:checked + .consent-switch-track .consent-switch-text-on { opacity: 1; }
.consent-details { margin-top: 16px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid rgba(222,215,202,.88); display:none; }
.consent-details.is-open { display:block; }
.consent-provider + .consent-provider { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.consent-provider-name { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.consent-provider-meta { color: var(--muted); margin-bottom: 6px; }
.consent-provider p { margin: 0; color: var(--muted); }
.consent-legal-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(222,215,202,.88); }
.consent-legal-links a { color: var(--primary); font-weight: 700; }
[data-consent-placeholder-for] { display: none; }
[data-consent-placeholder-for].is-visible { display: block; }
@media (max-width: 720px) {
  .consent-overlay { padding: 12px; align-items: stretch; }
  .consent-modal { width: 100%; max-height: none; padding: 22px 18px 18px; border-radius: 22px; }
  .consent-actions { display: grid; grid-template-columns: 1fr; }
  .consent-btn { width: 100%; min-width: 0; }
  .consent-category-main { grid-template-columns: 1fr; }
  .consent-switch-wrap { justify-content: flex-start; }
  .consent-copy h3 { font-size: 1.55rem; }
}
