/* The customer's work is the principal image in the purchasing drawer. */
body.storefront-page #product-drawer:has(.studio-room-view){width:min(1120px,100vw)}
body.storefront-page .detail-layout:has(.studio-room-view){gap:1.5rem clamp(1.25rem,3vw,2.75rem);align-items:start}
body.storefront-page .detail-layout:has(.studio-room-view) .detail-heading{align-self:end}
body.storefront-page .detail-layout:has(.studio-room-view) .detail-title{font-size:clamp(1.75rem,3.1vw,2.9rem);line-height:1.1;letter-spacing:-.025em}
.studio-room-view,.studio-saved-dialog,.studio-proof-dialog{--pine:#173e34;--ink:#172f2b;--muted:#53655d;--hair:#c9cec3;color:var(--ink)}
body.storefront-page .detail-media.studio-room-view{position:relative;min-width:0;display:grid;align-content:start;gap:.75rem}
.studio-room-scene{position:relative;overflow:hidden;isolation:isolate;background:#e8e3d7;border-radius:8px}
.studio-room-frame{position:relative}
.studio-room-stage{touch-action:pan-y;outline-offset:3px}
.studio-room-fit{display:none}
.studio-room-frame:has([data-legacy-room]) .studio-room-fit{display:block;position:absolute;right:.6rem;bottom:.6rem;padding:.45rem .8rem;min-height:44px;border:1px solid #718279;border-radius:5px;background:#fffdf6f5;color:#173e34;font:inherit;font-size:.85rem;font-weight:600;cursor:pointer}
.studio-room-frame:not([data-full-room=true]) .studio-room-scene[data-legacy-room]>.studio-room-photo,.studio-saved-grid .studio-room-scene[data-legacy-room]>.studio-room-photo,.studio-bag-image .studio-room-scene[data-legacy-room]>.studio-room-photo{width:100%;height:auto;aspect-ratio:1.5;object-fit:cover;object-position:center 32%;max-height:none}
.studio-saved-grid article>.studio-room-scene{aspect-ratio:1.5;display:grid;place-items:center}
.studio-saved-grid .studio-room-scene>.studio-face.studio-room-photo{height:auto;width:100%;align-self:center}
.saved-work-artist{margin:.3rem 0;color:#52645a;font-size:.88rem}
.saved-work-specs{list-style:none;margin:.55rem 0;padding:0;line-height:1.5;font-size:.92rem}
body.storefront-page .studio-canvas-form [hidden]{display:none!important}
body.storefront-page .studio-canvas-form .set-edition-controls{gap:.9rem;background:transparent;padding:0}
body.storefront-page .studio-canvas-form{display:grid;align-content:start;gap:.65rem}
body.storefront-page .studio-canvas-form[hidden]{display:none}
body.storefront-page .studio-format-title{margin:1rem 0 .35rem}
.studio-room-stage:focus-visible,.studio-room-view button:focus-visible,.studio-proof-dialog button:focus-visible,.studio-saved-dialog button:focus-visible{outline:3px solid #985b21;outline-offset:2px}
.studio-room-background{display:block;width:100%;height:auto;aspect-ratio:3/2}
.studio-room-photo{display:block;width:100%;height:auto;max-height:none}
.studio-room-scene>.studio-room-photo:not(.studio-face){max-height:70svh;object-fit:contain;margin:auto}
.studio-face{position:relative;display:block;min-width:0;overflow:hidden}
.studio-face img{display:block;width:100%;height:auto;border:0;user-select:none}
.studio-room-faces{position:absolute;display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;align-items:center;left:54%;top:10%;width:68%;gap:1.2%;transform:translateX(-50%)}
.studio-room-faces[data-count="2"]{width:50%}
.studio-room-faces>.studio-face{box-shadow:1px 2px 4px #332b22a6;outline:1px solid #4c382b4a}
.studio-room-faces[data-frame]>.studio-face{border:3px solid var(--room-frame);box-sizing:border-box}
.studio-room-faces[data-frame="wood"]{--room-frame:#a47a4d}
.studio-room-faces[data-frame="white"]{--room-frame:#f4f2ed}
.studio-room-faces[data-frame="black"]{--room-frame:#262625}
.studio-room-faces.positioned{display:block;inset:0;width:100%;height:100%;transform:none}
.studio-room-scene[data-presentation="unavailable"]{padding:1.5rem}
.studio-count-tabs,.studio-order-tabs,.studio-proof-buttons,.studio-view-actions,.studio-proof-orders{display:flex;align-items:center;flex-wrap:wrap;gap:.44rem}
.studio-count-tabs{padding:3px;width:max-content;border:1px solid var(--hair);border-radius:7px;background:#eeeae0}
.studio-count-tabs button,.studio-order-tabs button,.studio-proof-orders button,.studio-proof-buttons button,.studio-view-actions button,.studio-saved-dialog button,.studio-proof-dialog header button{font:inherit;font-size:.91rem;line-height:1.25;font-weight:600;min-height:44px;margin:0;padding:.57rem .88rem;cursor:pointer;border-radius:5px;color:#173e34;background:#fffdf8;border:1px solid #a9b7ab}
.studio-count-tabs button{min-width:5.2rem;border-color:transparent;background:transparent}
.studio-count-tabs button[aria-pressed=true],.studio-order-tabs button[aria-pressed=true]{background:#173e34;color:#fffdf8;border-color:#173e34}
.studio-arrangement-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem}
.studio-control-label{font-size:.85rem;font-weight:650;color:#384d45}
.studio-proof-buttons button,.studio-view-actions .studio-text-button,.studio-saved-dialog .studio-text-button{background:transparent;border-color:transparent;text-decoration:underline;text-underline-offset:3px}
.studio-proof-buttons button{border:1px solid #c2c9bd;background:#f8f6ef;text-decoration:none}
.studio-view-actions{border-top:1px solid #d9d8cc;padding-top:.7rem}
.studio-save-button,.studio-view-actions .studio-save-button{background:#ecf1e9;border-color:#9eae9e}
.studio-save-status{font-size:.86rem;line-height:1.4;margin:0;color:#345848}
.studio-save-status:empty{display:none}
.studio-format-title{font-size:1.15rem;margin:1.35rem 0 .9rem}
body.storefront-page .studio-canvas-form .detail-buy-actions{border-radius:6px;position:static;background:#f0eee5;box-shadow:none;margin:1.25rem 0 0;padding:1rem}
body.storefront-page .studio-canvas-form .detail-buy-actions .wide-button,.studio-saved-dialog .studio-primary-button{background:#173e34;color:white;border:1px solid #173e34;min-height:48px;font-weight:700}
body.storefront-page .studio-canvas-form .detail-start-price{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.studio-canvas-form [hidden]{display:none!important}
.studio-proof-dialog,.studio-saved-dialog{margin:auto;width:min(92vw,62rem);max-height:90dvh;overflow:auto;box-sizing:border-box;border:1px solid #c4c6ba;border-radius:12px;background:#f8f5ed;padding:0 clamp(1rem,2.2vw,1.65rem) 1.4rem;box-shadow:0 20px 65px #12241f40}
.studio-proof-dialog::backdrop,.studio-saved-dialog::backdrop{background:#15251fe0}
.studio-proof-dialog header,.studio-saved-dialog header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#f8f5ed;border-bottom:1px solid #d3d4c8;padding:.85rem 0}
.studio-proof-dialog h2,.studio-saved-dialog h2,.studio-saved-dialog h3{font-family:Georgia,"Noto Serif Thai",serif;color:#172f2b;margin:0;line-height:1.18}
.studio-proof-dialog h2,.studio-saved-dialog h2{font-size:clamp(1.25rem,3.6vw,2rem)}
.studio-proof-board,.studio-proof-faces{width:auto;max-width:100%;max-height:65dvh;margin:1rem auto;display:block;object-fit:contain}
.studio-proof-faces{display:grid;gap:2px;width:min(100%,48vh);max-height:none}
.studio-proof-orders{justify-content:center}
.studio-saved-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.studio-saved-grid article{border:1px solid #d3d4c8;border-radius:8px;overflow:hidden;background:#fffdf7;min-width:0}
.studio-saved-grid .studio-room-scene{border-radius:0}.saved-work-cover{width:100%;display:block}
.saved-work-copy{padding:1rem}.saved-work-copy p{line-height:1.6;color:#3f554b}
.studio-saved-dialog .saved-work-copy button{margin:0 .35rem .35rem 0}
body.storefront-page .studio-bag-image{width:clamp(5rem,21vw,8.75rem);flex:none}.studio-bag-image .studio-room-scene{border-radius:5px}
body.storefront-page .cart-item button[data-edit-studio-line],body.storefront-page .cart-item button[data-remove]{display:inline-flex;align-items:center;min-height:44px;font-size:.88rem;padding:.45rem .6rem;color:#173e34;border:1px solid #c7cabc;background:#fcfaf4;border-radius:4px;text-decoration:none}
body.storefront-page .cart-item button[data-remove]{border-color:transparent;color:#754323;text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px){
  body.storefront-page .detail-layout:has(.studio-room-view){gap:1rem}
  body.storefront-page .detail-layout:has(.studio-room-view) .detail-heading{margin:0}
  .studio-room-stage{margin-inline:-.5rem}
  .studio-saved-dialog,.studio-proof-dialog{width:calc(100% - 1rem);max-height:94dvh;padding-inline:.75rem}
  .studio-saved-grid{gap:.65rem}.saved-work-copy{padding:.65rem}.saved-work-copy p{font-size:.86rem}
  .studio-saved-grid .saved-work-copy button{width:100%;margin-right:0}
  .studio-proof-board{width:100%;max-height:70dvh}
}
body.storefront-page .delivery-confirmed h4{margin:0 0 .6rem;font-size:1.22rem}
.delivery-breakdown>div:has(strong){font-size:1.1rem;font-weight:700;border-top:1px solid #b4b8aa;padding-top:.65rem}
.delivery-cost-details summary,.saved-compare-choice{display:flex;align-items:center;gap:.55rem;min-height:44px;cursor:pointer}
.delivery-cost-details summary{text-decoration:underline;text-underline-offset:3px}
.delivery-cost-details summary::after{content:'';display:inline-block;width:.45rem;height:.45rem;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-left:.3rem}
.delivery-cost-details[open] summary::after{transform:rotate(225deg)}
body.storefront-page .detail-layout:has(.studio-room-view) .detail-kicker{font-size:.8rem;line-height:1.5;letter-spacing:.04em;color:#465b53}
.delivery-saved-recipient{margin:.4rem 0 1rem}.delivery-saved-recipient p:empty{display:none}
.studio-saved-grid .saved-compare-choice{font-size:.9rem}.saved-compare-choice input{width:19px;height:19px;accent-color:#21493b}
.studio-compare-toggle{margin-bottom:.75rem}
.studio-saved-grid article[hidden],.cart-totals[hidden]{display:none!important}
.studio-saved-grid.is-comparing{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:430px){
  .studio-saved-grid{grid-template-columns:1fr}
  .studio-saved-grid .saved-work-copy button{width:auto}
}
