/* GENTELLE v2.8.9K7.2R3 — AI Outfit UI polish / preview-state fix
   Page-only overlay. No storefront renderer or Worker changes. */

/* Match the approved Gentelle typography when those families are available. */
body.gtao-page{font-family:Raleway,Arial,Helvetica,sans-serif}
.gtao-intro h1,.gtao-panel-head h2,.gtao-result h2,.gtao-result-products h3{font-family:"Roboto Slab",Georgia,"Times New Roman",serif}

/* Critical fix: some global image rules can override the HTML hidden state.
   Never render the room preview until a real room image has been selected. */
.gtao-upload img[hidden]{display:none!important;visibility:hidden!important}
.gtao-upload:not(.has-image) img{display:none!important}

/* Clean neutral upload state — no black/broken-image surface before upload. */
.gtao-upload{background:#fbfcfd!important;border-color:#c9d0d7!important;min-height:320px}
.gtao-upload:not(.has-image){background:linear-gradient(180deg,#fff 0%,#f8f9fa 100%)!important}
.gtao-upload:not(.has-image) .gtao-upload-copy{color:var(--gtao-navy);max-width:360px;padding:52px 28px}
.gtao-upload:not(.has-image) .gtao-upload-copy::before{content:"+";display:grid;place-items:center;width:42px;height:42px;margin:0 auto 16px;border:1px solid #aeb8c3;border-radius:50%;font:400 27px/1 Arial,sans-serif;color:var(--gtao-navy);background:#fff}
.gtao-upload:not(.has-image):hover{border-color:var(--gtao-navy)!important;background:#f7f9fb!important}
.gtao-upload.has-image{background:#f3f5f6!important;border-color:#b9c2cb!important}
.gtao-upload.has-image img{display:block!important;visibility:visible!important;background:#f3f5f6!important;object-fit:contain}
.gtao-upload.has-image .gtao-upload-copy{background:linear-gradient(180deg,transparent 0%,rgba(7,26,51,.78) 100%);padding-top:72px}

/* Remove the heavy black treatment from comparison media as well. */
.gtao-compare-media{background:#f4f5f6!important}
.gtao-compare-media img{background:#f4f5f6}

/* Retail-page polish without changing dimensions or page architecture. */
.gtao-workgrid{gap:32px}
.gtao-product{display:flex;flex-direction:column}
.gtao-product h3{min-height:54px;margin-bottom:8px}
.gtao-product-meta{margin-top:auto}
.gtao-product button{font-weight:700}
.gtao-products{scrollbar-width:thin;scrollbar-color:#aeb5bc #f5f6f7}
.gtao-products::-webkit-scrollbar{width:8px}
.gtao-products::-webkit-scrollbar-track{background:#f5f6f7}
.gtao-products::-webkit-scrollbar-thumb{background:#aeb5bc;border:2px solid #f5f6f7}
.gtao-searchrow input,.gtao-field select,.gtao-field textarea{font-size:14px}
.gtao-generate{letter-spacing:.01em}

/* Clear selected state, still using the existing layout. */
.gtao-product.is-selected::after{content:"Selected";position:absolute;top:16px;right:16px;z-index:2;padding:4px 7px;background:rgba(7,26,51,.92);color:#fff;font-size:9px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
body.gtao-page.rtl .gtao-product.is-selected::after{content:"تم الاختيار";right:auto;left:16px}

@media(max-width:1080px){
 .gtao-workgrid{gap:28px}
 .gtao-upload{min-height:360px}
}
@media(max-width:720px){
 .gtao-upload{min-height:300px}
 .gtao-upload:not(.has-image) .gtao-upload-copy{padding:40px 20px}
 .gtao-product h3{min-height:44px}
}
@media(prefers-reduced-motion:reduce){
 .gtao-upload{transition:none!important}
}

/* gentelle-aioutfit-ui-v289k72r3 */
