/* GPTibo purchase flow adapted to Dujiaoka's server-owned order lifecycle. */
.purchase-workspace .primary-action,.gptibo-commerce-dialog .primary-action,.mobile-purchase-bar .primary-action,.commerce-primary-button{display:inline-flex;justify-content:center;align-items:center;border:0;background:var(--primary);color:var(--primary-foreground);font-family:inherit;text-decoration:none}
.purchase-workspace .primary-action:disabled,.gptibo-commerce-dialog button:disabled,.mobile-purchase-bar button:disabled{opacity:.45;cursor:not-allowed}
.commerce-product-mark img{object-fit:contain;display:block;max-width:75%;max-height:75%}
.commerce-product-mark>span{font-size:24px;font-weight:550}
.commerce-product-mark.small>span{font-size:18px}
.personal-badge{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--border);border-radius:6px}
.availability.is-unavailable>span{background:var(--muted-foreground)}
.plan-options{display:grid}
.plan-option{text-decoration:none;color:inherit;min-width:0}
.plan-option.is-sold-out{opacity:.6}
.plan-option-top>span:not(.commerce-radio):not(.recommend-label){overflow:hidden;text-overflow:ellipsis}
.commerce-radio{display:inline-grid;place-items:center;flex:0 0 15px;width:15px;height:15px;border:1px solid var(--input);border-radius:50%;background:var(--card)}
.commerce-radio.is-checked{background:var(--primary);border-color:var(--primary)}
.commerce-radio.is-checked:after{content:"";width:5px;height:5px;border-radius:50%;background:var(--primary-foreground)}
.commerce-description{border-top:1px solid var(--border);padding-block:40px 55px}
.commerce-description h2{font-size:24px;font-weight:550;letter-spacing:-.6px;margin-top:12px}
.commerce-description-copy{font-size:13px;line-height:1.95;white-space:pre-line;color:var(--muted-foreground);margin-top:20px;overflow-wrap:anywhere;max-width:780px}
.commerce-faq details{border-bottom:1px solid var(--border)}
.commerce-faq summary{display:flex;justify-content:space-between;align-items:center;gap:20px;cursor:pointer;list-style:none;padding:18px 0;font-size:12px;line-height:1.6;font-weight:450}
.commerce-faq summary::-webkit-details-marker{display:none}
.commerce-faq summary>span{font-size:18px;color:var(--muted-foreground)}
.commerce-faq details[open] summary>span{transform:rotate(45deg)}
.commerce-faq details>p{font-size:11px;line-height:1.95;color:var(--muted-foreground);padding:0 25px 18px 0}
.gptibo-commerce-dialog{border:1px solid var(--border);color:var(--foreground);background:var(--card);position:fixed;margin:auto;width:calc(100% - 32px);max-width:460px;max-height:calc(100dvh - 32px);overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain}
.gptibo-commerce-dialog[open]{display:block}
.gptibo-commerce-dialog::backdrop{background:rgb(0 0 0 / .38);backdrop-filter:blur(5px)}
.gptibo-commerce-dialog [hidden]{display:none!important}
.gptibo-commerce-dialog [data-slot=dialog-header]{display:flex;flex-direction:column;gap:7px;margin-bottom:20px;padding-right:24px;text-align:left}
.gptibo-commerce-dialog [data-slot=dialog-title]{font-size:22px;line-height:1.4;letter-spacing:-.55px;font-weight:550;outline:0}
.gptibo-commerce-dialog [data-slot=dialog-description]{font-size:11px;line-height:1.8;color:var(--muted-foreground)}
.commerce-dialog-close{position:absolute;right:17px;top:17px;width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:50%;color:var(--muted-foreground);background:transparent}
.commerce-dialog-close:hover{background:var(--secondary);color:var(--foreground)}
.commerce-preformatted{white-space:pre-line;overflow-wrap:anywhere}
.commerce-stage-back{font-size:10px!important;margin-bottom:7px;align-self:flex-start;color:var(--muted-foreground)!important}
.commerce-primary-button,.commerce-outline-button{height:40px;padding:0 17px;border-radius:8px;font-size:11px;gap:8px;font-weight:500;font-family:inherit}
.commerce-outline-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);color:var(--foreground);background:transparent}
.commerce-outline-button:hover{background:var(--secondary)}
.commerce-purchase-form [data-slot=input]{display:block;width:100%;min-width:0;height:41px;border:1px solid var(--input);border-radius:8px;background:var(--card);padding:0 12px;color:var(--foreground);font-family:inherit;font-size:12px;box-sizing:border-box;outline:none}
.commerce-purchase-form [data-slot=input]:focus{border-color:var(--ring);box-shadow:0 0 0 3px color-mix(in srgb,var(--ring) 13%,transparent)}
.commerce-purchase-form [data-slot=input]::placeholder{color:var(--muted-foreground);opacity:.8}
.commerce-purchase-form>label,.commerce-purchase-form .purchase-coupon>label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;font-weight:500;margin:19px 0 8px}
.commerce-purchase-form>label:first-of-type{margin-top:0}
.commerce-purchase-form label>span:last-child{font-weight:400;color:var(--muted-foreground);font-size:10px}
.commerce-field-hint{font-size:10px;color:var(--muted-foreground);line-height:1.7;margin-top:7px}
.commerce-purchase-form .primary-action{margin-top:21px;min-height:43px}
.commerce-quantity-control{display:grid;grid-template-columns:40px 1fr 40px;gap:8px}
.commerce-quantity-control button{height:41px;display:grid;place-items:center;border:1px solid var(--border);border-radius:8px;font-size:20px;font-weight:350;color:var(--foreground);background:var(--secondary)}
.commerce-quantity-control [data-slot=input]{text-align:center;appearance:textfield;-moz-appearance:textfield}
.commerce-quantity-control input::-webkit-inner-spin-button,.commerce-quantity-control input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.commerce-payment-choice{display:block;position:relative;cursor:pointer;margin:0;font-weight:400}
.commerce-payment-choice>input{position:absolute;opacity:0;left:12px;top:12px;width:1px;height:1px}
.commerce-payment-choice-content{display:flex;align-items:center;gap:8px;min-height:39px;border:1px solid var(--border);border-radius:8px;padding:8px 11px;color:var(--muted-foreground);background:var(--card);font-size:11px;box-sizing:border-box}
.commerce-payment-choice input:checked+.commerce-payment-choice-content{border-color:var(--primary);background:var(--selected-surface);color:var(--foreground);box-shadow:inset 0 0 0 .5px var(--primary)}
.commerce-payment-choice input:focus-visible+.commerce-payment-choice-content{outline:3px solid var(--ring);outline-offset:3px}
.commerce-payment-empty{border:1px solid var(--border);border-radius:8px;padding:12px;font-size:11px;color:var(--muted-foreground);margin-top:20px}
.commerce-captcha{display:flex;align-items:center;gap:10px}
.commerce-captcha [data-slot=input]{flex:1}
.commerce-captcha-refresh{padding:0;flex-shrink:0;overflow:hidden;border:1px solid var(--border);border-radius:8px;background:#fff;cursor:pointer}
.commerce-captcha-refresh img{display:block;object-fit:contain}
.commerce-geetest{margin-top:20px;min-height:64px;font-size:11px;color:var(--muted-foreground)}
.commerce-geetest>[role=status]{margin-bottom:8px;line-height:1.7}
.commerce-geetest[data-ready=true]>[role=status]{color:var(--success)}
.commerce-geetest[data-failed=true]>[role=status]{color:var(--warning)}
@media(max-width:600px){.gptibo-commerce-dialog{padding:24px 21px 20px;border-radius:18px}.gptibo-commerce-dialog [data-slot=dialog-title]{font-size:21px}.commerce-description{padding-block:30px 40px}.commerce-description h2{font-size:21px}.commerce-purchase-form [data-slot=input]{font-size:16px}.purchase-workspace .product-heading{flex-wrap:wrap}.purchase-workspace .personal-badge{margin-left:74px;margin-top:-10px}.purchase-workspace .product-heading>div{flex:1;min-width:0}.purchase-workspace .product-heading h2{font-size:23px}.commerce-captcha{gap:7px}.commerce-captcha-refresh img{width:105px}}

.commerce-richtext{white-space:normal;overflow-wrap:anywhere}.commerce-richtext p+p{margin-top:10px}.commerce-richtext ul,.commerce-richtext ol{padding-left:20px;margin-block:10px}.commerce-richtext li+li{margin-top:5px}.commerce-richtext img{max-width:100%;height:auto;border-radius:10px;margin-block:12px}.commerce-richtext a{color:var(--primary);text-decoration:underline;text-underline-offset:3px}
/* The source's six-step browser guide, adapted to the shop's actual order flow. */
.gptibo-guide-viewport{min-height:400px;background:var(--card);overflow:hidden}.gptibo-guide-panel{padding:24px 30px}.gptibo-guide-scene{max-width:460px;margin:0 auto;font-size:12px}.gptibo-guide-scene-brand{display:flex;gap:10px;align-items:center;margin-bottom:24px}.gptibo-guide-scene-brand .product-mark{width:30px;height:30px;border-radius:9px;flex-shrink:0}.gptibo-guide-scene-brand>strong{font-weight:550;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gptibo-guide-scene-brand>span{font-size:10px;color:var(--muted-foreground);margin-left:auto;white-space:nowrap}.gptibo-guide-demo-title{font-size:20px;font-weight:550;letter-spacing:-.5px;margin-bottom:18px}.gptibo-guide-demo-plans{display:grid;gap:9px}.gptibo-guide-demo-plan{border:1px solid var(--border);padding:13px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:9px}.gptibo-guide-demo-plan.selected{border-color:var(--primary);background:var(--selected-surface)}.gptibo-guide-demo-plan>span{display:flex;gap:10px;align-items:center}.gptibo-guide-demo-plan i{width:12px;height:12px;border:1px solid var(--border);border-radius:50%}.gptibo-guide-demo-plan.selected i{border:4px solid var(--primary)}.gptibo-guide-demo-plan strong{font-size:17px;font-weight:550}.gptibo-guide-demo-field{margin-bottom:15px}.gptibo-guide-demo-field small{display:block;font-size:10px;margin-bottom:7px}.gptibo-guide-demo-field>span{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--input);height:35px;padding:0 12px;border-radius:7px;color:var(--muted-foreground)}.gptibo-guide-demo-action{display:flex;align-items:center;justify-content:center;gap:10px;border-radius:8px;background:var(--primary);color:var(--primary-foreground);height:38px;font-size:11px;margin-top:20px}.gptibo-guide-demo-receipt{padding:12px 0}.gptibo-guide-demo-receipt>div{display:flex;justify-content:space-between;gap:18px;padding:14px 0;border-bottom:1px solid var(--border)}.gptibo-guide-demo-receipt dt{color:var(--muted-foreground)}.gptibo-guide-demo-receipt dd{text-align:right}.gptibo-guide-demo-center{display:flex;min-height:240px;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:13px}.gptibo-guide-demo-center>svg{color:var(--primary)}.gptibo-guide-demo-center h3{font-size:20px;font-weight:550;margin-top:8px}.gptibo-guide-demo-center p,.gptibo-guide-demo-center>span{color:var(--muted-foreground);font-size:11px;line-height:1.8}.rg-step-list button>svg{margin-left:auto;opacity:0;flex-shrink:0}.rg-step-list button.rg-active>svg{opacity:1}.rg-navigation button{width:34px;height:34px;padding:0}.rg-navigation button:disabled{opacity:.35}.rg-play-toggle{font-size:13px}.gptibo-guide-panel:not([hidden]){animation:rg-scene-in .45s ease both}@media(max-width:760px){.gptibo-guide-viewport{min-height:350px}.gptibo-guide-panel{padding:20px}.gptibo-guide-demo-title{font-size:18px}.gptibo-guide-scene-brand{margin-bottom:20px}.gptibo-guide-demo-plan{padding:11px}.rg-step-list button>svg{display:none}.gptibo-guide-demo-center{min-height:205px}}@media(prefers-reduced-motion:reduce){.gptibo-guide-panel{animation:none!important}}
/* The native dialog supplies outer spacing; the notice keeps one inset. */
.gptibo-commerce-dialog [data-purchase-stage="notice"] [data-slot="dialog-header"]{margin-bottom:0}
.gptibo-commerce-dialog [data-purchase-stage="notice"] .purchase-notice-body{padding:16px 0}
.gptibo-commerce-dialog [data-purchase-stage="notice"] .purchase-notice-footer{margin-inline:0;padding-bottom:0}
@media(max-width:600px){.gptibo-commerce-dialog [data-purchase-stage="notice"] [data-slot="dialog-title"]{font-size:20px}}
