.frame-layout{max-width:980px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}.frame-preview{min-width:0;text-align:center}.preview-caption{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-bottom:10px}.framing-editor #preview-upload{display:block;width:100%;padding:0;border:0;background:#e9e5dd;border-radius:4px;cursor:pointer}.frame-preview svg{display:block;width:100%;height:auto}.frame-preview .text-button{background:none;border:0;color:inherit;text-decoration:underline;padding:10px;font-size:13px}.frame-panel{padding:20px;border:1px solid #8f805b55;background:#ffffff06;border-radius:6px;box-sizing:border-box}.frame-panel h1{font:500 28px 'EB Garamond',Georgia,serif;margin:0 0 16px}.frame-panel label{display:grid;gap:6px;font-size:12px}.frame-panel .pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}.frame-panel input:not([type=checkbox]),.frame-panel select{width:100%;min-width:0;box-sizing:border-box;height:40px;padding:8px;border:1px solid #75858d;border-radius:3px;background:#112633;color:#eee;font:inherit;font-size:14px}.reading-mode .frame-panel input:not([type=checkbox]),.reading-mode .frame-panel select{background:#fff;color:#183543}.frame-panel .check{display:flex;align-items:center;font-size:14px;gap:9px}.check input{width:18px;height:18px;accent-color:#ba9850}.mat-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0}.mat-row #mat-label{width:80px}.selected-frame{padding:14px 0;border-block:1px solid #8f805b44}.selected-frame strong,.selected-frame small{display:block}.selected-frame small{margin-top:5px;font-size:12px;opacity:.8}.frame-estimate{display:grid;gap:7px;margin:20px 0 14px;font-size:12px}.frame-estimate strong{font-size:25px}.frame-estimate small{line-height:1.5;opacity:.8}.frame-panel .primary{width:100%}.frame-gallery{grid-column:1/-1;min-width:0}.gallery-heading{display:flex;justify-content:space-between;align-items:center}.gallery-heading h2{font:500 24px 'EB Garamond',Georgia,serif;margin:12px 0}.gallery-heading span{font-size:12px;opacity:.7}.frame-carousel{display:flex;align-items:center;gap:10px}.framing-editor .frame-carousel>button{padding:6px;min-width:34px}.framing-editor #frame-strip{display:flex;flex:1;gap:12px;overflow-x:auto;scrollbar-width:thin;min-width:0;padding:4px 2px 12px}#frame-strip>button{flex:0 0 126px;background:transparent;color:inherit;border:2px solid transparent;padding:5px;cursor:pointer;text-align:left;border-radius:3px}#frame-strip>button[aria-pressed=true]{border-color:#d8bf83;background:#d8bf8318}#frame-strip>button:focus-visible{outline:2px solid #d8bf83}#frame-strip strong,#frame-strip small{display:block;padding-top:6px}#frame-strip small{font-size:11px}.frame-swatch{display:block;height:100px;background-size:100% auto;background-position:center;background-color:#eee}.framing-editor [hidden]{display:none!important}#inquiry{width:min(550px,92vw);box-sizing:border-box;padding:24px;border:1px solid #b3bfc4;border-radius:5px;background:#f7fbfd;color:#183543;max-height:90dvh;overflow:auto}#inquiry::backdrop{background:#00101dd9}#inquiry .modal-heading{display:flex;justify-content:space-between;align-items:center}#inquiry h2{font:500 28px 'EB Garamond',Georgia,serif;margin:0}#close-inquiry{border:1px solid #b3bfc4;background:transparent;color:inherit;border-radius:50%;width:40px;height:40px;font-size:24px;cursor:pointer}#inquiry-summary{font:13px/1.7 Lato,Arial,sans-serif;white-space:pre-wrap;padding:16px 0;border-bottom:1px solid #c8d0d4}#inquiry-form label{display:grid;gap:5px;margin:12px 0;font:14px Lato,Arial,sans-serif}#inquiry-form input,#inquiry-form textarea{box-sizing:border-box;width:100%;padding:10px;background:white;color:#183543;border:1px solid #a4b2b9;font:inherit;border-radius:3px}#inquiry-form p{font:12px/1.5 Lato,Arial,sans-serif}#inquiry-form .primary{background:#1c3e4e;color:white;border:0;padding:14px 20px;cursor:pointer}.frame-preview #image-error:empty{display:none}@media(max-width:800px){.frame-layout{grid-template-columns:1fr;max-width:600px}.frame-gallery{grid-row:1}.frame-preview{grid-row:2}.frame-panel{grid-row:3}.frame-swatch{height:62px}#frame-strip>button{flex-basis:94px}#frame-strip strong{font-size:12px}.gallery-heading h2{font-size:20px}.frame-panel{padding:18px}.preview-caption{flex-wrap:wrap}.frame-carousel{gap:5px}}
#header-cart{display:none!important}.frame-layout{max-width:806px;grid-template-columns:minmax(0,510px) 280px;gap:16px}.frame-panel{padding:14px}.frame-panel h1{font-size:25px;margin-bottom:12px}.frame-panel .pair{margin-bottom:10px;gap:9px}.selected-frame{padding:10px 0}.mat-row{margin:10px 0}.frame-estimate{margin:14px 0 10px}.frame-panel input:not([type=checkbox]),.frame-panel select{height:36px;padding:6px}.frame-panel .primary{padding:12px 8px}.frame-preview .preview-caption{min-height:18px}.frame-panel{margin-top:28px}@media(max-width:800px){.frame-layout{grid-template-columns:1fr;max-width:600px}.frame-panel{margin-top:0}}

