/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #142D47;
  color: #fff;
  z-index: 99999;
  font-family: 'DM Sans', sans-serif;
  padding: 20px 24px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  display: none;
  animation: slideUp 0.5s ease;
}
.cookie-consent.show {
  display: block;
}

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

.cookie-text {
  flex: 1;
  min-width: 280px;
}
.cookie-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #d0d8e0;
}
.cookie-text strong {
  color: #fff;
}

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

.cookie-btn {
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cookie-btn-accept {
  background: #264D77;
  color: #fff;
  border: none;
  padding: 13px 36px;
  font-size: 15px;
  box-shadow: 0 3px 10px rgba(38,77,119,0.35);
}
.cookie-btn-accept:hover {
  background: #142D47;
  box-shadow: 0 5px 18px rgba(38,77,119,0.5);
  transform: translateY(-1px);
}
.cookie-btn-customize {
  background: transparent;
  color: #778;
  border: none;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #445;
}
.cookie-btn-customize:hover {
  color: #aac;
  text-decoration-color: #668;
}

/* Cookie Settings Panel */
.cookie-settings {
  display: none;
  max-width: 1100px;
  margin: 16px auto 0;
  padding-top: 16px;
  border-top: 1px solid #2a4060;
}
.cookie-settings.open {
  display: block;
}

.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #2a4060;
}
.cookie-category:last-child {
  border-bottom: none;
}

.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;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #3a5577;
  transition: 0.3s;
  border-radius: 24px;
}
.cookie-toggle .slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  transition: 0.3s;
  border-radius: 50%;
}
.cookie-toggle input:checked + .slider {
  background: #4CAF50;
}
.cookie-toggle input:checked + .slider:before {
  transform: translateX(20px);
}
.cookie-toggle input:disabled + .slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-info {
  flex: 1;
}
.cookie-info h4 {
  margin: 0 0 3px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #fff;
}
.cookie-info p {
  margin: 0;
  font-size: 12px;
  color: #8aa;
  line-height: 1.5;
}

.cookie-save-btn {
  margin-top: 16px;
  padding: 10px 28px;
  background: #264D77;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cookie-save-btn:hover {
  background: #1a3a5c;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (max-width: 640px) {
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions {
    justify-content: stretch;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}
