/* ─── Banner ─────────────────────────────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: var(--Obsidian);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  color: var(--White);
  font-family: var(--font-family-base);
  font-size: 14px;
  line-height: 22px;
  z-index: 999999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  animation: cookie-slide-in 0.22s ease;
}

@keyframes cookie-slide-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}

.cookie-banner__body {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.65);
}

.cookie-banner__link {
  font-size: 13px;
  color: #3cb4cc;
  cursor: pointer;
}

.cookie-banner__link:hover {
  color: #36a2b7;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}


/* ─── Shared button styles ──────────────────────────────────────────────── */

.cookie-btn {
  flex: 1;
  height: 34px;
  border-radius: 4px;
  font-family: var(--font-family-base);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background 0.2s;
}

.cookie-btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--White);
  transition: background 0.25s ease;
}

.cookie-btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.095);
}


.cookie-btn--primary {
  background: #3cb4cc;
  color: var(--White);
  transition: background 0.25s ease;
}

.cookie-btn--primary:hover {
  background: #36a2b7;
}


/* ─── Settings modal ────────────────────────────────────────────────────── */

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.cookie-modal__panel {
  position: relative;
  z-index: 1;
  background: var(--Obsidian);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  padding: 26px;
  color: var(--White);
  font-family: var(--font-family-base);
}

.cookie-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  cursor: pointer;
  color: var(--White);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cookie-modal__close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.cookie-modal__title {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 4px;
}

.cookie-modal__body {
  font-size: 14px;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin: 12px 12px;
}

.cookie-modal__link {
  color: #3cb4cc;
  cursor: pointer;
}

.cookie-modal__link:hover {
  color: #43c5d7;
}

.cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-modal__actions .cookie-btn {
  flex: none;
  padding: 0 20px;
}


/* ─── Toggle rows ───────────────────────────────────────────────────────── */

.cookie-toggles {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
}

.cookie-toggle-row {
  padding: 16px 20px;
}

.cookie-toggle-row+.cookie-toggle-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-toggle-row__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

.cookie-toggle-row__label {
  font-size: 16px;
  font-weight: 600;
}

.cookie-toggle-row__desc {
  font-size: 13px;
  line-height: 20px;
  color: #CACED7;
  margin: 0;
  margin-top: 6px;
}


/* ─── Toggle switch ─────────────────────────────────────────────────────── */

.cookie-toggle {
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.25s;
  padding: 0;
}

.cookie-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.25s;
}

.cookie-toggle.is-on {
  background: #3cb4cc;
}

.cookie-toggle.is-on::after {
  left: 21px;
}

.cookie-toggle[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
}


/* ─── Utility ───────────────────────────────────────────────────────────── */

.no-scroll {
  overflow: hidden;
}


@media (max-width: 420px) {
  .cookie-modal__panel {
    padding: 46px 26px 26px 26px;
  }

}