
/* V782 Unified featured rail + clean popup */
.promotion-rail-v782{margin:12px 0 18px}
.promotion-rail-v782 .promotion-rail-head-v775{align-items:center}
.promotion-rail-v782 .promotion-rail-head-v775>div:first-child{display:flex;flex-wrap:wrap;gap:6px 9px}
.promotion-rail-v782 .promotion-rail-head-v775 span{font-size:15px}
.promotion-rail-v782 .promotion-rail-head-v775 small{font-size:10px}
.featured-card-v782{flex:0 0 250px;min-height:74px;border-radius:16px;padding:8px;background:#fff;overflow:hidden}
.featured-card-v782.is-reward-v782{border-color:#ddd6fe;background:linear-gradient(135deg,#fff,#faf7ff)}
.featured-card-v782 .promotion-thumb-v775{width:74px;height:58px;flex-basis:74px}
.featured-card-v782 .promotion-copy-v775{display:grid;grid-template-columns:auto 1fr;gap:3px 5px;align-items:center}
.featured-card-v782 .featured-kind-v782{display:inline-flex;align-items:center;width:max-content;padding:2px 6px;border-radius:999px;background:#eef6ff;color:#2563eb;font-size:8px;font-weight:900}
.featured-card-v782.is-reward-v782 .featured-kind-v782{background:#f3e8ff;color:#7c3aed}
.featured-card-v782 .promotion-copy-v775 em{grid-column:2;max-width:100%;margin:0}
.featured-card-v782 .promotion-copy-v775 b,.featured-card-v782 .promotion-copy-v775 small{grid-column:1/-1}
.featured-card-v782.is-reward-v782 .promotion-copy-v775 small{color:#7c3aed}

.featured-popup-v782,.reward-decision-v782{position:fixed;inset:0;z-index:999980;display:grid;place-items:center;padding:18px}
.featured-popup-v782[hidden],.reward-decision-v782[hidden]{display:none!important}
.featured-backdrop-v782,.reward-decision-backdrop-v782{position:absolute;inset:0;border:0;background:rgba(15,23,42,.52);backdrop-filter:blur(3px)}
.featured-box-v782{position:relative;width:min(460px,100%);max-height:min(720px,calc(100dvh - 36px));display:grid;grid-template-rows:minmax(160px,220px) minmax(0,1fr);overflow:hidden;border-radius:22px;background:#fff;box-shadow:0 24px 90px rgba(15,23,42,.32)}
.featured-x-v782{position:absolute;z-index:4;right:11px;top:11px;width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.95);box-shadow:0 3px 12px rgba(15,23,42,.14);font-size:21px;cursor:pointer}
.featured-image-v782{min-height:0;background:#f5f7fb;display:grid;place-items:center;overflow:hidden}
.featured-image-v782 img{width:100%;height:100%;object-fit:cover}
.featured-image-v782 span{font-size:52px}
.featured-body-v782{min-height:0;overflow:auto;padding:16px 17px 18px}
.featured-tags-v782{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.featured-tags-v782 span,.featured-tags-v782 em{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:9px;font-style:normal;font-weight:900}
.featured-tags-v782 span{background:#eef6ff;color:#2563eb}.featured-tags-v782 em{background:#fff0ed;color:#e84c35}
.featured-body-v782 h3{margin:8px 0 5px;font-size:18px;line-height:1.35}
.featured-value-v782{font-size:18px;font-weight:950;color:#2563eb}.featured-value-v782 del{font-size:11px;color:#94a3b8;font-weight:500}
.featured-expiry-v782{margin-top:5px;color:#e11d48;font-size:10px;font-weight:800}
.featured-body-v782 p{margin:10px 0 12px;color:#64748b;font-size:11px;line-height:1.6;max-height:100px;overflow:auto}
.featured-shop-actions-v782{display:grid;grid-template-columns:40px 38px 40px 1fr;gap:7px;align-items:center}
.featured-shop-actions-v782>button{height:40px;border:1px solid #dbe5f0;border-radius:11px;background:#fff;font-weight:900}
.featured-shop-actions-v782 strong{text-align:center}
.featured-primary-v782{min-height:42px;border:0;border-radius:12px;background:linear-gradient(135deg,#2478e8,#3b91f7);color:#fff;font-weight:900}
.featured-redeem-v782{width:100%}.featured-redeem-v782:disabled{background:#cbd5e1;color:#64748b}
.featured-popup-open-v782{overflow:hidden}

.reward-decision-v782{z-index:999990}
.reward-decision-box-v782{position:relative;width:min(410px,100%);padding:24px 20px 20px;border-radius:22px;background:#fff;text-align:center;box-shadow:0 26px 90px rgba(15,23,42,.34)}
.reward-decision-icon-v782{width:58px;height:58px;margin:0 auto 10px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#22c55e,#10b981);color:#fff;font-size:28px;font-weight:950}
.reward-decision-box-v782 h3{margin:0;font-size:20px}.reward-decision-box-v782 p{margin:8px auto 16px;max-width:330px;color:#64748b;font-size:11px;line-height:1.55}
.reward-decision-box-v782>div:last-child{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.reward-decision-box-v782 button[data-choice]{min-height:44px;border:1px solid #dbe5f0;border-radius:12px;background:#fff;color:#334155;font-weight:900}
.reward-decision-box-v782 button[data-choice].primary{border-color:#2563eb;background:#2563eb;color:#fff}

@media(max-width:760px){
  .promotion-rail-v782{margin:10px 0 14px}
  .featured-card-v782{flex-basis:210px;min-height:66px;padding:6px}
  .featured-card-v782 .promotion-thumb-v775{width:62px;height:52px;flex-basis:62px}
  .featured-popup-v782{place-items:end center;padding:0}
  .featured-box-v782{width:100%;max-height:82dvh;border-radius:22px 22px 0 0;grid-template-rows:minmax(135px,32vw) minmax(0,1fr);padding-bottom:env(safe-area-inset-bottom)}
  .featured-body-v782{padding:14px 14px 16px}
  .featured-body-v782 h3{font-size:16px}
  .featured-body-v782 p{max-height:72px}
  .featured-shop-actions-v782{grid-template-columns:38px 34px 38px 1fr}
  .reward-decision-v782{place-items:end center;padding:0}
  .reward-decision-box-v782{width:100%;border-radius:22px 22px 0 0;padding:22px 16px calc(18px + env(safe-area-inset-bottom))}
  .reward-decision-box-v782>div:last-child{grid-template-columns:1fr}
}

/* V782: keep the Rewards featured popup compact too; no image/body overlap. */
.reward-promotion-box-v780{max-height:min(720px,calc(100dvh - 36px));display:grid;grid-template-rows:minmax(150px,210px) minmax(0,1fr);overflow:hidden}
.reward-promotion-image-v780{height:auto;min-height:0}
.reward-promotion-body-v780{min-height:0;overflow:auto;padding:15px 16px 17px}
.reward-promotion-body-v780 p{max-height:90px}
@media(max-width:760px){
  .reward-promotion-box-v780{max-height:82dvh;grid-template-rows:minmax(130px,32vw) minmax(0,1fr)}
  .reward-promotion-image-v780{height:auto}
  .reward-promotion-body-v780{padding:14px 14px calc(16px + env(safe-area-inset-bottom))}
  .reward-promotion-body-v780 p{max-height:70px}
}
