/* Cookie Consent Banner */
.cookie-consent-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: #0f1629;
  color: #cbd5e1;
  padding: 24px 30px;
  flex-direction: column;
  gap: 14px;
  font-family: inherit;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  border-top: 1px solid #252e52;
}

.cookie-consent-banner h3 {
  margin: 0;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cookie-consent-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
}

.cookie-consent-banner p a {
  color: #3b82f6;
  text-decoration: underline;
}

.cookie-consent-banner p a:hover {
  color: #fff;
}

/* Checkbox options row */
.cookie-consent-options {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-consent-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #cbd5e1;
  cursor: pointer;
}

.cookie-consent-options input[type="checkbox"] {
  accent-color: #3b82f6;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.cookie-consent-options input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Button row */
.cookie-consent-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-consent-button {
  padding: 10px 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-consent-button.btn-success {
  background-color: #3b82f6;
  color: #fff;
  border: 1px solid #3b82f6;
}

.cookie-consent-button.btn-success:hover {
  background-color: #2563eb;
}

.cookie-consent-button.btn-outline {
  background-color: transparent;
  color: #cbd5e1;
  border: 1px solid #252e52;
}

.cookie-consent-button.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: #94a3b8;
}

.cookie-consent-button.btn-grayscale {
  background-color: transparent;
  color: #64748b;
  border: 1px solid #1a2140;
}

.cookie-consent-button.btn-grayscale:hover {
  color: #94a3b8;
  border-color: #252e52;
}

#more-detail-btn {
  background: none;
  border: none;
  color: #3b82f6;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

#more-detail-btn:hover {
  color: #fff;
}

/* Cookie Management Overlay */
#cookie-management-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

#cookie-management-overlay .overlay-content {
  background-color: #0f1629;
  color: #cbd5e1;
  padding: 36px;
  max-width: 560px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid #252e52;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

#cookie-management-overlay h2 {
  margin: 0 0 20px 0;
  font-size: 18px;
  color: #fff;
  font-weight: 600;
}

#cookie-management-overlay .cookie-type {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #1a2140;
}

#cookie-management-overlay .cookie-type:last-of-type {
  border-bottom: none;
}

#cookie-management-overlay .cookie-type label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 6px;
  color: #fff;
}

#cookie-management-overlay .cookie-type input[type="checkbox"] {
  accent-color: #3b82f6;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

#cookie-management-overlay .cookie-type input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: default;
}

#cookie-management-overlay .cookie-type p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
}

#cookie-management-overlay #save-cookie-preferences,
#cookie-management-overlay #close-overlay {
  padding: 10px 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 10px;
  margin-top: 10px;
  border-radius: 4px;
}

#cookie-management-overlay #save-cookie-preferences {
  background-color: #3b82f6;
  color: #fff;
  border: 1px solid #3b82f6;
}

#cookie-management-overlay #save-cookie-preferences:hover {
  background-color: #2563eb;
}

#cookie-management-overlay #close-overlay {
  background-color: transparent;
  color: #cbd5e1;
  border: 1px solid #252e52;
}

#cookie-management-overlay #close-overlay:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: #94a3b8;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .cookie-consent-banner {
    padding: 18px 16px;
    gap: 12px;
  }

  .cookie-consent-buttons {
    flex-direction: column;
  }

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

  .cookie-consent-options {
    flex-direction: column;
    gap: 10px;
  }

  #cookie-management-overlay .overlay-content {
    padding: 24px 20px;
  }
}

/* Floating cookie preferences button */
#cookie-consent-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9998;
  background-color: #0f1629;
  border: 1px solid #252e52;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  padding: 0;
}

#cookie-consent-button svg {
  fill: #3b82f6;
  width: 20px;
  height: 20px;
  overflow: visible;
}

#cookie-consent-button:hover {
  background-color: #1a2140;
  border-color: #3b82f6;
}
