/* Public checkout only: tighten the card, keep actions in the natural reading order. */
.shop{background:linear-gradient(160deg,#fcfaff 0%,#f2eaff 100%)}
.shop::before,.shop::after{opacity:.25;pointer-events:none}
.shop-card{border:1px solid #eadff7;box-shadow:0 8px 28px #4523710c;background:#fff}
.shop-steps{border-bottom-color:#eee7f5}.shop-step.done>span{box-shadow:none}
.shop-order-details{background:#fcfaff}.shop-order-details>div+div{border-top:1px solid #eee7f5}
.shop-qr{background:#fff;border-color:#e4d5f4}.shop-countdown{color:#6a359f!important;background:#f5efff}
@media(max-width:600px){
 .shop-main{padding:6px 10px 4px!important}.shop-card,.shop-card:not(:has(.shop-order-details)),.shop-card:has(>.shop-primary){padding:12px 14px!important}
 .shop-card-top{margin-bottom:6px}.shop-chip{background:#f4ecfe;letter-spacing:1px}.shop-steps{margin-bottom:10px;padding-bottom:10px}.shop-card h2{font-size:21px;letter-spacing:-.5px}
 .shop-phone{padding:3px 10px!important}.shop-phone input{min-height:38px}.shop-promo{margin:8px 0;padding:8px 10px;border-radius:12px}.shop-amounts{gap:6px!important}.shop-amounts button{border-radius:12px!important}
 .shop-custom{border-radius:12px!important}.shop-summary{padding:8px 10px;margin:6px 0;border-radius:12px}.shop-summary strong{font-size:22px}.shop-card form>.shop-note{margin:5px 0 8px;line-height:1.4}
 .shop-card>form>.shop-primary,.shop-card>.shop-primary{position:static;width:100%;max-width:none;margin:8px 0 0;min-height:46px;padding:11px 12px;box-shadow:0 4px 12px #7425c924;border-radius:14px}
 .shop-footer{padding:8px 0 10px;border:0;opacity:.7;justify-content:center}.shop-footer>span:nth-child(2){display:none}
 .shop-order-id{padding-top:8px;border-top:1px solid #eee7f5}.shop-order-id+.shop-note{margin:4px 0;line-height:1.4}.shop-cancel{border:1px solid #e6d9f4;border-radius:12px;width:100%;margin:6px 0 0;justify-content:center;font-size:12px}.shop-support{margin:3px 0 0;font-size:11px}.shop-back{padding:5px 10px;margin-bottom:6px;font-size:12px}
 .shop-qr{margin:8px 0;padding:8px 10px}.shop-qr img{margin:6px auto}.shop-order-details{margin:8px 0}.shop-success{padding:14px;margin:8px 0}
}
/* A short phone viewport keeps the next action reachable without a blank card spacer. */
@media(max-width:600px) and (max-height:740px){
 .shop:has(.shop-card>form>.shop-primary),.shop:has(.shop-card>.shop-primary){padding-bottom:66px}
 .shop-card>form>.shop-primary,.shop-card>.shop-primary{position:fixed;left:12px;right:12px;bottom:calc(8px + env(safe-area-inset-bottom));width:calc(100% - 24px);margin:0;z-index:60;border-radius:16px;box-shadow:0 0 0 7px #f8f4ff,0 4px 14px #6429a326}
}
