/* 2026/11/24: One LINE card for every shop/footer layout; artwork matches mg_001. */
#wc-line-promo.mg-line-card {
  position:fixed; z-index:99;
  inset:auto max(12px, env(safe-area-inset-right)) calc(12px + var(--mg-cart-clearance, env(safe-area-inset-bottom))) auto;
  display:block; width:clamp(78px, 24.62vw, 96px); max-width:calc(100vw - 24px);
  height:auto; padding:0; margin:0; transform:none;
}
#wc-line-promo.mg-line-card .ur-sticky-line-icon__link {
  display:block; width:100%; height:auto; padding:0; text-decoration:none;
  border-radius:8%; filter:drop-shadow(0 1px 3px #213c2a36);
}
#wc-line-promo.mg-line-card .mg-line-art { display:block; width:100%; height:auto; aspect-ratio:1; }
#wc-line-promo.mg-line-card .wc-line-close {
  position:absolute; z-index:1; inset:auto auto calc(100% + 12px) 0;
  display:flex; align-items:flex-end; justify-content:flex-start;
  width:44px; height:44px; box-sizing:border-box; padding:0 0 1px 3px;
  margin:0; background:transparent; border:0; border-radius:0; cursor:pointer;
  box-shadow:none; color:transparent; font-size:0; transform:none;
}
#wc-line-promo.mg-line-card .wc-line-close::before {
  content:'×'; display:grid; place-items:center; position:static;
  width:26px; height:26px; box-sizing:border-box;
  background:white; color:#274c38; border:1px solid #859d8d; border-radius:50%;
  font:20px/1 Arial,sans-serif; transform:none;
}
#wc-line-promo.mg-line-card .wc-line-close::after { content:none; }
#wc-line-promo.mg-line-card :focus-visible { outline:2px solid #245da6; outline-offset:2px; }
body.wc-drawer-open #wc-line-promo { visibility:hidden; }
/* Keep the existing session dismissal and checkout exclusions stronger than card display. */
#wc-line-promo[hidden], #wc-line-promo.is-bubble-closed,
body:has(#cart-show-view) #wc-line-promo,
body:has(#new-view) #wc-line-promo,
body:has(#confirm-view) #wc-line-promo { display:none!important; }
