/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
  border-top: 4px solid var(--pink);
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cookie-banner-title {
  font-family: 'Bebas Neue', 'Heebo', sans-serif;
  font-size: 24px;
  margin-bottom: 8px;
}

.cookie-banner-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
}

.cookie-link {
  color: var(--pink);
  text-decoration: underline;
  cursor: pointer;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cookie-btn-primary {
  background: var(--pink);
  color: white;
}

.cookie-btn-primary:hover {
  background: var(--black);
}

.cookie-btn-secondary {
  background: white;
  border: 2px solid var(--black);
  color: var(--black);
}

.cookie-btn-secondary:hover {
  background: var(--black);
  color: white;
}

.cookie-btn-tertiary {
  background: transparent;
  color: var(--gray);
  text-decoration: underline;
  padding: 12px 0;
}

.cookie-btn-tertiary:hover {
  color: var(--black);
}

/* Cookie Settings Modal */
.cookie-settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.cookie-settings-overlay.show {
  display: flex;
}

.cookie-settings-modal {
  background: white;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: slideUp 0.3s ease;
}

.cookie-settings-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--light-gray);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-settings-header {
  padding: 24px 32px 16px;
  border-bottom: 1px solid var(--light-gray);
}

.cookie-settings-header h2 {
  font-family: 'Bebas Neue', 'Heebo', sans-serif;
  font-size: 28px;
  margin-bottom: 8px;
}

.cookie-settings-header p {
  font-size: 13px;
  color: var(--gray);
}

.cookie-settings-body {
  padding: 0 32px;
  overflow-y: auto;
  flex: 1;
}

.cookie-category {
  border-bottom: 1px solid var(--light-gray);
  padding: 20px 0;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.cookie-category-header h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.cookie-category-header p {
  font-size: 12px;
  color: var(--gray);
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-toggle-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.cookie-switch input:checked+.cookie-slider {
  background-color: var(--pink);
}

.cookie-switch input:focus+.cookie-slider {
  box-shadow: 0 0 1px var(--pink);
}

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

.cookie-details {
  margin-top: 12px;
  font-size: 12px;
  color: var(--gray);
}

.cookie-details summary {
  cursor: pointer;
  color: var(--purple);
  font-weight: 700;
  outline: none;
  margin-bottom: 8px;
}

.cookie-details ul {
  margin-top: 8px;
  padding-right: 20px;
}

.cookie-details li {
  margin-bottom: 4px;
}

.cookie-settings-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--light-gray);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  background: var(--cream);
  border-radius: 0 0 12px 12px;
}

@media (max-width: 768px) {

  /* .cookie-banner { bottom: 80px; } Above bottom nav */
  .cookie-banner.show {
    bottom: 60px;
  }

  .cookie-banner-content {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .cookie-banner-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }

  .cookie-btn-tertiary {
    flex-basis: 100%;
  }

  .cookie-settings-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .cookie-settings-modal {
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
  }

  .cookie-settings-header,
  .cookie-settings-body,
  .cookie-settings-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cookie-settings-footer {
    flex-direction: column;
  }
}