/* Scoped to the notice and settings; the existing page theme stays unchanged. */
html {
  scroll-padding-bottom: var(--cookie-notice-height, 0px);
}

.cookie-notice-spacer {
  height: var(--cookie-notice-height, 0px);
}

.cookie-notice,
.cookie-settings {
  box-sizing: border-box;
  color: #fff;
  background: #111;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
}

.cookie-notice[hidden],
.cookie-settings [hidden] {
  display: none;
}

.cookie-notice {
  position: fixed;
  inset: auto 0 0;
  z-index: 9999;
  padding: 22px 30px;
  max-height: 55vh;
  overflow-y: auto;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .25);
}

.cookie-notice-inner {
  max-width: 1110px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.cookie-notice-copy {
  flex: 1;
}

.cookie-notice h2,
.cookie-settings h2,
.cookie-settings h3 {
  color: #fff;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
}

.cookie-notice h2 {
  font-size: 18px;
  margin: 0 0 6px;
}

.cookie-notice p,
.cookie-settings p {
  color: #fff;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 18px;
}

.cookie-notice p {
  margin: 0;
}

.cookie-notice a,
.cookie-settings a,
.cookie-clear {
  color: #f79520;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-notice .cookie-actions {
  flex-shrink: 0;
}

.cookie-actions .cookie-button {
  border: 1px solid #f79520;
  border-radius: 2px;
  margin: 0;
  background: #f79520;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  text-transform: none;
  text-align: center;
}

.cookie-actions .cookie-button::after {
  content: none;
}

.cookie-actions .cookie-button span {
  color: inherit;
}

.cookie-actions .cookie-button-secondary {
  background: #282b2d;
  border-color: #939393;
  color: #fff;
}

.cookie-actions .cookie-button:hover {
  background: #fff;
  border-color: #fff;
  color: #232323;
}

.cookie-notice :focus-visible,
.cookie-settings :focus-visible,
[data-cookie-settings]:focus-visible {
  outline: 2px solid #f79520;
  outline-offset: 4px;
}

.cookie-settings {
  width: min(600px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 30px;
  border: 1px solid #616161;
  border-radius: 5px;
  overflow-y: auto;
}

.cookie-settings::backdrop {
  background: rgba(0, 0, 0, .65);
}

.cookie-settings h2 {
  font-size: 24px;
  margin: 0 0 14px;
}

.cookie-category {
  border-top: 1px solid #616161;
  padding-top: 18px;
}

.cookie-category h3 {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
  margin: 0 0 10px;
}

.cookie-category h3 span {
  color: #f79520;
  font-size: 13px;
}

.cookie-settings code {
  color: #fff;
  font-size: inherit;
  overflow-wrap: anywhere;
}

.cookie-clear {
  margin: 12px 0 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.cookie-feedback {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.cookie-feedback-visible {
  position: fixed;
  z-index: 9999;
  inset: auto 16px 16px;
  width: auto;
  height: auto;
  max-width: 560px;
  padding: 16px;
  clip-path: none;
  background: #111;
  color: #fff;
  font-size: 14px;
}

@media (max-width: 991px) {
  .cookie-notice-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}

@media (max-width: 575px) {
  .cookie-notice {
    padding: 20px;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-settings {
    padding: 22px 14px;
  }
}

@media (max-width: 359px) {
  .cookie-settings {
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
  }
}
