/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: calc(100% - 40px);
  max-width: 600px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 24px;
  z-index: 9999;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', sans-serif;
  opacity: 0;
  pointer-events: none;
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.cookie-banner__text {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 16px;
}

.cookie-banner__text a {
  color: var(--purple-500, #a855f7);
  text-decoration: underline;
}

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

.cookie-btn {
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.cookie-btn--accept {
  background: var(--purple-500, #a855f7);
  color: white;
  flex: 1;
}

.cookie-btn--accept:hover {
  background: var(--purple-600, #9333ea);
}

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

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

.cookie-btn--config {
  background: transparent;
  color: #64748b;
  text-decoration: underline;
  padding: 10px 8px;
}

.cookie-btn--config:hover {
  color: #334155;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cookie-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal {
  background: white;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform 0.3s;
  max-height: 90vh;
  overflow-y: auto;
}

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

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

.cookie-modal__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}

.cookie-modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
}

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

.cookie-option__info h4 {
  font-size: 1rem;
  color: #1e293b;
  margin-bottom: 4px;
}

.cookie-option__info p {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-left: 16px;
}

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

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

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

.cookie-toggle input:checked + .cookie-toggle__slider {
  background-color: var(--purple-500, #a855f7);
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
  background-color: #e2e8f0;
  cursor: not-allowed;
}

.cookie-toggle input:disabled:checked + .cookie-toggle__slider {
  background-color: #d8b4fe;
}

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

.cookie-modal__actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
