.cookie-notice,
.cookie-settings {
  --cookie-background: #f6f3e9;
  --cookie-ink: #24271f;
  --cookie-border: #66695b;
  box-sizing: border-box;
  background: var(--cookie-background);
  color: var(--cookie-ink);
  border: 1px solid var(--cookie-border);
  font: 400 .875rem/1.5 Inter, Arial, sans-serif;
  box-shadow: 0 8px 28px #15170e2b;
}

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

.cookie-notice {
  position: fixed;
  z-index: 100;
  inset-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  --cookie-bottom: max(12px, env(safe-area-inset-bottom));
  bottom: var(--cookie-bottom);
  width: min(960px, calc(100% - 24px));
  max-height: calc(100dvh - var(--cookie-bottom) - 12px);
  overflow: auto;
  margin-inline: auto;
  padding: clamp(14px, 2.5vw, 24px);
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

body:has(.conversion-bar) .cookie-notice {
  --cookie-bottom: calc(var(--conversion-bar-height) + 12px);
}

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

.cookie-copy h2 {
  margin: 0 0 4px;
  font: 600 1.05rem/1.3 Inter, Arial, sans-serif;
}

.cookie-copy p {
  margin: 0 0 4px;
}

.cookie-copy a,
.legal-copy a[data-cookie-settings] {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.cookie-actions button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--cookie-border);
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.cookie-actions button:hover {
  background: #e7e3d6;
}

.cookie-notice :focus-visible,
.cookie-settings :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.cookie-settings {
  width: min(520px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: clamp(16px, 4vw, 28px);
  overflow: auto;
}

.cookie-settings::backdrop {
  background: #15170e85;
}

.cookie-options {
  margin-block: 16px;
}

.cookie-options label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  border-top: 1px solid #b6b6a7;
  padding-block: 8px;
}

.cookie-options small {
  display: block;
  font-size: .82rem;
}

.cookie-options input {
  width: 20px;
  height: 20px;
  flex: none;
  accent-color: #36544b;
}

.cookie-inventory {
  width: 100%;
  border-collapse: collapse;
  overflow-wrap: anywhere;
  text-align: start;
}

.cookie-inventory :is(th, td) {
  padding: .55rem .4rem;
  border-bottom: 1px solid #7776;
  text-align: start;
  vertical-align: top;
}

@media (max-width: 600px) {
  .cookie-notice .cookie-actions {
    width: 100%;
  }

  .cookie-notice .cookie-actions button {
    flex: 1 1 auto;
  }
}
