/* Numpad กรอกจำนวน (กดที่ตัวเลข) */
.gp-shop-package-card__qty-value, .gp-shop-product-modal__qty-bar-value, .gp-shop-gift-modal__qty-value { cursor: pointer; }
.ps-numpad {
  position: fixed; z-index: 100000; display: none; width: 180px; box-sizing: border-box;
  padding: 10px; border-radius: 12px; background: #1b2735; border: 1px solid #334e68;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.ps-numpad.is-open { display: block; }
.ps-numpad__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; padding: 6px 10px; border-radius: 8px; background: #333333; }
.ps-numpad__value { font-family: "Google Sans", sans-serif; font-weight: 700; font-size: 22px; line-height: 1.3; color: #facc15; }
.ps-numpad__hint { font-family: "Google Sans", sans-serif; font-size: 12px; line-height: 1.3; color: #9fb3c8; }
.ps-numpad__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ps-numpad__key {
  height: 40px; cursor: pointer; border: 1px solid #334e68; border-radius: 8px;
  background: #2a3a4d; color: #f0f4f8; font-family: "Google Sans", sans-serif; font-weight: 600; font-size: 16px;
}
.ps-numpad__key:hover { background: #38506a; }
.ps-numpad__key:active { transform: scale(.95); }
.ps-numpad__key--ok { background: #facc15; border-color: #facc15; color: #061221; }
.ps-numpad__key--ok:hover { background: #fde047; }

/* ปุ่ม MAX (หน้า Shop) */
.ps-qty-max {
  flex: 0 0 auto; cursor: pointer; border: 1px solid #627d98; border-radius: 6px; background: transparent;
  color: #f0f4f8; font-family: "Google Sans", sans-serif; font-weight: 600; font-size: 12px; line-height: 1.2; padding: 4px 8px;
}
.ps-qty-max:hover { background: rgba(255, 255, 255, .1); }
.ps-qty-max:active { transform: scale(.96); }
.gp-shop-gift-modal__qty .ps-qty-max { border-color: #facc15; color: #facc15; }
.gp-shop-package-card__qty-controls .ps-qty-max { font-size: 10px; padding: 2px 5px; margin-left: 6px; }
.gp-shop-product-modal__qty-bar-controls .ps-qty-max { margin-left: 8px; }
.gp-shop-package-card__qty:has(.ps-qty-max) { padding: 0 10px; gap: 6px; }
.gp-shop-package-card__qty-controls:has(.ps-qty-max) { gap: 6px; }
.gp-shop-package-card__qty-controls .ps-qty-max { margin-left: 2px; }
.ps-qty-max[hidden] { display: none !important; }

/* modal ส่งของขวัญ: คอลัมน์จำนวนแคบ — บีบ gap/ปุ่มเมื่อมี MAX ไม่ให้ − + ถูกตัด */
.gp-shop-gift-modal__qty:has(.ps-qty-max) { gap: 4px; padding: 0 6px; justify-content: space-between; }
.gp-shop-gift-modal__qty:has(.ps-qty-max) .gp-shop-gift-modal__qty-btn { width: 20px; height: 20px; flex: 0 0 auto; }
.gp-shop-gift-modal__qty:has(.ps-qty-max) .gp-shop-gift-modal__qty-value { min-width: 0; flex: 1 1 auto; }
.gp-shop-gift-modal__qty .ps-qty-max { font-size: 11px; padding: 3px 6px; }
