:root {
  --cookie-shell: rgba(255, 255, 255, 0.98);
  --cookie-shell-strong: rgba(255, 255, 255, 1);
  --cookie-line: rgba(17, 17, 17, 0.08);
  --cookie-line-strong: rgba(17, 17, 17, 0.12);
  --cookie-text: #181818;
  --cookie-muted: rgba(24, 24, 24, 0.66);
  --cookie-accent: #5a3797;
  --cookie-accent-strong: #7148ba;
  --cookie-accent-soft: #f2ebff;
  --cookie-accent-soft-strong: #e4d8ff;
  --cookie-radius: 20px;
  --cookie-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
}

.cookie-consent,
.cookie-consent-modal {
  font-family: 'Manrope', sans-serif;
}

.cookie-consent[hidden],
.cookie-consent__backdrop[hidden],
.cookie-consent-modal[hidden] {
  display: none !important;
}

.cookie-consent {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 80;
  width: min(calc(100% - 32px), 460px);
}

.cookie-consent__card {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 28px 30px;
  border: 1px solid var(--cookie-line);
  border-radius: var(--cookie-radius);
  color: var(--cookie-text);
  background: linear-gradient(180deg, var(--cookie-shell-strong), var(--cookie-shell));
  box-shadow: var(--cookie-shadow);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.cookie-consent__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.cookie-consent__content {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-consent__text,
.cookie-consent-option__copy {
  min-width: 0;
}

.cookie-consent__text p,
.cookie-consent-modal p,
.cookie-consent-option h3,
.cookie-consent-modal h2 {
  margin: 0;
}

.cookie-consent__eyebrow,
.cookie-consent-modal__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--cookie-text);
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 800;
}

.cookie-consent__eyebrow::before,
.cookie-consent-modal__eyebrow::before {
  display: none;
}

.cookie-consent__description {
  color: var(--cookie-muted);
  font-size: 15px;
  line-height: 1.5;
}

.cookie-consent__description a {
  color: #1b1b1b;
  text-decoration: underline;
  text-decoration-color: rgba(27, 27, 27, 0.28);
  text-underline-offset: 0.2em;
  font-weight: 700;
}

.cookie-consent__inline-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1b1b1b;
  text-decoration: underline;
  text-decoration-color: rgba(27, 27, 27, 0.28);
  text-underline-offset: 0.2em;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cookie-consent__description a:hover {
  color: #000;
}

.cookie-consent__inline-link:hover {
  color: #000;
}

.cookie-consent__actions,
.cookie-consent-modal__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.cookie-consent__button,
.cookie-consent-switch,
.cookie-consent-modal__close {
  appearance: none;
  border: 0;
  font: inherit;
}

.cookie-consent__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cookie-consent__button:hover {
  transform: translateY(-1px);
}

.cookie-consent__button--primary {
  color: #fff;
  background: linear-gradient(135deg, #5a3797 0%, #7b55c0 100%);
  box-shadow: none;
}

.cookie-consent__button--secondary {
  justify-content: flex-start;
  padding: 0;
  color: #181818;
  background: transparent;
  border-color: transparent;
}

.cookie-consent__button--ghost {
  color: #181818;
  background: transparent;
  border-color: transparent;
}

.cookie-consent__button:focus-visible,
.cookie-consent-switch:focus-visible,
.cookie-consent-modal__close:focus-visible {
  outline: 2px solid rgba(90, 55, 151, 0.88);
  outline-offset: 2px;
}

.cookie-consent__backdrop {
  position: fixed;
  inset: 0;
  z-index: 84;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
}

.cookie-consent-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 85;
  width: min(calc(100% - 32px), 640px);
  padding: 32px;
  border: 1px solid var(--cookie-line-strong);
  border-radius: 20px;
  color: var(--cookie-text);
  background: linear-gradient(180deg, var(--cookie-shell-strong), var(--cookie-shell));
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
  transform: translate(-50%, -50%);
}

.cookie-consent-modal__head {
  padding-right: 44px;
}

.cookie-consent-modal__head h2 {
  margin-bottom: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.08;
  font-weight: 800;
  color: #181818;
  width: 100%;
  max-width: none;
  overflow-wrap: normal;
  word-break: normal;
}

.cookie-consent-modal__head p:last-child {
  color: var(--cookie-muted);
  line-height: 1.65;
}

.cookie-consent-modal__body {
  display: grid;
  gap: 0;
  margin: 20px 0 26px;
}

.cookie-consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 0;
  background: transparent;
}

.cookie-consent-option--locked {
  border-top-color: rgba(17, 17, 17, 0.1);
}

.cookie-consent-option__copy h3 {
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 700;
  color: #181818;
}

.cookie-consent-option__copy p {
  color: var(--cookie-muted);
  font-size: 14px;
  line-height: 1.6;
}

.cookie-consent-switch {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 31px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(90, 55, 151, 0.18);
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.cookie-consent-switch[disabled] {
  cursor: default;
  opacity: 0.92;
}

.cookie-consent-switch.is-on,
.cookie-consent-switch[aria-checked="true"] {
  background: linear-gradient(135deg, #5a3797 0%, #7b55c0 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.cookie-consent-switch__thumb {
  display: block;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(46, 29, 84, 0.18);
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.cookie-consent-switch[aria-checked="true"] .cookie-consent-switch__thumb,
.cookie-consent-switch.is-on .cookie-consent-switch__thumb {
  transform: translateX(23px);
}

.cookie-consent-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #666;
  background: rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

.cookie-consent-modal__close svg {
  width: 18px;
  height: 18px;
}

body.cookie-modal-open {
  overflow: hidden;
}

@media (max-width: 1120px) {
  .cookie-consent__card {
    gap: 16px;
  }

  .cookie-consent__actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
}

@media (max-width: 760px) {
  .cookie-consent {
    left: 8px;
    right: auto;
    bottom: max(112px, calc(96px + env(safe-area-inset-bottom)));
    width: calc(100% - 16px);
  }

  .cookie-consent__card,
  .cookie-consent-modal {
    border-radius: 22px;
  }

  .cookie-consent__content {
    display: block;
  }

  .cookie-consent__card {
    gap: 14px;
    padding: 12px;
  }

  .cookie-consent__eyebrow {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
  }

  .cookie-consent__description {
    font-size: 11.5px;
    line-height: 1.4;
  }

  .cookie-consent__description a,
  .cookie-consent__inline-link {
    font-size: inherit;
    line-height: inherit;
    text-underline-offset: 0.15em;
    font-weight: 600;
  }

  .cookie-consent__actions,
  .cookie-consent-modal__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }

  .cookie-consent__button {
    min-height: 42px;
    padding: 0 10px;
    font-size: 12px;
  }

  .cookie-consent-option {
    align-items: flex-start;
  }

  .cookie-consent-modal {
    width: min(calc(100% - 20px), 420px);
    max-height: min(78vh, 680px);
    padding: 18px;
  }

  .cookie-consent-modal__head {
    padding-right: 34px;
  }

  .cookie-consent-modal__head h2 {
    margin-bottom: 8px;
    font-size: clamp(28px, 9vw, 36px);
  }

  .cookie-consent-modal__body {
    gap: 10px;
    margin: 18px 0;
  }

  .cookie-consent-option {
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
  }

  .cookie-consent-option__copy h3 {
    font-size: 16px;
  }

  .cookie-consent-option__copy p {
    font-size: 13px;
  }

}
