#ph-stone-cart-checkout{display:none;margin:14px 0 4px;padding:0;border:1px solid #e2e8ee;border-radius:14px;background:#fff;box-shadow:0 10px 28px rgba(23,46,66,.06);overflow:hidden;font-family:inherit;color:#17212b}
#ph-stone-cart-checkout.ph-cart-visible{display:block}
.ph-cart-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid #e6ecf1;background:#fff}
.ph-cart-head strong{font-size:18px;line-height:1.2}.ph-cart-head small{display:block;margin-top:3px;color:#6d7c88;font-size:12px}
.ph-cart-body{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;padding:16px 18px 18px}
.ph-cart-preview-col{min-width:0}.ph-cart-card{position:relative;width:100%;aspect-ratio:1.58/1;border-radius:17px;overflow:hidden;padding:18px;color:#fff;background:linear-gradient(135deg,#15364b 0%,#1c6e9d 48%,#4ca8d3 100%);box-shadow:0 12px 30px rgba(20,89,126,.18)}
.ph-cart-card:before,.ph-cart-card:after{content:"";position:absolute;border-radius:50%;border:34px solid rgba(255,255,255,.07);width:190px;height:190px}.ph-cart-card:before{left:-95px;top:-125px}.ph-cart-card:after{right:-120px;bottom:-145px}
.ph-cart-chip{position:absolute;left:18px;top:18px;width:47px;height:34px;border-radius:8px;background:linear-gradient(135deg,#f9d86f,#e8a92c);box-shadow:inset 0 0 0 1px rgba(104,71,10,.25)}
.ph-cart-contactless{position:absolute;right:18px;top:22px;font-size:25px;font-weight:700;transform:rotate(90deg);opacity:.9}
.ph-cart-number{position:absolute;left:18px;right:18px;top:78px;font-size:18px;font-weight:700;letter-spacing:1.5px;white-space:nowrap}
.ph-cart-meta{position:absolute;left:18px;right:18px;bottom:15px;display:flex;justify-content:space-between;gap:10px;align-items:flex-end}.ph-cart-meta span{display:block;font-size:8px;text-transform:uppercase;opacity:.7}.ph-cart-meta strong{display:block;font-size:11px;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ph-cart-brand{height:25px;max-width:55px;object-fit:contain;filter:drop-shadow(0 1px 2px rgba(0,0,0,.15))}.ph-cart-pagehost{font-size:10px;font-weight:800;letter-spacing:.6px;opacity:.85}
.ph-cart-brands{text-align:center;margin-top:9px;color:#687783;font-size:10px}.ph-cart-brands img{display:block;margin:5px auto 0;max-width:188px;height:auto}
.ph-cart-fields{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px;align-content:start}.ph-cart-field{grid-column:span 12}.ph-cart-field.third{grid-column:span 4}.ph-cart-field label{display:block;margin:0 0 4px;font-weight:600;font-size:12px}.ph-cart-field input,.ph-cart-field select{width:100%;height:38px;border:1px solid #cbd7e1;border-radius:8px;padding:7px 10px;background:#fff;color:#18232c;font-size:14px;box-shadow:none}.ph-cart-field input:focus,.ph-cart-field select:focus{outline:0;border-color:#2f91c2;box-shadow:0 0 0 2px rgba(47,145,194,.12)}
.ph-cart-installment-help{display:block;margin-top:4px;color:#73818c;font-size:10px;line-height:1.35}
.ph-cart-switch-row{grid-column:span 12;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 2px;padding:8px 10px;border:1px solid #e4ebef;border-radius:9px;background:#fbfdfe}.ph-cart-switch-copy strong{display:block;font-size:13px}.ph-cart-switch-copy small{display:block;margin-top:2px;color:#71808d;font-size:11px}.ph-cart-switch{position:relative!important;display:inline-block!important;width:46px!important;height:26px!important;min-width:46px!important;max-width:46px!important;min-height:26px!important;max-height:26px!important;flex:0 0 46px!important;margin:0!important;padding:0!important;border:0!important;border-radius:999px!important;background:transparent!important;background-image:none!important;box-shadow:none!important;outline:0!important;cursor:pointer!important;-webkit-tap-highlight-color:transparent;user-select:none;vertical-align:middle;-webkit-appearance:none!important;appearance:none!important}.ph-cart-switch:before,.ph-cart-switch:after{content:none!important;display:none!important}.ph-cart-slider{position:absolute;display:block;inset:0;background:#c7d0d7;border:0;border-radius:999px;cursor:pointer;transition:background .2s ease,box-shadow .2s ease}.ph-cart-slider:before{content:"";position:absolute;width:20px;height:20px;left:3px;top:3px;background:#fff;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.26);transition:transform .2s ease}.ph-cart-switch[aria-checked="true"] .ph-cart-slider,.ph-cart-switch.is-checked .ph-cart-slider{background:#3bae75}.ph-cart-switch[aria-checked="true"] .ph-cart-slider:before,.ph-cart-switch.is-checked .ph-cart-slider:before{transform:translateX(20px)}.ph-cart-switch:focus-visible .ph-cart-slider{box-shadow:0 0 0 3px rgba(47,145,194,.18)}
.ph-cart-status{grid-column:span 12;display:none;padding:10px 12px;border-radius:8px;font-size:12px;line-height:1.4}.ph-cart-status.info{display:block;background:#eef7fc;color:#225b78}.ph-cart-status.error{display:block;background:#fdeeee;color:#8c2d2d}.ph-cart-status.success{display:block;background:#eaf8f0;color:#236946}
.ph-cart-ready{display:none;grid-column:span 12;padding:13px 14px;border:1px solid #cde9da;border-radius:10px;background:#f1fbf5;align-items:center;justify-content:space-between;gap:14px}.ph-cart-ready.ph-show{display:flex}.ph-cart-ready strong{font-size:13px}.ph-cart-ready small{display:block;margin-top:2px;color:#60736a}.ph-cart-change{border:0;background:transparent;color:#167eaf;font-size:12px;text-decoration:underline;cursor:pointer;padding:5px}
.ph-cart-security{grid-column:span 12;text-align:center;margin-top:2px;padding:9px 10px;border-radius:9px;background:#f7fafc;color:#63727e;font-size:10px}.ph-cart-security strong{display:block;color:#283944;font-size:11px;margin-bottom:2px}.ph-cart-seals{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:7px}.ph-cart-seals img{display:block;max-height:27px;width:auto;max-width:120px}
body.ph-stone-cart-new-card #creditCardInputFields{display:none!important}body.ph-stone-cart-selected #paymentGatewayInput{min-height:0!important}
.ph-stone-parent-frame{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important}.ph-stone-parent-wrap{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important}
.ph-stone-frame-loading{display:flex;align-items:center;justify-content:center;gap:10px;min-height:96px;color:#587080;font-size:13px;background:#fff;border:0;border-radius:12px}.ph-stone-frame-loading:before{content:"";width:20px;height:20px;border:3px solid #dce8ef;border-top-color:#2e90bf;border-radius:50%;animation:phStoneSpin .8s linear infinite}@keyframes phStoneSpin{to{transform:rotate(360deg)}}
@media(max-width:760px){.ph-cart-body{grid-template-columns:1fr;padding:14px}.ph-cart-preview-col{max-width:320px;margin:0 auto;width:100%}.ph-cart-head{padding:14px}.ph-cart-field.third{grid-column:span 12}.ph-cart-card{padding:16px}.ph-cart-number{font-size:17px}}

/* Evita flash do formulário nativo enquanto o WHMCS troca o gateway. */
@supports selector(body:has(input:checked)){
body:has(input[name="paymentmethod"][value="pagehoststone"]:checked) #creditCardInputFields{display:none!important}
body:has(input[name="paymentmethod"][value="pagehoststone"]:checked) #paymentGatewayInput:empty{display:flex;align-items:center;justify-content:center;min-height:96px;color:#587080;font-size:13px;background:#fff;border:0!important;box-shadow:none!important}
body:has(input[name="paymentmethod"][value="pagehoststone"]:checked) #paymentGatewayInput:empty:before{content:"";width:20px;height:20px;margin-right:10px;border:3px solid #dce8ef;border-top-color:#2e90bf;border-radius:50%;animation:phStoneSpin .8s linear infinite}
body:has(input[name="paymentmethod"][value="pagehoststone"]:checked) #paymentGatewayInput:empty:after{content:"Preparando pagamento seguro..."}
}

/* Bootstrap robusto: se o order form atrasar a seleção inicial, o JS continua tentando montar o checkout. */
@supports selector(body:has(input:checked)){
body.ph-stone-cart-load-error:has(input[name="paymentmethod"][value="pagehoststone"]:checked) #paymentGatewayInput:empty:before{content:"!";display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin-right:10px;border:0;background:#fff3cd;color:#8a6500;border-radius:50%;font-weight:800;animation:none}
body.ph-stone-cart-load-error:has(input[name="paymentmethod"][value="pagehoststone"]:checked) #paymentGatewayInput:empty:after{content:"Não foi possível carregar o pagamento com cartão. Selecione outra forma e volte para Cartão de Crédito ou atualize a página.";max-width:520px;line-height:1.4}
}


.ph-cart-cvv-wrap{position:relative}.ph-cart-cvv-wrap input{padding-right:42px!important}.ph-cart-cvv-toggle{position:absolute!important;right:4px!important;top:50%!important;transform:translateY(-50%)!important;width:32px!important;height:30px!important;min-width:32px!important;min-height:30px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;cursor:pointer!important;-webkit-appearance:none!important;appearance:none!important}.ph-cart-cvv-toggle span{position:relative;display:block;width:18px;height:11px;margin:auto;border:1.8px solid #6f7f8c;border-radius:50%}.ph-cart-cvv-toggle span:before{content:"";position:absolute;left:50%;top:50%;width:4px;height:4px;transform:translate(-50%,-50%);border-radius:50%;background:#6f7f8c}.ph-cart-cvv-toggle:not(.is-visible) span:after{content:"";position:absolute;left:8px;top:-4px;width:1.8px;height:19px;background:#6f7f8c;transform:rotate(-45deg);transform-origin:center}.ph-cart-cvv-toggle:focus-visible{box-shadow:0 0 0 2px rgba(47,145,194,.16)!important;border-radius:6px!important}
