/* The customizer is one workspace; tabs select controls without advancing a flow. */
.ec-customizer{max-width:1280px;margin:0 auto;padding:16px 40px 110px;color:#10183f}
.ec-heading{display:flex;justify-content:space-between;align-items:center;gap:28px;margin-bottom:28px}
.ec-heading .eyebrow{margin-bottom:7px;font-size:10px}
.ec-heading h1{font-size:clamp(27px,3vw,39px);line-height:1.2}
.ec-heading p{color:#566580;font-size:13px;margin-top:9px}
.ec-heading-actions{display:flex;align-items:center;gap:24px;flex-shrink:0}
.ec-heading-actions>.ec-detail{position:relative;padding:0;border:0;min-width:140px}
.ec-heading-actions>.text-btn{white-space:nowrap;font-size:12px}
.ec-heading-actions>.ec-detail>summary{padding:10px 13px;border:1px solid #c8d5eb;border-radius:8px;font-size:12px}
.ec-heading-actions>.ec-detail[open]{position:relative;z-index:12}
.ec-heading-actions>.ec-detail[open]>.ec-product-options{position:absolute;right:0;top:47px;width:430px;box-shadow:0 18px 50px #10225826;background:white;border:1px solid #dce4f3;border-radius:12px;padding:15px}
.ec-heading-actions>.ec-detail>.fine{display:none}
.ec-product-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.ec-product-options .ec-choice{display:flex;align-items:center;gap:10px;padding:8px;text-align:left;font-size:12px}
.ec-product-options .atlas{width:49px;flex:none;border-radius:5px}
.ec-product-options small{display:block;font-size:10px;color:#53627d;margin-top:3px}
.ec-workspace{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(370px,.9fr);gap:42px;align-items:start}
.ec-preview{position:sticky;top:24px;background:#f2f6ff;border:1px solid #e1e8f6;border-radius:18px;overflow:hidden;padding:22px}
.ec-preview-top,.ec-preview-bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:10px;color:#53627d}
.ec-preview-top>span:first-child{font-weight:800;letter-spacing:.1em}
.ec-preview-stage{height:490px;display:flex;align-items:center;justify-content:center;padding:26px 22px}
.ec-preview-stage>.canvas{width:auto;height:auto;max-width:100%;max-height:100%;aspect-ratio:55/85;box-shadow:0 16px 25px #10234826}
.ec-preview-stage>.canvas{height:100%}
.ec-preview-stage>.canvas.badge,.ec-preview-stage>.canvas.landscape,.ec-preview-stage>.canvas.pouch{width:100%;height:auto;max-height:100%}
.ec-preview-stage>.canvas.back{border:1px solid #d0d7e3;background:linear-gradient(145deg,#fff,#e8edf4);color:#52617c}
.ec-back-mark{display:block;font-size:46px;color:#8898b3;letter-spacing:-.04em;margin-bottom:25px}
.ec-preview-stage>.canvas.back strong{display:block;font-size:12px}
.ec-preview-stage>.canvas.back p{margin:8px 12px 0}
.ec-sides{display:flex;gap:5px;padding:3px;background:#e3eafa;border-radius:8px}
.ec-sides .ec-choice{padding:7px 16px;font-size:11px;border:0;background:transparent;border-radius:6px;min-height:35px}
.ec-sides .ec-choice.selected{background:white;color:#042fcb;box-shadow:0 2px 6px #14295312}
.ec-preview-caption{font-size:11px;color:#566580;line-height:1.6;margin-top:16px;min-height:2.8em}
.ec-controls{min-width:0}
.ec-tabs{display:grid;grid-template-columns:1fr 1fr;gap:0;border-bottom:1px solid #dce4f3;margin-bottom:19px}
.ec-tab{border:0;border-bottom:3px solid transparent;background:white;color:#5b6882;font:inherit;font-size:14px;font-weight:700;min-height:48px;padding:10px}
.ec-tab.selected{color:#042fcb;border-bottom-color:#042fcb}
.ec-panel[hidden]{display:none}
.ec-choice{border:1px solid #c8d5eb;background:#fff;color:#10183f;min-width:0;border-radius:9px;font:inherit;font-size:12px;padding:10px;line-height:1.4;min-height:42px}
.ec-choice.selected{border-color:#042fcb;background:#edf2ff;color:#042fcb;box-shadow:inset 0 0 0 1px #042fcb}
.ec-source-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:14px}
.ec-source-options .ec-choice{min-height:45px;font-weight:700}
.ec-upload{padding:18px;background:#f8faff;border:1px dashed #a5b8dc;border-radius:10px;text-align:center}
.ec-upload>label{display:grid;justify-items:center;gap:3px;cursor:pointer}
.ec-upload label strong{font-size:15px}
.ec-upload label>span:last-child{font-size:11px;color:#566580}
.ec-upload-symbol{display:grid;place-items:center;font-size:21px;background:#e7edff;color:#042fcb;border-radius:50%;height:32px;width:32px;margin-bottom:3px}
.ec-upload input{display:block;width:100%;margin-top:13px;min-height:40px;padding:5px;font-size:11px;background:white;border-color:#dce4f3}
.ec-upload input::file-selector-button{background:#042fcb;border:0;border-radius:5px;color:white;padding:7px 11px;margin-right:8px;font:inherit}
.ec-note{font-size:11px;color:#566580;line-height:1.6;margin-top:10px}
.ec-detail{border-bottom:1px solid #dce4f3;padding:15px 0;font-size:12px}
.ec-detail>summary{display:flex;justify-content:space-between;align-items:center;gap:15px;font-weight:650;cursor:pointer;list-style:none;min-height:28px}
.ec-detail>summary::-webkit-details-marker{display:none}
.ec-detail[open]>summary>span{transform:rotate(45deg)}
.ec-detail>summary>span{color:#042fcb;font-size:17px}
.ec-detail>.fine{margin-top:12px}
.ec-position-controls{display:grid;grid-template-columns:1fr;gap:11px;padding-top:18px}
.ec-position-controls .field{font-size:11px;margin:0}
.ec-position-controls input{width:100%}
.ec-library-label{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:14px 0 16px;font-size:12px}
.ec-library-label strong,.ec-library-label .fine{display:block}
.ec-library-label strong{margin-top:2px}
.ec-library-label .text-btn{color:#042fcb;white-space:nowrap}
.ec-mix-row{display:grid;grid-template-columns:60px minmax(0,1fr);gap:10px;margin-top:11px;align-items:center}
.ec-mix-row>span{font-size:12px;font-weight:700}
.ec-mix-row>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ec-mix-row .ec-choice{padding:5px;font-size:11px}
.ec-mix-row .character-mini{width:100%;height:64px;border-radius:5px;background-position:var(--character) 18%;background-size:200% 145%}
.ec-mix-row .bg-mini{height:48px;border-radius:5px;margin-bottom:3px}
.ec-mix-row .ec-choice>span{display:block;margin-top:3px}
.ec-fixed-art{display:grid;grid-template-columns:115px minmax(0,1fr);gap:16px;align-items:center}
.ec-fixed-art p{font-size:12px;color:#566580}
.ec-spec-fields{display:grid;grid-template-columns:1fr;gap:12px}
.ec-spec-fields .field{margin:0;font-size:12px}
.ec-spec-fields select{font-size:12px;width:100%;padding:10px 12px;min-height:43px}
.ec-field-title{font-size:13px;margin:20px 0 10px;letter-spacing:0}
.ec-finish-options,.ec-pattern-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ec-finish-options .ec-choice{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:11px;padding:11px 4px}
.ec-finish-options .finish-swatch{display:block;width:38px;height:24px;border-radius:5px;flex:none}
.ec-pattern-options{margin:15px 0}
.ec-pattern-options .ec-choice{padding:6px;font-size:10px}
.ec-pattern-options img{height:56px;width:100%;object-fit:cover;border-radius:5px;margin-bottom:6px}
.ec-quantity .quantity-panel{margin:22px 0 0;padding:17px;background:white}
.ec-quantity .quantity-panel>.row{font-size:12px;align-items:baseline;gap:9px}
.ec-quantity .quantity-panel>.row>b{font-size:12px;white-space:nowrap}
.ec-quantity .tier-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:12px 0}
.ec-quantity .tier-option,.ec-quantity .tier-option.selected{padding:8px 2px;min-height:71px;gap:4px}
.ec-quantity .tier-option>strong{font-size:12px;letter-spacing:-.03em}
.ec-quantity .tier-option>span,.ec-quantity .tier-option>small{font-size:9px}
.ec-quantity .qty-input{margin:12px 0}
.ec-quantity .quantity-subtotal{padding-top:12px;align-items:center;font-size:12px}
.ec-quantity .quantity-subtotal strong{font-size:22px;white-space:nowrap}
.ec-quantity .value-saving{font-size:11px;line-height:1.5}
.ec-quantity .fine{font-size:10px}
.ec-guide-copy p{margin-top:15px;font-size:12px;color:#566580}
.ec-actionbar{position:fixed;bottom:0;left:0;right:0;z-index:25;display:flex;justify-content:space-between;gap:25px;align-items:center;padding:15px max(40px,calc((100vw - 1200px)/2));background:#fffffff5;border-top:1px solid #dce4f3;box-shadow:0 -7px 20px #10183f07;backdrop-filter:blur(12px)}
.ec-actionbar>div{display:flex;align-items:baseline;gap:15px;flex-wrap:wrap}
.ec-actionbar span,.ec-actionbar small{font-size:11px;color:#566580}
.ec-actionbar strong{font-size:27px;letter-spacing:-.035em;color:#042fcb;white-space:nowrap}
.ec-actionbar>.btn{min-width:235px;min-height:48px}
.ec-review-details{padding:24px;border:1px solid #dce4f3;border-radius:15px;background:#fff}
.ec-review-title{display:flex;justify-content:space-between;align-items:center;gap:15px}
.ec-review-title h2{font-size:23px}
.ec-review-summary{margin:20px 0}
.ec-review-summary>div{display:flex;justify-content:space-between;gap:20px;padding:9px 0;border-bottom:1px solid #edf1f7;font-size:12px}
.ec-review-summary dt{color:#566580}
.ec-review-summary dd{margin:0;text-align:right;font-weight:650}
.ec-review-price{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:6px 0 10px;font-size:13px}
.ec-review-price strong{font-size:29px;white-space:nowrap;color:#042fcb}
.ec-approval{padding:17px;background:#f2f6ff;border:1px solid #dce4f3;border-radius:9px;font-size:12px;margin:20px 0 0}
.ec-approval input{flex:none;margin:3px 0 0}
.ec-review .ec-detail>.btn{margin-top:13px}
@media(max-width:960px){.ec-customizer{padding-left:25px;padding-right:25px}.ec-workspace{grid-template-columns:minmax(0,1fr) minmax(335px,1fr);gap:25px}.ec-preview-stage{height:400px;padding:24px 8px}.ec-heading-actions{gap:14px}.ec-preview{padding:17px}.ec-actionbar{padding:13px 25px}}
@media(max-width:700px){.ec-customizer{padding:7px 20px 115px}.ec-heading{align-items:start;gap:10px;margin-bottom:17px;flex-wrap:wrap}.ec-heading>div:first-child{width:100%}.ec-heading .eyebrow{font-size:9px;margin-bottom:5px}.ec-heading h1{font-size:27px}.ec-heading p{font-size:12px;margin-top:6px}.ec-heading-actions{width:100%;justify-content:space-between;gap:15px}.ec-heading-actions>.ec-detail{min-width:132px}.ec-heading-actions>.ec-detail>summary{padding:6px 11px}.ec-heading-actions>.ec-detail[open]>.ec-product-options{position:absolute;left:0;right:auto;top:39px;width:min(350px,calc(100vw - 40px));padding:10px}.ec-workspace{display:block}.ec-preview{position:static;border-radius:13px;padding:13px 15px;margin-bottom:18px}.ec-preview-stage{height:235px;padding:16px 30px}.ec-preview-stage>.canvas.badge,.ec-preview-stage>.canvas.landscape,.ec-preview-stage>.canvas.pouch{width:auto;height:100%;max-width:100%}.ec-preview-stage>.canvas.landscape,.ec-preview-stage>.canvas.pouch{width:100%;height:auto}.ec-preview-top{font-size:9px}.ec-preview-bottom{gap:8px}.ec-preview-bottom>.fine{font-size:9px}.ec-sides .ec-choice{min-height:31px;padding:6px 15px}.ec-preview-caption{font-size:10px;margin-top:9px;min-height:0}.ec-tabs{margin-bottom:15px}.ec-tab{font-size:13px;min-height:45px}.ec-source-options .ec-choice{font-size:12px}.ec-upload{padding:15px}.ec-upload label strong{font-size:14px}.ec-quantity .quantity-panel{padding:14px;margin-top:19px}.ec-quantity .tier-option>strong{font-size:11px}.ec-quantity .tier-option>span,.ec-quantity .tier-option>small{font-size:9px}.ec-detail{padding:13px 0}.ec-actionbar{padding:11px 16px calc(11px + env(safe-area-inset-bottom));gap:12px;align-items:center}.ec-actionbar>div{display:grid;gap:0;min-width:0}.ec-actionbar span{font-size:9px;white-space:nowrap}.ec-actionbar strong{font-size:22px;line-height:1.4}.ec-actionbar small{font-size:9px}.ec-actionbar>.btn{font-size:12px;min-width:0;width:49%;padding:12px 10px;min-height:47px;flex:none}.ec-review-details{padding:18px}.ec-review-summary{margin:15px 0}.ec-review-title h2{font-size:21px}.ec-approval{padding:13px;font-size:11px}.ec-review-price strong{font-size:25px}.ec-back-mark{font-size:30px;margin-bottom:12px}.ec-preview-stage>.canvas.back strong{font-size:10px}}
@media(max-width:359px){.ec-customizer{padding-left:14px;padding-right:14px}.ec-preview-stage{height:215px}.ec-quantity .tier-option>strong{font-size:10px}.ec-quantity .tier-option>span,.ec-quantity .tier-option>small{font-size:8px}.ec-actionbar strong{font-size:19px}.ec-actionbar>.btn{font-size:11px}.ec-mix-row{grid-template-columns:49px minmax(0,1fr)}}
/* Keep the one approval beside the final action, above any fixed-bar overlap. */
html:has(.ec-customizer){scroll-padding-bottom:130px}
html:has(.ec-customizer.ec-review){scroll-padding-bottom:180px}
.ec-customizer button,.ec-customizer input,.ec-customizer select,.ec-customizer summary{scroll-margin-bottom:130px;scroll-margin-top:25px}
.ec-review{padding-bottom:175px}
.ec-review .ec-actionbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 25px;padding-top:10px;padding-bottom:12px}
.ec-actionbar .ec-approval{grid-column:1/-1;margin:0;border:0;background:transparent;padding:0;font-size:12px;align-items:center}
.ec-actionbar .ec-approval input{margin:0;min-height:18px}
.ec-actionbar .ec-approval>span{color:#10183f;font-size:12px;line-height:1.5;white-space:normal}
.ec-review .ec-actionbar>.btn{width:auto;min-width:235px}
@media(max-width:700px){
  .ec-review{padding-bottom:185px}
  .ec-review .ec-actionbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom))}
  .ec-actionbar .ec-approval{align-items:start;gap:9px}
  .ec-actionbar .ec-approval input{margin-top:1px}
  .ec-actionbar .ec-approval>span{font-size:10px;line-height:1.5}
  .ec-review .ec-actionbar>.btn{width:100%;min-width:0}
}
.ec-unavailable{padding:15px;background:#f2f6ff;border:1px solid #c8d5eb;border-radius:9px;color:#344763;font-size:12px;line-height:1.65}