/* Integrated print checkout. */
.frame-panel input[readonly]{opacity:.7}.frame-panel .frame-estimate strong{font-size:23px}.frame-panel{max-height:560px;overflow-y:auto}.frame-panel #frame-order-error:empty{display:none}.framing-editor #frame-editor-content[hidden],.framing-editor section[hidden]{display:none!important}.card-price-row{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid #8f805b44}#review-previews img{display:block;width:min(100%,420px);margin:24px auto}.frame-gallery small{white-space:normal}.frame-panel .pair input{height:30px}.frame-panel .pair{margin-bottom:8px}.frame-panel .mat-row{margin:8px 0}.frame-panel h1{margin-bottom:8px}.frame-panel .frame-estimate{margin:10px 0}.frame-panel .selected-frame{padding:8px 0}@media(max-width:800px){.frame-panel{max-height:none}}

/* Align the full preview with the complete panel, with actions below. */
.frame-layout{grid-template-rows:auto auto auto;align-items:stretch;row-gap:10px}
.frame-preview{display:contents}
.frame-preview .preview-caption{grid-column:1;grid-row:1;margin:0;align-items:center;min-height:34px}
.original-choice{display:flex;align-items:center;gap:8px;white-space:nowrap}
.original-choice select{font:inherit;color:inherit;background:transparent;border:1px solid #75858d;border-radius:3px;padding:5px}
.original-choice option{color:#183543;background:#fff}
.framing-editor #preview-upload{grid-column:1;grid-row:2;position:relative;min-height:400px}
.frame-preview svg{position:absolute;inset:0;width:100%;height:100%}
.frame-panel{grid-column:2;grid-row:2;margin:0;max-height:none;overflow:visible}
.frame-preview #upload{grid-column:1;grid-row:3;justify-self:center;margin:0}
.frame-order-actions{grid-column:2;grid-row:3;align-self:start}
.frame-order-actions>.primary{width:100%;padding:12px 8px}
.frame-order-actions p:empty,.frame-preview #image-error:empty{display:none}
.frame-preview #image-error{grid-column:1;grid-row:4;margin:0}
.frame-gallery{grid-column:1/-1;grid-row:5}
@media(max-width:800px){
.frame-gallery{grid-row:1}.frame-preview .preview-caption{grid-row:2;flex-wrap:wrap}
.framing-editor #preview-upload{grid-column:1;grid-row:3;aspect-ratio:1;min-height:0}
.frame-preview #upload{grid-row:4}.frame-preview #image-error{grid-row:5}
.frame-panel{grid-column:1;grid-row:6}.frame-order-actions{grid-column:1;grid-row:7}
}

#frame-summary-dialog{width:min(600px,94vw);max-height:90dvh;overflow:auto;box-sizing:border-box;padding:24px;background:#f7fbfd;color:#183543;border:1px solid #b3bfc4;border-radius:5px}
#frame-summary-dialog::backdrop{background:#00101dcc}
.frame-modal-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.frame-modal-heading h2{font:500 28px 'EB Garamond',Georgia,serif;margin:0}
#frame-summary-close{border:1px solid #b3bfc4;background:transparent;color:#183543;border-radius:50%;width:40px;height:40px;font-size:24px;padding:0;cursor:pointer}
#frame-summary-preview svg{display:block;width:min(100%,330px);height:auto;margin:12px auto}
.frame-quantity-label{display:flex;align-items:center;gap:12px;margin-bottom:12px}
#frame-quantity{color-scheme:light;background:#fff;color:#183543;border:1px solid #9aaeb8;border-radius:3px;width:90px;padding:10px;font:inherit}
#frame-summary-dialog p{font-size:13px}.frame-modal-actions{text-align:center;margin-top:18px}
#frame-summary-dialog .primary{background:#1c3e4e;color:white;border:0;padding:14px 24px;cursor:pointer}

.framing-editor .orientation-switch{display:inline-flex;gap:0;white-space:nowrap}.framing-editor .orientation-switch button{padding:7px 10px;min-height:34px;border:1px solid #75858d;border-radius:0;background:transparent;color:inherit;font:inherit;cursor:pointer}.framing-editor .orientation-switch button:first-child{border-radius:4px 0 0 4px}.framing-editor .orientation-switch button:last-child{border-radius:0 4px 4px 0;margin-left:-1px}.framing-editor .orientation-switch button[aria-pressed=true]{background:#dfc78f;color:#071421;border-color:#dfc78f;position:relative}.framing-editor .orientation-switch button:focus-visible{outline:2px solid #b78c39;outline-offset:3px;z-index:1}
