.cookie-consent-button {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 1200;
  border: 1px solid rgba(35, 15, 63, 0.15);
  background: rgba(255, 255, 255, 0.96);
  color: #230f3f;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: 600 0.92rem/1.1 "Inter", "Open Sans", sans-serif;
  box-shadow: 0 12px 28px rgba(35, 15, 63, 0.14);
}

.cookie-consent-button:hover,
.cookie-consent-button:focus-visible {
  transform: translateY(-1px);
}

.cookie-consent-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 32, 0.45);
  z-index: 1290;
}

.cookie-consent-banner,
.cookie-consent-modal {
  position: fixed;
  z-index: 1300;
  background: #fff;
  color: #230f3f;
  box-shadow: 0 24px 60px rgba(21, 12, 36, 0.22);
}

.cookie-consent-banner {
  right: 1rem;
  bottom: 1rem;
  width: min(460px, calc(100vw - 2rem));
  border-radius: 24px;
  padding: 1.25rem;
  border: 1px solid rgba(35, 15, 63, 0.1);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

@media (max-width: 480px) {
  .cookie-consent-banner {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100vw - 1.5rem);
    padding: 1rem;
    border-radius: 16px;
  }
}

.cookie-consent-modal {
  inset: auto 50% 50% auto;
  transform: translate(50%, 50%);
  width: min(560px, calc(100vw - 2rem));
  border-radius: 28px;
  padding: 1.5rem;
}

.cookie-consent-title {
  margin: 0 0 0.5rem;
  font: 700 1.1rem/1.2 "Inter", "Open Sans", sans-serif;
}

.cookie-consent-copy {
  margin: 0 0 1rem;
  font-size: 0.97rem;
  line-height: 1.55;
  color: rgba(35, 15, 63, 0.85);
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-consent-action,
.cookie-consent-save {
  border-radius: 999px;
  padding: 0.78rem 1.05rem;
  font: 700 0.95rem/1 "Inter", "Open Sans", sans-serif;
  cursor: pointer;
  border: 1px solid transparent;
}

.cookie-consent-action.primary,
.cookie-consent-save {
  background: #f9a620;
  color: #1b0632;
}

.cookie-consent-action.secondary {
  background: #fff;
  color: #230f3f;
  border-color: rgba(35, 15, 63, 0.18);
}

.cookie-consent-action.link {
  background: #f6f1fb;
  color: #230f3f;
}

.cookie-consent-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: rgba(35, 15, 63, 0.7);
  cursor: pointer;
}

.cookie-consent-options {
  display: grid;
  gap: 1rem;
  margin: 1.2rem 0 1.5rem;
}

.cookie-consent-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem;
  border-radius: 18px;
  background: #faf8fd;
  border: 1px solid rgba(35, 15, 63, 0.08);
}

.cookie-consent-option h3 {
  margin: 0 0 0.3rem;
  font: 700 1rem/1.2 "Inter", "Open Sans", sans-serif;
}

.cookie-consent-option p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: rgba(35, 15, 63, 0.8);
}

.cookie-consent-toggle {
  position: relative;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
}

.cookie-consent-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.cookie-consent-toggle span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(35, 15, 63, 0.2);
  transition: background 160ms ease;
}

.cookie-consent-toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease;
}

.cookie-consent-toggle input:checked + span {
  background: #1f9d68;
}

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

.cookie-consent-toggle input:disabled + span {
  background: #7a6a94;
}

.cookie-consent-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.cookie-consent-note {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(35, 15, 63, 0.72);
}

@media (max-width: 760px) {
  .cookie-consent-banner {
    left: 1rem;
    right: 1rem;
    width: auto;
  }

  .cookie-consent-modal {
    inset: auto 1rem 1rem 1rem;
    transform: none;
    width: auto;
    max-height: calc(100vh - 2rem);
    overflow: auto;
  }

  .cookie-consent-button {
    left: 1rem;
    right: 1rem;
    width: calc(100vw - 2rem);
  }
}

/* ========== Desktop Optimization (1920px+) ========== */
@media (min-width: 1920px) {
  .cookie-consent-banner {
    width: min(560px, calc(100vw - 3rem));
    border-radius: 28px;
    padding: 1.75rem;
    right: 1.5rem;
    bottom: 1.5rem;
  }

  .cookie-consent-modal {
    width: min(680px, calc(100vw - 3rem));
    border-radius: 32px;
    padding: 2rem;
  }

  .cookie-consent-banner h3,
  .cookie-consent-modal h2 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
  }

  .cookie-consent-banner p,
  .cookie-consent-modal p {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
  }

  .cookie-consent-actions {
    gap: 1rem;
  }

  .cookie-consent-action,
  .cookie-consent-save {
    padding: 0.95rem 1.35rem;
    font-size: 1rem;
  }

  .cookie-consent-options {
    gap: 1.25rem;
    margin: 1.5rem 0 1.75rem;
  }

  .cookie-consent-option {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .cookie-consent-option h3 {
    font-size: 1.1rem;
  }

  .cookie-consent-option p {
    font-size: 1rem;
  }

  .cookie-consent-button {
    padding: 0.85rem 1.3rem;
    font-size: 1rem;
  }

  .cookie-consent-footer {
    gap: 1rem;
  }

  .cookie-consent-note {
    font-size: 0.98rem;
  }
}

