/* LG Advent Calendar - subscription popup demo.
   Rest of calendar continues to use original styles3.css. */


[hidden] { display: none !important; }
.promo-overlay { position: fixed; inset: 0; z-index: 99999; display:flex; justify-content:center; align-items:center; overflow-y:auto; padding:12px; background: rgba(20,20,20,.86); overscroll-behavior:contain; }
.promo-dialog { --visible-count: 4; --gap: 30px; --side: 70px; --card-max: 240px; position:relative; flex:0 1 auto; box-sizing:border-box; width:min(calc(var(--visible-count) * var(--card-max) + (var(--visible-count) - 1) * var(--gap) + var(--side) * 2), calc(100vw - 26px)); max-height:calc(100dvh - 24px); overflow-y:auto; padding:31px var(--side) 40px; background:#f1eee7; border-radius:27px; box-shadow:0 24px 80px rgba(0,0,0,.25); color:#080808; font-family:'LGEI',Arial,Helvetica,sans-serif; scrollbar-width:thin; }
.promo-dialog * {box-sizing:border-box;}
.promo-header {text-align:center; padding:0 5px; margin:0 auto 23px;}
.promo-day{display:block; font-size:10px; letter-spacing:1.7px; color:#7b786f; font-weight:700; margin-bottom:7px;}
.promo-header h2 {font-size:32px; font-weight:750; line-height:1.1; letter-spacing:-.75px; color:#000; margin:0; font-family:'LGEI Headline',Arial,Helvetica,sans-serif;}
.promo-header p {margin:3px 0 0; font-size:22px; font-weight:400; color:#101010; line-height:1.25; font-family:'LGEI',Arial,Helvetica,sans-serif;}
.promo-close {position:absolute; top:17px; right:16px; z-index:3; display:grid; place-items:center; width:34px; height:34px; padding:7px; border:0; background:transparent; color:#141414; cursor:pointer;}
.promo-close svg,.promo-arrow svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;}
.promo-close:hover {background:#dedbd5;border-radius:50%;}
.promo-carousel {position:relative;}
.promo-viewport {width:100%; overflow:hidden; touch-action:pan-y;}
.promo-track {display:flex; gap:var(--gap); align-items:stretch; will-change:transform;}
.promo-card {flex:0 0 var(--card-width,240px); min-width:0; background:#fff; border-radius:23px; padding:19px 19px 29px; display:flex; flex-direction:column; align-items:center; min-height:427px; text-align:center; overflow:hidden;}
.promo-product-name {font-size:18.5px; font-weight:500; line-height:1.13; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; height:64px; max-width:100%; margin:0; color:#090909; font-family:'LGEI',Arial,Helvetica,sans-serif;}
.promo-model {font-size:15px; font-weight:400; line-height:1.1; height:29px; margin:2px 0 0; color:#292929;}
.promo-media {display:flex; align-items:center; justify-content:center; width:100%; height:160px; margin:5px 0 4px;}
.promo-media img {display:block; width:100%; height:100%; object-fit:contain;}
.promo-price {font-size:23px; font-weight:500; line-height:1.1; margin:auto 0 1px; color:#050505; letter-spacing:-.5px; white-space:nowrap;}
.promo-frequency {font-size:12px; color:#737373; line-height:1.4; margin:0 0 7px;}
.promo-cta {display:flex; justify-content:center; align-items:center; width:100%; min-height:56px; border:0; border-radius:7px; background:#f5100b; color:white; font:400 16px 'LGEI',Arial,Helvetica,sans-serif; cursor:pointer; transition:background-color .15s ease;}
.promo-cta:hover,.promo-cta:focus-visible {background:#cf120f;}
.promo-arrow {position:absolute; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:36px; height:42px; padding:5px 7px; background:transparent; color:#2f302e; border:0; cursor:pointer; z-index:2;}
.promo-prev {left:calc(-1 * var(--side) + 13px);}
.promo-next {right:calc(-1 * var(--side) + 13px);}
.promo-arrow:hover {color:#d10d16;}
.promo-arrow:disabled {opacity:.22; cursor:default;}
.promo-notice {position:absolute; z-index:10; bottom:7px; left:var(--side); right:var(--side); font-size:12px; font-weight:500; text-align:center; color:#8f2630; min-height:16px; pointer-events:none;}
.promo-dialog:focus {outline:0;}
.promo-close:focus-visible,.promo-arrow:focus-visible,.promo-cta:focus-visible{outline:3px solid #a50035;outline-offset:2px;}
@media(max-width:1100px) and (min-width:721px){.promo-dialog{--side:55px;--gap:18px;--card-max:210px;}.promo-card{padding:16px 14px 23px;}.promo-product-name{font-size:16px;}.promo-model{font-size:13px;}.promo-media{height:145px;}.promo-card{min-height:405px;}}
@media(max-width:720px){
  .promo-overlay{padding:10px 6px;}
  .promo-dialog{--side:34px;--gap:12px;--card-max:187px; max-height:calc(100dvh - 20px); width:min(calc(var(--visible-count) * var(--card-max) + (var(--visible-count) - 1) * var(--gap) + var(--side) * 2), calc(100vw - 16px)); padding:26px var(--side) 28px; border-radius:20px;}
  .promo-day{font-size:9px; margin-bottom:4px;}
  .promo-header{margin-bottom:18px;}
  .promo-header h2{font-size:clamp(19px,5.2vw,26px); letter-spacing:-.45px;}
  .promo-header p{font-size:clamp(13px,3.5vw,17px);}
  .promo-close{top:5px;right:5px;width:29px;height:29px;}
  .promo-prev{left:calc(-1 * var(--side) + 1px);}
  .promo-next{right:calc(-1 * var(--side) + 1px);}
  .promo-arrow{width:30px;height:37px;padding:6px;}
  .promo-card{padding:13px 9px 14px;border-radius:16px; min-height:328px;}
  .promo-product-name{font-size:clamp(11.1px,3.1vw,15px);line-height:1.14;height:52px;}
  .promo-model{font-size:clamp(10px,2.75vw,13px);height:25px;margin-top:2px;}
  .promo-media{height:120px;margin:3px 0;}
  .promo-price{font-size:clamp(15px,4.3vw,20px);}
  .promo-frequency{font-size:10px;margin-bottom:8px;}
  .promo-cta{min-height:42px;padding:3px;font-size:clamp(11px,2.95vw,14px);}
  .promo-notice{left:20px;right:20px;bottom:3px;font-size:10px;}
}
@media(max-height:650px){.promo-dialog{max-height:calc(100dvh - 14px);padding-top:17px;padding-bottom:18px;}.promo-header{margin-bottom:11px;}.promo-card{min-height:350px;}.promo-media{height:120px;}}
@media(max-height:650px) and (max-width:720px){.promo-card{min-height:290px;}.promo-media{height:95px;}}

.promo-price--pending{font-size:16px;letter-spacing:0;color:#76746e;font-weight:600;}

/* V7: drag/swipe support. Vertical scrolling is still native on mobile. */
.promo-viewport { cursor: grab; touch-action: pan-y; overscroll-behavior-x: contain; }
.promo-viewport.is-dragging { cursor: grabbing; }
.promo-viewport.is-dragging, .promo-viewport.is-dragging * { user-select: none !important; -webkit-user-select: none !important; }
.promo-viewport img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
@media (hover: none) { .promo-viewport { cursor: auto; } }
@media (prefers-reduced-motion: reduce) { .promo-track { scroll-behavior: auto; } }

/* V9: Optional weekly LG Member promotional badge + footer T&Cs link. */
.promo-member-offer {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .3em;
  max-width: 100%;
  margin-top: 12px;
  padding: 9px 24px;
  border-radius: 999px;
  background: #fa100d;
  color: #fff;
  font-size: 19px;
  line-height: 1.35;
  text-align: center;
}
.promo-member-offer strong { font-weight: 700; }
.promo-member-offer span { font-weight: 400; }
.promo-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 20px;
  gap: 14px;
  margin-top: 17px;
}
.promo-footer .promo-notice {
  position: static;
  z-index: auto;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  text-align: left;
  line-height: 1.35;
  pointer-events: auto;
}
.promo-terms {
  display: inline-block;
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.4;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.promo-terms:hover { color: #a50035; }
.promo-terms:focus-visible { outline: 3px solid #a50035; outline-offset: 3px; }
@media (max-width: 720px) {
  .promo-member-offer { margin-top: 9px; padding: 7px 11px; font-size: clamp(11px, 2.95vw, 14px); }
  .promo-footer { margin-top: 12px; gap: 8px; }
  .promo-terms { font-size: 11px; }
}
