/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #0D1E35;
  border-top: 2px solid #00B4D8;
  padding: 20px 0;
}

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

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

.cookie-banner-text strong {
  display: block;
  color: #E8EDF2;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cookie-banner-text p {
  font-size: 0.875rem;
  color: #94A3B8;
  line-height: 1.5;
  margin: 0;
}

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

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
  white-space: nowrap;
  background: none;
}

.cookie-btn-primary {
  background: #00B4D8;
  color: #060D1A;
  border-color: #00B4D8;
}

.cookie-btn-primary:hover {
  background: #48CAE4;
  border-color: #48CAE4;
}

.cookie-btn-secondary {
  background: transparent;
  color: #E8EDF2;
  border-color: #243A56;
}

.cookie-btn-secondary:hover {
  border-color: #00B4D8;
  color: #00B4D8;
}

.cookie-btn-ghost {
  background: transparent;
  color: #94A3B8;
  border-color: transparent;
  text-decoration: underline;
  padding-left: 4px;
  padding-right: 4px;
}

.cookie-btn-ghost:hover {
  color: #E8EDF2;
}

/* ===== COOKIE MODAL ===== */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(6, 13, 26, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cookie-modal-overlay[hidden] {
  display: none;
}

.cookie-modal-box {
  background: #0D1E35;
  border: 1px solid #243A56;
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  padding: 28px;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 16px;
}

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

.cookie-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #94A3B8;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}

.cookie-modal-close:hover {
  color: #E8EDF2;
  background: rgba(255,255,255,0.05);
}

.cookie-modal-subtitle {
  font-size: 0.875rem;
  color: #94A3B8;
  margin-bottom: 20px;
  line-height: 1.55;
}

.cookie-preference-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid #1A2E45;
  border-radius: 10px;
  overflow: hidden;
}

.cookie-preference-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #1A2E45;
  gap: 16px;
}

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

.cookie-pref-text {
  flex: 1;
  min-width: 0;
}

.cookie-pref-text strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #E8EDF2;
  margin-bottom: 2px;
}

.cookie-pref-text span {
  font-size: 0.8125rem;
  color: #94A3B8;
  line-height: 1.4;
  display: block;
}

.cookie-always-on {
  font-size: 0.75rem;
  font-weight: 600;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 100px;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cookie-toggle-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.cookie-toggle-label input[type="checkbox"] {
  display: none;
}

.cookie-toggle-track {
  width: 44px;
  height: 24px;
  background: #1A2E45;
  border-radius: 100px;
  position: relative;
  border: 1px solid #243A56;
  display: block;
}

.cookie-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #4A5A6E;
  border-radius: 50%;
}

.cookie-toggle-label input:checked + .cookie-toggle-track {
  background: rgba(0, 180, 216, 0.2);
  border-color: #00B4D8;
}

.cookie-toggle-label input:checked + .cookie-toggle-track::after {
  left: 21px;
  background: #00B4D8;
}

.cookie-modal-policy-link {
  font-size: 0.8125rem;
  color: #94A3B8;
  margin-bottom: 20px;
}

.cookie-modal-policy-link a {
  color: #00B4D8;
  text-decoration: underline;
}

.cookie-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cookie-banner-actions {
    width: 100%;
    flex-wrap: nowrap;
  }

  .cookie-btn-primary,
  .cookie-btn-secondary {
    flex: 1;
  }

  .cookie-btn-ghost {
    flex: none;
    align-self: center;
  }

  .cookie-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .cookie-modal-box {
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    padding: 24px 20px;
    max-height: 85vh;
  }

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

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