.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1E293B;
  color: #FFFFFF;
  padding: 24px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
}

.cookie-banner.show {
  display: block;
}

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

.cookie-banner-text {
  flex: 1;
  min-width: 300px;
}

.cookie-banner-text p {
  margin: 0 0 8px 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: #FCD34D;
  text-decoration: underline;
}

.cookie-banner-text a:hover {
  color: #F59E0B;
}

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

.cookie-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-btn-accept {
  background-color: #0D9488;
  color: #FFFFFF;
  border-color: #0D9488;
}

.cookie-btn-accept:hover {
  background-color: #0F766E;
  border-color: #0F766E;
}

.cookie-btn-reject {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #64748B;
}

.cookie-btn-reject:hover {
  background-color: #475569;
  border-color: #475569;
}

.cookie-btn-customize {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #64748B;
}

.cookie-btn-customize:hover {
  background-color: #475569;
  border-color: #475569;
}

.cookie-btn-secondary {
  background-color: transparent;
  color: #0D9488;
  border-color: #0D9488;
}

.cookie-btn-secondary:hover {
  background-color: #0D9488;
  color: #FFFFFF;
}

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
}

.cookie-modal-content {
  position: relative;
  background-color: #FFFFFF;
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-modal-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 16px;
}

.cookie-modal-content > p {
  color: #475569;
  margin-bottom: 24px;
  line-height: 1.6;
}

.cookie-preference-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #E2E8F0;
}

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

.cookie-pref-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cookie-pref-header strong {
  display: block;
  color: #1E293B;
  margin-bottom: 4px;
  font-size: 1rem;
}

.cookie-pref-header p {
  color: #64748B;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  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: #CBD5E1;
  border-radius: 24px;
  transition: background-color 0.3s;
}

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

.cookie-switch input:checked + .cookie-slider {
  background-color: #0D9488;
}

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

.cookie-switch input:disabled + .cookie-slider {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.cookie-modal-actions .cookie-btn {
  flex: 1;
  min-width: 140px;
  text-align: center;
}

@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .cookie-modal-content {
    padding: 24px;
  }

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

  .cookie-modal-actions .cookie-btn {
    width: 100%;
  }
}
