/* Small usability corrections; existing Quantum surfaces, colors and layout stay in place. */
body[data-quantum-bg="tofu"]::after{background-image:url('/quantum-polish-20261010-r1/background.webp')}
:where(a,button,input,select,textarea,summary):focus-visible{outline:2px solid #c6a7fa;outline-offset:3px}
[aria-invalid="true"]{border-color:#ff8f9f!important}
.faq-question{width:100%;border:0;background:transparent;color:inherit;font:inherit;text-align:left;min-height:56px}
.faq-answer[hidden]{display:none}
.faq-item.open .faq-answer{max-height:none}
.faq-answer-inner{color:#c5c0cd;line-height:1.75}
.faq-answer-inner a{color:#c4a4fb;text-decoration:underline;text-underline-offset:3px}
.faq-search input:focus{border-color:#a878ee}
.qp-catalog-error{max-width:580px;margin:48px auto;padding:28px;text-align:center;color:#f6f3fa}
.qp-catalog-error h1{font-size:28px;line-height:1.2;margin:0 0 14px}
.qp-catalog-error p{color:#bdb5cb;line-height:1.7;margin:0 0 24px}
.qp-catalog-error button{padding:12px 20px;min-height:44px;border:0;border-radius:12px;background:#f7f5fc;color:#18131f;font:600 14px inherit;cursor:pointer}
.qp-catalog-error a{display:block;margin-top:18px;color:#c6a7fa}
.qig-search input:focus-visible{outline:none}
.qig-search-field:focus-within{outline:2px solid #c6a7fa;outline-offset:3px}
.qp-account-notice{margin-bottom:24px;padding:18px 20px;border-left:3px solid #c6a7fa;background:#1b1624;border-radius:0 12px 12px 0;color:#eee9f5;font-size:14px;line-height:1.6}
.qp-account-notice p{margin:0 0 10px}
.qp-account-notice a,.qp-account-notice button{color:#e0caff;font:600 14px inherit}
.qp-account-notice button{background:transparent;border:1px solid #655475;padding:9px 14px;border-radius:8px;cursor:pointer}
.qp-orders-error{padding:24px 4px;color:#c3bccc;line-height:1.7;font-size:14px}
#storeScreen.ig-store .ig-name{overflow-wrap:anywhere}
#storeScreen.ig-store .ig-price{font-variant-numeric:tabular-nums;white-space:nowrap}
#storeScreen.ig-store .ig-price b{font-variant-numeric:tabular-nums}
#storeScreen.ig-store .ig-sec h2{white-space:normal;line-height:1.3}
/* Wide rows must leave room for the product title as well as price and action. */
@media(min-width:1100px){
 #storeScreen.ig-store .ig-name{-webkit-line-clamp:3;line-height:1.3}
 #storeScreen.ig-store .ig-tags{gap:4px}
 #storeScreen.ig-store .ig-tag{height:auto;min-height:24px;white-space:normal;line-height:1.3;padding:4px 8px}
 #storeScreen.ig-store .ig-card{gap:12px}
 #storeScreen.ig-store .ig-foot{gap:12px}
 #storeScreen.ig-store .ig-price{min-width:0}
}
@media(min-width:1100px) and (max-width:1599px){
 body.qig-enabled #storeScreen.ig-store .cwrap{grid-template-columns:minmax(0,1fr) 340px;gap:22px}
 #storeScreen.ig-store .ig-price b{font-size:19px}
 #storeScreen.ig-store .ig-add{padding:0 13px}
}
/* Keep controls readable on phones, including Safari's input focus zoom threshold. */
@media(max-width:600px){
 .auth-form-group input,.faq-search input,#searchInput,#customValue{font-size:16px}
 .auth-close,.cart-close{min-width:40px;min-height:40px}
 .faq-answer-inner{font-size:14px;line-height:1.7}
 .faq-tab{min-height:42px}
 .qp-catalog-error{margin:24px auto;padding:24px 16px}
 .qd-nav a{font-size:10px!important}
 .qo-compose-foot,.qo-footer{font-size:10px!important;line-height:1.5}
 .qo-message-name,.qo-compose-foot .qo-upload-note{font-size:11px!important}
 .qo-icon-btn{min-width:36px;min-height:36px}
 .qo-chat .qo-empty{padding:26px 16px}
}
@media(prefers-reduced-motion:reduce){
 .faq-answer,.faq-chevron{transition:none!important}
 .animate-on-scroll{opacity:1!important;transform:none!important;transition:none!important}
}

/* Essential content is ready on first paint; decorative card motion stays intact. */
.hero-title,.hero-subtitle,.hero-buttons,.trust-badges{animation:none!important}
.qc-desc a{color:#c4a4fb;text-decoration:underline;text-underline-offset:3px}

/* Payment-exit instructions must not wait for a decorative entrance animation. */
.result-card h1,.result-card .subtitle,.result-card .safe-badge,.result-card .btn-group{opacity:1;animation:none;transform:none}
.cancel-circle{animation:none}
.cancel-circle svg .x-line{stroke-dashoffset:0;animation:none}
@media(min-width:769px){.buy-card-content>p{min-height:3em}}

#couponModal input{min-width:0;font-size:16px!important}
#couponModal button:disabled{opacity:.6;cursor:wait}
#couponModal #couponTotal,#couponModal #couponDiscountAmt{white-space:nowrap;font-variant-numeric:tabular-nums}
/* Keep the existing compact side panel legible and its descriptions inside it. */
.qside .qs-step{white-space:normal}
.qside .qs-step>div{min-width:0}
.qside .qs-step b{color:#dedce3}
.qside .qs-step p,.qs-fine,.qside .qs-h,.sum-t{color:#aaa5b2}
.sum-checks li,.price-row .k{color:#b4afba}
