/* Guided ordering inside the gallery's existing Studio/Ash callout. */
.gallery-study .sc-panel{display:flex;flex-direction:column;gap:16px;padding:14px 20px;overflow:hidden;min-height:0}
.sc-panel h1,.sc-panel h2,.sc-cart h2,.sc-cart h3{font-family:Space,Inter,sans-serif;line-height:1.15;letter-spacing:-.025em;text-wrap:balance}
.sc-panel p,.sc-cart p{font-size:14px;line-height:1.55;color:var(--g-muted);margin:0}
.sc-panel button,.sc-cart button{font-family:Inter,sans-serif;cursor:pointer;touch-action:manipulation}
.sc-panel :is(button,select):focus-visible,.sc-cart :is(button,input,textarea,select):focus-visible{outline:2px solid var(--g-accent);outline-offset:3px}
.sc-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none}
.sc-steps{display:flex;align-items:center;gap:16px;min-width:0}.sc-steps button{display:flex;align-items:center;gap:7px;border:0;background:transparent;color:var(--g-muted);font-size:12px;min-height:44px;padding:4px}
.sc-steps button>span{display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--g-edge);border-radius:50%;font-size:11px}
.sc-steps [aria-current=step]{color:var(--g-accent)}.sc-steps [aria-current=step]>span{border-color:var(--g-accent);background:color-mix(in srgb,var(--g-accent) 14%,var(--g-surface))}
.sc-cart-button{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--g-accent);color:var(--g-accent);background:transparent;border-radius:3px;font-size:13px;flex-shrink:0}
.sc-count{border:1px solid currentColor;min-width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:11px}
.sc-primary{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:11px 18px;background:var(--g-accent);border:1px solid var(--g-accent);border-radius:3px;color:#19141f;font-size:14px;font-weight:650;text-decoration:none;line-height:1.4}
.sc-primary .g-icon{background:currentColor;filter:none;width:19px;height:19px}.sc-primary:disabled{background:var(--g-surface);color:var(--g-muted);border-color:var(--g-edge);cursor:default}
.gallery-study .sc-guide{position:relative;display:block;flex:1;min-height:0;border:1px solid var(--g-edge);border-radius:var(--card-radius,4px);background:var(--g-surface);overflow:hidden;scrollbar-width:thin;scrollbar-color:var(--g-accent) var(--g-canvas);overscroll-behavior:contain}
.sc-guide-content{display:flex;flex-direction:column;width:68%;height:100%;box-sizing:border-box;min-height:0;padding:clamp(20px,3vw,42px);min-width:0;z-index:1}
.sc-guide-scroll{display:flex;flex-direction:column;justify-content:safe center;gap:18px;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--g-accent) var(--g-canvas);padding:4px}
.sc-step-heading{flex:none}.sc-guide-scroll>*{flex-shrink:0}
.sc-step-title{font-size:clamp(28px,3.1vw,44px);margin:0}.sc-step-intro{margin-top:-8px!important}
.sc-build-services{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.sc-build-services button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:130px;padding:12px 7px;border:1px solid var(--g-edge);border-radius:3px;background:transparent;color:var(--g-text);font-size:13px;line-height:1.4;text-align:center;min-width:0}
.sc-emblem{display:block;width:68px;height:68px;border:1px solid var(--g-edge);border-radius:50%;overflow:hidden;background:var(--g-canvas)}.sc-emblem>.sc-art{width:100%;height:100%;object-fit:contain;object-position:center bottom;padding:3px 2px 0}
.sc-build-services button[aria-pressed=true],.sc-directions button[aria-pressed=true],.sc-projects button[aria-pressed=true]{color:var(--g-accent);border-color:var(--g-accent);background:color-mix(in srgb,var(--g-accent) 10%,var(--g-canvas))}
.sc-build-services button[aria-pressed=true] .sc-emblem{border-color:var(--g-accent)}
.sc-directions,.sc-projects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.sc-directions button,.sc-projects button{min-height:48px;padding:10px 12px;border:1px solid var(--g-edge);border-radius:3px;color:var(--g-text);background:transparent;font-size:13px;line-height:1.4;text-align:left}
.sc-explanation{min-height:88px}.sc-explanation h2{font-size:20px;margin:0 0 9px}.sc-explanation p{font-size:13px;max-width:52ch}.sc-explanation p+p{margin-top:7px}
.sc-guide-actions{position:relative;flex:none;z-index:2;background:var(--g-surface);padding-top:10px;display:flex;justify-content:flex-end;align-items:center;gap:12px}.sc-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:0;background:transparent;color:var(--g-accent);margin-right:auto;font-size:13px}
.sc-step-art{position:absolute;right:0;bottom:0;width:32%;height:100%;box-sizing:border-box;display:flex;align-items:flex-end;justify-content:center;padding:20px 16px 0 0;min-width:0}.sc-step-art>.sc-art{width:100%;height:100%;max-height:490px;object-fit:contain;object-position:center bottom;align-self:end}
.sc-art{display:block;user-select:none;max-width:100%;object-fit:contain;object-position:center bottom}
.sc-page-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px 18px;flex-wrap:wrap;flex:none}.sc-page-bottom p{font-size:11px;line-height:1.5}.sc-selection span{color:var(--g-muted)}
.sc-summary-contact{display:flex;align-items:center;gap:8px;min-height:44px;border:0;background:transparent;color:var(--g-accent);font-size:12px;padding:6px 8px}
/* Stable outer geometry and service-list slot, independent of cart contents. */
.sc-cart{position:fixed;bottom:auto;left:50%;top:12px;transform:translateX(-50%);margin:0;width:min(680px,calc(100vw - 24px));height:min(800px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:26px;border:1px solid var(--g-edge);border-radius:5px;background:var(--g-surface);color:var(--g-text);font-family:Inter,sans-serif;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--g-accent) var(--g-canvas);box-shadow:0 14px 60px #0009}
.sc-cart *{box-sizing:border-box}.sc-cart [hidden]{display:none!important}.sc-cart::backdrop{background:#181818cf}
.sc-cart-top{display:flex;justify-content:space-between;gap:18px;align-items:start;margin-bottom:18px}.sc-cart h2{font-size:29px;margin:0 0 8px}.sc-cart h3{font-size:20px;margin:0 0 10px}.sc-cart-top p{font-size:.8125rem}
.sc-cart-top>button{display:grid;place-items:center;width:44px;height:44px;min-width:44px;border:1px solid var(--g-edge);border-radius:50%;background:transparent;color:var(--g-muted)}
.sc-cart-body{display:flex;flex-direction:column;gap:22px}.sc-cart-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;height:44px;margin-bottom:6px}.sc-cart-section-heading h3{margin:0;font-size:17px}
.sc-cart-selection{height:200px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--g-accent) var(--g-canvas);padding-right:6px}
.sc-cart-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.sc-cart-items li{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--g-edge);padding:8px 0}.sc-cart-emblem{width:54px;height:54px;flex:0 0 54px;border:1px solid var(--g-edge);border-radius:50%;overflow:hidden;background:var(--g-canvas)}.sc-cart-emblem .sc-art{width:100%;height:100%}
.sc-cart-items li>div{flex:1;min-width:0}.sc-cart-items strong{display:block;font-size:14px;line-height:1.4}.sc-cart-items small{display:block;font-size:11px;line-height:1.5;color:var(--g-muted);margin-top:4px;overflow-wrap:anywhere}
.sc-cart-items button[data-remove]{display:grid;place-items:center;width:44px;height:44px;min-width:44px;border:0;background:transparent;color:var(--g-accent)}.sc-cart-items button[data-remove] .g-icon{background:currentColor;width:21px;height:21px}
.sc-clear,.sc-edit{border:0;background:transparent;color:var(--g-accent);font-size:12px;min-height:44px;padding:8px;text-decoration:underline;text-underline-offset:4px}.sc-clear:disabled{opacity:.45;cursor:default}.sc-edit{font-size:11px;min-height:32px;padding:5px 0}
.sc-cart-empty p{font-size:12px;margin:0 0 10px}.sc-cart-empty>div{display:grid;gap:6px}.sc-cart-empty button{display:flex;align-items:center;gap:10px;min-height:44px;padding:5px 10px;border:1px solid var(--g-edge);background:transparent;color:var(--g-text);text-align:left;font-size:12px}.sc-cart-empty button>.g-icon:last-child{margin-left:auto}.sc-mini-emblem{width:30px;height:30px;border:1px solid var(--g-edge);border-radius:50%;overflow:hidden;flex:none}.sc-mini-emblem img{width:100%;height:100%}
.sc-cart form{display:flex;flex-direction:column;gap:14px}.sc-cart form h3{margin-bottom:0}.sc-cart form>p{font-size:12px}.sc-cart label{display:flex;flex-direction:column;gap:8px;font-size:12px;line-height:1.5}.sc-contact-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sc-cart :is(input,textarea,select){font:400 16px Inter,sans-serif;line-height:1.5;min-width:0;width:100%;min-height:44px;padding:10px 12px;background:var(--g-canvas);color:var(--g-text);border:1px solid var(--g-edge);border-radius:3px;caret-color:var(--g-accent)}.sc-cart textarea{resize:vertical;max-height:200px}.sc-cart input::placeholder,.sc-cart textarea::placeholder{color:var(--g-muted)}.sc-cart form>small{font-size:11px;color:var(--g-muted);line-height:1.5}.sc-topic-reserved{visibility:hidden}
.sc-support{border-top:1px solid var(--g-edge);padding-top:14px;margin-top:18px}.sc-support small{display:block;font-size:11px;line-height:1.55;color:var(--g-muted)}
.sc-request-preview pre{font:400 14px/1.65 Inter,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;padding:18px;background:var(--g-canvas);border:1px solid var(--g-edge);margin:18px 0}.sc-request-preview p{font-size:12px}.sc-demo-notice{font-size:12px;line-height:1.55;color:#f4e4b6;border:1px solid #ac9c64;padding:14px;margin:20px 0}.sc-request-preview .sc-primary{width:100%}.sc-browse{display:block;min-height:44px;padding:10px;border:0;background:transparent;color:var(--g-accent);margin:10px auto 0}
@media(max-width:900px){.sc-guide-content{padding:24px;gap:15px}.sc-guide-content{width:74%}.sc-step-art{width:26%}.sc-step-art{padding-right:6px}.sc-emblem{width:54px;height:54px}.sc-build-services button{font-size:12px;min-height:112px}.sc-step-title{font-size:30px}}
@media(max-width:700px){
 .gallery-study .sc-panel{padding:8px 4px;gap:10px}.sc-steps{gap:4px}.sc-steps button{font-size:10px;gap:4px;padding:2px}.sc-steps button>span{width:19px;height:19px;font-size:10px}.sc-cart-button{padding:6px;font-size:11px;gap:5px}.sc-cart-button>.g-icon{display:none}.sc-count{width:20px;min-width:20px;height:20px;font-size:10px}
 .gallery-study .sc-guide{display:block}.sc-guide-content{width:100%;padding:14px;gap:0;justify-content:flex-start;min-height:0}.sc-guide-scroll{gap:14px;justify-content:flex-start;padding:4px 2px 12px}.sc-step-heading{position:relative;padding-right:76px;min-height:94px}.sc-guide-actions{padding-top:12px}.sc-step-title{font-size:27px;max-width:none}.sc-step-intro{font-size:12px!important;max-width:none;margin-top:10px!important;min-height:0}.sc-step-art{position:absolute;bottom:auto;top:0;right:-4px;padding:0;width:76px;height:96px;pointer-events:none}.sc-step-art>.sc-art{height:100%;width:100%;pointer-events:auto}
 .sc-build-services{gap:6px}.sc-build-services button{font-size:11px;min-height:110px;padding:8px 4px;gap:7px}.sc-emblem{width:48px;height:48px}.sc-directions,.sc-projects{gap:7px}.sc-directions button,.sc-projects button{font-size:12px;min-height:44px;padding:8px 10px}.sc-explanation{min-height:72px}.sc-explanation h2{font-size:19px;margin-bottom:7px}.sc-explanation p{font-size:12px}.sc-guide-actions{margin-top:auto}.sc-guide-actions>.sc-primary{font-size:13px;min-height:44px}.sc-page-bottom p{font-size:10px}.sc-notice{flex:1}.sc-selection{width:100%}.sc-summary-contact{font-size:11px;min-height:36px;padding:4px}
 .sc-cart{padding:18px}.sc-cart h2{font-size:25px}.sc-cart h3{font-size:19px}.sc-cart-top{gap:10px;margin-bottom:12px}.sc-cart-body{gap:18px}.sc-cart-selection{height:200px}.sc-cart-section-heading h3{font-size:16px}.sc-cart-items strong{font-size:12px}.sc-cart-items small{font-size:10px}.sc-contact-fields{grid-template-columns:1fr;gap:14px}.sc-cart form>.sc-primary{font-size:12px}.sc-request-preview pre{font-size:12px;padding:14px}
}
@media(max-height:600px){.sc-guide-content{padding:16px;gap:12px}.sc-step-title{font-size:25px}.sc-build-services button{min-height:94px}.sc-emblem{width:42px;height:42px}.sc-explanation{min-height:64px}.sc-cart-selection{height:190px}}
@media(prefers-reduced-motion:reduce){.sc-panel *,.sc-cart *{transition:none!important;animation:none!important}}

/* Keep compact/zoomed service content in one reachable child scroll region. */
.gallery-study .g-viewport{container-type:size}
.gallery-study .sc-panel{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--g-accent) var(--g-canvas)}
.gallery-study .sc-guide{min-height:340px;flex-shrink:0}
.sc-heading,.sc-steps{flex-wrap:wrap}
.sc-panel :is(h1,h2,p,button){overflow-wrap:anywhere}
.sc-directions button,.sc-projects button{min-width:0}
.sc-cart-status{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@container(max-height:320px){
 .gallery-study .sc-panel{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--g-accent) var(--g-canvas)}
 .gallery-study .sc-guide{flex:none;min-height:0}
 .sc-guide-content{height:auto;width:100%;padding:12px}
 .sc-guide-scroll{flex:none;overflow:visible;gap:12px;padding:4px}
 .sc-step-heading{padding-right:0;min-height:0}.sc-step-art{display:none}
 .sc-step-title{font-size:22px}.sc-step-intro{margin-top:8px!important}
 .sc-build-services button{min-height:44px;padding:8px 4px}.sc-emblem{display:none}
 .sc-guide-actions{flex-wrap:wrap}.sc-guide-actions>.sc-primary{max-width:100%}
}

/* Inquiry feedback uses words and focus as well as color. */
.sc-delivery-status{line-height:1.6;overflow-wrap:anywhere}
.sc-delivery-status:empty{display:none}
.sc-delivery-status:not(:empty){padding:14px;border:1px solid var(--g-edge)}
.sc-delivery-status[data-delivery-state="success"]{border-color:#74bd98}
.sc-delivery-status[data-delivery-state="error"]{border-color:#d8af70}
.sc-delivery-status:focus{outline:2px solid var(--g-accent);outline-offset:3px}
.sc-request-preview [data-edit-cart]{margin-top:12px}
.sc-request-preview [data-send-request][hidden]{display:none}
