/* ================================================================
   ENERGY LEAD — Cookie Consent
   Brand: Energy Black #0F0F0F | Pulse Gold #F5B838 | Track Grey #444444
   Font: Montserrat | Radius: 5px
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  /* ---- Brand ---- */
  --elc-black:        #0F0F0F;
  --elc-grey:         #444444;
  --elc-gold:         #F5B838;
  --elc-gold-hover:   #d9a020;
  --elc-silver:       #C0C1C2;
  --elc-white:        #FFFFFF;

  /* ---- Surfaces ---- */
  --elc-bg:           #1A1A1A;          /* banner / modal fill */
  --elc-bg-section:   #111111;          /* header / footer strips */
  --elc-border:       #E5E6E599;        /* Cloud Grey 60% */
  --elc-border-soft:  #E5E6E54D;        /* Cloud Grey 30% */

  /* ---- Text ---- */
  --elc-text-head:    #FFFFFF;
  --elc-text-body:    #C0C1C2;          /* Fog Silver */
  --elc-text-muted:   #FFFFFF80;        /* Clear White 50% */

  /* ---- Geometry ---- */
  --elc-radius:       5px;
  --elc-shadow:       0 20px 60px rgba(0, 0, 0, 0.70);

  /* ---- Font ---- */
  --elc-font:         'Montserrat', system-ui, -apple-system, Arial, sans-serif;
}

/* ----------------------------------------------------------------
   UTILITY
   ---------------------------------------------------------------- */
.elc-hidden { display: none !important; }

/* Focus ring */
.elc-btn:focus-visible,
.elc-link:focus-visible,
.elc-close:focus-visible,
.elc-switch input:focus-visible + .elc-slider {
  outline: 2px solid var(--elc-gold);
  outline-offset: 2px;
}

/* ================================================================
   BANNER
   ================================================================ */
.elc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;

  background: var(--elc-black);
  border-top: 1px solid var(--elc-border);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.60);

  font-family: var(--elc-font);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--elc-text-body);
}

.elc-banner__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;

  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 56px 16px 20px; /* right: space for X */
}

/* ---- Gold accent bar on left edge ---- */
.elc-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--elc-gold);
}

/* ---- Text block ---- */
.elc-banner__text {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.elc-banner__text strong {
  font-weight: 700;
  font-size: 14px;
  color: var(--elc-text-head);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.elc-banner__text span {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--elc-text-body);
}

.elc-link {
  color: var(--elc-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.elc-link:hover {
  color: var(--elc-gold-hover);
  text-decoration: none;
}

/* ---- CTA buttons row ---- */
.elc-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.elc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: var(--elc-radius) !important;
  padding: 10px 18px !important;

  font-family: var(--elc-font) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;

  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.elc-btn:active { transform: scale(0.97); }

/* Primary – Pulse Gold */
.elc-btn--primary {
  background: var(--elc-gold) !important;
  border: 1px solid var(--elc-gold) !important;
  color: var(--elc-black) !important;
}
.elc-btn--primary:hover {
  background: var(--elc-gold-hover) !important;
  border-color: var(--elc-gold-hover) !important;
  box-shadow: 0 4px 16px rgba(245, 184, 56, 0.35) !important;
}

/* Outline – visible border, white text */
.elc-btn--outline {
  background: transparent !important;
  border: 1px solid var(--elc-border) !important;
  color: var(--elc-text-head) !important;
}
.elc-btn--outline:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: var(--elc-silver) !important;
}

/* Ghost – minimal */
.elc-btn--ghost {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--elc-text-muted) !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}
.elc-btn--ghost:hover {
  color: var(--elc-text-head) !important;
  border-color: var(--elc-border-soft) !important;
}

/* ================================================================
   CLOSE (X) BUTTON
   ================================================================ */
.elc-close {
  position: absolute;
  top: 12px;
  right: 14px;

  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  border-radius: var(--elc-radius);
  transition: background 0.12s ease;
}

.elc-close:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.elc-close::before {
  content: '✕';
  font-size: 14px;
  color: var(--elc-text-muted);
  line-height: 1;
  font-family: var(--elc-font);
}

/* ================================================================
   OVERLAY
   ================================================================ */
.elc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 999998;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ================================================================
   MODAL
   ================================================================ */
.elc-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999999;

  width: min(680px, 94vw);
  max-height: 90vh;
  overflow-y: auto;

  background: var(--elc-black);
  border: 1px solid var(--elc-border);
  border-radius: var(--elc-radius);
  box-shadow: var(--elc-shadow);

  font-family: var(--elc-font);
  color: var(--elc-text-body);
  font-size: 13px;
  line-height: 1.6;
}

