:root {
  --cookie-surface: rgba(255, 255, 255, 0.98);
  --cookie-surface-soft: #f6f6f6;
  --cookie-ink: #101010;
  --cookie-muted: rgba(16, 16, 16, 0.68);
  --cookie-line: rgba(16, 16, 16, 0.12);
  --cookie-line-strong: rgba(16, 16, 16, 0.08);
  --cookie-shadow: 0 22px 54px rgba(16, 16, 16, 0.14);
}

body.is-cookie-dialog-open {
  overflow: hidden;
}

.cookie-consent {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 220;
  display: block;
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__surface {
  position: relative;
  display: grid;
  gap: 14px;
  max-width: min(720px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 22px 24px 18px;
  border: 1px solid var(--cookie-line);
  border-radius: 26px;
  background: var(--cookie-surface);
  color: var(--cookie-ink);
  box-shadow: var(--cookie-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cookie-consent__copy {
  max-width: none;
}

.cookie-consent__eyebrow,
.cookie-dialog__eyebrow,
.cookie-embed-placeholder__eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: rgba(16, 16, 16, 0.54);
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cookie-consent__title,
.cookie-dialog__title,
.cookie-embed-placeholder__title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-transform: none;
}

.cookie-consent__title {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

.cookie-consent__text,
.cookie-embed-placeholder__address,
.cookie-dialog__intro,
.cookie-dialog__item p,
.cookie-dialog__note,
.cookie-embed-placeholder__text {
  margin-top: 10px;
  color: var(--cookie-muted);
  font-size: 1rem;
  line-height: 1.62;
}

.cookie-consent__text {
  max-width: 58ch;
  text-wrap: pretty;
}

.cookie-embed-placeholder__address {
  color: var(--cookie-ink);
  font-weight: 500;
}

.cookie-consent__actions,
.cookie-dialog__actions,
.cookie-embed-placeholder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-consent__actions {
  justify-content: flex-start;
  align-self: stretch;
}

.cookie-consent__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--cookie-line);
  border-radius: 999px;
  background: #ffffff;
  color: #101010;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: none;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(16, 16, 16, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.cookie-consent__actions .cookie-consent__button {
  width: auto;
  flex: 0 0 auto;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(16, 16, 16, 0.08);
}

.cookie-consent__button--accept {
  background: #101010;
  color: #ffffff;
  border-color: #101010;
  box-shadow: 0 12px 22px rgba(16, 16, 16, 0.18);
}

.cookie-consent__button--link {
  white-space: nowrap;
}

.cookie-consent__meta {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--cookie-line-strong);
  color: var(--cookie-muted);
  font-size: 0.92rem;
}

.cookie-consent__meta a {
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

.cookie-dialog[hidden] {
  display: none;
}

.cookie-dialog {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 24px;
}

.cookie-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 16, 0.36);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cookie-dialog__panel {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 30px 28px 24px;
  border: 1px solid var(--cookie-line);
  border-radius: 28px;
  background: #ffffff;
  color: var(--cookie-ink);
  box-shadow: 0 28px 70px rgba(16, 16, 16, 0.18);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.cookie-dialog.is-open .cookie-dialog__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cookie-dialog__close {
  position: absolute;
  top: 10px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--cookie-line);
  border-radius: 999px;
  background: #ffffff;
  color: #101010;
  font-size: 24px;
  line-height: 1;
}

.cookie-dialog__list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.cookie-dialog__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px;
  border: 1px solid var(--cookie-line);
  border-radius: 24px;
  background: var(--cookie-surface-soft);
}

.cookie-dialog__item h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cookie-dialog__item p {
  margin-top: 8px;
}

.cookie-dialog__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #101010;
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cookie-dialog__note {
  margin-bottom: 0;
}

.cookie-dialog__actions {
  margin-top: 24px;
  justify-content: flex-start;
}

.cookie-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.cookie-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-toggle__track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 62px;
  height: 36px;
  padding: 4px;
  border-radius: 999px;
  background: #dfdfdf;
  transition: background-color 0.2s ease;
}

.cookie-toggle__thumb {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(16, 16, 16, 0.18);
  transition: transform 0.2s ease;
}

.cookie-toggle input:checked + .cookie-toggle__track {
  background: #101010;
}

.cookie-toggle input:checked + .cookie-toggle__track .cookie-toggle__thumb {
  transform: translateX(26px);
}

[data-consent-embed] {
  position: relative;
}

[data-consent-embed].is-loaded iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.legal-termly[data-consent-embed] {
  min-height: 520px;
}

.cookie-embed-placeholder {
  display: grid;
  align-content: end;
  min-height: 100%;
  height: 100%;
  padding: 28px;
  border: 1px solid var(--cookie-line);
  border-radius: 28px;
  background: var(--cookie-surface);
  color: var(--cookie-ink);
  box-shadow: var(--cookie-shadow);
}

.cookie-embed-placeholder__copy {
  max-width: 720px;
}

.cookie-embed-placeholder__actions {
  justify-content: flex-start;
  margin-top: 22px;
}

@media (max-width: 760px) {
  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-consent__surface,
  .cookie-dialog__panel,
  .cookie-embed-placeholder {
    padding: 18px 16px 14px;
    border-radius: 20px;
  }

  .cookie-consent__title,
  .cookie-dialog__title,
  .cookie-embed-placeholder__title {
    font-size: 1.3rem;
    letter-spacing: -0.03em;
  }

  .cookie-consent__actions,
  .cookie-dialog__actions,
  .cookie-embed-placeholder__actions {
    gap: 8px;
  }

  .cookie-consent__actions {
    display: flex;
    align-items: center;
    margin-top: 2px;
  }

  .cookie-consent__actions .cookie-consent__button {
    min-height: 42px;
    padding: 0 14px;
  }

  .cookie-dialog__actions,
  .cookie-embed-placeholder__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-dialog__actions .cookie-consent__button,
  .cookie-embed-placeholder__actions .cookie-consent__button,
  .cookie-embed-placeholder__actions .cookie-consent__button--link {
    width: auto;
    min-height: 42px;
  }

  .cookie-consent__eyebrow,
  .cookie-dialog__eyebrow,
  .cookie-embed-placeholder__eyebrow {
    margin-bottom: 7px;
    font-size: 0.78rem;
  }

  .cookie-consent__text,
  .cookie-embed-placeholder__address,
  .cookie-dialog__intro,
  .cookie-dialog__item p,
  .cookie-dialog__note,
  .cookie-embed-placeholder__text {
    margin-top: 8px;
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .cookie-consent__text {
    max-width: none;
  }

  .cookie-consent__meta {
    margin-top: 0;
    padding-top: 8px;
    font-size: 0.9rem;
  }

  .cookie-dialog__item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-dialog__badge,
  .cookie-toggle {
    margin-top: 8px;
  }

  .legal-termly[data-consent-embed] {
    min-height: 420px;
  }
}
