.ctc-cookie-banner[hidden],
.ctc-cookie-settings-button[hidden],
.ctc-consent-modal[hidden] {
  display: none !important;
}

.ctc-cookie-banner,
.ctc-consent-modal,
.ctc-cookie-settings-button {
  --ctc-consent-green: #27332b;
  --ctc-consent-green-soft: #44574a;
  --ctc-consent-cream: #fbf6ee;
  --ctc-consent-terra: #c8742c;
  --ctc-consent-terra-dark: #a95e1f;
  --ctc-consent-ink: #2a2620;
  --ctc-consent-muted: #6b6457;
  --ctc-consent-line: rgba(68, 87, 74, .18);
  font-family: "Karla", Arial, sans-serif;
  box-sizing: border-box;
}

.ctc-cookie-banner *,
.ctc-consent-modal *,
.ctc-cookie-settings-button * {
  box-sizing: border-box;
}

.ctc-cookie-banner {
  position: fixed;
  z-index: 10000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px;
  color: #fff;
  background: var(--ctc-consent-green);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  box-shadow: 0 24px 70px -24px rgba(0, 0, 0, .72);
}

.ctc-cookie-copy {
  max-width: 690px;
}

.ctc-cookie-copy strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  line-height: 1.2;
}

.ctc-cookie-copy p {
  margin: 0;
  color: #d6dccf;
  font-size: 14.5px;
  line-height: 1.55;
}

.ctc-cookie-copy a,
.ctc-consent-dialog a {
  color: #f2c891;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ctc-cookie-actions,
.ctc-consent-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.ctc-cookie-button {
  min-height: 44px;
  padding: 11px 16px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}

.ctc-cookie-button:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .55);
}

.ctc-cookie-button:focus-visible,
.ctc-cookie-settings-button:focus-visible,
.ctc-consent-close:focus-visible,
.ctc-consent-option input:focus-visible {
  outline: 3px solid #f4cc98;
  outline-offset: 3px;
}

.ctc-cookie-button--primary {
  color: #fff;
  background: var(--ctc-consent-terra);
  border-color: var(--ctc-consent-terra);
}

.ctc-cookie-button--primary:hover {
  background: var(--ctc-consent-terra-dark);
  border-color: var(--ctc-consent-terra-dark);
  transform: translateY(-1px);
}

.ctc-cookie-button--text {
  padding-right: 6px;
  padding-left: 6px;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ctc-cookie-settings-button {
  position: fixed;
  z-index: 9990;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 13px;
  color: #fff;
  background: var(--ctc-consent-green);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, .75);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ctc-cookie-settings-button:hover {
  background: var(--ctc-consent-green-soft);
}

.ctc-consent-modal {
  position: fixed;
  z-index: 10010;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.ctc-consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 27, 23, .74);
  backdrop-filter: blur(4px);
}

.ctc-consent-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 650px);
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 34px;
  color: var(--ctc-consent-ink);
  background: var(--ctc-consent-cream);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 20px;
  box-shadow: 0 30px 90px -28px rgba(0, 0, 0, .75);
}

.ctc-consent-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  color: var(--ctc-consent-ink);
  background: rgba(68, 87, 74, .08);
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.ctc-consent-eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--ctc-consent-terra-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ctc-consent-dialog h2 {
  margin: 0 42px 10px 0;
  color: var(--ctc-consent-green);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
}

.ctc-consent-dialog > p {
  margin: 0;
  color: var(--ctc-consent-muted);
  font-size: 15px;
  line-height: 1.55;
}

.ctc-consent-options {
  display: grid;
  gap: 12px;
  margin: 25px 0;
}

.ctc-consent-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--ctc-consent-line);
  border-radius: 13px;
  cursor: pointer;
}

.ctc-consent-option--locked {
  background: rgba(68, 87, 74, .055);
  cursor: default;
}

.ctc-consent-option strong,
.ctc-consent-option small {
  display: block;
}

.ctc-consent-option strong {
  margin-bottom: 4px;
  color: var(--ctc-consent-green);
  font-size: 16px;
}

.ctc-consent-option small {
  color: var(--ctc-consent-muted);
  font-size: 13.5px;
  line-height: 1.4;
}

.ctc-consent-option input {
  width: 22px;
  height: 22px;
  accent-color: var(--ctc-consent-terra);
  cursor: pointer;
}

.ctc-consent-option input:disabled {
  cursor: default;
}

.ctc-consent-dialog-actions .ctc-cookie-button {
  color: var(--ctc-consent-green);
  border-color: rgba(68, 87, 74, .35);
}

.ctc-consent-dialog-actions .ctc-cookie-button:hover {
  background: rgba(68, 87, 74, .08);
  border-color: rgba(68, 87, 74, .6);
}

.ctc-consent-dialog-actions .ctc-cookie-button--primary {
  color: #fff;
  background: var(--ctc-consent-terra);
  border-color: var(--ctc-consent-terra);
}

.ctc-consent-dialog-actions .ctc-cookie-button--primary:hover {
  background: var(--ctc-consent-terra-dark);
  border-color: var(--ctc-consent-terra-dark);
}

.ctc-consent-more {
  margin-top: 18px !important;
  text-align: right;
}

.ctc-consent-more a {
  color: var(--ctc-consent-green);
  font-weight: 700;
}

body.ctc-consent-open {
  overflow: hidden;
}

[data-ctc-cookie-settings] {
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 820px) {
  .ctc-cookie-banner {
    right: 12px;
    bottom: 84px;
    left: 12px;
    display: block;
    padding: 19px;
  }

  .ctc-cookie-copy {
    margin-bottom: 16px;
  }

  .ctc-cookie-actions {
    justify-content: stretch;
  }

  .ctc-cookie-actions .ctc-cookie-button {
    flex: 1 1 150px;
  }

  .ctc-cookie-settings-button {
    bottom: 78px;
  }
}

@media (max-width: 520px) {
  .ctc-cookie-banner {
    max-height: calc(100vh - 100px);
    overflow: auto;
  }

  .ctc-cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ctc-cookie-button--primary {
    order: -1;
  }

  .ctc-consent-dialog {
    padding: 28px 20px 22px;
  }

  .ctc-consent-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ctc-consent-dialog-actions .ctc-cookie-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ctc-cookie-button {
    transition: none;
  }
}
