/* Scoped purchase surfaces: header never belongs to the scrolling content. */
body.public-home.sn-purchase-open{position:fixed;inset-inline:0;top:var(--sn-purchase-scroll-top,0px);width:100%;overflow:hidden}
#purchasePlanModal.sn-plan-overlay{height:100dvh!important;padding:max(10px,env(safe-area-inset-top,0px)) max(10px,env(safe-area-inset-right,0px)) max(10px,env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px))!important}
#purchasePlanModal.sn-plan-overlay>.sn-plan-dialog[role="dialog"]{display:flex!important;flex-direction:column!important;padding-top:0!important;overflow:hidden!important;max-height:calc(100dvh - max(10px,env(safe-area-inset-top,0px)) - max(10px,env(safe-area-inset-bottom,0px)))!important;min-height:0}
#purchasePlanModal.sn-plan-overlay>.sn-plan-dialog[role="dialog"]::before{display:none!important}
#purchasePlanModal .sn-plan-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto;min-height:54px;padding:5px 10px 5px 14px;background:#0c0d10;border-bottom:1px solid rgba(255,255,255,.12);color:#bfc1c8;font-size:12px}
#purchasePlanModal .sn-plan-toolbar .sn-plan-close{position:static!important;display:grid!important;place-items:center!important;flex:0 0 44px!important;width:44px!important;height:44px!important;min-height:44px!important;font-size:28px!important;touch-action:manipulation}
#purchasePlanModal #purchasePlanDetail{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
/* The checkout inherits the site's font, including inputs and trust badges. */
body.sn-checkout{font-family:Vazirmatn,Tahoma,sans-serif;-webkit-text-size-adjust:100%}
.sn-checkout .checkout-discount-row{display:flex;gap:8px;align-items:stretch}
.sn-checkout .checkout-discount-row input{flex:1;min-width:0;margin:0;font-family:inherit;font-size:16px}
.sn-checkout .checkout-discount-row button{flex:0 0 auto;white-space:nowrap;margin:0;font-family:inherit}
.sn-checkout>.site-footer{min-height:0!important;height:auto!important;margin-top:12px;padding:12px 16px;display:block}
.sn-checkout>.site-footer #enamad-badge{min-height:0;gap:22px;margin:0;flex-wrap:nowrap}
.sn-checkout>.site-footer #enamad-badge img,.sn-checkout>.site-footer #enamad-badge iframe{width:auto!important;max-width:90px!important;height:64px!important;object-fit:contain}
@media(max-width:760px){
 .sn-checkout>.navbar{min-height:54px;padding:calc(8px + env(safe-area-inset-top,0px)) 14px 8px;margin:0}
 .sn-checkout .brand-logo{height:36px;width:auto;max-width:62px}
 .sn-checkout .brand-title{font-size:13px;line-height:1.5}
 .sn-checkout .brand-sub{font-size:10px;line-height:1.4}
 .sn-checkout>.form-box{box-sizing:border-box;width:calc(100% - 24px);max-width:480px;margin:12px auto 8px;padding:14px;border-radius:18px}
 .sn-checkout .form-box>h2{font-size:20px;line-height:1.5;margin:0 0 10px}
 .sn-checkout #planBox{padding:12px;margin-bottom:10px!important;border-radius:14px}
 .sn-checkout #planBox h3{font-size:16px;line-height:1.6;margin:0 0 5px}
 .sn-checkout #planBox .desc{font-size:12px;line-height:1.8;margin:0 0 6px}
 .sn-checkout #planBox .price{font-size:23px;line-height:1.6;margin:6px 0 0}
 .sn-checkout #planBox .price small{font-size:11px;line-height:1.7}
 .sn-checkout .checkout-private-selection{margin:7px 0;padding:7px 9px;gap:3px;border-radius:10px}
 .sn-checkout .checkout-private-selection span{font-size:11px;line-height:1.8}
 .sn-checkout .form-box label{font-size:12px;line-height:1.7;margin-bottom:5px}
 .sn-checkout #durationOptionsBox{margin-bottom:10px!important}
 .sn-checkout #durationSummary{padding:9px 10px;gap:8px;min-height:44px;border-radius:12px;flex-wrap:wrap}
 .sn-checkout #durationSummaryText{font-size:12px;line-height:1.7}
 .sn-checkout #durationSummary a{min-height:30px;display:inline-flex;align-items:center;white-space:nowrap}
 .sn-checkout #durationOptionsList{gap:6px}
 .sn-checkout #durationOptionsList label{margin:0;padding:8px;font-size:12px}
 .sn-checkout #discount{font-family:inherit;font-size:16px;min-height:44px;padding:8px 10px;border-radius:10px}
 .sn-checkout .checkout-discount-row .btn{min-height:44px;padding:8px 12px;font-size:12px;border-radius:10px}
 .sn-checkout #finalPriceBox{margin-top:8px!important;font-size:13px;line-height:1.7}
 .sn-checkout #finalPriceBox:empty{display:none}
 .sn-checkout #payBtn,.sn-checkout #cryptoPayBtn{margin-top:10px!important;min-height:46px;padding:9px 10px;font-family:inherit;font-size:14px;line-height:1.7;border-radius:12px}
 .sn-checkout>.site-footer{margin-top:0;padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px))}
 .sn-checkout>.site-footer #enamad-badge{gap:24px}
 .sn-checkout>.site-footer #enamad-badge img,.sn-checkout>.site-footer #enamad-badge iframe{height:52px!important;max-width:76px!important}
}
