/*
 * มติ 803 (เจ้าของสั่ง 7 ต.ค. 2569) — หน้าโปรแถมขนม `/promo/gift-snack` ตามไฟล์ดีไซน์ gift-snack-redesign
 * ⚠ ทุกกฎอยู่ใต้ `.gp2` — ไฟล์นี้โหลดคู่ rewards.css ในทุกหน้า `page="rewards"`
 * ⚠ อยู่ในกรอบ `shop-main page-pad` ของเว็บ → บล็อกเป็นกล่องมุมมน ไม่ยืดเต็มจอ (ไม่ใช้ 100vw = จอเลื่อนข้าง)
 * ⚠ ฟอนต์ของเว็บ ไม่โหลด Kanit/Prompt ของไฟล์ดีไซน์
 */
.gp2 { --gp-ink: #17191d; --gp-muted: #5f646b; --gp-yellow: #ffd72e; --gp-line: #e6e6e3; --gp-red: #c62620;
       display: grid; gap: 24px; padding: 20px 0 56px; color: var(--gp-ink); }
.gp2 h1, .gp2 h2, .gp2 h3, .gp2 p { margin-top: 0; }

.gp2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 12px 22px;
           border-radius: 12px; font-weight: 700; text-decoration: none; color: var(--gp-ink); transition: transform .2s, box-shadow .2s; }
