/* Pro v9 notice and settings. Keep the vendor's controls, overlay and focus management. */
.gj-civic-pro #ccc {
  --gj-civic-gap: clamp(0.5rem, 1.5vw, 1.25rem);
  --gj-civic-top: max(var(--gj-civic-gap), env(safe-area-inset-top, 0px));
  --gj-civic-bottom: max(var(--gj-civic-gap), env(safe-area-inset-bottom, 0px));
  --gj-civic-left: max(var(--gj-civic-gap), env(safe-area-inset-left, 0px));
  --gj-civic-right: max(var(--gj-civic-gap), env(safe-area-inset-right, 0px));
  --gj-civic-width: min(30rem, calc(100% - var(--gj-civic-left) - var(--gj-civic-right)));
  --gj-civic-radius: 1.125rem;
  --gj-civic-font: Nunito, Helvetica, Arial, sans-serif;
  --gj-civic-background: #151515;
  --gj-civic-gold: #e1be69;
  font-family: var(--gj-civic-font);
}

.gj-civic-pro #ccc :is(#ccc-module #ccc-content, #ccc-notify) {
  background-color: var(--gj-civic-background);
  border-radius: var(--gj-civic-radius);
  box-shadow: 0 0.75rem 2.5rem rgb(0 0 0 / 35%);
}

.gj-civic-pro #ccc :is(#ccc-notify, #ccc-content),
.gj-civic-pro #ccc :is(#ccc-notify, #ccc-content) :where(p, h2, h3, h4, li, a, label, button, input) {
  font-family: var(--gj-civic-font);
}

/* Inset the existing notice, rather than stretching it edge to edge. */
.gj-civic-pro #ccc #ccc-notify:not(.ccc-notify__top) {
  bottom: var(--gj-civic-bottom);
  left: var(--gj-civic-left);
  right: auto;
  box-sizing: border-box;
  width: var(--gj-civic-width);
  max-height: min(80dvh, calc(100dvh - var(--gj-civic-top) - var(--gj-civic-bottom)));
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.gj-civic-pro #ccc #ccc-module.ccc-module--slideout {
  top: var(--gj-civic-top);
  bottom: var(--gj-civic-bottom);
  width: var(--gj-civic-width);
  height: auto;
}

.gj-civic-pro #ccc #ccc-module.ccc-module--slideout.ccc-module--left {
  left: var(--gj-civic-left);
}

.gj-civic-pro #ccc #ccc-module.ccc-module--slideout.ccc-module--right {
  right: var(--gj-civic-right);
}

.gj-civic-pro #ccc :is(#ccc-notify-title, #ccc-title) {
  font-family: Platypi, Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
}

.gj-civic-pro #ccc :is(#ccc-notify, #ccc-content) a,
.gj-civic-pro #ccc #ccc-notify-settings {
  color: var(--gj-civic-gold);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.gj-civic-pro #ccc :is(#ccc-notify, #ccc-content) a .ccc-svg-element {
  color: inherit;
  fill: currentColor;
}

/* Accept and reject have matching pill buttons, including on hover. */
.gj-civic-pro #ccc :is(#ccc-notify, #ccc-content) :is(.ccc-accept-button, .ccc-reject-button) {
  min-height: 2.75rem;
  border-radius: 999px;
}

.gj-civic-pro #ccc :is(#ccc-notify, #ccc-content) :is(.ccc-accept-button, .ccc-reject-button):hover {
  border-color: var(--gj-civic-gold);
}

.gj-civic-pro #ccc :is(#ccc-notify, #ccc-content) :is(a, button, input):focus-visible {
  outline: 2px solid var(--gj-civic-gold);
  outline-offset: 3px;
}

/* The switch input is transparent; put its visible outline on the switch. */
.gj-civic-pro #ccc .checkbox-toggle:focus-within {
  outline: 2px solid var(--gj-civic-gold);
  outline-offset: 3px;
}

.gj-civic-pro #ccc #ccc-close.ccc-close--labelled:focus-visible {
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
  .gj-civic-pro #ccc :is(#ccc-module, #ccc-notify) {
    animation-duration: 0.01ms;
  }
}

.gj-consent-video {
  width: 100%;
  height: 100%;
}

.gj-consent-video__message {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.5rem;
  box-sizing: border-box;
  min-height: 100%;
  padding: clamp(0.875rem, 3vw, 2rem);
  background: #151515;
  color: #f6f2ec;
  text-align: center;
}

.gj-consent-video__message p {
  max-width: 40ch;
  margin: 0;
}

.gj-consent-video__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1rem;
}

.gj-consent-video__links :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #e1be69;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.gj-consent-video__links button {
  cursor: pointer;
}

.gj-consent-video__links :is(a, button):focus-visible,
[data-gj-cookie-footer]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.gj-consent-video [hidden] {
  display: none !important;
}

.gj-consent-video__player {
  aspect-ratio: var(--gj-video-ratio, 16 / 9);
  width: 100%;
  height: 100%;
}

.gj-consent-video__player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Let the consent text wrap without being cut off in a narrow split column. */
:is(.content-video__media, .split-content__video-media):has(.gj-consent-video__message:not([hidden])) {
  aspect-ratio: auto;
}

:is(.content-video__media, .split-content__video-media):has(.gj-consent-video__message:not([hidden])) .gj-consent-video__message {
  min-height: 10rem;
}
