/* LDC cookie consent — banner + settings modal (Luxent brand tokens) */
.ldc-consent {
  --lc-bg: var(--ldc-bg-soft, #FBF5F6);
  --lc-ink: var(--ldc-ink, #2E0C13);
  --lc-mute: var(--ldc-ink-mid, #561A27);
  --lc-line: var(--ldc-line, rgba(46, 12, 19, 0.12));
  --lc-accent: var(--ldc-button, #7D2E3E);
  --lc-accent-hover: var(--ldc-button-hover, #6A2535);
  --lc-deep: var(--ldc-bordeaux-900, #2E0C13);
  --lc-sans: "Nunito Sans", "Segoe UI", sans-serif;
  position: relative;
  z-index: 12000;
  font-family: var(--lc-sans);
  color: var(--lc-ink);
}

.ldc-consent[hidden] {
  display: none !important;
}

html.ldc-consent-modal-open,
html.ldc-consent-modal-open body {
  overflow: hidden;
}

.ldc-consent__banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12001;
  background: var(--lc-bg);
  border-top: 1px solid var(--lc-line);
  box-shadow: 0 -10px 36px rgba(46, 12, 19, 0.1);
  max-height: min(52vh, 420px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.ldc-consent:not(.is-banner-visible) .ldc-consent__banner {
  display: none;
}

.ldc-consent__banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.15rem 1.25rem 1.35rem;
}

.ldc-consent__title {
  font-family: var(--lc-sans);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  color: var(--lc-deep);
  letter-spacing: -0.01em;
}

.ldc-consent__text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--lc-mute);
}

.ldc-consent__text a {
  color: var(--lc-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ldc-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ldc-consent__btn {
  appearance: none;
  border: 1px solid var(--lc-line);
  background: #fff;
  color: var(--lc-ink);
  border-radius: 8px;
  padding: 0.65rem 1.05rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  min-height: 44px;
  font-family: inherit;
}

.ldc-consent__btn:focus-visible {
  outline: 2px solid var(--lc-accent);
  outline-offset: 2px;
}

.ldc-consent__btn--primary {
  background: var(--lc-accent);
  border-color: var(--lc-accent);
  color: #fff;
}

.ldc-consent__btn--primary:hover {
  background: var(--lc-accent-hover);
  border-color: var(--lc-accent-hover);
}

.ldc-consent__btn--secondary {
  background: transparent;
  border-color: var(--lc-accent);
  color: var(--lc-accent);
}

.ldc-consent__btn--ghost {
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
  color: var(--lc-mute);
  font-weight: 600;
}

.ldc-consent__modal[hidden] {
  display: none !important;
}

.ldc-consent__modal {
  position: fixed;
  inset: 0;
  z-index: 12002;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 720px) {
  .ldc-consent__modal {
    align-items: center;
  }
}

.ldc-consent__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(46, 12, 19, 0.45);
}

.ldc-consent__modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: var(--lc-bg);
  border-radius: 14px 14px 0 0;
  padding: 1.35rem 1.25rem 1.5rem;
  box-shadow: 0 16px 48px rgba(46, 12, 19, 0.2);
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 720px) {
  .ldc-consent__modal-panel {
    border-radius: 14px;
  }
}

.ldc-consent__modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--lc-mute);
  cursor: pointer;
  border-radius: 8px;
}

.ldc-consent__modal-close:focus-visible {
  outline: 2px solid var(--lc-accent);
  outline-offset: 2px;
}

.ldc-consent__cat {
  border: 1px solid var(--lc-line);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  margin: 0 0 0.7rem;
  background: #fff;
}

.ldc-consent__cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ldc-consent__cat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--lc-deep);
  cursor: pointer;
}

.ldc-consent__cat-label input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--lc-accent);
}

.ldc-consent__badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lc-accent);
  background: rgba(125, 46, 62, 0.08);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  white-space: nowrap;
}

.ldc-consent__cat-desc {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--lc-mute);
}

.ldc-consent__hint {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
}

.ldc-consent__hint a {
  color: var(--lc-accent);
}

@media (max-width: 480px) {
  .ldc-consent__banner-inner {
    padding: 1rem 1rem 1.15rem;
  }

  .ldc-consent__actions {
    flex-direction: column;
  }

  .ldc-consent__btn {
    width: 100%;
    justify-content: center;
  }

  .ldc-consent__title {
    font-size: 1.1rem;
  }

  .ldc-consent__text {
    font-size: 0.9rem;
  }
}
