/* Lx Hotel — Cookie Consent banner + preferences modal
   Loaded site-wide. Self-contained: no Bootstrap dependency, scoped class names
   prefixed `lxcc-` to avoid collisions with site CSS. Brand palette mirrors
   :root tokens from style.css (--brand-purple-deep, --brand-gold) without
   redeclaring them so future palette changes flow through.
*/

.lxcc-banner,
.lxcc-modal,
.lxcc-modal *,
.lxcc-banner * {
  box-sizing: border-box;
}

/* ==== Bottom-anchored banner ==== */
.lxcc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000; /* above carousels, modals, GTM debug */
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid rgba(45, 26, 77, 0.18);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(45, 26, 77, 0.22), 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 18px 20px 16px;
  font-family: 'Poppins-Regular', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  animation: lxcc-slide-up 0.35s ease-out;
}
@keyframes lxcc-slide-up {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.lxcc-banner__title {
  margin: 0 0 6px;
  font-family: 'Poppins-SemiBold', system-ui, sans-serif;
  font-size: 16px;
  color: #2d1a4d;
}
.lxcc-banner__body {
  margin: 0 0 12px;
  color: #333;
}
.lxcc-banner__links {
  margin: 0 0 12px;
  font-size: 13px;
}
.lxcc-banner__links a {
  color: #4B2D73;
  text-decoration: underline;
  margin-right: 14px;
}
.lxcc-banner__links a:hover,
.lxcc-banner__links a:focus { color: #2d1a4d; }

.lxcc-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lxcc-btn {
  flex: 1 1 auto;
  min-height: 44px; /* mobile-tap target */
  padding: 10px 16px;
  font-family: 'Poppins-SemiBold', system-ui, sans-serif;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-align: center;
  line-height: 1.2;
}
.lxcc-btn:focus { outline: 2px solid #FFD700; outline-offset: 2px; }
.lxcc-btn--primary {
  background: #4B2D73;
  color: #ffffff;
}
.lxcc-btn--primary:hover { background: #2d1a4d; }
.lxcc-btn--secondary {
  background: #ffffff;
  color: #2d1a4d;
  border-color: #4B2D73;
}
.lxcc-btn--secondary:hover { background: #f4eeff; }
.lxcc-btn--ghost {
  background: transparent;
  color: #4B2D73;
  border-color: rgba(75, 45, 115, 0.35);
}
.lxcc-btn--ghost:hover { background: #f4eeff; }

/* ==== Preferences modal ==== */
.lxcc-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 10, 40, 0.55);
  padding: 16px;
  font-family: 'Poppins-Regular', system-ui, sans-serif;
  font-size: 14px;
  color: #1a1a1a;
}
.lxcc-modal__panel {
  background: #ffffff;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.lxcc-modal__title {
  margin: 0 0 4px;
  font-family: 'Poppins-SemiBold', system-ui, sans-serif;
  font-size: 20px;
  color: #2d1a4d;
}
.lxcc-modal__intro {
  margin: 0 0 18px;
  font-size: 13px;
  color: #444;
}
.lxcc-cat {
  border: 1px solid #e6dff0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.lxcc-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lxcc-cat__name {
  font-family: 'Poppins-SemiBold', system-ui, sans-serif;
  font-size: 14px;
  color: #2d1a4d;
}
.lxcc-cat__desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: #555;
}
.lxcc-cat__status {
  font-size: 12px;
  color: #4B2D73;
  font-family: 'Poppins-SemiBold', system-ui, sans-serif;
}

/* Toggle switch */
.lxcc-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.lxcc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.lxcc-toggle__slider {
  position: absolute;
  inset: 0;
  background: #c7c0d4;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.18s ease;
}
.lxcc-toggle__slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.18s ease;
}
.lxcc-toggle input:checked + .lxcc-toggle__slider {
  background: #4B2D73;
}
.lxcc-toggle input:checked + .lxcc-toggle__slider::before {
  transform: translateX(20px);
}
.lxcc-toggle input:focus-visible + .lxcc-toggle__slider {
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

.lxcc-modal__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .lxcc-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 16px;
    font-size: 13px;
  }
  .lxcc-banner__actions { flex-direction: column; }
  .lxcc-btn { flex: 1 1 100%; }
  .lxcc-modal__panel { padding: 18px; }
  .lxcc-modal__actions { flex-direction: column; }
}

/* Footer "Cookie Preferences" link uses the same styling as the
   surrounding Privacy / Terms / Sitemap items — no extra rule needed. */
[data-cookie-preferences] { cursor: pointer; }

/* Hidden helper */
.lxcc-hidden { display: none !important; }
