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

.cookie-consent {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  color: #fff;
}

.cookie-consent__content {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(10, 10, 14, .96);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.cookie-consent__text {
  min-width: 0;
}

.cookie-consent__text strong,
.cookie-modal__head h2,
.cookie-option strong {
  font-family: "Oswald", sans-serif;
  letter-spacing: .04em;
}

.cookie-consent__text strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.cookie-consent__text p,
.cookie-option p {
  margin: 0;
  color: #c9c9d2;
  line-height: 1.55;
}

.cookie-consent__links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cookie-consent__links a {
  color: #ffc400;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.cookie-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

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

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

.cookie-btn--secondary {
  background: #ffc400;
  border-color: #ffc400;
  color: #090909;
}

.cookie-btn--ghost {
  background: transparent;
  color: #fff;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cookie-modal__panel {
  position: relative;
  width: min(100%, 620px);
  max-height: min(86vh, 760px);
  overflow-y: auto;
  padding: 24px;
  background: #111116;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .65);
}

.cookie-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.cookie-modal__head span {
  color: #ffc400;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cookie-modal__head h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 30px;
}

.cookie-modal__close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.cookie-option {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
}

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

.cookie-switch {
  position: relative;
  width: 50px;
  height: 28px;
  border-radius: 999px;
  background: #34343d;
  cursor: pointer;
  transition: background .2s ease;
}

.cookie-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}

.cookie-option input:checked + .cookie-switch {
  background: #e83a8e;
}

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

.cookie-option__required {
  color: #ffc400;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cookie-modal__actions {
  margin-top: 22px;
}

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

  .cookie-consent__content {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

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

  .cookie-btn {
    flex: 1 1 160px;
  }
}

@media (max-width: 520px) {
  .cookie-consent__actions,
  .cookie-modal__actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    flex: none;
  }

  .cookie-modal__panel {
    padding: 20px 16px;
  }

  .cookie-option {
    gap: 12px;
  }
}
