/* Cookie consent widget */
.cc-card {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 380px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 20px;
  z-index: 9999;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
  pointer-events: none;
}

.cc-card.cc-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cc-card[hidden] {
  display: none;
}

.cc-icon {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 10px;
}

.cc-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #1a202c;
  margin: 0 0 8px 0;
}

.cc-text {
  font-size: 13px;
  line-height: 1.5;
  color: #4a5568;
  margin: 0 0 16px 0;
}

.cc-text a {
  color: #F4A435;
  text-decoration: none;
}

.cc-text a:hover {
  text-decoration: underline;
}

.cc-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.cc-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 150ms ease, border-color 150ms ease;
}

.cc-btn-primary {
  background: #F4A435;
  color: #ffffff;
}

.cc-btn-primary:hover {
  background: #E08A1E;
}

.cc-btn-secondary {
  background: #ffffff;
  color: #1a202c;
  border-color: #e2e8f0;
}

.cc-btn-secondary:hover {
  border-color: #cbd5e0;
}

.cc-link {
  background: none;
  border: none;
  padding: 0;
  margin-left: auto;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #4a5568;
  text-decoration: underline;
  cursor: pointer;
}

.cc-link:hover {
  color: #1a202c;
}

.cc-prefs {
  border-top: 1px solid #e2e8f0;
  margin-top: 16px;
  padding-top: 16px;
}

.cc-prefs[hidden] {
  display: none;
}

.cc-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.cc-pref-label {
  font-size: 13px;
  font-weight: 600;
  color: #1a202c;
}

.cc-pref-always {
  font-size: 12px;
  color: #4a5568;
}

/* Toggle switch */
.cc-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

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

.cc-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #cbd5e0;
  border-radius: 20px;
  transition: background 150ms ease;
}

.cc-toggle-slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 150ms ease;
}

.cc-toggle input:checked + .cc-toggle-slider {
  background: #F4A435;
}

.cc-toggle input:checked + .cc-toggle-slider::before {
  transform: translateX(16px);
}

.cc-toggle input:disabled + .cc-toggle-slider {
  background: #cbd5e0;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Footer Cookie settings button */
.footer-cookie-settings {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.8;
}

.footer-cookie-settings:hover {
  opacity: 1;
}

/* Mobile */
@media (max-width: 480px) {
  .cc-card {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  .cc-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cc-btn {
    width: 100%;
  }

  .cc-link {
    margin: 8px 0 0 0;
    text-align: center;
  }
}