/* ---- Scrollbar inside modal ---- */
.elc-modal::-webkit-scrollbar       { width: 4px; }
.elc-modal::-webkit-scrollbar-track { background: transparent; }
.elc-modal::-webkit-scrollbar-thumb { background: var(--elc-grey); border-radius: 2px; }

/* ---- Header ---- */
.elc-modal__header {
  position: relative;
  padding: 18px 52px 18px 20px;
  background: var(--elc-bg-section);
  border-bottom: 1px solid var(--elc-border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.elc-modal__header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.elc-modal__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(245, 184, 56, 0.08);
  border: 1px solid rgba(245, 184, 56, 0.20);
  border-radius: var(--elc-radius);
  flex-shrink: 0;
}

.elc-modal__header h3 {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  color: var(--elc-text-head);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: var(--elc-font);
}

/* ---- Body ---- */
.elc-modal__body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---- Footer ---- */
.elc-modal__footer {
  padding: 16px 20px;
  background: var(--elc-bg-section);
  border-top: 1px solid var(--elc-border-soft);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.elc-modal__btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ================================================================
   CATEGORY ROWS
   ================================================================ */
.elc-cat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--elc-border-soft);
  border-radius: var(--elc-radius);
  padding: 14px 16px;
  transition: border-color 0.15s ease;
}

.elc-cat:hover {
  border-color: var(--elc-border);
}

.elc-cat__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.elc-cat__label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.elc-cat__label strong {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--elc-text-head);
  letter-spacing: 0.01em;
  font-family: var(--elc-font);
}

/* Status dot */
.elc-cat__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--elc-grey);
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.elc-cat__dot--on {
  background: var(--elc-gold);
  box-shadow: 0 0 6px rgba(245, 184, 56, 0.55);
}

/* "Always active" badge */
.elc-cat__badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--elc-gold);
  background: rgba(245, 184, 56, 0.12);
  border: 1px solid rgba(245, 184, 56, 0.25);
  border-radius: var(--elc-radius);
  padding: 2px 7px;
  font-family: var(--elc-font);
}

.elc-cat p {
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--elc-text-body);
  font-family: var(--elc-font);
}

/* ================================================================
   TOGGLE SWITCH
   ================================================================ */
.elc-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.elc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.elc-slider {
  position: absolute;
  inset: 0;
  background: var(--elc-grey);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.elc-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  background: var(--elc-white);
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.40);
}

.elc-switch input:checked + .elc-slider {
  background: var(--elc-gold);
  border-color: var(--elc-gold);
}

.elc-switch input:checked + .elc-slider::before {
  transform: translateX(20px);
  background: var(--elc-black);
}

/* Disabled state */
.elc-switch input:disabled + .elc-slider {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ================================================================
   MOBILE
   ================================================================ */
@media (max-width: 800px) {
  .elc-banner::before { display: none; } /* hide left bar on mobile */

  .elc-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 46px 16px 16px;
  }

  .elc-banner__text { flex: none; width: 100%; }

  .elc-banner__actions {
    width: 100%;
    flex-direction: column;
  }

  .elc-banner__actions .elc-btn {
    width: 100%;
    justify-content: center;
  }

  .elc-modal__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .elc-modal__btns {
    width: 100%;
  }

  .elc-modal__btns .elc-btn {
    flex: 1;
    justify-content: center;
  }
}