:root {
  --oc-consent-ink: #171715;
  --oc-consent-paper: #fcfbf7;
  --oc-consent-foil: #b6924a;
  --oc-consent-muted: #c9c4b8;
}

body.oc-consent-choice-required {
  overflow: hidden !important;
}

#cookie-notice {
  z-index: 999999 !important;
}

#cookie-notice.cookie-notice-visible {
  opacity: 1 !important;
}

#cookie-notice .cookie-notice-container {
  box-sizing: border-box;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 14px 24px !important;
  text-align: left !important;
}

#cookie-notice .oc-consent-choice-title {
  margin: 0 0 5px;
  color: var(--oc-consent-paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.08;
}

#cookie-notice #cn-notice-text {
  display: inline;
  max-width: 850px;
  color: var(--oc-consent-paper);
  font-size: 14px;
  line-height: 1.5;
}

#cookie-notice #cn-notice-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
}

#cookie-notice #oc-consent-choice-title[hidden],
#cookie-notice #cn-notice-text[hidden],
#cookie-notice #cn-notice-buttons[hidden] {
  display: none !important;
}

body #cookie-notice #cn-accept-cookie,
body #cookie-notice #cn-refuse-cookie,
#cookie-notice #oc-manage-preferences,
#cookie-notice #oc-save-preferences,
#cookie-notice #oc-consent-back {
  box-sizing: border-box;
  min-height: 42px;
  margin: 0 !important;
  padding: 10px 16px !important;
  border: 1px solid var(--oc-consent-foil) !important;
  border-radius: 0 !important;
  background: var(--oc-consent-foil) !important;
  color: var(--oc-consent-ink) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
}

#cookie-notice #oc-manage-preferences,
#cookie-notice #oc-consent-back {
  border-color: rgba(252, 251, 247, 0.72) !important;
  background: transparent !important;
  color: var(--oc-consent-paper) !important;
}

body #cookie-notice #cn-accept-cookie,
body #cookie-notice #cn-refuse-cookie {
  min-width: 124px;
}

#cookie-notice #cn-more-info,
#cookie-notice .oc-consent-details-link {
  min-height: auto !important;
  margin: 0 2px !important;
  padding: 8px 6px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--oc-consent-paper) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

#cookie-notice button:focus-visible,
#cookie-notice a:focus-visible,
#cookie-notice input:focus-visible + .oc-consent-switch {
  outline: 3px solid var(--oc-consent-paper) !important;
  outline-offset: 3px !important;
}

#cookie-notice .oc-consent-preferences[hidden] {
  display: none !important;
}

#cookie-notice .oc-consent-preferences {
  color: var(--oc-consent-paper);
}

#cookie-notice .oc-consent-preferences h2 {
  margin: 0 0 18px;
  color: var(--oc-consent-paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.08;
}

#cookie-notice .oc-consent-preference-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid rgba(252, 251, 247, 0.2);
}

#cookie-notice .oc-consent-preference-row strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
}

#cookie-notice .oc-consent-preference-row p {
  margin: 0;
  color: var(--oc-consent-muted);
  font-size: 13px;
  line-height: 1.45;
}

#cookie-notice .oc-consent-always-active {
  color: var(--oc-consent-paper);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

#cookie-notice .oc-consent-optional {
  cursor: pointer;
}

#cookie-notice #oc-consent-optional-cookies {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

#cookie-notice .oc-consent-switch {
  position: relative;
  width: 48px;
  height: 26px;
  border: 1px solid rgba(252, 251, 247, 0.65);
  background: transparent;
}

#cookie-notice .oc-consent-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  background: var(--oc-consent-paper);
  transition: transform 160ms ease, background-color 160ms ease;
}

#cookie-notice #oc-consent-optional-cookies:checked + .oc-consent-switch {
  border-color: var(--oc-consent-foil);
  background: var(--oc-consent-foil);
}

#cookie-notice #oc-consent-optional-cookies:checked + .oc-consent-switch::after {
  background: var(--oc-consent-ink);
  transform: translateX(22px);
}

#cookie-notice .oc-consent-preference-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
}

body.oc-consent-choice-required #cookie-notice {
  inset: 0 !important;
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  width: 100vw;
  height: 100dvh;
  overflow-y: auto;
  padding: 18px;
  background: rgba(5, 5, 4, 0.68) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

body.oc-consent-choice-required #cookie-notice .cookie-notice-container {
  width: min(100%, 760px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  margin: 0;
  padding: clamp(24px, 4vw, 42px) !important;
  border: 1px solid rgba(182, 146, 74, 0.72);
  background: var(--oc-consent-ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

body.oc-consent-choice-required #cookie-notice .oc-consent-choice-title {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 42px);
}

body.oc-consent-choice-required #cookie-notice #cn-notice-text {
  display: block;
  font-size: 15px;
  line-height: 1.6;
}

body.oc-consent-choice-required #cookie-notice #cn-notice-buttons {
  margin-top: 22px;
}

@media (max-width: 640px) {
  #cookie-notice .cookie-notice-container {
    padding: 13px 16px !important;
  }

  #cookie-notice #cn-notice-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body #cookie-notice #cn-accept-cookie,
  body #cookie-notice #cn-refuse-cookie,
  #cookie-notice #oc-manage-preferences {
    width: 100%;
  }

  #cookie-notice #oc-manage-preferences,
  #cookie-notice #cn-more-info {
    grid-column: 1 / -1;
  }

  body.oc-consent-choice-required #cookie-notice {
    padding: 0;
  }

  body.oc-consent-choice-required #cookie-notice .cookie-notice-container {
    width: 100%;
    max-height: 100dvh;
    padding: 24px 18px !important;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  #cookie-notice .oc-consent-preference-row {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #cookie-notice .oc-consent-switch,
  #cookie-notice .oc-consent-switch::after {
    transition: none !important;
  }
}
