/* Payhip Express — reusable card Quick Buy dialog and mobile bottom sheet. */
.mtpo-ph-quickbuy,.mtpo-ph-quickbuy *{box-sizing:border-box}
.mtpo-ph-quickbuy[hidden]{display:none!important}
.mtpo-ph-quickbuy{position:fixed;z-index:999999;inset:0;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(13,19,31,.54);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}
.mtpo-ph-quickbuy__panel{display:flex;width:min(100%,520px);max-height:min(88vh,760px);max-height:min(88dvh,760px);flex-direction:column;overflow:hidden;border:1px solid rgba(226,232,241,.9);border-radius:22px;background:#fff;color:#182235;box-shadow:0 28px 90px rgba(12,23,43,.25);animation:mtpo-ph-quickbuy-in .18s ease-out}
.mtpo-ph-quickbuy__head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:23px 24px 17px;border-bottom:1px solid #edf0f5}
.mtpo-ph-quickbuy__eyebrow{display:block;color:#687994;font-size:10px;font-weight:800;letter-spacing:.12em;line-height:1.2}
.mtpo-ph-quickbuy__title{margin:6px 0 0;color:#182235;font-size:20px;font-weight:760;line-height:1.25}
.mtpo-ph-quickbuy__close{display:grid;width:36px;height:36px;flex:0 0 36px;place-items:center;border:1px solid #e1e6ef;border-radius:50%;background:#f8fafc;color:#34425a;font-size:24px;line-height:1;cursor:pointer}
.mtpo-ph-quickbuy__close:hover{background:#eef2f8}
.mtpo-ph-quickbuy__body{min-height:130px;overflow:auto;padding:18px 24px 8px;overscroll-behavior:contain}
.mtpo-ph-quickbuy__status{margin:0 0 14px;color:#64748b;font-size:14px;line-height:1.5}
.mtpo-ph-quickbuy__status[hidden]{display:none}
.mtpo-ph-quickbuy__groups{display:grid;gap:16px}
.mtpo-ph-quickbuy__group{min-width:0;margin:0;padding:0;border:0}
.mtpo-ph-quickbuy__label{display:block;margin:0 0 8px;padding:0;color:#34425a;font-size:12px;font-weight:750;line-height:1.3}
.mtpo-ph-quickbuy__choices{display:flex;flex-wrap:wrap;gap:8px}
.mtpo-ph-quickbuy__choice{min-height:39px;padding:8px 13px;border:1px solid #d8e0ec;border-radius:10px;background:#fff;color:#263650;font:inherit;font-size:13px;font-weight:650;line-height:1.2;cursor:pointer;transition:border-color .15s ease,background-color .15s ease,color .15s ease,box-shadow .15s ease}
.mtpo-ph-quickbuy__choice:hover{border-color:#8fa4c2;background:#f8faff}
.mtpo-ph-quickbuy__choice.is-selected{border-color:#263e72;background:#263e72;color:#fff;box-shadow:0 3px 10px rgba(38,62,114,.15)}
.mtpo-ph-quickbuy__choice:focus-visible,.mtpo-ph-quickbuy__qty-button:focus-visible,.mtpo-ph-quickbuy__buy:focus-visible,.mtpo-ph-quickbuy__close:focus-visible{outline:3px solid #9ebcff;outline-offset:2px}
.mtpo-ph-quickbuy__product-link{width:max-content;color:#3159c7;font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.mtpo-ph-quickbuy__footer{display:grid;gap:12px;padding:16px 24px 22px;border-top:1px solid #edf0f5;background:#fff}
.mtpo-ph-quickbuy__quantity{display:flex;align-items:center;justify-content:space-between;gap:16px}
.mtpo-ph-quickbuy__quantity>.mtpo-ph-quickbuy__label{margin:0}
.mtpo-ph-quickbuy__qty-controls{display:flex;min-height:38px;align-items:center;gap:8px;padding:3px;border:1px solid #e0e6ef;border-radius:11px;background:#f8fafc}
.mtpo-ph-quickbuy__qty-button{display:grid;width:31px;height:30px;place-items:center;border:0;border-radius:8px;background:transparent;color:#243650;font-size:18px;line-height:1;cursor:pointer}
.mtpo-ph-quickbuy__qty-button:hover{background:#eaf0f8}
.mtpo-ph-quickbuy__qty-value{min-width:20px;color:#172339;font-size:14px;font-weight:750;text-align:center}
.mtpo-ph-quickbuy__error{margin:0;color:#a33c3c;font-size:12px;line-height:1.4}
.mtpo-ph-quickbuy__error:empty{display:none}
.mtpo-ph-quickbuy__buy{display:flex;width:100%;min-height:49px;align-items:center;justify-content:center;border:1px solid #203869;border-radius:12px;background:#203869;color:#fff;font:inherit;font-size:15px;font-weight:780;cursor:pointer;transition:background-color .15s ease,box-shadow .15s ease}
.mtpo-ph-quickbuy__buy:hover:not(:disabled){background:#172d59;box-shadow:0 8px 18px rgba(32,56,105,.2)}
.mtpo-ph-quickbuy__buy:disabled{border-color:#d5dce7;background:#e8ecf2;color:#8792a4;cursor:not-allowed}
.mtpo-ph-quickbuy__buy.is-loading{opacity:.75;cursor:progress}
body.mtpo-ph-quickbuy-open{overflow:hidden}
@keyframes mtpo-ph-quickbuy-in{from{opacity:0;transform:translateY(6px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:600px){.mtpo-ph-quickbuy{align-items:flex-end;padding:0;background:rgba(13,19,31,.48)}.mtpo-ph-quickbuy__panel{width:100%;max-height:92vh;max-height:92dvh;border-radius:22px 22px 0 0;border-right:0;border-bottom:0;border-left:0;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -16px 50px rgba(12,23,43,.2);animation:mtpo-ph-quickbuy-sheet-in .2s ease-out}.mtpo-ph-quickbuy__head{padding:19px 20px 15px}.mtpo-ph-quickbuy__title{font-size:18px}.mtpo-ph-quickbuy__body{padding:16px 20px 10px}.mtpo-ph-quickbuy__footer{padding:13px 20px 17px;gap:10px}.mtpo-ph-quickbuy__choices{gap:7px}.mtpo-ph-quickbuy__choice{min-height:37px;padding:8px 11px;font-size:12px}.mtpo-ph-quickbuy__buy{min-height:47px}}
@keyframes mtpo-ph-quickbuy-sheet-in{from{opacity:.7;transform:translateY(22px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.mtpo-ph-quickbuy__panel{animation:none}.mtpo-ph-quickbuy__choice,.mtpo-ph-quickbuy__buy{transition:none}}
