﻿.cookie-consent-shell {
  position: fixed;
  inset: auto 20px 20px 20px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-consent-panel,
.cookie-consent-modal {
  pointer-events: auto;
  background: #111827;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.cookie-consent-panel {
  width: min(960px, 100%);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.cookie-consent-title {
  margin: 0 0 6px;
  font: 800 18px/1.2 var(--hand, "Plus Jakarta Sans", sans-serif);
}

.cookie-consent-text {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.55;
}

.cookie-consent-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-consent-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 10px 14px;
  font: 700 13px/1 var(--font, Inter, sans-serif);
  cursor: pointer;
  color: #fff;
  background: transparent;
}

.cookie-consent-button.primary {
  border-color: #ff5a36;
  background: #ff5a36;
}

.cookie-consent-button.secondary {
  background: rgba(255, 255, 255, 0.08);
}

.cookie-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.58);
  display: grid;
  place-items: center;
  padding: 20px;
}

.cookie-consent-modal {
  width: min(640px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border-radius: 8px;
  padding: 22px;
}

.cookie-consent-modal h2 {
  margin: 0 0 8px;
  font: 800 24px/1.2 var(--hand, "Plus Jakarta Sans", sans-serif);
}

.cookie-consent-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-consent-category h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.cookie-consent-category p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}

.cookie-switch {
  position: relative;
  width: 48px;
  height: 28px;
}

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

.cookie-switch span {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #475569;
  border-radius: 999px;
  transition: 0.2s;
}

.cookie-switch span::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.cookie-switch input:checked + span {
  background: #ff5a36;
}

.cookie-switch input:checked + span::before {
  transform: translateX(20px);
}

.cookie-switch input:disabled + span {
  cursor: not-allowed;
  background: #64748b;
}

.cookie-settings-button {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9998;
  border: 1px solid #d7dee8;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  padding: 9px 12px;
  font: 700 12px/1 var(--font, Inter, sans-serif);
  cursor: pointer;
}

@media (max-width: 760px) {
  .cookie-consent-shell {
    inset: auto 12px 12px 12px;
  }

  .cookie-consent-panel {
    grid-template-columns: 1fr;
  }

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent-button {
    flex: 1 1 auto;
  }
}
