/* ============================================
   CONSENT BANNER & PREFERENCES PANEL
   Matches Laxmi design system tokens
   ============================================ */

/* ---- Banner ---- */
#laxmi-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--color-white, #fff);
  border-top: 1px solid var(--color-border, #CBCAD6);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 24px 0;
  font-family: var(--font-primary, 'Host Grotesk', sans-serif);
}

.lcb__inner {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 0 var(--container-padding, 80px);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.lcb__text {
  flex: 1 1 400px;
  min-width: 0;
}

.lcb__heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-black, #1C1C1C);
  margin-bottom: 6px;
}

.lcb__body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text, #3F3F40);
}

.lcb__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Shared button base */
.lcb__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--radius-lg, 81px);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 150ms ease;
  white-space: nowrap;
}

.lcb__btn--primary {
  background: var(--color-primary, #645DBF);
  color: var(--color-white, #fff);
}

.lcb__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(100, 93, 191, 0.3);
}

.lcb__btn--secondary {
  background: transparent;
  color: var(--color-black, #1C1C1C);
  border: 1px solid var(--color-border, #CBCAD6);
}

.lcb__btn--secondary:hover {
  border-color: var(--color-primary, #645DBF);
  color: var(--color-primary, #645DBF);
}

/* ---- Customize panel overlay ---- */
#laxmi-consent-panel {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(28, 28, 28, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--font-primary, 'Host Grotesk', sans-serif);
}

.lcp__card {
  background: var(--color-white, #fff);
  border-radius: var(--radius-md, 14px);
  padding: 36px 32px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.lcp__title {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-black, #1C1C1C);
  margin-bottom: 24px;
}

.lcp__toggles {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

/* Toggle row */
.lcp__toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 14px 16px;
  border: 1px solid var(--color-border, #CBCAD6);
  border-radius: var(--radius-sm, 10px);
  transition: border-color 150ms ease;
}

.lcp__toggle:hover {
  border-color: var(--color-primary, #645DBF);
}

.lcp__toggle-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lcp__toggle-info strong {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-black, #1C1C1C);
}

.lcp__toggle-info span {
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-light, #686868);
}

/* Custom switch */
.lcp__toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 24px;
  background: #D0D0D0;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 200ms ease;
}

.lcp__toggle input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 200ms ease;
}

.lcp__toggle input[type="checkbox"]:checked {
  background: var(--color-primary, #645DBF);
}

.lcp__toggle input[type="checkbox"]:checked::after {
  transform: translateX(20px);
}

.lcp__toggle input[type="checkbox"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lcp__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  #laxmi-consent-banner {
    padding: 16px 0;
  }

  .lcb__inner {
    padding: 0 var(--container-padding, 32px);
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .lcb__text {
    flex: 0 1 auto;
  }

  .lcb__actions {
    justify-content: stretch;
  }

  .lcb__actions .lcb__btn {
    flex: 1;
    justify-content: center;
  }

  .lcp__card {
    padding: 24px 20px;
  }

  .lcp__actions {
    flex-direction: column;
  }

  .lcp__actions .lcb__btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  #laxmi-consent-banner {
    padding: 12px 0;
  }

  .lcb__inner {
    padding: 0 16px;
    gap: 10px;
  }

  .lcb__heading {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .lcb__body {
    font-size: 13px;
  }

  .lcb__actions {
    flex-direction: column;
    gap: 8px;
  }

  .lcb__btn {
    height: auto;
    min-height: 44px;
    padding: 10px 20px;
  }
}
