/* Brand overrides for the self-hosted CookieConsent banner and panel.
   Gold #C4956A on white is about 2.7:1, so button text is espresso #1A1008 (7:1). */
#cc-main {
  --cc-font-family: 'Raleway', 'Lato', sans-serif;
  --cc-bg: #fff;
  --cc-primary-color: #1A120C;
  --cc-secondary-color: #3D342C;
  --cc-modal-border-radius: 22px;
  --cc-btn-border-radius: 999px;
  --cc-link-color: #6B4423;
  --cc-z-index: 1100;
  --cc-btn-primary-bg: #C4956A;
  --cc-btn-primary-color: #1A1008;
  --cc-btn-primary-border-color: #A3784E;
  --cc-btn-primary-hover-bg: #A3784E;
  --cc-btn-primary-hover-color: #1A1008;
  --cc-btn-primary-hover-border-color: #8C6240;
  --cc-btn-secondary-bg: #C4956A;
  --cc-btn-secondary-color: #1A1008;
  --cc-btn-secondary-border-color: #A3784E;
  --cc-btn-secondary-hover-bg: #A3784E;
  --cc-btn-secondary-hover-color: #1A1008;
  --cc-btn-secondary-hover-border-color: #8C6240;
  --cc-separator-border-color: rgba(196, 149, 106, 0.35);
  --cc-toggle-on-bg: #6B4423;
  --cc-toggle-off-bg: #8A8178;
  --cc-toggle-readonly-bg: #C4956A;
  --cc-cookie-category-block-bg: #FBF7F2;
  --cc-cookie-category-block-border: rgba(196, 149, 106, 0.35);
  --cc-cookie-category-block-hover-bg: #F6EFE6;
  --cc-cookie-category-block-hover-border: rgba(196, 149, 106, 0.55);
  --cc-overlay-bg: rgba(26, 18, 12, 0.55);
  --cc-footer-bg: #fff;
  --cc-footer-color: #3D342C;
  --cc-footer-border-color: rgba(196, 149, 106, 0.35);
}

#cc-main .cm,
#cc-main .pm {
  border: 1px solid rgba(196, 149, 106, 0.45);
  box-shadow: 0 8px 32px rgba(26, 18, 12, 0.16);
  background: #fff;
}

/* The library fades the panel in with opacity, which reads as see-through
   and leaves the banner (still .show--consent) overlapping the buttons.
   Show a solid panel immediately, dim the page, and take the banner out. */
html.show--preferences #cc-main .pm,
html.show--preferences #cc-main .pm__header,
html.show--preferences #cc-main .pm__body,
html.show--preferences #cc-main .pm__footer {
  background: #fff !important;
  opacity: 1 !important;
  transition: none !important;
}

html.show--preferences #cc-main .pm-overlay {
  background: rgba(26, 18, 12, 0.55) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: none !important;
}

html.show--preferences #cc-main .cm,
html.show--preferences.show--consent #cc-main .cc--anim .cm {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none !important;
}

#cc-main .pm__close-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  z-index: 3;
  pointer-events: auto;
}

#cc-main .pm__close-btn span,
#cc-main .pm__close-btn svg {
  pointer-events: none;
}

#cc-main .cm__btn,
#cc-main .pm__btn {
  width: 100%;
  min-height: 44px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#cc-main .cm__title {
  font-weight: 700;
}

#cc-main .cm__desc,
#cc-main .pm__section-desc {
  line-height: 1.45;
}

#cc-main .cm__btn:focus-visible,
#cc-main .pm__btn:focus-visible,
#cc-main .pm__close-btn:focus-visible,
#cc-main a:focus-visible {
  outline: 3px solid #1A1008;
  outline-offset: 2px;
}

#cc-main .section__toggle:focus-visible ~ .toggle__icon {
  outline: 3px solid #1A1008;
  outline-offset: 3px;
}

#cc-main .isc-gpc-note {
  display: block;
  background: #FFF8F0;
  border: 1px solid rgba(196, 149, 106, 0.7);
  border-radius: 12px;
  padding: 10px 12px;
  color: #1A120C;
  font-weight: 600;
  line-height: 1.45;
}

@media (max-width: 860px) {
  #cc-main .cm {
    max-width: none;
  }
  /* Keep the box short so a sales-page title card stays readable above it.
     --cc-modal-margin stays a single length; this only sets bottom. */
  #cc-main .cm--bottom {
    bottom: 10px;
  }
  #cc-main .cm--center {
    left: 8px;
    right: 8px;
  }
  #cc-main .cm__texts {
    padding-top: 0.45rem !important;
  }
  #cc-main .cm__title {
    font-size: 0.95em;
    padding-top: 0.15rem;
  }
  #cc-main .cm__title + .cm__desc {
    margin-top: 0.35rem !important;
  }
  #cc-main .cm__desc {
    font-size: 0.8rem;
    line-height: 1.3;
    padding-bottom: 0.35rem !important;
  }
  #cc-main .cm__btns,
  #cc-main .cm__links {
    padding: 0.4rem 0.85rem !important;
  }
  #cc-main .cm__btn + .cm__btn,
  #cc-main .cm__btn-group + .cm__btn-group {
    margin-top: 0.25rem !important;
  }
  /* Phone vendor CSS stretches the preferences box over the whole screen. */
  #cc-main .pm.pm--box {
    top: 50% !important;
    bottom: auto !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    height: auto !important;
    max-height: calc(100% - 24px) !important;
    border-radius: 22px !important;
    background: #fff !important;
    transform: translateY(calc(-50% + 1.6em)) !important;
  }
  html.show--preferences #cc-main .pm.pm--box {
    transform: translateY(-50%) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Homepage jump bar is fixed to the bottom edge. Sit the banner above it. */
@media (max-width: 860px) {
  body:has(#mobileJump) #cc-main .cm--bottom {
    bottom: 72px;
  }
}

.isc-privacy-choices {
  font-family: 'Raleway', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.isc-privacy-choices:hover {
  color: #C4956A;
}

.isc-privacy-choices:focus-visible {
  outline: 2px solid #C4956A;
  outline-offset: 3px;
}

.ft-legal-row .isc-privacy-choices {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.sp-lib-footer .isc-privacy-choices,
.lib-footer .isc-privacy-choices {
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  color: #C4956A;
  text-decoration: none;
  opacity: 0.85;
  padding: 0;
  min-height: 0;
}

.footer .isc-privacy-choices,
footer .isc-privacy-choices {
  display: inline-block;
  margin-top: 6px;
  color: #C4956A;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.isc-privacy-fallback {
  margin: 28px 16px 18px;
  text-align: center;
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.35);
}

.isc-privacy-fallback .isc-privacy-choices {
  color: #C4956A;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
}

#footer-policy .isc-privacy-choices {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #C4956A;
  text-decoration: none;
  text-transform: uppercase;
}
