/* Shared workspace shell for upload, design, waiting and completed previews. */
body.customizer-page{background:#f8f7f3}
.customizer-page header.workspace-header{height:72px;min-height:72px;width:100%;padding:0 max(40px,calc((100vw - 1200px)/2));display:flex;justify-content:space-between;align-items:center;gap:24px;border-bottom:1px solid #e7e4dc;background:#fbfaf7;box-sizing:border-box;position:relative;z-index:60}
.customizer-page .workspace-brand{font:700 30px/1 Georgia,serif;letter-spacing:-1.3px;color:#282c25;text-decoration:none;flex-shrink:0}
.customizer-page .workspace-tools{display:flex;align-items:center;gap:22px;margin:0;padding:0;min-width:0;font-size:13px}
.customizer-page .workspace-back{font:13px/1.5 Arial,'PingFang SC',sans-serif;color:#5b6056;text-decoration:none;white-space:nowrap;padding:8px 0}
.customizer-page .workspace-divider{height:16px;width:1px;background:#deddd5;flex-shrink:0}
.customizer-page .workspace-header .language-picker{margin:0}
.customizer-page .workspace-header .language-trigger{border:0;border-radius:6px;background:transparent;font-size:13px;padding:8px 0;gap:12px;color:#5b6056}
.customizer-page .workspace-header .language-trigger>.language-flag{display:none}
.customizer-page .workspace-header a:focus-visible{outline:2px solid var(--wine);outline-offset:5px;border-radius:3px}
.customizer-page main{padding-bottom:48px}
.customizer-page .journey{max-width:740px;margin:24px auto 0}
.customizer-page .page-heading{margin:34px 0 28px}
.customizer-page .page-heading h1,.customizer-page #order-dialog.order-inline #order-heading{font-size:32px;line-height:1.35;letter-spacing:-.5px;font-weight:500}
.customizer-page #order-dialog.order-inline{margin-top:34px}
.customizer-page #order-dialog[data-state=done]{margin-top:30px}
.customizer-page .photo-card,.customizer-page .selection-summary,.customizer-page .preview-design-summary,.customizer-page .preview-status-panel{border-color:#e2dfd5;border-radius:12px;background:#fffdf9}
.customizer-page .preview-status-panel,.customizer-page .result-order-panel{box-shadow:0 6px 24px #3b342906}
.customizer-page .drop-zone,.customizer-page .upload-example img,.customizer-page .preview-result-art>figure img{border-radius:12px}
.customizer-page .picture-card{border-radius:10px;border-color:#e2dfd5}
.customizer-page .card-photo,.customizer-page .composition-illustration{border-radius:6px}
.customizer-page .preview-result-workspace{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:28px}
.customizer-page .preview-result-workspace .preview-design-summary{padding:24px}
.customizer-page .result-design-info{border:0;border-top:1px solid #e2dfd5;background:none;padding:20px 0;margin-top:20px;border-radius:0}
.customizer-page .result-order-panel .configuration-pricing dl>div{padding:5px 0}
.customizer-page .result-order-panel .configuration-pricing .configuration-total{padding-top:14px}
.customizer-page .result-order-panel .order-actions{gap:8px}
@media(max-width:1100px){
 .customizer-page .preview-result-workspace{grid-template-columns:minmax(0,1.15fr) minmax(360px,1fr);gap:24px}
}
@media(max-width:1000px){
 .customizer-page header.workspace-header{padding-inline:28px}
}
@media(max-width:800px){
 .customizer-page .preview-result-workspace{grid-template-columns:1fr}
}
@media(max-width:620px){
 .customizer-page header.workspace-header{height:64px;min-height:64px;padding-inline:18px;gap:14px}
 .customizer-page .workspace-brand{font-size:26px}
 .customizer-page .workspace-tools{gap:12px}
 .customizer-page .workspace-back,.customizer-page .workspace-header .language-trigger{font-size:12px}
 .customizer-page .workspace-header .language-trigger{gap:6px}
 .customizer-page .workspace-header .language-name{max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .customizer-page .journey{margin-top:22px}
 .customizer-page .page-heading{margin:28px 0 22px}
 .customizer-page .page-heading h1,.customizer-page #order-dialog.order-inline #order-heading{font-size:26px;line-height:1.4}
 .customizer-page #order-dialog.order-inline{margin-top:28px}
 .customizer-page .preview-result-workspace .preview-design-summary{padding:20px}
 .customizer-page main{padding-bottom:30px}
}
@media(max-width:620px){
 .customizer-page .journey{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .customizer-page .journey li{min-width:0;flex-direction:column;align-items:center;gap:6px;text-align:center}
 .customizer-page .journey li>span{max-width:100%;overflow-wrap:anywhere;line-height:1.4}
 .customizer-page .workspace-tools{min-width:0}
 .customizer-page .workspace-back{max-width:90px;overflow:hidden;text-overflow:ellipsis}
}
@media(max-width:380px){
 .customizer-page header.workspace-header{gap:10px}
 .customizer-page .workspace-brand{font-size:24px}
 .customizer-page .workspace-tools{gap:8px}
 .customizer-page .workspace-header .language-name{max-width:44px}
 .customizer-page .workspace-back{max-width:64px}
}
/* Keep the accessible file input inside the viewport in either text direction. */
.customizer-page #photo.visually-hidden{inset-inline-start:0;margin:0}

/* Style gallery: two rows followed by a quiet disclosure button. */
#style-options,#extra-styles{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#more-styles{margin-top:20px}
.customizer-page #more-styles summary{display:flex;align-items:center;justify-content:center;gap:10px;width:fit-content;min-width:168px;margin:0 auto;padding:12px 24px;border:1px solid #dcd5ca;border-radius:24px;background:#fffdf8;color:#625b51;text-decoration:none;font-size:14px;font-weight:500;cursor:pointer;list-style:none;transition:background .15s,border-color .15s}
#more-styles summary::-webkit-details-marker{display:none}
#more-styles summary:hover{background:#f0e9df;border-color:#b8a492}
#more-styles summary:focus-visible{outline:2px solid #7d3048;outline-offset:4px}
.customizer-page #more-styles summary>span{font:inherit;line-height:1.5;transform:none}
.customizer-page #more-styles[open] summary{padding:12px 24px}
#more-styles summary svg{flex-shrink:0;transition:transform .2s}
#more-styles .styles-collapse{display:none}
#more-styles[open] .styles-collapse{display:inline}
#more-styles[open] .styles-expand{display:none}
#more-styles[open] summary svg{transform:rotate(180deg)}
#extra-styles{margin-top:20px}
@media(max-width:620px){#style-options,#extra-styles{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}

/* Photo actions share one aligned control row, separate from filename. */
.customizer-page .photo-filename{margin:12px 0 14px;font-size:12px;line-height:1.5;color:#898277;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customizer-page .photo-actions{display:flex;gap:8px;margin:0;align-items:stretch}
.customizer-page .photo-actions button,.customizer-page .photo-card #remove-photo{display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;margin:0;padding:10px 12px;border:1px solid #ddd5c9;border-radius:8px;font:500 12px/1.5 Arial,'PingFang SC',sans-serif;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.customizer-page .photo-actions .photo-replace{flex:1;background:#f4eee6;color:#63384a;border-color:#ddd0c7}
.customizer-page .photo-actions #remove-photo{flex:0 0 auto;background:transparent;color:#81786e}
.customizer-page .photo-actions button svg{flex-shrink:0}
.customizer-page .photo-actions button span{overflow:visible;white-space:normal;text-overflow:clip}
.customizer-page .photo-actions .photo-replace:hover{background:#ece1d8;border-color:#bca595}
.customizer-page .photo-actions #remove-photo:hover{background:#faeeeb;border-color:#d8b3aa;color:#9b443b}
.customizer-page .photo-actions button:focus-visible{outline:2px solid #7d3048;outline-offset:3px}
.customizer-page .photo-actions button:active{transform:translateY(1px)}

/* Approved concept A: full-width replacement and quiet removal below. */
.customizer-page .photo-card{border-radius:16px;padding:20px}
.customizer-page .photo-card>img{border-radius:10px}
.customizer-page .photo-filename[hidden]{display:none}
.customizer-page .photo-actions{flex-direction:column;gap:8px;margin-top:16px}
.customizer-page .photo-actions .photo-replace{flex:none;width:100%;min-height:44px;border-radius:10px;background:#f3e7de;border-color:#ead8cb;color:#7d3048;font-size:13px}
.customizer-page .photo-card #remove-photo{align-self:center;flex:none;min-height:36px;padding:8px 16px;border:0;background:transparent;color:#82776b;font-size:12px}
.customizer-page .photo-actions #remove-photo:hover{background:#f7efea;color:#9b443b}

/* Balance translated headings without stranding a final character on mobile. */
@media(max-width:620px){.customizer-page #page-title{text-wrap:balance;overflow-wrap:break-word}}
/* Character counts keep their used / maximum order in RTL interfaces. */
.customizer-page .text-count{direction:ltr;unicode-bidi:isolate}
