/*! © 2569 เที่ยวนี่เหอะ (tiaewneehur.com) สงวนลิขสิทธิ์ · TNH-ECAEB7B82022 */
/* ใบยืนยันการจอง — js/142-booking-receipt.js */
.tnh-rc{position:relative;width:100%;max-width:380px;margin:0 auto;color:#0f1d26;background:#fffdf8;border-radius:22px;overflow:hidden;text-align:left;box-shadow:0 18px 44px rgba(0,0,0,.55);font-family:inherit}
.tnh-rc-top{position:relative;height:150px;background:#06202b linear-gradient(160deg,#0d3a33,#04161d);overflow:hidden}
.tnh-rc-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tnh-rc.no-photo .tnh-rc-photo{display:none}
.tnh-rc-top::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,18,26,.2),rgba(4,18,26,.92))}
.tnh-rc-brand{position:absolute;z-index:2;left:16px;top:14px;display:flex;align-items:center;gap:10px;color:#fff}
.tnh-rc-brand img{width:44px;height:44px;border-radius:50%;border:2px solid rgba(255,255,255,.85);background:#fff;object-fit:cover}
.tnh-rc-brand b{display:block;font-size:16px;line-height:1.2}.tnh-rc-brand small{font-size:10.5px;opacity:.8}
.tnh-rc-st{position:absolute;z-index:2;right:14px;top:16px;padding:5px 11px;border-radius:999px;font-size:12px;font-weight:800;background:#16a34a;color:#fff;box-shadow:0 4px 12px rgba(22,163,74,.45)}
.tnh-rc-st.full{background:#0d9488}
.tnh-rc-st.wait{background:#f59e0b;box-shadow:0 4px 12px rgba(245,158,11,.4)}
.tnh-rc-title{position:absolute;z-index:2;left:16px;right:16px;bottom:13px;color:#fff}
.tnh-rc-title small{display:block;font-size:10.5px;letter-spacing:1.6px;color:#5eead4;font-weight:700}
.tnh-rc-title div{font-size:20px;font-weight:800;margin-top:2px;line-height:1.25}
.tnh-rc-body{padding:15px 17px 4px}
.tnh-rc-no{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;padding-bottom:11px;border-bottom:1.5px dashed #d7dde1}
.tnh-rc-no small,.tnh-rc-grid small{display:block;font-size:10.5px;color:#7a8a93}
.tnh-rc-no b{font-size:18px;letter-spacing:1px;font-family:ui-monospace,Menlo,Consolas,monospace;color:#0b3a4a}
.tnh-rc-no .r{text-align:right}.tnh-rc-no .r b{font-size:12.5px;letter-spacing:0;font-family:inherit;color:#0f1d26;white-space:nowrap}
.tnh-rc-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;padding:11px 0;border-bottom:1.5px dashed #d7dde1}
.tnh-rc-grid b{font-size:13.5px;color:#0f1d26}
.tnh-rc-grid .go b{color:#0b6b5f}
.tnh-rc-pax{position:relative;padding:10px 0;border-bottom:1.5px dashed #d7dde1}
.tnh-rc-h{font-size:11px;font-weight:800;color:#7a8a93;letter-spacing:.4px;margin-bottom:5px}
.tnh-rc-px{display:flex;align-items:center;gap:10px;padding:5px 0}
.tnh-rc-px .seat{min-width:40px;height:30px;padding:0 6px;border-radius:9px;background:#0b3a4a;color:#5eead4;font-weight:800;font-size:12.5px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.tnh-rc-px .n{min-width:0}.tnh-rc-px .n b{font-size:13.5px;display:block;color:#0f1d26;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:210px}.tnh-rc-px .n small{font-size:11px;color:#7a8a93}
.tnh-rc-stamp{position:absolute;right:2px;top:6px;width:88px;height:88px;border-radius:50%;border:3px solid rgba(22,163,74,.55);color:rgba(22,163,74,.75);display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(-14deg);font-weight:900;font-size:13px;line-height:1.15;text-align:center;pointer-events:none}
.tnh-rc-stamp.full{border-color:rgba(13,148,136,.55);color:rgba(13,148,136,.8)}
.tnh-rc-stamp small{font-size:9px;font-weight:700}
.tnh-rc-sum{padding:9px 0 3px}
.tnh-rc-sum .row{display:flex;justify-content:space-between;gap:10px;font-size:13px;padding:3px 0;color:#0f1d26}.tnh-rc-sum .row span{color:#4b5b64}
.tnh-rc-sum .row.paid b{color:#16a34a}
.tnh-rc-sum .row.due{margin-top:6px;padding:10px 12px;border-radius:12px;background:#fff4e0;border:1px solid #fcd9a0}
.tnh-rc-sum .row.due span{color:#9a5b00;font-weight:700}.tnh-rc-sum .row.due b{color:#b45309;font-size:16px}
.tnh-rc-sum .row.done{margin-top:6px;padding:10px 12px;border-radius:12px;background:#e7f8ef;border:1px solid #a7e3c0}
.tnh-rc-sum .row.done span,.tnh-rc-sum .row.done b{color:#166534;font-weight:700}
.tnh-rc-note{font-size:10.5px;color:#7a8a93;line-height:1.55;padding:9px 0 3px}
.tnh-rc-tear{height:18px;position:relative;margin-top:4px}
.tnh-rc-tear::before{content:"";position:absolute;left:-10px;right:-10px;top:8px;border-top:2px dashed #cfd6db}
.tnh-rc-tear i{position:absolute;top:0;width:20px;height:20px;border-radius:50%;background:#071419}.tnh-rc-tear i.l{left:-10px}.tnh-rc-tear i.r{right:-10px}
.tnh-rc-foot{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:6px 17px 15px;font-size:11px;color:#4b5b64}
.tnh-rc-foot b{color:#06C755}

/* หน้าจองสำเร็จ: ใช้ใบใหม่แทนกล่องเดิม (พื้นหลังป่าทึบเดิมของหน้า 97-forest-page-theme) */
#successPage2.has-tnh-rc #r-receipt-card{display:none}
#succReceiptBox{margin:12px 0 14px}
#successPage2 .succ-sticky-bar{gap:10px}
#successPage2 .succ-save-btn{flex:1;max-width:200px;display:flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:12px;padding:13px 10px;font:inherit;font-size:14px;font-weight:800;color:#fff;background:linear-gradient(135deg,#ef4444,#be123c);box-shadow:0 6px 18px rgba(225,29,72,.35);cursor:pointer}
#successPage2:not(.has-tnh-rc) .succ-save-btn{display:none}
#successPage2.has-tnh-rc .succ-line-btn{flex:1;max-width:200px;font-size:13.5px}
#successPage2 .succ-save-btn:disabled{opacity:.7}

/* เปิดดูจากหน้าโปรไฟล์ */
html.tnh-rc-lock,html.tnh-rc-lock body{overflow:hidden!important}
.tnh-rc-modal{position:fixed;inset:0;z-index:30000;display:flex;align-items:flex-start;justify-content:center;overflow-y:auto;padding:max(18px,env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom));
  background:linear-gradient(180deg,rgba(3,12,18,.88),rgba(2,10,15,.97)),var(--tnh-forest-photo,url('https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=900&q=72')) center/cover no-repeat;animation:fadeUp .25s ease}
.tnh-rc-sheet{position:relative;width:100%;max-width:400px;padding-top:44px}
.tnh-rc-x{position:absolute;right:0;top:0;width:36px;height:36px;border-radius:12px;border:1px solid rgba(255,255,255,.15);background:rgba(9,28,34,.8);color:#e8faff;font-size:16px;cursor:pointer}
.tnh-rc-actions{display:flex;gap:10px;margin-top:14px}
.tnh-rc-save{flex:1;border:0;border-radius:14px;padding:14px;font:inherit;font-size:14.5px;font-weight:800;color:#fff;background:linear-gradient(135deg,#ef4444,#be123c);box-shadow:0 8px 20px rgba(225,29,72,.35);cursor:pointer}
.tnh-rc-save:disabled{opacity:.7}
.tnh-rc-open-btn{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:8px;padding:10px;border-radius:12px;border:1px solid rgba(94,234,212,.3);background:rgba(13,148,136,.12);color:#99f6e4;font:inherit;font-size:13px;font-weight:700;cursor:pointer}

/* รูปสำหรับกดค้างบันทึก (ในแอป LINE) */
.tnh-rc-imgview{position:fixed;inset:0;z-index:30010;background:rgba(0,6,10,.92);display:flex;align-items:center;justify-content:center;padding:18px}
.tnh-rc-imgbox{width:100%;max-width:400px;text-align:center;color:#e2e8f0}
.tnh-rc-imgbox p{margin:0 0 10px;font-size:14px}
.tnh-rc-imgbox img{width:100%;border-radius:18px;-webkit-touch-callout:default;user-select:auto}
.tnh-rc-imgbox button{margin-top:12px;padding:11px 28px;border-radius:12px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:#fff;font:inherit;font-weight:700}

/* การ์ดทริปในโปรไฟล์: ปุ่มใบยืนยัน วางเหนือป้าย "จ่ายครบแล้ว" / ปุ่ม "ชำระส่วนที่เหลือ" (มุมขวาล่าง) */
.hist-act-stack{position:absolute;right:12px;bottom:12px;z-index:3;display:flex;flex-direction:column;align-items:stretch;gap:7px;min-width:132px}
.hist-act-stack>.remain-pay-btn,.hist-act-stack>.paid-full-badge{position:static!important;right:auto!important;bottom:auto!important;justify-content:center;margin:0}
.hist-rc-btn{display:flex;align-items:center;justify-content:center;gap:6px;padding:7px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.28);background:rgba(4,16,22,.62);color:#f1f5f9;font:inherit;font-size:11.5px;font-weight:700;cursor:pointer;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 4px 14px rgba(0,0,0,.3)}
.hist-rc-btn:active{transform:scale(.96)}
.hist-rc-btn span{font-size:13px}
/* ชื่อทริปยาวๆ ไม่ให้วิ่งไปทับปุ่มมุมขวา */
.hist-card-overlay.has-act h4,.hist-card-overlay.has-act p{padding-right:150px}
