/* AUDIO Cu banner. Figtree is the site face, already self-hosted.
   Gold is the Notify me accent. Accept and Reject share one style. */

.cookie-consent {
  --cc-paper: #fefdfc;
  --cc-ink: #374147;
  --cc-gold: #cb8f31;
  --cc-font: "Figtree", "Figtree Fallback", sans-serif;

  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cc-ink);
  font-family: var(--cc-font);
  font-weight: 300;
  pointer-events: none;
}

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

.cookie-consent__panel {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: calc(100% - 40px);
  max-width: 672px;
  margin: 0 auto;
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
  background: var(--cc-paper);
  color: inherit;
  border: 0;
  border-top: 2px solid var(--cc-gold);
  pointer-events: auto;
  border-radius: 0;
  box-shadow: none;
  font-family: inherit;
  font-weight: 300;
  line-height: 1.3;
}

.cookie-consent__strip {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.cookie-consent__title {
  margin: 0;
  color: var(--cc-ink);
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.cookie-consent__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.cookie-consent__copy {
  width: 100%;
  margin: 0;
  color: var(--cc-ink);
  font-family: inherit;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.6;
  text-wrap: pretty;
}

.cookie-consent__privacy {
  color: var(--cc-ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  width: 100%;
  margin: 0;
}

.cookie-consent__btn {
  appearance: none;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--cc-gold);
  font-family: var(--cc-font);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s ease-out;
}

.cookie-consent__arrow {
  display: inline-block;
  color: #cb8f31;
  transition: transform 0.2s ease-out;
}

.cookie-consent__panel:focus {
  outline: none;
}

.cookie-consent__panel:focus-visible,
.cookie-consent__btn:focus-visible,
.cookie-consent__privacy:focus-visible {
  outline: 2px solid var(--cc-gold);
  outline-offset: 3px;
}

.cookie-consent-embed {
  display: grid;
  place-items: center;
  min-height: 12rem;
  background: var(--cc-paper, #fefdfc);
  color: var(--cc-ink, #374147);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.cookie-consent-embed__btn {
  appearance: none;
  min-height: 44px;
  margin: 0;
  padding: 0.35em 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--cc-gold, #cb8f31);
  font-family: var(--cc-font, "Figtree", "Figtree Fallback", sans-serif);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  cursor: pointer;
}

.cookie-consent-embed__btn:focus-visible {
  outline: 2px solid var(--cc-gold, #cb8f31);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .cookie-consent__panel {
    gap: 14px;
    padding-top: 22px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .cookie-consent__title {
    font-size: 16px;
  }

  .cookie-consent__body {
    gap: 14px;
  }

  .cookie-consent__copy {
    font-size: 14px;
    line-height: 1.6;
    text-wrap: balance;
  }

  .cookie-consent__actions {
    gap: 4px 28px;
  }

  .cookie-consent__btn {
    font-size: 16px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .cookie-consent__btn:hover,
  .cookie-consent__privacy:hover,
  .cookie-consent-embed__btn:hover {
    opacity: 0.7;
  }

  .cookie-consent__btn:hover .cookie-consent__arrow {
    transform: translateX(0.3em);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent__btn,
  .cookie-consent__privacy,
  .cookie-consent-embed__btn,
  .cookie-consent__arrow,
  .cookie-consent__btn:hover .cookie-consent__arrow {
    transition: none;
    transform: none;
  }
}
