/* VC Media cookie consent: floating card, bottom-right on desktop; bottom sheet on small screens. */
.consent-banner[hidden],
.consent-backdrop[hidden],
.consent-panel[hidden] { display: none !important; }

body.consent-open .mobile-cta,
body.consent-open .mobile-cta.is-visible {
  transform: translateY(110%) !important;
  pointer-events: none;
}

.consent-banner {
  position: fixed;
  z-index: 50;
  color: var(--vc-bone);
  background: var(--vc-black);
  box-sizing: border-box;
}
.consent-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 12px;
}
.consent-copy {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(242, 240, 234, .88);
}
.consent-copy a {
  color: var(--vc-bone);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--vc-signal-yellow);
}
.consent-copy a:hover { color: var(--vc-signal-yellow); }
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  align-items: center;
}
.consent-actions .btn {
  flex: 1 1 calc(50% - 5px);
  justify-content: center;
  min-height: 52px;
  min-width: 0;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 52px;
  padding: 0 24px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  color: var(--vc-bone);
  border: 2px solid var(--vc-bone);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  cursor: pointer;
}
.btn-ghost:hover { background: var(--vc-bone); color: var(--vc-black); }
.consent-text-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--vc-bone);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--vc-signal-yellow);
}
.consent-text-btn:hover { color: var(--vc-signal-yellow); }

/* Floating card, bottom-right on desktop; full-width bottom sheet on small screens */
.consent-banner {
  right: 8px;
  left: auto;
  bottom: 24px;
  width: min(400px, calc(100vw - 16px));
  padding: 28px 28px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  border-top: 3px solid var(--vc-signal-yellow);
}
/* 1280–1365: a 400px card cannot clear the hero headline; stay a step narrower. */
@media (min-width: 721px) and (max-width: 1365px) {
  .consent-banner {
    width: min(360px, calc(100vw - 32px));
    right: 16px;
  }
}
/* ~1680: the headline reaches farther right than a 400px card can sit. */
@media (min-width: 1600px) and (max-width: 1839px) {
  .consent-banner {
    width: 380px;
    right: 8px;
  }
}
.consent-customize { flex: 1 1 100%; margin-left: 0; }

/* Panel */
.consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(18, 18, 18, .62);
}
.consent-panel {
  position: fixed;
  z-index: 60;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--vc-black);
  color: var(--vc-bone);
  padding: 28px 28px 24px;
  border-top: 3px solid var(--vc-signal-yellow);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .4);
  box-sizing: border-box;
}
.consent-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.consent-panel-head .consent-title { margin: 0; font-size: 1.5rem; }
.consent-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin: -8px -8px 0 0;
  color: var(--vc-bone);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}
.consent-close:hover { color: var(--vc-signal-yellow); }
.consent-gpc {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: rgba(242, 240, 234, .08);
  font-size: .9375rem;
  line-height: 1.45;
}
.consent-toggles { margin: 22px 0 0; padding: 0; list-style: none; }
.consent-toggle {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-d);
}
.consent-toggle:last-child { border-bottom: 1px solid var(--line-d); }
.consent-toggle-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.consent-toggle-desc {
  grid-column: 1;
  margin: 0;
  font-size: .9375rem;
  line-height: 1.45;
  color: rgba(242, 240, 234, .8);
}
.consent-switch {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 48px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(242, 240, 234, .22);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.consent-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: var(--vc-bone);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.consent-switch[aria-checked="true"] { background: var(--vc-signal-yellow); }
.consent-switch[aria-checked="true"]::after { transform: translateX(20px); background: var(--vc-black); }
.consent-switch:disabled,
.consent-switch[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 1;
}
.consent-switch:disabled[aria-checked="true"],
.consent-switch[aria-disabled="true"][aria-checked="true"] { background: var(--vc-signal-yellow); }
.consent-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  align-items: center;
}
.consent-panel-actions .btn { justify-content: center; min-height: 52px; }

@media (max-width: 720px) {
  .consent-banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 24px var(--gx) calc(20px + env(safe-area-inset-bottom));
  }
  .consent-actions .btn {
    flex: 1 1 calc(50% - 10px);
  }
  .consent-panel {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px - env(safe-area-inset-bottom));
    padding: 24px var(--gx) calc(20px + env(safe-area-inset-bottom));
    top: auto;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
  }
}
