#info-dialog.purchase-modal{width:min(520px,calc(100vw - 24px))}
#info-dialog.purchase-modal #info-content{padding:9px 16px 16px;max-height:calc(100dvh - 72px)}
.purchase-modal .modal-back{min-height:32px}
.purchase-modal .item-overview{grid-template-columns:54px minmax(0,1fr);margin:3px 0 2px}
.purchase-modal .detail-photo{height:67px}
.purchase-modal .item-overview strong{font-size:.82rem}
.purchase-modal .item-overview p{font-size:.68rem;margin:3px 0}
.purchase-modal .pack-equation{height:53px;display:flex;align-items:center;justify-content:center;gap:10px;color:#1d6689}
.purchase-modal .pack-equation svg{width:42px;height:39px;flex:none}
.purchase-modal .pack-equation b{font-size:1.05rem;color:#0c4a71}
.purchase-modal .pack-equation{gap:9px}
.purchase-modal .pack-equation-box,.purchase-modal .pack-equation-units{display:inline-flex;align-items:center;justify-content:center;height:42px}
.purchase-modal .pack-equation .pack-equation-box svg{width:42px;height:42px}
.purchase-modal .pack-equation .pack-equation-units{gap:2px}
.purchase-modal .pack-equation .pack-equation-units svg{width:36px;height:36px;margin-left:-6px}
.purchase-modal .pack-equation .pack-equation-units b{font-size:1.8rem;line-height:1;font-weight:800}
.purchase-modal .pack-equation .pack-equation-equals{font-size:1.25rem;font-weight:700}
.purchase-modal .pack-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:9px}
.purchase-modal .pack-option,.purchase-modal .pack-option[aria-pressed=true]{height:112px;min-height:112px;padding:9px 7px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:0;border-radius:10px;text-align:left}
.purchase-modal .pack-option[aria-pressed=true]{padding:8px 6px}
.purchase-modal .pack-title{display:flex;align-items:flex-start;gap:4px;width:100%;height:34px;min-height:34px;font-size:.65rem;line-height:1.08}
.purchase-modal .pack-tier-icon{width:23px;height:25px;flex:none;display:block;color:#28718f}
.purchase-modal .pack-tier-icon>svg,.purchase-modal .pack-tier-icon>svg[viewBox="0 0 48 48"]{width:23px;height:25px}
.purchase-modal .pack-tier-copy{display:flex;flex-direction:column;gap:1px;padding-top:4px;white-space:nowrap;font-weight:800}
.purchase-modal .pack-tier-copy small{display:block;margin:0;font-size:.53rem;line-height:1.08;color:#607785;font-weight:500}
.purchase-modal .pack-cost{display:block;width:100%;text-align:left;margin-top:7px}
.purchase-modal .pack-cost strong{display:block;font-size:.94rem;line-height:1.15;white-space:nowrap;color:#0c3656}
.purchase-modal .pack-cost>small{display:block;margin-top:4px;font-size:.55rem;color:#607785;white-space:nowrap}
.purchase-modal .pack-quantity-label{margin:15px 0 6px;font-size:.69rem;text-transform:uppercase}
.purchase-modal .pack-quantity{height:44px;max-width:216px;grid-template-columns:46px 1fr 46px}
.purchase-modal .pack-preview{margin:12px 0;padding:11px 0;font-size:.69rem;text-transform:uppercase}
.purchase-modal .pack-preview strong{font-size:1rem}
.purchase-modal .pack-add{min-height:44px;text-transform:uppercase;font-size:.7rem}
@media(max-width:365px){
  #info-dialog.purchase-modal #info-content{padding-left:11px;padding-right:11px}
  .purchase-modal .pack-options{gap:4px}
  .purchase-modal .pack-option,.purchase-modal .pack-option[aria-pressed=true]{padding-left:4px;padding-right:4px}
  .purchase-modal .pack-title{gap:2px;font-size:.59rem}
  .purchase-modal .pack-tier-icon,.purchase-modal .pack-tier-icon>svg,.purchase-modal .pack-tier-icon>svg[viewBox="0 0 48 48"]{width:19px}
  .purchase-modal .pack-cost strong{font-size:.8rem}
  .purchase-modal .pack-cost>small{font-size:.48rem}
}

/* Keep the purchase action visible in desktop windows with limited height. */
@media (hover:hover) and (pointer:fine){
  #info-dialog.purchase-modal #info-content{padding:5px 16px 9px}
  .purchase-modal .modal-back{min-height:24px;padding:0}
  .purchase-modal .item-overview{grid-template-columns:44px minmax(0,1fr);margin:0 0 1px;gap:9px}
  .purchase-modal .detail-photo{height:49px}
  .purchase-modal .item-overview p{margin:2px 0}
  .purchase-modal .pack-equation{height:37px;gap:5px}
  .purchase-modal .pack-equation-box,.purchase-modal .pack-equation-units{height:34px}
  .purchase-modal .pack-equation .pack-equation-box svg{width:34px;height:34px}
  .purchase-modal .pack-equation .pack-equation-units svg{width:29px;height:29px}
  .purchase-modal .pack-equation .pack-equation-units b{font-size:1.45rem}
  .purchase-modal .pack-options{margin-top:3px}
  .purchase-modal .pack-option,.purchase-modal .pack-option[aria-pressed=true]{height:85px;min-height:85px;padding:6px 7px}
  .purchase-modal .pack-option[aria-pressed=true]{padding:5px 6px}
  .purchase-modal .pack-title{height:29px;min-height:29px}
  .purchase-modal .pack-cost{margin-top:3px}
  .purchase-modal .pack-cost>small{margin-top:2px}
  .purchase-modal .pack-quantity-label{margin:7px 0 3px}
  .purchase-modal .pack-quantity{height:36px}
  .purchase-modal .pack-preview{margin:7px 0;padding:6px 0}
  .purchase-modal .pack-add{min-height:39px;position:sticky;bottom:0;z-index:2}
}
