/* Cookie Consent Banner Styles */

.cookie-consent-overlay {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
}

.cookie-consent-overlay.is-visible {
  display: block;
}

.cookie-consent-banner {
  background: #fff;
  border-top: 2px solid var(--color-yellow, #f9c846);
  padding: 1.5rem 2rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-consent-banner__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.cookie-consent-banner__title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin: 0;
}

.cookie-consent-banner__description {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
  max-width: 800px;
}

.cookie-consent-banner__description a {
  color: var(--color-blue, #0066cc);
  text-decoration: underline;
}

.cookie-consent-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-consent-btn {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.cookie-consent-btn--accept {
  background: var(--color-yellow, #f9c846);
  color: #111;
}

.cookie-consent-btn--accept:hover {
  background: #e5b63e;
}

.cookie-consent-btn--reject {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.cookie-consent-btn--reject:hover {
  background: #e8e8e8;
}

.cookie-consent-btn--preferences {
  background: transparent;
  color: #555;
  text-decoration: underline;
  padding: 0.6rem 0.5rem;
}

.cookie-consent-btn--preferences:hover {
  color: #111;
}

/* Preferences Panel */
.cookie-consent-preferences {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.cookie-consent-preferences.is-visible {
  display: block;
}

.cookie-consent-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.cookie-consent-category:last-child {
  border-bottom: none;
}

.cookie-consent-category__info {
  flex: 1;
  margin-right: 1rem;
}

.cookie-consent-category__name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.25rem;
}

.cookie-consent-category__desc {
  font-size: 13px;
  color: #777;
  line-height: 1.4;
}

/* Toggle Switch */
.cookie-consent-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.cookie-consent-toggle__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: 0.3s;
}

.cookie-consent-toggle__slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.cookie-consent-toggle input:checked + .cookie-consent-toggle__slider {
  background-color: var(--color-yellow, #f9c846);
}

.cookie-consent-toggle input:checked + .cookie-consent-toggle__slider::before {
  transform: translateX(20px);
}

.cookie-consent-toggle input:disabled + .cookie-consent-toggle__slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-consent-preferences__save {
  margin-top: 1rem;
  text-align: right;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .cookie-consent-banner {
    padding: 1rem;
  }

  .cookie-consent-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-btn {
    text-align: center;
  }
}
