/*
Lamy LP - Cookie consent (Phase 9 STAGE 3)
Banner z-index 9000, prefs modal z-index 9100 (locked hierarchy).
RTL: toggle dot moves LEFT when checked (translateX -20px).

Round 7 (2026-06-21): banner rewritten as thin bottom strip.
  - Two buttons only ("קבל הכל" + "התאם העדפות"); "דחה" hidden via CSS.
  - flex: 1 1 360px trap removed — text now flex: 1 1 auto with min-width:0.
  - Padding reduced from 20px to 10px; single-row layout desktop.
  - All round-6 !important overrides replaced with clean mobile block.
  - Prefs modal (.lp-cookies-prefs and below) unchanged.
*/

/* ============================================================
   Banner — thin strip, position:fixed bottom
   ============================================================ */
.lp-cookies {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 9000;
  background: rgba(10, 10, 10, 0.97);
  border-top: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 0.35s ease-out;
  padding: 10px 20px;
}

.lp-cookies.is-visible {
  transform: translateY(0);
}

.lp-cookies__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: nowrap;
}

.lp-cookies__text {
  flex: 1 1 auto;
  min-width: 0;
  color: #EAEAEA;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.lp-cookies__text a {
  color: #D4AF37;
  text-decoration: underline;
}

.lp-cookies__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}

/* "דחה" button hidden in the strip — functionality preserved in JS */
.lp-cookies__btn--text {
  display: none;
}

@media (max-width: 600px) {
  .lp-cookies {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  }
  .lp-cookies__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .lp-cookies__text {
    font-size: 12.5px;
  }
  .lp-cookies__actions {
    gap: 8px;
  }
  .lp-cookies__btn--primary,
  .lp-cookies__btn--secondary {
    flex: 1;
  }
}

/* ============================================================
   Buttons (shared across banner + prefs modal)
   ============================================================ */
.lp-cookies__btn {
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.lp-cookies__btn--primary {
  background: #D4AF37;
  color: #050505;
}

.lp-cookies__btn--primary:hover {
  background: #F2D675;
}

.lp-cookies__btn--secondary {
  background: transparent;
  color: #D4AF37;
  border-color: rgba(212, 175, 55, 0.5);
}

.lp-cookies__btn--secondary:hover {
  background: rgba(212, 175, 55, 0.1);
}

.lp-cookies__btn--text {
  background: transparent;
  color: #EAEAEA;
  text-decoration: underline;
  padding: 7px 10px;
}

.lp-cookies__btn--text:hover {
  color: #D4AF37;
}

.lp-cookies__btn:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
}

/* ============================================================
   Preferences modal — UNCHANGED from Phase 9 STAGE 3
   ============================================================ */
.lp-cookies-prefs {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: none;
}

.lp-cookies-prefs.is-open {
  display: block;
}

.lp-cookies-prefs__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.lp-cookies-prefs__dialog {
  position: relative;
  max-width: 560px;
  max-height: 90vh;
  margin: 5vh auto;
  background: #0A0A0A;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 56px 24px 24px;
  overflow-y: auto;
}

.lp-cookies-prefs__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  color: #D4AF37;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  font-family: Arial, "Helvetica Neue", sans-serif;
  padding: 0;
  text-align: center;
}

.lp-cookies-prefs__close:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
}

.lp-cookies-prefs__body h2 {
  color: #D4AF37;
  font-size: 22px;
  margin: 0 0 12px;
}

.lp-cookies-prefs__intro {
  color: #BBB;
  font-size: 14px;
  margin: 0 0 24px;
}

.lp-cookies-prefs__group {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
}

.lp-cookies-prefs__group:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* ============================================================
   Toggle switch (RTL-aware - dot moves LEFT when checked)
   ============================================================ */
.lp-cookies-prefs__toggle {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  cursor: pointer;
}

.lp-cookies-prefs__toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lp-cookies-prefs__switch {
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  transition: background 0.2s;
}

.lp-cookies-prefs__switch::after {
  content: '';
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #EAEAEA;
  transition: transform 0.2s;
}

.lp-cookies-prefs__toggle input:checked ~ .lp-cookies-prefs__switch {
  background: #D4AF37;
}

.lp-cookies-prefs__toggle input:checked ~ .lp-cookies-prefs__switch::after {
  transform: translateX(-20px);
  background: #050505;
}

.lp-cookies-prefs__toggle input:disabled ~ .lp-cookies-prefs__switch {
  opacity: 0.6;
}

.lp-cookies-prefs__toggle input:focus-visible ~ .lp-cookies-prefs__switch {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
}

.lp-cookies-prefs__label strong {
  color: #EAEAEA;
  font-size: 15px;
  display: block;
}

.lp-cookies-prefs__label small {
  color: #999;
  font-size: 13px;
  display: block;
  margin-top: 4px;
}

.lp-cookies-prefs__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
