/* ====================================================================
   ELXAO COOKIE CONSENT - DARK THEME
   CNIL/GDPR Compliant
   ==================================================================== */

/* ====== BANNER (Bottom Bar) ====== */

.elxao-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 11, 11, 0.92);
  color: #FFFFFF;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  z-index: 999999;
  padding: 10px 20px;
}

/* Override any external font-family rules (e.g. Olympus Google Fonts)
   that target bare p, a, button selectors inside the banner. */
.elxao-consent-banner,
.elxao-consent-banner p,
.elxao-consent-banner a,
.elxao-consent-banner span,
.elxao-consent-banner button,
.elxao-consent-banner div {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.elxao-consent-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

/* Message - Row 1 (full width) */
.elxao-consent-message {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

/* Actions Container - Row 2 */
.elxao-consent-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Links (inline with buttons) */
.elxao-consent-links {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
}

.elxao-consent-links a {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.80);
  text-decoration: underline;
  white-space: nowrap;
}

.elxao-consent-links a:hover {
  color: #FFFFFF;
}

/* Buttons (inline with links) */
.elxao-consent-buttons {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.elxao-btn {
  padding: 6px 10px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.2;
  min-height: 28px;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid;
}

/* Accept button (equal prominence per CNIL) */
.elxao-btn-accept {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.90);
  color: rgba(255, 255, 255, 0.90);
}

.elxao-btn-accept:hover {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* Deny button (equal prominence per CNIL) */
.elxao-btn-deny {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.90);
  color: rgba(255, 255, 255, 0.90);
}

.elxao-btn-deny:hover {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* View preferences button */
.elxao-btn-preferences {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85);
}

.elxao-btn-preferences:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
}

/* Close button - moved to bottom right inline with buttons */
.elxao-consent-close {
  background: none;
  border: none;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
  margin-left: auto;
  align-self: center;
}

.elxao-consent-close:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ====== PREFERENCES MODAL ====== */

.elxao-consent-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000000;
}

.elxao-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
}

.elxao-modal-content {
  position: relative;
  max-width: 600px;
  margin: 50px auto;
  background: #0B0B0B;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 30px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

/* Override any external font-family rules (e.g. Olympus Google Fonts)
   that target bare h2, button, input, etc. selectors. */
.elxao-modal-content,
.elxao-modal-content h2,
.elxao-modal-content p,
.elxao-modal-content a,
.elxao-modal-content span,
.elxao-modal-content label,
.elxao-modal-content button,
.elxao-modal-content input,
.elxao-modal-content div {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.elxao-modal-content h2 {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.90);
  font-weight: 500;
}

.elxao-modal-message {
  margin-bottom: 20px;
}

.elxao-modal-message p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.60);
  margin: 0 0 12px 0;
}

.elxao-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  line-height: 1;
  padding: 0 8px;
}

.elxao-modal-close:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Categories */
.elxao-consent-categories {
  margin-bottom: 24px;
}

.elxao-category {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.elxao-category:first-child {
  border-top: none;
  padding-top: 0;
}

.elxao-category-header {
  margin-bottom: 8px;
}

.elxao-category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.elxao-category-title input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.elxao-category-title input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.elxao-category-description {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  margin-left: 28px;
}

.elxao-modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.elxao-modal-buttons .elxao-btn {
  padding: 10px 14px;
}

/* ====== MANAGE CONSENT BUTTON (Floating) ====== */

.elxao-manage-consent-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0B0B0B;
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 12px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 999998;
  border-radius: 0;
}

.elxao-manage-consent-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
}

/* ====== RESPONSIVE ====== */

@media (max-width: 768px) {
  .elxao-consent-banner {
    padding: 12px 16px;
  }

  .elxao-btn {
    padding: 8px 12px;
    min-height: 32px;
  }

  .elxao-modal-content {
    margin: 20px;
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .elxao-consent-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .elxao-consent-links,
  .elxao-consent-buttons {
    width: 100%;
  }

  .elxao-consent-links {
    gap: 8px 12px;
  }
}
