.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 2100;
  display: none;
  padding: 0 24px;
}

.cookie-consent.is-visible {
  display: block;
}

.cookie-consent__inner {
  max-width: 1290px;
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 44px rgba(16, 16, 16, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cookie-consent__content {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}

.cookie-consent__copy {
  max-width: 780px;
}

.cookie-consent__title {
  margin: 0 0 6px;
  font-family: 'Lilita One', cursive;
  font-size: 18px;
  line-height: 1;
  color: #101010;
}

.cookie-consent__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(16, 16, 16, 0.8);
}

.cookie-consent__text a,
.cookie-modal__note a {
  color: #EF3179;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-consent__actions,
.cookie-modal__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-consent__actions {
  justify-content: flex-end;
  flex-shrink: 0;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(16, 16, 16, 0.12);
  background: #fff;
  color: #101010;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.cookie-btn:hover,
.cookie-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(16, 16, 16, 0.1);
}

.cookie-btn--primary {
  background: #EF3179;
  border-color: #EF3179;
  color: #fff;
}

.cookie-btn--secondary {
  background: #fff5f9;
  border-color: rgba(239, 49, 121, 0.22);
  color: #101010;
}

.cookie-btn--ghost {
  background: transparent;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
}

.cookie-modal.is-visible {
  display: block;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 16, 0.46);
}

.cookie-modal__dialog {
  position: relative;
  width: min(100%, 620px);
  margin: min(8vh, 72px) auto 0;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(16, 16, 16, 0.22);
}

.cookie-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-modal__title {
  margin: 0 0 10px;
  font-family: 'Lilita One', cursive;
  font-size: 28px;
  line-height: 1;
  color: #101010;
}

.cookie-modal__intro,
.cookie-modal__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(16, 16, 16, 0.82);
}

.cookie-modal__close {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: #fff;
  color: #101010;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

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

.cookie-modal__body {
  margin-top: 24px;
}

.cookie-preferences {
  display: grid;
  gap: 12px;
}

.cookie-pref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 18px;
  background: #fffafc;
}

.cookie-pref__copy {
  flex: 1;
}

.cookie-pref__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #101010;
}

.cookie-pref__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(16, 16, 16, 0.75);
}

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

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

.cookie-toggle__track {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.14);
  position: relative;
  transition: background 0.2s ease;
}

.cookie-toggle__track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 16, 16, 0.16);
  transition: transform 0.2s ease;
}

.cookie-toggle input:checked + .cookie-toggle__track {
  background: linear-gradient(135deg, #6228D7 0%, #EE2A7B 50%, #F97316 100%);
}

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

.cookie-toggle input:disabled + .cookie-toggle__track {
  background: rgba(16, 16, 16, 0.42);
}

.cookie-modal__note {
  margin-top: 18px;
}

.cookie-modal__actions {
  margin-top: 24px;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .cookie-consent__content {
    flex-direction: column;
    align-items: stretch;
  }

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

  .cookie-consent__actions {
    justify-content: stretch;
  }
}

@media (max-width: 720px) {
  .cookie-consent {
    bottom: 14px;
    padding: 0 14px;
  }

  .cookie-consent__inner,
  .cookie-modal__dialog {
    border-radius: 18px;
  }

  .cookie-consent__inner {
    padding: 14px;
  }

  .cookie-consent__title {
    font-size: 17px;
  }

  .cookie-consent__actions,
  .cookie-modal__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-btn {
    width: 100%;
    justify-content: center;
  }

  .cookie-modal__dialog {
    width: calc(100% - 24px);
    margin-top: 20px;
    padding: 22px 18px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }

  .cookie-pref {
    align-items: flex-start;
  }
}

@media (min-width: 721px) {
  .cookie-consent__actions .cookie-btn {
    min-width: 160px;
  }

  .cookie-consent__actions .cookie-btn--ghost {
    min-width: 136px;
  }
}
