/* ═══════════════════════════════════════════════
   CRUISEPORT — Cookie Consent Banner
   ═══════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--ocean, #0A2540);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cookie-banner-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}

.cookie-banner-text strong {
  color: white;
  font-weight: 600;
}

.cookie-banner-text a {
  color: #FF8A6E;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

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

.cookie-btn {
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.cookie-btn-accept {
  background: #FF6B4A;
  color: white;
}

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

.cookie-btn-refuse {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.12);
}

.cookie-btn-refuse:hover {
  background: rgba(255,255,255,0.12);
  color: white;
}

.cookie-btn-settings {
  background: none;
  color: rgba(255,255,255,0.45);
  padding: 10px 14px;
  font-size: 12px;
}

.cookie-btn-settings:hover {
  color: rgba(255,255,255,0.7);
}

/* ─── Settings panel ────────────────────────── */
.cookie-settings {
  display: none;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px 20px;
}

.cookie-settings.open {
  display: block;
}

.cookie-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.cookie-setting-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-setting-label {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.cookie-setting-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

.cookie-setting-item span.required {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.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: rgba(255,255,255,0.15);
  border-radius: 22px;
  transition: background 0.2s;
}

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

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

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: default;
}

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    padding: 20px 20px;
    gap: 16px;
    align-items: stretch;
  }
  
  .cookie-banner-actions {
    flex-direction: column;
  }
  
  .cookie-btn {
    text-align: center;
  }
  
  .cookie-settings {
    padding: 0 20px 16px;
  }
  
  .cookie-settings-grid {
    grid-template-columns: 1fr;
  }
}
