/* =========================
   Cookies Page (Apple-clean)
   ========================= */

/* Panel spacing */
.cookies-panel {
  padding: 30px;
}

/* Toggle rows */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 16px;
  margin-top: 12px;

  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.toggle-row strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
  margin-bottom: 4px;
}

.toggle-row p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.68);
}

/* Always-on badge */
.toggle-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  padding: 6px 10px;
  border-radius: 999px;

  color: rgba(15, 23, 42, 0.62);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.10);
  white-space: nowrap;
}

/* Switch */
.switch {
  position: relative;
  width: 46px;
  height: 28px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;

  background: rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  transition: background 160ms ease;
}

.slider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;

  width: 22px;
  height: 22px;
  transform: translateY(-50%);

  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.12);

  transition: transform 160ms ease;
}

.switch input:checked + .slider {
  background: rgba(15, 23, 42, 0.85);
}

.switch input:checked + .slider::before {
  transform: translate(18px, -50%);
}

/* Save button */
.cookies-save {
  margin-top: 18px;
  width: 100%;
  border-radius: 999px;
  padding: 12px 14px;

  font-size: 14px;
  font-weight: 700;
  color: #ffffff;

  background: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.9);
  cursor: pointer;

  transition: transform 0.06s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cookies-save:hover {
  background: #111c33;
  box-shadow: 0 12px 22px rgba(2, 6, 23, 0.14);
  transform: translateY(-1px);
}

.cookies-save:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Toast */
.cookies-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 140%);
  opacity: 0;
  pointer-events: none;

  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.35;

  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.12);

  transition: transform 280ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 180ms ease;
}

.cookies-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* Mobile */
@media (max-width: 560px) {
  .cookies-panel {
    padding: 22px;
  }

  .toggle-row {
    flex-direction: column;
    align-items: stretch;
  }

  .switch,
  .toggle-badge {
    align-self: flex-end;
  }
}
