/* ============================================================
   IEXGold Cookie Consent Banner
   Dark/gold theme — GDPR/ePrivacy compliant
   ============================================================ */

/* ── Banner ── */
#iexg-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: #111111;
  border-top: 1px solid #2a2a2a;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.6);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #cccccc;
  animation: iexg-slide-up 0.35s ease-out;
}

@keyframes iexg-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

#iexg-cookie-banner.iexg-hidden {
  display: none;
}

.iexg-banner-text {
  flex: 1;
  min-width: 260px;
  line-height: 1.5;
}

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

.iexg-banner-text a:hover {
  color: #E8D48B;
}

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

/* Buttons */
.iexg-btn {
  padding: 9px 20px;
  border-radius: 6px;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  line-height: 1;
  white-space: nowrap;
}

.iexg-btn-accept {
  background: linear-gradient(135deg, #C9A84C, #E8D48B);
  color: #0A0A0A;
}

.iexg-btn-accept:hover {
  background: linear-gradient(135deg, #E8D48B, #C9A84C);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.4);
}

.iexg-btn-settings {
  background: transparent;
  color: #aaaaaa;
  border: 1px solid #333333;
}

.iexg-btn-settings:hover {
  border-color: #C9A84C;
  color: #C9A84C;
}

/* ── Settings Modal ── */
#iexg-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9995;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  animation: iexg-fade-in 0.2s ease-out;
}

@keyframes iexg-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#iexg-cookie-modal.iexg-hidden {
  display: none;
}

.iexg-modal-box {
  background: #111111;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 28px 28px 24px;
  width: 100%;
  max-width: 460px;
  margin: 0 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  animation: iexg-scale-in 0.25s ease-out;
}

@keyframes iexg-scale-in {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.iexg-modal-title {
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #E8E8E8;
  margin: 0 0 6px;
}

.iexg-modal-desc {
  font-size: 13px;
  color: #888888;
  margin: 0 0 22px;
  line-height: 1.55;
}

/* Toggle rows */
.iexg-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid #1a1a1a;
}

.iexg-toggle-info {}

.iexg-toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: #E8E8E8;
  display: block;
  margin-bottom: 3px;
}

.iexg-toggle-sublabel {
  font-size: 12px;
  color: #666666;
  line-height: 1.4;
}

/* Toggle switch */
.iexg-toggle {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  margin-top: 2px;
}

.iexg-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.iexg-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: #2a2a2a;
  cursor: pointer;
  transition: background 0.2s;
}

.iexg-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #555555;
  transition: transform 0.2s, background 0.2s;
}

.iexg-toggle input:checked + .iexg-toggle-track {
  background: #C9A84C;
}

.iexg-toggle input:checked + .iexg-toggle-track::after {
  transform: translateX(18px);
  background: #0A0A0A;
}

/* Disabled (essential) */
.iexg-toggle.iexg-toggle-disabled .iexg-toggle-track {
  cursor: not-allowed;
  opacity: 0.45;
}

/* Modal footer */
.iexg-modal-footer {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  #iexg-cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
  }

  .iexg-banner-actions {
    width: 100%;
  }

  .iexg-btn {
    flex: 1;
    text-align: center;
  }

  .iexg-modal-box {
    padding: 22px 18px 20px;
  }
}
