/* The original controls remain the state bridge. Their complete choices are shown in the dialog. */
.smp-native-bridge,.smp-replaced-grid{display:none!important}
.smp-launcher{display:flex!important;align-items:center;gap:14px;width:100%;min-height:88px;padding:12px;text-align:left;border:1px solid #cfc7bc;border-radius:10px;background:#fff;color:#292620;font:inherit;cursor:pointer;box-sizing:border-box;margin:8px 0 12px;white-space:normal}
.smp-launcher:hover,.smp-launcher:focus-visible{border-color:#524a3d;outline:2px solid #b8a58a;outline-offset:2px}
.smp-preview{display:flex;flex-shrink:0;align-items:stretch;justify-content:center;width:72px;height:64px;overflow:hidden;border-radius:5px;background:#f2efe9;border:1px solid #e8e2d9;box-sizing:border-box}
.smp-preview img{display:block;width:100%;height:100%;object-fit:contain;background:#f7f4ef}
.smp-preview.smp-multipart>*{min-width:0;flex:1}
.smp-preview-text{align-items:center;font:24px Georgia,serif;color:#8f8272}
.smp-colour{display:block;width:100%;height:100%}
.smp-launcher-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}
.smp-launcher-copy strong{font-weight:500;overflow-wrap:anywhere;line-height:1.35}
.smp-launcher-copy small{font:12px/1.3 Arial,sans-serif;color:#746a5e}
.smp-launcher-action{flex-shrink:0;font:12px Arial,sans-serif;color:#615442}
.smp-dialog{position:fixed;inset:0;width:min(1000px,calc(100vw - 40px));max-width:none;height:min(850px,calc(100dvh - 40px));max-height:none;padding:0;margin:auto;border:1px solid #d4ccbe;border-radius:16px;background:#faf8f4;color:#28251f;box-shadow:0 18px 90px #0003;overflow:auto;font-family:inherit;box-sizing:border-box;z-index:2147482000}
.smp-dialog::backdrop{background:#18151091;backdrop-filter:blur(3px)}
.smp-dialog[open]{display:block}
.smp-dialog-header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;background:#faf8f4;border-bottom:1px solid #ddd5c8}
.smp-dialog-header h2{margin:0;font:400 26px/1.2 Georgia,serif;color:inherit;overflow-wrap:anywhere}
.smp-close{flex-shrink:0;border:1px solid #cfc5b6;border-radius:7px;min-height:44px;padding:8px 15px;background:transparent;color:inherit;font:14px Arial,sans-serif;cursor:pointer}
.smp-dialog-body,.smp-zoom-view{padding:24px}
.smp-search{display:block;font:13px/1.4 Arial,sans-serif}
.smp-search span{display:block;margin-bottom:7px;color:#60564a}
.smp-search input{box-sizing:border-box;width:100%;min-height:48px;border:1px solid #cfc6b7;border-radius:8px;background:#fff;padding:11px 14px;font:16px/1.4 Arial,sans-serif;color:#28251f}
.smp-count{margin:12px 0 18px;font:12px Arial,sans-serif;color:#74695c}
.smp-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.smp-card{display:flex;min-width:0;flex-direction:column;background:white;border:1px solid #ddd6c9;border-radius:9px;overflow:hidden}
.smp-card[hidden],.smp-empty[hidden],.smp-dialog-body[hidden]{display:none!important}
.smp-card.is-selected{border:2px solid #6c5941}
.smp-card-choice{display:flex;flex:1;flex-direction:column;gap:12px;width:100%;padding:10px;text-align:left;background:#fff;border:0;color:#292620;font:14px/1.35 Arial,sans-serif;cursor:pointer;white-space:normal}
.smp-card-choice .smp-preview{width:100%;height:150px;flex-shrink:0}
.smp-card-name{font-weight:500;overflow-wrap:anywhere;line-height:1.4}
.smp-card-action{display:block;align-self:flex-start;padding-top:5px;font-size:12px;color:#63513b;margin-top:auto}
.smp-card.is-selected .smp-card-action{font-weight:700}
.smp-card-zoom{width:100%;min-height:44px;padding:10px;border:0;border-top:1px solid #e8e1d6;background:#f5f1e9;color:#5b4d3b;font:12px Arial,sans-serif;cursor:pointer;text-align:center}
.smp-noimage{display:block;padding:0 10px 12px;color:#847869;font:11px/1.3 Arial,sans-serif}
.smp-zoom-view h3{font:400 24px/1.3 Georgia,serif;margin:20px 0;overflow-wrap:anywhere}
.smp-back{background:transparent;border:0;border-bottom:1px solid #b9ac98;min-height:44px;padding:6px 0;color:#5a4d3a;font:14px Arial,sans-serif;cursor:pointer}
.smp-zoom-pictures{display:flex;flex-direction:column;gap:16px;min-height:250px}
.smp-zoom-pictures img{display:block;width:100%;height:auto;max-height:65dvh;object-fit:contain;background:#eee9df;border-radius:6px}
.smp-digital-zoom>span{display:block;min-height:50dvh;border-radius:7px}
.smp-choose{display:block;width:100%;min-height:48px;margin-top:24px;padding:12px 16px;border:1px solid #332d24;border-radius:7px;background:#332d24;color:#fff;font:14px/1.4 Arial,sans-serif;cursor:pointer;white-space:normal}
.smp-empty{padding:30px 0;font:15px/1.5 Arial,sans-serif}
@media(max-width:700px){.smp-dialog{width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}.smp-dialog-header{padding:14px 16px;gap:12px}.smp-dialog-header h2{font-size:22px}.smp-dialog-body,.smp-zoom-view{padding:16px}.smp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.smp-card-choice .smp-preview{height:140px}.smp-card-choice{font-size:13px}.smp-launcher{gap:10px}.smp-launcher-action{font-size:11px}.smp-launcher .smp-preview{width:58px;height:58px}.smp-zoom-pictures img{max-height:67dvh}}
@media(prefers-reduced-motion:reduce){.smp-dialog *{scroll-behavior:auto!important}}
.simple-product .wr18-native .smp-replaced-grid,.simple-product .wr18-native .finish-family .smp-replaced-grid,.simple-product .wr18-handle-question .smp-replaced-grid{display:none!important}

/* R34: no fake thumbnails for text choices; representative material families stay explicit. */
.smp-preview-text{font:12px/1.3 Arial,sans-serif;text-align:center;padding:6px}
.smp-card-text-only .smp-card-choice{min-height:112px;justify-content:center}
.smp-family-note{font:14px/1.5 Arial,sans-serif;color:#665b4c;margin:14px 0}
.smp-family-count{display:block;padding:0 10px 12px;font:12px/1.4 Arial,sans-serif;color:#665b4c}
.smp-preview.smp-multipart{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}
.smp-preview.smp-multipart>img,.smp-preview.smp-multipart>.smp-colour{width:100%;height:100%;min-height:0}

/* R36: a finish class is not an empty colour card. Keep the class list compact,
   show the original sample at useful size, and enter its colour in one place. */
.smp-covi-dialog[open]{display:flex;flex-direction:column;overflow:hidden;width:min(1080px,calc(100vw - 40px));height:min(860px,calc(100dvh - 40px))}
.smp-covi-dialog .smp-dialog-header{position:static;flex-shrink:0}
.smp-covi-body{display:grid;grid-template-columns:minmax(250px,0.85fr) minmax(0,1.6fr);gap:26px;overflow:auto;min-height:0;padding:22px 24px;align-items:start}
.smp-covi-body[hidden],.smp-covi-footer[hidden]{display:none!important}
.smp-covi-families{display:flex;flex-direction:column;gap:8px;min-width:0}
.smp-covi-step{font:500 14px/1.4 Arial,sans-serif;margin:0 0 10px;color:#71634f}
.smp-covi-family{display:flex;align-items:center;gap:11px;width:100%;min-height:58px;padding:9px 11px;background:#fff;border:1px solid #ddd5c8;border-radius:8px;text-align:left;color:#292620;font:14px/1.35 Arial,sans-serif;cursor:pointer;box-sizing:border-box}
.smp-covi-family.is-selected{border:2px solid #6c5941;padding:8px 10px;background:#f1ece2}
.smp-covi-family>img{width:45px;height:45px;object-fit:cover;border-radius:4px;background:#eae4da;flex-shrink:0}
.smp-covi-family-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.smp-covi-family-copy strong{font-weight:500;overflow-wrap:anywhere}
.smp-covi-family-copy small{font:11px/1.3 Arial,sans-serif;color:#78694f}
.smp-covi-arrow{font:22px/1 Georgia,serif;color:#7a674d}
.smp-covi-family:focus-visible,.smp-covi-image:focus-visible,.smp-covi-sample:focus-visible{outline:2px solid #b29a76;outline-offset:2px}
.smp-covi-detail{min-width:0;background:#fff;border:1px solid #e2dacd;border-radius:10px;padding:20px;box-sizing:border-box}
.smp-covi-title{font:400 25px/1.25 Georgia,serif;color:#292620;margin:0 0 8px}
.smp-covi-price{font:14px/1.45 Arial,sans-serif;margin:0 0 15px;color:#5d4a32}
.smp-covi-figure{margin:0 0 16px}
.smp-covi-image{display:block;width:100%;height:230px;padding:0;border:1px solid #e5dfd4;border-radius:7px;overflow:hidden;background:#f5f2ec;cursor:zoom-in}
.smp-covi-image img{display:block;width:100%;height:100%;object-fit:contain}
.smp-covi-figure figcaption{font:11px/1.4 Arial,sans-serif;color:#766a59;margin-top:7px}
.smp-covi-note{font:12px/1.45 Arial,sans-serif;color:#746750;margin:10px 0}
.smp-covi-palette-label{font:13px/1.45 Arial,sans-serif;margin:16px 0 9px;color:#514737}
.smp-covi-palette{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 17px}
.smp-covi-sample{display:flex;flex-direction:column;gap:5px;min-width:0;padding:7px;background:#faf8f4;border:1px solid #d9d0c2;border-radius:6px;text-align:left;font:12px/1.3 Arial,sans-serif;color:#3d3529;cursor:pointer;box-sizing:border-box}
.smp-covi-sample.is-selected{border:2px solid #6c5941;padding:6px}
.smp-covi-sample img{display:block;width:100%;height:68px;object-fit:cover;border-radius:3px}
.smp-covi-sample strong{font-weight:500;overflow-wrap:anywhere}
.smp-covi-sample small{font:10px/1.3 Arial,sans-serif;color:#77664d}
.smp-covi-reference{display:flex;flex-direction:column;gap:7px;font:14px/1.4 Arial,sans-serif;margin:14px 0 8px}
.smp-covi-reference input{box-sizing:border-box;min-height:47px;width:100%;padding:10px 12px;background:#fff;border:1px solid #bcae97;border-radius:6px;color:#292620;font:16px/1.4 Arial,sans-serif}
.smp-covi-reference input:focus{outline:2px solid #b29a76;outline-offset:2px}
.smp-covi-footer{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:16px;padding:15px 24px;background:#faf8f4;border-top:1px solid #d9cfbd}
.smp-covi-summary{font:13px/1.4 Arial,sans-serif;color:#5f513c;overflow-wrap:anywhere}
.smp-covi-footer .smp-choose{width:auto;min-width:220px;margin:0;flex-shrink:0}
.smp-covi-enlarged{flex:1;overflow:auto;min-height:0;padding:20px 24px}
.smp-covi-enlarged>img{display:block;width:100%;height:auto;max-height:70dvh;object-fit:contain;margin-top:16px}
/* The existing generic sample decorator also marks images in this dialog.
   Its natural-size rule must not expand the compact family/palette controls. */
dialog.smp-covi-dialog.r33-simple-material-dialog[open]{display:flex;flex-direction:column}
.smp-covi-dialog .smp-covi-family>img.r33-original-sample{width:45px!important;height:45px!important;max-width:45px!important;max-height:45px!important;object-fit:cover}
.smp-covi-dialog .smp-covi-sample>img.r33-original-sample{width:100%!important;height:68px!important;max-width:100%!important;max-height:68px!important;object-fit:cover}
.smp-covi-dialog .smp-covi-image>img.r33-original-sample{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain}
@media(max-width:700px){
 .smp-covi-dialog[open]{width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0}
 .smp-covi-body{display:block;padding:16px}
 .smp-covi-families{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:20px}
 .smp-covi-families>.smp-covi-step{grid-column:1/-1;margin-bottom:3px}
 .smp-covi-family{min-height:59px;gap:7px;padding:8px;font-size:12px}
 .smp-covi-family.is-selected{padding:7px}
 .smp-covi-family>img{width:30px;height:36px}
 .smp-covi-dialog .smp-covi-family>img.r33-original-sample{width:30px!important;height:36px!important;max-width:30px!important;max-height:36px!important}
 .smp-covi-family-copy small{font-size:10px}
 .smp-covi-arrow{display:none}
 .smp-covi-detail{padding:15px}
 .smp-covi-title{font-size:23px}
 .smp-covi-image{height:200px}
 .smp-covi-footer{display:block;padding:11px 16px calc(11px + env(safe-area-inset-bottom))}
 .smp-covi-summary{display:block;font-size:12px;margin-bottom:8px}
 .smp-covi-footer .smp-choose{width:100%;min-width:0}
 .smp-covi-palette{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .smp-covi-sample img{height:57px}
 .smp-covi-dialog .smp-covi-sample>img.r33-original-sample{height:57px!important;max-height:57px!important}
}
/* R37 hardware: original model image, compatible finishes, native price. */
.smp-hardware-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.smp-hardware-dialog .smp-dialog-header{position:static;flex:none}
.smp-hardware-body{display:grid;grid-template-columns:minmax(210px,34%) minmax(0,1fr);min-height:0;flex:1;overflow:hidden}
.smp-hardware-models{padding:16px;overflow:auto;border-right:1px solid #ddd5c8}
.smp-hardware-model{display:flex;align-items:center;gap:10px;width:100%;min-height:84px;margin:0 0 10px;padding:10px;border:1px solid #d6cec1;border-radius:7px;background:#fff;color:inherit;text-align:left;font:14px/1.35 Arial,sans-serif;cursor:pointer;white-space:normal}
.smp-hardware-model.is-selected,.smp-hardware-variant.is-selected{border:2px solid #66523b;background:#f1ece3}
.smp-hardware-model img{width:96px;height:72px;object-fit:contain;background:#fff;flex:none}
.smp-hardware-model>span:not(.smp-hardware-arrow){display:flex;flex:1;flex-direction:column;gap:5px;min-width:0}
.smp-hardware-model strong{font-weight:500;overflow-wrap:anywhere}
.smp-hardware-model small{color:#726657;font-size:12px}
.smp-hardware-arrow{font-size:23px}
.smp-hardware-detail{padding:20px;overflow:auto;min-width:0}
.smp-hardware-detail h3{margin:0 0 16px;font:400 25px/1.25 Georgia,serif;overflow-wrap:anywhere}
.smp-hardware-detail h4{font:500 16px/1.4 Arial,sans-serif;margin:22px 0 10px}
.smp-hardware-photo{display:flex;flex-direction:column;gap:8px;width:100%;padding:10px;background:#fff;border:1px solid #ded7cd;border-radius:6px;color:#5d503e;cursor:pointer;font:12px/1.35 Arial,sans-serif}
.smp-hardware-photo img{display:block;width:100%;height:230px;object-fit:contain}
.smp-hardware-caption{font:13px/1.5 Arial,sans-serif;color:#756b5c;margin:10px 0}
.smp-hardware-variants{display:grid;gap:8px}
.smp-hardware-variant{min-height:48px;padding:12px;border:1px solid #cfc5b6;border-radius:6px;text-align:left;background:#fff;color:inherit;font:14px/1.5 Arial,sans-serif;white-space:normal;cursor:pointer}
.smp-hardware-footer{display:flex;align-items:center;gap:16px;flex:none;border-top:1px solid #ddd5c8;background:#faf8f4;padding:14px 20px}
.smp-hardware-selection{flex:1;margin:0;font:14px/1.45 Arial,sans-serif;overflow-wrap:anywhere}
.smp-hardware-footer .smp-choose{width:auto;min-width:170px;margin:0;flex:none}
.smp-hardware-facts{display:grid;gap:14px;margin:20px 0}.smp-hardware-facts div{display:grid;gap:4px}.smp-hardware-facts dt{font-size:12px;color:#756b5c}.smp-hardware-facts dd{margin:0;font-size:16px}
.smp-hardware-next{font:14px/1.5 Arial,sans-serif;color:#473e31;padding:10px;background:#eee8dc;border-radius:5px}
.smp-hardware-enlarged{padding:18px;overflow:auto}.smp-hardware-enlarged img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;margin:16px auto;background:white}
.smp-hardware-body[hidden],.smp-hardware-footer[hidden]{display:none!important}
.simple-bed-feet-finish{margin:16px 0 0;padding-top:12px;border-top:1px solid #ddd5c8}
@media(max-width:700px){.smp-hardware-body{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.smp-hardware-models{display:flex;gap:8px;overflow:auto;border-right:0;border-bottom:1px solid #ddd5c8;padding:10px;max-height:130px}.smp-hardware-model{display:flex;flex:0 0 150px;flex-direction:column;align-items:flex-start;justify-content:space-between;min-height:100px;margin:0;padding:8px;font-size:12px;gap:6px}.smp-hardware-model img{width:100%;height:52px}.smp-hardware-model>span:not(.smp-hardware-arrow){flex:0}.smp-hardware-arrow{display:none}.smp-hardware-model small{display:none}.smp-hardware-detail{padding:16px}.smp-hardware-detail h3{font-size:21px;margin-bottom:10px}.smp-hardware-photo img{height:165px}.smp-hardware-footer{flex-direction:column;align-items:stretch;gap:9px;padding:12px 16px}.smp-hardware-selection{font-size:12px}.smp-hardware-footer .smp-choose{width:100%;min-height:46px}.smp-hardware-variant{font-size:13px}}
.smp-hardware-instructions{flex:none;padding:10px 20px;margin:0;border-bottom:1px solid #e4ddd2;color:#726657;font:13px/1.4 Arial,sans-serif}

/* One presentation per finish, including a fixed sample with no alternatives. */
.simple-product .furniture-finish-slots:has(.smp-launcher){grid-template-columns:minmax(0,1fr)}
.simple-product .product-config-form .config-field,.simple-product .giessegi-choice-heading,.smp-launcher-copy,.smp-launcher-action{text-align:left}
.simple-product .product-config-form select.smp-native-bridge+.r9-fixed-value{display:none!important}
.simple-product .furniture-finish-slot .smp-launcher{margin-bottom:0}
.smp-launcher-copy{align-items:flex-start}
.smp-launcher-action{max-width:100px;white-space:normal}
.smp-fixed-launcher{cursor:zoom-in}
.smp-fixed-dialog .smp-zoom-view{text-align:left}
.simple-bed-feet-note{margin:8px 0 16px;font-size:13px;line-height:1.5;color:#6b6257}
