.cookie-banner,
.cookie-dialog,
.cookie-error {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #c9b1f0;
  border-radius: 12px;
  box-shadow: 0 8px 40px #20103824;
}
.cookie-banner {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 100;
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 22px 26px;
  max-height: calc(100dvh - 40px);
  overflow: auto;
}
.cookie-banner-copy {
  flex: 1;
}
.cookie-banner h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
  margin-bottom: 7px;
}
.cookie-banner p,
.cookie-dialog p,
.cookie-option {
  font-size: 14px;
  line-height: 1.55;
}
.cookie-banner a,
.cookie-dialog a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-button {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--purple);
  border-radius: 7px;
  background: var(--paper);
  color: var(--purple);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.cookie-button:hover,
.cookie-close:hover {
  background: var(--lavender);
}
.cookie-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 28px;
}
.cookie-dialog::backdrop {
  background: #20103885;
}
.cookie-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.cookie-dialog h2 {
  font-size: 27px;
  letter-spacing: -1px;
}
.cookie-close {
  background: var(--wash);
  border-radius: 6px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
}
.cookie-essential {
  padding: 18px 0;
  margin-top: 8px;
  border-bottom: 1px solid var(--line);
}
.cookie-essential h3 {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0;
  margin-bottom: 6px;
}
.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.cookie-option input {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--purple);
}
.cookie-option input:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}
.cookie-option strong,
.cookie-option span span {
  display: block;
}
.cookie-option strong {
  font-size: 16px;
  margin-bottom: 5px;
}
.cookie-policy-link {
  margin: 18px 0;
}
.cookie-error {
  position: fixed;
  inset: 20px 20px auto;
  z-index: 110;
  padding: 16px 20px;
  font-size: 14px;
}
[data-cookie-settings] {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 1000px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
}
@media (max-width: 480px) {
  .cookie-banner {
    inset: auto 12px 12px;
    padding: 18px;
  }
  .cookie-banner .cookie-actions,
  .cookie-dialog .cookie-actions {
    flex-direction: column;
  }
  .cookie-dialog {
    padding: 22px;
  }
}
/*
  Phones: the banner stays a single short block so the page's main button is
  still visible above it. The title stays available to screen readers as the
  banner's name, and all three choices keep full-size, equal buttons in one row.
*/
@media (max-width: 600px) {
  .cookie-banner {
    inset: auto 10px 10px;
    gap: 10px;
    padding: 12px 14px;
  }
  .cookie-banner h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .cookie-banner p {
    font-size: 13px;
    line-height: 1.45;
  }
  .cookie-banner .cookie-actions {
    flex-direction: row;
    gap: 6px;
  }
  .cookie-banner .cookie-button {
    padding-inline: 10px;
    font-size: 13px;
  }
}