.gp2-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px #0002; }
.gp2-btn:focus-visible { outline: 3px solid var(--gp-ink); outline-offset: 2px; }
.gp2-btn-primary { background: var(--gp-yellow); border: 1px solid #e3bb11; }
.gp2-btn-secondary { background: #fff; border: 1px solid #c7c9cc; }
.gp2-btn-dark { background: var(--gp-ink); color: #fff; }

.gp2-kicker { margin: 0 0 8px; color: #b02e23; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.gp2-title { margin: 0 0 12px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.15; font-weight: 800; }
.gp2-sub { color: var(--gp-muted); font-size: 16px; }

/* ── หัวหน้า ── */
.gp2-hero { display: grid; grid-template-columns: 1.04fr .96fr; gap: 16px; align-items: center; min-height: 540px; padding: 32px clamp(20px, 4vw, 48px);
            border-radius: 16px; overflow: hidden; background: radial-gradient(circle at 73% 40%, #fff9d9 0, #fff9d9 18%, transparent 49%), linear-gradient(115deg, #fffdf7, #fff7df); }
.gp2-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 8px 14px; border: 1px solid #e8d58a; border-radius: 99px; background: #fff; font-size: 13px; font-weight: 700; }
.gp2-eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: #ea3f35; }
.gp2-hero h1 { margin: 20px 0 16px; font-size: clamp(40px, 5vw, 72px); line-height: 1.05; font-weight: 800; letter-spacing: -.01em; }
.gp2-hero h1 em { font-style: normal; color: #e9362b; }
.gp2-lead { max-width: 590px; font-size: 18px; line-height: 1.75; }
.gp2-lead strong { color: #ca2f28; }
.gp2-notes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; padding: 0; }
.gp2-notes li { padding: 8px 12px; border: 1px solid #eedfab; border-radius: 10px; background: #fff; font-size: 13px; font-weight: 600; }
.gp2-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.gp2-ended { margin: 0; padding: 14px 16px; border-left: 4px solid var(--gp-ink); background: #fff; font-weight: 700; }
.gp2-fine { margin: 14px 0 0; color: var(--gp-muted); font-size: 13px; }
.gp2-art { position: relative; height: 480px; margin: 0; }
.gp2-halo { position: absolute; inset: 40px 12px 15px; border-radius: 50%; background: #ffdc46; box-shadow: inset 0 0 0 26px #ffe679; }
.gp2-halo::after { content: ""; position: absolute; inset: 36px; border: 2px dashed #ffffffa9; border-radius: 50%; }
.gp2-snack { position: absolute; object-fit: contain; filter: drop-shadow(0 20px 18px #4c240039); }
.gp2-snack-main { width: 50%; height: 75%; left: 28%; top: 10%; transform: rotate(6deg); z-index: 3; }
.gp2-snack-left { width: 42%; height: 67%; left: 1%; top: 22%; transform: rotate(-15deg); z-index: 2; }
.gp2-snack-right { width: 41%; height: 63%; right: 0; top: 24%; transform: rotate(14deg); z-index: 2; }
.gp2-mascot { position: absolute; left: -6%; bottom: -10px; z-index: 4; width: 33%; height: auto; max-height: 260px; object-fit: contain; filter: drop-shadow(0 12px 10px #0002); }
.gp2-sticker { position: absolute; right: 0; top: 22px; z-index: 5; padding: 8px 14px; border: 3px solid var(--gp-ink); border-radius: 18px; background: #fff;
               color: var(--gp-red); font-size: 22px; font-weight: 800; transform: rotate(7deg); box-shadow: 6px 6px 0 var(--gp-ink); }

/* ── 3 ขั้นตอน ── */
.gp2-how { padding: clamp(32px, 5vw, 60px) clamp(20px, 4vw, 48px); border-radius: 16px; background: #191b1f; color: #fff; }
.gp2-how .gp2-kicker { color: var(--gp-yellow); }
.gp2-how .gp2-sub { color: #c5c6c9; }
.gp2-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; }
.gp2-steps li { padding: 24px; border: 1px solid #484a4d; border-radius: 18px; background: #2b2d31; }
.gp2-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gp-yellow); color: var(--gp-ink); font-size: 20px; font-weight: 800; }
.gp2-steps h3 { margin: 16px 0 8px; font-size: 22px; }
.gp2-steps p { margin: 0; color: #d2d2d2; font-size: 14px; line-height: 1.7; }

/* ── ของขวัญ ── */
.gp2-gift { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 52px); align-items: center; padding: clamp(24px, 4vw, 40px) 0; }
.gp2-gift-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 360px; border-radius: 24px; overflow: hidden; background: #fff4cc; }
.gp2-gift-visual img { width: 38%; height: auto; max-height: 310px; object-fit: contain; filter: drop-shadow(0 16px 14px #0002); }
.gp2-gift-visual img:nth-child(1) { transform: rotate(-12deg) translateX(26px); }
.gp2-gift-visual img:nth-child(2) { transform: rotate(7deg) translateX(-20px); }
.gp2-gift-visual img:nth-child(3) { transform: rotate(16deg) translateX(-75px); }
.gp2-gift-copy p { line-height: 1.8; }
.gp2-disclose { margin: 18px 0 22px; padding: 13px 16px; border-left: 4px solid var(--gp-yellow); background: #f5f5f3; color: #555; font-size: 14px; }

/* ── เช็กสิทธิ์ ── */
.gp2-elig { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 38px; align-items: center; padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 48px); border-radius: 16px; background: #f5f5f2; }
.gp2-elig-box { padding: 28px; border: 1px solid var(--gp-line); border-radius: 22px; background: #fff; box-shadow: 0 12px 30px #1111; }
.gp2-elig-box h3 { margin: 0 0 8px; font-size: 24px; }
.gp2-elig-box p { color: var(--gp-muted); font-size: 15px; line-height: 1.7; }
.gp2-elig-box .gp2-btn { width: 100%; }
.gp2-elig-mascot { float: right; width: 130px; height: auto; margin: -50px 0 0 8px; }

/* ── เงื่อนไข ── */
.gp2-rules { padding-top: 12px; }
.gp2-rules details { padding: 16px 0; border-bottom: 1px solid var(--gp-line); }
.gp2-rules summary { display: flex; justify-content: space-between; gap: 16px; min-height: 28px; cursor: pointer; list-style: none; font-weight: 700; }
.gp2-rules summary::-webkit-details-marker { display: none; }
.gp2-rules summary::after { content: "+"; font-size: 23px; line-height: 1; }
.gp2-rules details[open] summary::after { content: "−"; }
.gp2-rules details p { margin: 8px 0 0; color: #5b6065; font-size: 15px; line-height: 1.8; }

/* ── ปิดท้าย ── */
.gp2-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 36px clamp(20px, 4vw, 48px); border-radius: 16px; background: var(--gp-yellow); }
.gp2-cta h2 { margin: 0 0 4px; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; }
.gp2-cta p { margin: 0; }

@media (max-width: 860px) {
    .gp2-hero { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; padding-bottom: 0; }
    .gp2-art { width: 100%; max-width: 560px; height: 400px; margin: 8px auto 0; }
    .gp2-steps, .gp2-gift, .gp2-elig { grid-template-columns: minmax(0, 1fr); }
    .gp2-elig-mascot { display: none; }
}
@media (max-width: 580px) {
    .gp2-hero h1 { font-size: 40px; }
    .gp2-lead { font-size: 16px; }
    .gp2-notes li { font-size: 12px; }
    .gp2-actions .gp2-btn, .gp2-cta .gp2-btn { width: 100%; }
    .gp2-art { height: 320px; }
    .gp2-sticker { top: 8px; right: 6px; font-size: 17px; }
    .gp2-mascot { left: -4%; width: 34%; }
    .gp2-gift-visual { min-height: 260px; }
    .gp2-gift-visual img { max-height: 220px; }
    .gp2-cta { display: block; }
    .gp2-cta .gp2-btn { margin-top: 18px; }
}
