.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  color: #e2e8f0;
  padding: 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.cookie-consent-banner.show {
  transform: translateY(0);
}

.cookie-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 260px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.cookie-consent-text a {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent-text a:hover {
  color: #93bbfc;
}

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

.cookie-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: #0d6efd;
  color: #fff;
}

.cookie-btn-accept:hover {
  background: #0b5ed7;
  transform: translateY(-1px);
}

.cookie-btn-reject {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #475569;
}

.cookie-btn-reject:hover {
  color: #e2e8f0;
  border-color: #64748b;
}

.cookie-btn-settings {
  background: transparent;
  color: #64748b;
  border: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 10px 16px;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: color 0.2s;
}

.cookie-btn-settings:hover {
  color: #94a3b8;
}

.cookie-btn-settings:hover {
  color: #e2e8f0;
}

/* Settings Modal */
.cookie-settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cookie-settings-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.cookie-settings-modal {
  background: #1e293b;
  border-radius: 12px;
  width: 90%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-settings-overlay.show .cookie-settings-modal {
  transform: scale(1) translateY(0);
}

.cookie-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cookie-settings-header h3 {
  color: #f1f5f9;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.cookie-settings-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.cookie-settings-close:hover {
  color: #e2e8f0;
}

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

.cookie-option:last-of-type {
  border-bottom: none;
}

.cookie-option-info {
  flex: 1;
  padding-right: 16px;
}

.cookie-option-name {
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.cookie-option-desc {
  color: #94a3b8;
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

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

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: #475569;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: #0d6efd;
}

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

.cookie-toggle.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-toggle.disabled .cookie-toggle-slider {
  cursor: not-allowed;
}

.cookie-settings-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .cookie-consent-inner {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

  .cookie-consent-actions {
    justify-content: center;
  }

  .cookie-settings-modal {
    padding: 20px;
  }
}
