*{box-sizing:border-box} :root{font-family:Arial,Helvetica,sans-serif;color:#17282e;background:#f6f8f9;font-size:16px;--accent:#176875}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button,a,input,textarea{outline-offset:4px}header{height:82px;background:white;border-bottom:1px solid #dfe6e9;display:flex;align-items:center;gap:30px;padding:0 max(24px,calc((100vw - 1320px)/2));position:sticky;top:0;z-index:5}.brand{color:#17282e;font-size:23px;font-weight:700;text-decoration:none;letter-spacing:-1px}.brand span{font-weight:400;color:var(--accent)}.header-label{font-size:14px;color:#63737a;border-left:1px solid #dfe6e9;padding-left:30px}.cart-button{margin-left:auto;background:white;border:1px solid #ccd8dc;border-radius:8px;padding:12px 18px}.cart-button b{background:var(--accent);color:white;border-radius:20px;padding:3px 7px;margin-left:8px}main{max-width:1320px;margin:36px auto 60px;display:grid;grid-template-columns:minmax(340px,.9fr) minmax(500px,1.1fr);gap:56px;padding:0 24px}.preview{position:sticky;top:112px;align-self:start;background:white;border:1px solid #dfe6e9;border-radius:14px;overflow:hidden}.preview-top{display:flex;justify-content:space-between;padding:20px 24px;font-size:13px;letter-spacing:1.5px;font-weight:700}.photo{position:relative;background:#edf1f2}.photo img{width:100%;height:295px;object-fit:cover;display:block}.photo button{position:absolute;bottom:15px;right:15px;background:#ffffffed;border:0;padding:10px 14px;border-radius:6px;font-size:14px}.preview-caption{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #e5ebee}.preview-caption h2{font-size:22px;margin:0}.preview-caption span{font-size:12px;color:#6b7980}.summary{padding:24px}.summary h3{font-size:16px;margin:0 0 16px}dl{margin:0;display:grid;grid-template-columns:1fr 1.2fr;gap:9px;font-size:14px}dt{color:#697980}dd{margin:0;text-align:right;font-weight:500}.price-row{display:flex;align-items:center;justify-content:space-between;margin-top:22px;padding-top:20px;border-top:1px solid #e5ebee}.price-row small{display:block;font-size:12px;color:#98722b;margin-top:5px}.price-row strong{font-size:29px}.purchase{display:flex;gap:12px;margin-top:20px;align-items:end}.purchase label{font-size:14px;width:85px}.purchase input{width:100%;margin-top:7px;border:1px solid #d1dce0;border-radius:7px;padding:12px}.primary{background:var(--accent);color:white;border:0;border-radius:7px;padding:15px 20px;font-weight:600}.purchase .primary{flex:1}.note{font-size:13px;line-height:1.6;color:#6c7c83}.summary .note{margin-bottom:0}#feedback{font-size:14px;color:var(--accent)}.eyebrow{font-size:12px;font-weight:700;letter-spacing:2px;color:var(--accent)}h1{font-size:38px;letter-spacing:-1.3px;margin:10px 0}.intro p{color:#6c7c83;margin-bottom:32px}.step{border-top:1px solid #dce5e9;padding:24px 0}.step-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.step-title h2{font-size:19px;margin:0;letter-spacing:-.3px}.step-title h2 span{color:#84969e;font-size:13px;margin-right:13px}.step-title>span{font-size:13px;color:var(--accent)}.help{border:0;background:none;color:var(--accent);font-size:14px;padding:0;text-decoration:underline;text-underline-offset:3px}.choices{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.option{border:1px solid #d2dde1;background:white;border-radius:8px;padding:16px;text-align:left;color:#24383f;min-height:55px}.option.selected{border:2px solid var(--accent);padding:15px;background:#eff7f8}.option small{display:block;font-size:12px;color:#6e7c82;margin-top:7px}.dimensions{display:grid;grid-template-columns:1fr 1fr;gap:18px}.dimensions label{font-size:14px;font-weight:600}.input-unit{position:relative;margin-top:9px}.input-unit input{width:100%;border:1px solid #ccd9de;border-radius:7px;padding:15px 50px 15px 16px;font-size:20px;background:white}.input-unit span{position:absolute;right:16px;top:18px;color:#7a8a92;font-size:14px}.dimensions small{display:block;font-size:12px;font-weight:400;color:#7a8a92;margin-top:9px}.collection{border:2px solid var(--accent);border-radius:8px;background:#eff7f8;padding:18px;display:flex;justify-content:space-between;align-items:center}.collection p{font-size:14px;color:#667980;margin:6px 0 0}.selected-tag{font-size:12px;color:var(--accent);background:white;padding:7px 10px;border-radius:5px}.swatches{display:grid;grid-template-columns:repeat(6,1fr);gap:14px 10px}.swatch{border:0;background:none;padding:0;text-align:left;min-width:0}.swatch img{width:100%;height:66px;object-fit:cover;border-radius:6px;border:2px solid transparent;padding:2px}.swatch.selected img{border-color:var(--accent)}.swatch .name{display:block;font-size:12px;line-height:1.35;margin-top:5px;min-height:32px}.swatch .code{display:block;color:#849198;font-size:12px;margin-top:2px}.profiles{grid-template-columns:repeat(4,1fr)}.profiles .option{font-size:13px;padding:12px;display:flex;gap:8px;align-items:center}.profiles .selected{padding:11px}.chip{width:18px;height:18px;border:1px solid #bdc8cd;flex-shrink:0;border-radius:50%}.bottom-note{font-size:14px;color:#74848b;padding:20px;background:#eaf0f2;border-radius:8px}footer{max-width:1320px;padding:24px;margin:auto;border-top:1px solid #dce5e9;display:flex;justify-content:space-between;font-size:12px;color:#788b94}dialog{width:min(700px,94vw);max-height:90vh;border:0;border-radius:14px;padding:26px;color:#17282e;box-shadow:0 20px 100px #102f3e50}dialog::backdrop{background:#10232b80}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:10px}.dialog-head h2{font-size:24px;margin:0}.dialog-head button{background:#eef2f3;border:0;border-radius:50%;height:35px;width:35px}.cart-item{display:flex;gap:18px;padding:20px 0;border-top:1px solid #e1e8eb}.cart-item img{width:80px;height:90px;object-fit:cover;border-radius:7px}.cart-item .details{flex:1}.cart-item h3{font-size:16px;margin:0 0 8px}.cart-item p{font-size:13px;color:#6b7b83;line-height:1.6;margin:0 0 8px}.item-actions{display:flex;align-items:center;gap:10px;margin-top:12px}.item-actions button{border:1px solid #d1dde2;background:white;border-radius:5px;padding:7px 10px;font-size:13px}.item-actions input{width:60px;padding:6px;border:1px solid #d1dde2;border-radius:5px}.total{display:flex;justify-content:space-between;font-size:22px;padding:20px 0;border-top:1px solid #e1e8eb}.cart-actions{display:flex;gap:10px}.cart-actions button{flex:1}.secondary{border:1px solid #ccd9de;background:white;border-radius:7px;padding:13px}.order-code{width:100%;min-height:90px;margin-top:12px;border:1px solid #ccd9de;border-radius:7px;padding:12px;font-size:12px;resize:vertical}.empty{text-align:center;padding:45px;color:#7b8c94}#zoomImage{width:100%;border-radius:7px}#helpBody{line-height:1.8;font-size:16px} @media(max-width:1050px){main{gap:24px;grid-template-columns:minmax(290px,.85fr) minmax(400px,1.15fr)}.swatches{grid-template-columns:repeat(5,1fr)}.profiles{grid-template-columns:repeat(3,1fr)}.preview-caption{display:block}.preview-caption span{display:block;margin-top:7px}.purchase{flex-wrap:wrap}.price-row strong{font-size:24px}}@media(max-width:760px){header{height:68px;padding:0 16px;gap:12px}.header-label{display:none}.brand{font-size:20px}.cart-button{padding:9px 12px}main{display:flex;flex-direction:column;padding:0 16px;margin-top:20px;gap:24px}.preview{position:static;order:2;width:100%}.config{order:1}h1{font-size:32px}.intro p{margin-bottom:24px}.swatches{grid-template-columns:repeat(4,1fr)}.swatch img{height:74px}.profiles{grid-template-columns:repeat(3,1fr)}.step-title{flex-wrap:wrap}.photo img{height:260px}.purchase{flex-wrap:nowrap}footer{margin:0 16px;padding:24px 0;display:block;line-height:1.8}footer span{display:block}.cart-actions{flex-direction:column}}

.variant-label{font-size:14px;color:#63737a;margin:20px 0 10px}.mount-variants{grid-template-columns:repeat(3,1fr)}.photo .photo-nav{top:50%;bottom:auto;transform:translateY(-50%);width:38px;height:44px;padding:0;font-size:30px;line-height:1;border:1px solid #d4dfe3;box-shadow:0 2px 8px #17282e15}.photo .previous{left:12px;right:auto}.photo .next{right:12px}.photo-thumbnails{padding:12px 24px;display:flex;gap:10px;align-items:center;border-bottom:1px solid #e5ebee}.photo-thumb{width:64px;height:48px;padding:2px;background:white;border:2px solid transparent;border-radius:5px}.photo-thumb.selected{border-color:var(--accent)}.photo-thumb img{width:100%;height:100%;object-fit:cover;border-radius:2px}.photo-counter{margin-left:auto;font-size:13px;color:#697980}@media(max-width:760px){.mount-variants{grid-template-columns:repeat(2,1fr)}}

/* Full photograph with a padded carousel stage. */
.photo{padding:28px 52px 64px;background:#f0f3f4}
.photo img{height:auto;aspect-ratio:3 / 2;object-fit:contain;background:transparent;border-radius:6px}
.photo #zoom{bottom:16px;right:20px}
.photo .previous{left:10px}
.photo .next{right:10px}
.photo-thumb{width:72px;height:56px;padding:5px;background:#f0f3f4}
.photo-thumb img{object-fit:contain}
@media(max-width:760px){.photo{padding:20px 44px 60px}.photo img{height:auto;aspect-ratio:3 / 2}.photo #zoom{right:16px;bottom:14px}.photo .photo-nav{width:32px;height:40px}.photo .previous{left:6px}.photo .next{right:6px}}

#profile{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}#profile .profile-tile{display:flex;flex-direction:column;gap:0;align-items:stretch;padding:8px;text-align:center;min-width:0;background:#fff}#profile .profile-tile.selected{padding:7px;background:#eff7f8}.profile-photo{display:flex;align-items:center;justify-content:center;height:112px;padding:12px 4px;background:#f0f3f4;border-radius:5px}.profile-photo img{width:100%;height:100%;object-fit:contain;display:block}.profile-name{font-size:14px;font-weight:500;line-height:1.35;padding:13px 3px 6px;min-height:50px;display:flex;align-items:center;justify-content:center}@media(max-width:760px){#profile{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.profile-photo{height:120px;padding:12px 4px}}

/* Profile tiles follow the fabric swatch grid and caption rhythm. */
#profile{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px 10px}
#profile .profile-tile,#profile .profile-tile.selected{padding:0;border:0;background:none;text-align:left;display:block;min-height:0}
.profile-photo{height:66px;padding:5px;border:2px solid transparent;border-radius:6px;background:#edf1f2}
#profile .profile-tile.selected .profile-photo{border-color:var(--accent)}
.profile-name{display:block;min-height:32px;font-size:12px;line-height:1.35;font-weight:400;padding:0;margin-top:5px}
@media(max-width:1050px){#profile{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:760px){#profile{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 10px}.profile-photo{height:74px;padding:5px}}

#mount .mount-tile{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:8px;min-width:0;text-align:center}#mount .mount-tile.selected{padding:7px}.mount-photo{height:132px;padding:8px;background:#eef2f3;border-radius:5px;display:flex;align-items:center;justify-content:center}.mount-photo img{width:100%;height:100%;object-fit:contain;display:block}.mount-name{display:block;font-size:14px;line-height:1.4;padding:12px 2px 5px}@media(max-width:760px){.mount-photo{height:120px}}

/* Compact circular mounting choices at the supplied photo scale. */
#mount.mount-variants{grid-template-columns:repeat(3,96px);gap:14px;justify-content:start}
#mount .mount-tile,#mount .mount-tile.selected{padding:0;border:0;background:none;align-items:center;min-height:0}
.mount-photo{width:80px;height:80px;padding:3px;background:transparent;border:2px solid transparent;border-radius:50%}
.mount-photo img{width:100%;height:100%;object-fit:contain;border-radius:50%}
#mount .mount-tile.selected .mount-photo{border-color:var(--accent);background:#eff7f8}
.mount-name{font-size:13px;line-height:1.35;padding:7px 0 0;min-height:25px}
@media(max-width:760px){#mount.mount-variants{grid-template-columns:repeat(3,88px);gap:10px}.mount-photo{width:74px;height:74px}}

/* Taller fabric selection tiles. */
#colors .swatch img{height:110px}
@media(max-width:760px){#colors .swatch img{height:110px}}

.photo canvas{display:block;width:100%;height:auto;border-radius:6px}.photo [hidden]{display:none!important}.photo:has(canvas:not([hidden])){padding:16px 42px 58px}.photo-thumbnails{gap:7px}.photo-thumb{flex-shrink:1;min-width:0}.photo-counter{white-space:nowrap}

/* Keep the preview beside all configuration steps, including profiles. */
@media(min-width:761px){
 .preview{top:96px;max-height:calc(100dvh - 112px);overflow-y:auto;overscroll-behavior:auto;scrollbar-width:thin}
 .photo canvas{max-height:30dvh;object-fit:contain}
 .photo img{max-height:30dvh;object-fit:contain}
}

@media(min-width:761px){
 .preview{top:min(96px,calc(100dvh - var(--preview-height,900px) - 16px));max-height:none;overflow:hidden}
 .photo canvas{max-height:50dvh;object-fit:contain}
}

@media(min-width:761px){
 .photo canvas,.photo img{max-height:none}
 .preview{top:96px;max-height:none;overflow:hidden}
 main{padding-bottom:320px}
}

/* A full-height column lets the preview follow through the profile step. */
@media(min-width:761px){
 main{padding-bottom:0;align-items:stretch}
 .preview-column{min-width:0;position:relative}
 .preview{position:sticky;top:96px}
 .photo:has(canvas:not([hidden])){padding:16px 42px 58px}
}
@media(max-width:760px){.preview-column{order:2;width:100%}}
@media(min-width:761px){.preview-column{padding-bottom:700px;margin-bottom:-700px}}
@media(min-width:761px){.preview-column{padding-bottom:0;margin-bottom:calc(-1 * var(--preview-extra,0px));height:var(--preview-column-height,auto);align-self:start}.preview{top:96px}}

.collection-options{grid-template-columns:1fr 1fr}.collection-choice strong{font-size:16px}.collection-choice small{line-height:1.5}

/* Show complete fabric photographs without cropping or stretching. */
#colors .swatch img{object-fit:contain;object-position:center;background:transparent}

/* Compact header leaves more room for the configurator. */
header{height:60px}.cart-button{padding:9px 16px}
@media(min-width:761px){.preview{top:74px}}
@media(max-width:760px){header{height:56px}.cart-button{padding:8px 12px}}

/* Reserve screen space for the complete photograph and carousel controls. */
@media(min-width:761px){
 .preview{max-width:520px;margin-inline:auto}
 .photo,.photo:has(canvas:not([hidden])){padding:16px 36px 52px}
 .photo canvas,.photo img{width:auto;height:auto;max-width:100%;max-height:max(220px,calc(100dvh - 300px));aspect-ratio:auto;object-fit:contain;display:block;margin-inline:auto}
 .photo-thumbnails{padding:10px 16px;gap:8px}
 .photo-thumb{flex:0 1 64px;min-width:0;height:50px}
}

.photo canvas[hidden],.photo img[hidden]{display:none}
#mount.mount-variants{grid-template-columns:repeat(3,110px)}
.mount-photo{width:96px;height:96px}
@media(max-width:760px){#mount.mount-variants{grid-template-columns:repeat(3,minmax(0,100px));gap:8px}.mount-photo{width:88px;height:88px}}
#add{display:flex;align-items:center;justify-content:center;gap:9px;transition:background-color .25s ease,box-shadow .25s ease}
#add.added{background:#28734c;animation:added-pulse .45s ease}
.added-check{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.added-check path{stroke-dasharray:25;stroke-dashoffset:25;animation:added-draw .4s ease .05s forwards}
@keyframes added-draw{to{stroke-dashoffset:0}}
@keyframes added-pulse{50%{box-shadow:0 0 0 5px rgba(40,115,76,.14)}}
@media(prefers-reduced-motion:reduce){#add{transition:none}#add.added,.added-check path{animation:none}.added-check path{stroke-dashoffset:0}}

.unit-warning{margin:8px 0 0;padding:10px 12px;border:1px solid #edcf8a;border-radius:8px;background:#fff8e8;color:#805714;font-size:13px;line-height:1.5;font-weight:400}.unit-warning[hidden]{display:none}

.cart-preview{width:96px;height:120px;flex:0 0 96px;object-fit:contain;align-self:flex-start;background:#f7f5f1;border-radius:8px}@media(max-width:480px){.cart-preview{width:80px;height:100px;flex-basis:80px}}

#cartOpen{position:relative;transition:background-color .2s,color .2s,box-shadow .2s}
#cartOpen.cart-received{background:#e9f7ef;color:#216544;box-shadow:0 0 0 4px rgba(40,115,76,.12);animation:cart-received-pulse .6s ease-out}
#cartOpen.cart-received #cartCount{background:#28734c;color:#fff;animation:cart-count-pop .45s ease-out}
.cart-added-signal{position:absolute;top:calc(100% + 10px);right:0;white-space:nowrap;background:#28734c;color:#fff;padding:7px 12px;border-radius:8px;font-size:12px;line-height:1.4;box-shadow:0 3px 12px #0002;opacity:0;transform:translateY(-4px);pointer-events:none;transition:opacity .2s,transform .2s}
.cart-received .cart-added-signal{opacity:1;transform:translateY(0)}
@keyframes cart-received-pulse{0%,100%{transform:translateY(0)}35%{transform:translateY(-4px)}65%{transform:translateY(2px)}}
@keyframes cart-count-pop{0%,100%{transform:scale(1)}45%{transform:scale(1.28)}}
@media(prefers-reduced-motion:reduce){#cartOpen,.cart-added-signal{transition:none}#cartOpen.cart-received,#cartOpen.cart-received #cartCount{animation:none}}
.allegro-quantity-note{display:flex;align-items:baseline;justify-content:center;gap:6px;flex-wrap:wrap;padding:13px 16px;margin:0 0 18px;border-radius:9px;background:#eff7f8;font-size:14px;color:#33565d}.allegro-quantity-note strong{color:#176875}.allegro-quantity-note span{margin-left:8px;font-size:12px;color:#617d83}
#codeArea{scroll-margin-block:24px}.order-code-card{margin-top:24px;padding:26px 22px 24px;text-align:center;border:1px solid #c8e2e5;border-radius:16px;background:linear-gradient(145deg,#f4fafb,#e8f5f4);box-shadow:0 8px 24px #1768750c}.order-code-card h3{margin:20px 0 12px;font-size:12px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:#52767c}.code-save-message{margin:0;color:#326a59;font-size:13px;line-height:1.5}.order-code-card.pending .code-save-message{color:#8b651b}.order-code-button{display:flex;align-items:center;justify-content:center;gap:18px;max-width:430px;width:100%;margin:auto;padding:20px 18px;border:1px solid #b0d4d9;border-radius:12px;background:#fff;color:#176875;box-shadow:0 3px 12px #1768750b;transition:background .18s,border-color .18s,box-shadow .18s}.order-code-button:hover{background:#faffff;border-color:#176875;box-shadow:0 5px 18px #17687518}.order-code-button:focus-visible{outline:3px solid #176875;outline-offset:4px}.code-value{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:clamp(28px,6vw,42px);font-weight:750;letter-spacing:.08em;line-height:1.2}.code-copy-icon{width:22px;height:22px;flex-shrink:0;opacity:.7}.order-code-button.copied{border-color:#4a9b76;background:#f4fcf7;color:#287552}.code-copy-status{min-height:20px;margin:12px 0 20px;color:#5e7a80;font-size:13px}.order-code-button.copied+.code-copy-status{color:#287552;font-weight:600}.code-allegro-quantity{display:flex;flex-direction:column;align-items:center;gap:5px;padding-top:18px;border-top:1px solid #cce2e5;color:#375e65;font-size:14px}.code-allegro-quantity strong{font-size:32px;color:#17282e;line-height:1.2}.code-allegro-quantity small{font-size:16px;font-weight:500}.code-allegro-quantity .unit-price{font-size:12px;color:#648087}@media(max-width:480px){.order-code-card{padding:22px 14px}.order-code-button{padding:18px 10px;gap:12px}.code-value{letter-spacing:.06em}.allegro-quantity-note span{margin-left:0}}@media(prefers-reduced-motion:reduce){.order-code-button{transition:none}}
#cartDialog .dialog-head{position:sticky;top:0;z-index:10;background:white;margin:-26px -26px 14px;padding:10px 26px;border-bottom:1px solid #e1e8eb;box-shadow:0 5px 12px #17282e08}#cartDialog .dialog-head button{flex-shrink:0}#cartDialog .dialog-head h2{font-size:20px}#cartDialog{scroll-padding-top:65px}

/* Compact fabric and profile grids, preserving complete photographs. */
#colors,#profile{gap:10px 8px;align-items:start}
#colors .swatch{align-self:start}
#colors .swatch img{height:auto;display:block}
#colors .swatch .name,#profile .profile-name{min-height:0;margin-top:5px}

footer{border-top:0}

#helpDialog.measurement-dialog{width:min(1000px,94vw)}
.measurement-photo{display:block;width:100%;padding:12px;background:#fff;border:1px solid #dce5e9;border-radius:10px;cursor:zoom-in;color:#176875}
.measurement-photo img{display:block;width:100%;height:auto;object-fit:contain}
.measurement-photo span{display:block;padding-top:8px;font-size:14px;font-weight:600}
.measurement-units{margin:16px 0 8px;color:#176875}
.measurement-note{font-size:14px;color:#64757e;margin:8px 0}
#zoomDialog.measurement-zoom{width:min(1450px,96vw)}
@media(max-width:760px){#helpDialog.measurement-dialog{padding:16px}.measurement-dialog .dialog-head h2{font-size:18px}.measurement-photo{padding:4px}}

.photo-thumb canvas{display:block;width:100%;height:100%;object-fit:contain;border-radius:2px}

/* Aligned mounting tabs and solid guide-colour tiles. */
[hidden]{display:none!important}
#mountCategory{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch}
#mountCategory .option{padding:10px;min-width:0;display:flex;align-items:flex-start;min-height:60px}
#mountCategory .option.selected{padding:9px}
#mountCategory .option small{line-height:1.4;min-height:0;margin-top:5px}
#guideColor.guide-options{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px 8px;align-items:start}
#guideColor .guide-tile,#guideColor .guide-tile.selected{display:block;padding:0;border:0;background:none;min-width:0;min-height:0;text-align:left}
#guideColor .guide-tile.selected .guide-swatch{border-color:var(--accent)}
.guide-swatch{height:66px;padding:5px;border:2px solid transparent;border-radius:6px;display:block}
.guide-white{background:#f6f6f3}.guide-cream{background:#eddeb0}.guide-silver{background:#b9c0c4}
#guideColor .profile-name{min-height:0;margin-top:5px;font-size:12px;line-height:1.35}
@media(max-width:1050px){#guideColor.guide-options{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:760px){#guideColor.guide-options{grid-template-columns:repeat(4,minmax(0,1fr))}.guide-swatch{height:74px}}
@media(max-width:420px){#mountCategory .option{font-size:13px;padding:10px 7px}#mountCategory .option.selected{padding:9px 6px}#mountCategory .option small{font-size:11px}}

/* Tighter spacing between configuration steps. */
.config .step{padding:16px 0}
.config .step-title{margin-bottom:12px}
.config .variant-label{margin:14px 0 8px}

/* Preview and order summary share the full configuration height. */
main{row-gap:28px}
.configuration-summary{min-width:0;background:#fff;border:1px solid #dfe6e9;border-radius:14px;padding:28px}
.configuration-summary h2{font-size:20px;margin:0 0 22px;letter-spacing:-.3px}
.configuration-summary dl{font-size:15px;gap:12px 20px;grid-template-columns:minmax(100px,.8fr) minmax(0,1.2fr)}
.configuration-summary dd{overflow-wrap:anywhere}
.configuration-summary .price-row{margin-top:26px;padding-top:22px}
.configuration-summary .purchase{margin-top:24px}
.configuration-summary .purchase label{flex:0 0 90px}
.configuration-summary .purchase .primary{min-height:48px}
.configuration-summary #feedback:empty{display:none}
@media(min-width:761px){
 .preview-column{grid-column:1;grid-row:1 / span 2;align-self:stretch;height:auto;margin:0;padding:0;min-width:0}
 .config{grid-column:2;grid-row:1;min-width:0}
 .configuration-summary{grid-column:2;grid-row:2;align-self:end}
 .preview{position:sticky;top:74px;max-height:calc(100dvh - 90px);overflow:hidden}
 .photo canvas,.photo img{max-height:max(120px,calc(100dvh - 300px));object-fit:contain}
}
@media(max-width:760px){
 .config{order:1}
 .preview-column{order:2;height:auto;margin:0}
 .configuration-summary{order:3;width:100%;padding:22px 18px}
 .configuration-summary dl{font-size:14px;gap:11px 14px}
 .configuration-summary .purchase{gap:10px;flex-wrap:nowrap}
 .configuration-summary .purchase label{flex-basis:75px}
 .configuration-summary .purchase .primary{padding-inline:12px}
}

/* Larger cart, with the purchase link directly below the generated code. */
#cartDialog{width:min(1040px,96vw);max-width:96vw;max-height:94vh;max-height:94dvh;padding:26px 32px;scrollbar-gutter:stable}
#cartDialog .dialog-head{margin:-26px -32px 14px;padding:14px 32px}
.allegro-offer-link{display:flex;align-items:center;justify-content:center;gap:10px;max-width:480px;margin:22px auto 0;text-decoration:none;line-height:1.4;min-height:50px}
.allegro-offer-link:hover{background:#105763}
.allegro-offer-hint{max-width:480px;margin:10px auto 0;color:#5e7a80;font-size:13px;line-height:1.5}
@media(max-width:600px){#cartDialog{width:96vw;max-width:96vw;padding:20px 16px}#cartDialog .dialog-head{margin:-20px -16px 14px;padding:12px 16px}.cart-actions{flex-wrap:wrap}.cart-actions button{min-width:140px}}

#cartDialog[open]{display:flex;flex-direction:column;overflow:hidden;max-height:94dvh;scrollbar-gutter:auto}
#cartDialog .dialog-head{position:relative;top:auto;flex-shrink:0;margin-bottom:0}
#cartItems{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:8px}
#cartFooter:not(:empty){flex-shrink:0;background:white;border-top:1px solid #dce5e9;display:flex;align-items:center;gap:24px;margin:0 -32px -26px;padding:18px 32px;box-shadow:0 -6px 18px #17282e08}
.cart-footer-summary{display:flex;flex-direction:column;gap:5px;min-width:140px}.cart-footer-summary>span{font-size:13px;color:#63777e}.cart-footer-summary strong{font-size:24px}.cart-summary-link{flex:1;text-align:center;text-decoration:none;display:flex;align-items:center;justify-content:center;min-height:52px;line-height:1.4}
@media(max-width:600px){#cartFooter:not(:empty){margin:0 -16px -20px;padding:14px 16px;gap:12px}.cart-footer-summary{min-width:92px}.cart-footer-summary strong{font-size:20px}.cart-summary-link{padding:13px 12px;font-size:14px}}
/* Allegro destinations use a distinct orange accent. */
a[href*="allegro.pl/oferta/"]{color:#bd4200}
a.primary[href*="allegro.pl/oferta/"]{background:#c94700;color:#fff}
a.primary[href*="allegro.pl/oferta/"]:hover{background:#a83a00}
a[href*="allegro.pl/oferta/"]:focus-visible{outline:3px solid #c94700;outline-offset:4px}
