.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 100001;
  padding: 16px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-inner {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #E4E4DF;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 24px 60px rgba(24, 21, 26, 0.14);
  pointer-events: auto;
}

.cookie-banner h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 10px;
  color: #18151A;
}

.cookie-banner p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #2F2C30;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-btn-primary {
  background: #18151A;
  color: #F4F4F0;
}

.cookie-btn-primary:hover {
  background: #2F2C30;
}

.cookie-btn-mint {
  background: #AFCFCF;
  color: #18151A;
}

.cookie-btn-mint:hover {
  background: #8FB6B6;
}

.cookie-btn-ghost {
  background: transparent;
  color: #18151A;
  border-color: #18151A;
}

.cookie-btn-ghost:hover {
  background: #18151A;
  color: #F4F4F0;
}

.cookie-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82rem;
  color: #8F9394;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.cookie-link:hover {
  color: #18151A;
}

.cookie-settings {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #E4E4DF;
}

.cookie-settings.is-open {
  display: block;
}

.cookie-settings-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-setting {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #E4E4DF;
}

.cookie-setting:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cookie-setting h3 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #18151A;
}

.cookie-setting p {
  margin: 0;
  font-size: 0.82rem;
  color: #8F9394;
  line-height: 1.45;
}

.cookie-setting-always {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8FB6B6;
  font-weight: 600;
  white-space: nowrap;
}

.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

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

.cookie-toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.cookie-toggle input:checked + span {
  background: #AFCFCF;
}

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

.cookie-toggle input:disabled + span {
  opacity: 0.55;
  cursor: not-allowed;
}

.cookie-footer-link {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8F9394;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
}

.cookie-footer-link:hover {
  color: #18151A;
}

.cookie-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 100000;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #E4E4DF;
  background: #ffffff;
  color: #18151A;
  box-shadow: 0 10px 28px rgba(24, 21, 26, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  pointer-events: none;
}

.cookie-fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-fab:hover {
  background: #AFCFCF;
  border-color: #8FB6B6;
}

.cookie-fab:focus-visible {
  outline: 2px solid #8FB6B6;
  outline-offset: 3px;
}

.cookie-fab svg {
  width: 22px;
  height: 22px;
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: none;
  }
}

@media (max-width: 560px) {
  .cookie-fab {
    left: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
  }

  .cookie-fab svg {
    width: 20px;
    height: 20px;
  }

  .cookie-banner-inner {
    padding: 18px 16px;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }
}
