.sml-dialog {
    --sml-accent: #a61f24;
    --sml-selected: #fff0ef;
    --sml-buttonText: #fff;
    --sml-surface: #fff;
    box-sizing: border-box;
    width: min(1100px, 94vw);
    max-width: none;
    max-height: 92vh;
    margin: auto;
    padding: 0;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    background: var(--sml-surface);
    color: #202020;
    overflow: hidden;
    font: inherit;
    line-height: 1.5;
}
.sml-dialog[open] { display: flex; flex-direction: column; }
.sml-dialog::backdrop { background: rgb(0 0 0 / .62); }
.sml-dialog header, .sml-dialog footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 20px;
    background: #f7f7f7;
}
.sml-dialog footer output { font-weight: 700; white-space: nowrap; }
.sml-dialog h2, .sml-dialog p { margin: 0 0 .7em; }
.sml-dialog > p { padding: 0 20px; margin: 0; }
.sml-dialog > p:not(:empty) { padding-block: 8px; }
.sml-body { display: flex; flex: 1; overflow: auto; min-height: 0; align-items: flex-start; }
.sml-image { width: 35%; max-height: 58vh; object-fit: contain; padding: 16px; box-sizing: border-box; }
.sml-content { flex: 1; min-width: 0; padding: 18px; }
.sml-admin > .sml-content { overflow: auto; }
.sml-nav, .sml-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sml-button {
    background: #fff;
    color: #202020;
    border: 1px solid #444;
    border-radius: 6px;
    font: inherit;
    padding: .55em .85em;
    min-height: 44px;
    cursor: pointer;
}
.sml-button:hover, .sml-button:focus-visible { background: #efefef; color: #202020; }
.sml-primary, .sml-nav .sml-button:last-child { background: var(--sml-accent); color: var(--sml-buttonText); }
.sml-options {
    display: grid;
    grid-template-columns: repeat(var(--columns, 2), minmax(0, 1fr));
    gap: 10px;
}
.sml-option {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    overflow-wrap: anywhere;
}
.sml-option.sml-selected { border-color: var(--sml-accent); background: var(--sml-selected); }
.sml-option input { align-self: flex-start; }
.sml-option img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.sml-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #ddd; padding: 9px 0; }
.sml-dialog textarea { display: block; width: 100%; min-height: 70px; box-sizing: border-box; }
.sml-dialog input:not([type=checkbox]):not([type=radio]), .sml-dialog select { max-width: 100%; }
.sml-dialog:not(.sml-admin) .sml-content > label { display: block; margin-top: 12px; }
.sml-dialog:not(.sml-admin) .sml-content input[type=email],
.sml-dialog:not(.sml-admin) .sml-content input[type=number] {
    display: block;
    box-sizing: border-box;
    width: min(100%, 360px);
    min-height: 44px;
    padding: 8px;
    font: inherit;
}
.sml-dialog details { margin: 8px 0; }
.sml-dialog summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.sml-admin { height: min(900px, 92vh); }
.sml-admin details { border: 1px solid #ddd; padding: 5px 12px; border-radius: 5px; }
.sml-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 10px; margin-block: 10px; }
.sml-admin-grid label { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.sml-thumb { width: 55px; height: 55px; object-fit: cover; }
.sml-dialog :focus-visible { outline: 2px solid var(--sml-accent); outline-offset: 2px; }
.sml-calendar { max-width: 425px; width: 100%; }
.sml-calendar-nav { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-block: 8px; }
.sml-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.sml-calendar-grid .sml-button { padding: 0; }
.sml-calendar-grid .sml-button:disabled { opacity: .42; cursor: default; }
.sml-calendar-grid .sml-button[aria-pressed=true] { background: var(--sml-accent); color: var(--sml-buttonText); }
.sml-admin > header { border-top: 4px solid #a61f24; }
.sml-admin details > summary { color: #861a1e; }
.sml-admin [aria-invalid=true] { border: 2px solid #a61f24; background: #fff0ef; }
.sml-admin footer .button:first-child { background: #a61f24; border-color: #a61f24; color: #fff; }
.sml-template-bar { padding: 8px 18px; border-bottom: 1px solid #ddd; }
.sml-admin details[hidden],
[data-delivery-filter="pickup"] [data-delivery-method]:not([data-delivery-method="pickup"]),
[data-delivery-filter="NL"] [data-delivery-method]:not([data-delivery-method="NL"]),
[data-delivery-filter="BE"] [data-delivery-method]:not([data-delivery-method="BE"]) { display: none; }
.sml-delivery-picker {
    box-sizing: border-box;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 9px;
    background: #f5ebd1;
    color: #171717;
    font-size: 14px;
    line-height: 1.35;
}
.sml-delivery-heading h2 { margin: 0 0 3px; font-size: 19px; line-height: 1.25; }
.sml-delivery-heading .sml-delivery-intro { margin: 0; color: #555; }
.sml-delivery-heading .sml-delivery-more { margin: 6px 0 0; }
.sml-delivery-more summary { display: inline-block; padding: 0; color: var(--sml-accent); }
.sml-delivery-more summary::after { content: ' +'; }
.sml-delivery-more[open] summary::after { content: ' −'; }
.sml-delivery-more p { margin: 5px 0 0; padding: 7px 9px; background: #ffffffa6; border-radius: 6px; }
.sml-delivery-switch {
    display: grid;
    gap: 5px;
    min-width: 0;
    margin: 7px 0 0;
    padding: 0;
    border: 0;
}
.sml-delivery-switch:not(.sml-delivery-fixed) legend {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.sml-delivery-switch .sml-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 6px 9px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}
.sml-delivery-switch .sml-option.sml-selected {
    border-color: var(--sml-accent);
    box-shadow: inset 0 0 0 1px var(--sml-accent);
    background: #fffaf2;
}
.sml-delivery-switch .sml-option input { flex: 0 0 auto; align-self: center; margin: 0; accent-color: var(--sml-accent); }
.sml-delivery-country { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.sml-delivery-country .sml-option { padding: 5px 9px; }
.sml-delivery-receive { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.sml-delivery-receive .sml-option { padding: 9px 10px; }
.sml-delivery-methods .sml-option { align-items: flex-start; }
.sml-delivery-methods .sml-option input { align-self: flex-start; margin-top: 2px; }
.sml-delivery-option-content { flex: 1; min-width: 0; }
.sml-delivery-option-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sml-delivery-price { color: #555; font-size: 12px; white-space: nowrap; }
.sml-delivery-date { font-weight: 400; }
.sml-delivery-description { display: block; margin-top: 2px; color: #666; }
.sml-delivery-fixed {
    display: flex;
    flex-wrap: wrap;
    margin-inline-start: 21px;
    padding: 4px 8px 6px;
    border: 1px solid #ddd;
    border-radius: 7px;
    background: #ffffff8c;
}
.sml-delivery-fixed legend { padding: 0 4px; font-size: 13px; font-weight: 600; }
.sml-delivery-fixed .sml-option { padding: 3px 7px; }
.sml-delivery-picker .sml-calendar {
    box-sizing: border-box;
    max-width: 355px;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 7px;
    background: #fff;
}
.sml-delivery-picker .sml-calendar-nav { margin: 0 0 5px; }
.sml-delivery-picker .sml-calendar .sml-button { min-height: 28px; font-size: 13px; }
.sml-delivery-picker .sml-calendar-nav .sml-button { padding: 1px 9px; }
.sml-delivery-picker .sml-calendar-grid > span { font-size: 11px; font-weight: 600; }
@media (max-width: 460px) {
    .sml-delivery-picker { padding: 10px; }
    .sml-delivery-receive .sml-option { padding: 7px; }
    .sml-delivery-receive .sml-delivery-option-line { flex-wrap: wrap; gap: 2px 6px; }
    .sml-delivery-option-line { gap: 5px; }
    .sml-delivery-fixed { margin-inline-start: 0; }
}
@media (max-width: 680px) {
    .sml-dialog {
        position: fixed;
        inset: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        border-radius: 0;
        border: 0;
    }
    .sml-body { display: block; }
    .sml-image { display: block; width: 100%; height: 25vh; }
    .sml-image[hidden] { display: none; }
    .sml-options { grid-template-columns: repeat(min(var(--columns, 2), 2), minmax(0, 1fr)); }
    .sml-dialog footer { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}

/* 1.1.8 - Consistent optional product cards (frontend only). */
.sml-dialog:not(.sml-admin) .sml-options .sml-option {
    box-sizing: border-box;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: 11px;
    line-height: 1.35;
    overflow-wrap: normal;
    word-break: normal;
}
.sml-dialog:not(.sml-admin) .sml-options .sml-option img {
    display: block;
    width: 100%;
    height: 110px;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
}
.sml-dialog:not(.sml-admin) .sml-options .sml-option strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 650;
    overflow-wrap: break-word;
}
.sml-dialog:not(.sml-admin) .sml-options .sml-option small {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: break-word;
}
.sml-dialog:not(.sml-admin) .sml-options .sml-option small:last-child {
    margin-top: auto;
    padding-top: 5px;
}
.sml-dialog:not(.sml-admin) .sml-options .sml-option input[type=radio],
.sml-dialog:not(.sml-admin) .sml-options .sml-option input[type=checkbox] {
    flex: 0 0 auto;
    margin: 0;
}
@media (max-width: 680px) {
    .sml-dialog:not(.sml-admin) .sml-options .sml-option { padding: 8px; }
    .sml-dialog:not(.sml-admin) .sml-options .sml-option img { height: 90px; }
}
/* Producteditor met vaste navigatie en een werkpaneel. */
.sml-admin .sml-editor-layout { display:grid; grid-template-columns:230px minmax(0,1fr); gap:20px; min-height:100%; }
.sml-editor-navigation { display:flex; flex-direction:column; gap:5px; padding:10px; background:#f6f6f6; border-right:1px solid #ddd; align-self:start; position:sticky; top:0; }
.sml-editor-navigation > strong { margin:12px 5px 4px; font-size:12px; text-transform:uppercase; color:#666; letter-spacing:.04em; }
.sml-editor-navigation .button { text-align:left; white-space:normal; padding:9px 11px; border:1px solid transparent; background:transparent; color:#333; line-height:1.4; }
.sml-editor-navigation .button[aria-current=true] { color:#921a20; border-color:#e6c6c8; background:#fff; box-shadow:inset 3px 0 #a61f24; font-weight:600; }
.sml-editor-navigation > .button:last-child { margin-top:12px; border-color:#a61f24; color:#a61f24; }
.sml-editor-panel { min-width:0; padding:10px 8px 24px 0; }
.sml-editor-panel [hidden] { display:none !important; }
.sml-editor-panel .sml-step-editor { border:0; padding:0; margin:0; }
.sml-step-editor > summary { display:none; }
.sml-step-editor > .sml-controls { padding-bottom:12px; margin-bottom:14px; border-bottom:1px solid #eee; }
.sml-choice-headings, .sml-admin .sml-choice-editor > summary { display:grid; grid-template-columns:58px minmax(100px,1fr) 90px 72px 64px; gap:10px; align-items:center; }
.sml-choice-headings { padding:8px 12px; margin-top:16px; color:#666; font-size:12px; background:#f4f4f4; border-bottom:1px solid #ddd; }
.sml-admin .sml-choice-editor { margin:0; border-radius:0; border:0; border-bottom:1px solid #ddd; padding:0 12px; }
.sml-admin .sml-choice-editor > summary { min-height:60px; padding:7px 0; font-weight:400; color:#333; }
.sml-choice-editor > summary > span:last-child { color:#a61f24; font-size:12px; }
.sml-choice-picture { display:flex; align-items:center; justify-content:center; width:46px; height:46px; background:#f7f7f7; border-radius:4px; overflow:hidden; }
.sml-choice-picture img { width:100%; height:100%; object-fit:contain; }
.sml-choice-editor[open] { background:#fcfcfc; padding-bottom:12px; }
.sml-admin > .sml-content { padding:0 16px 0 0; }
@media(max-width:760px) {
 .sml-admin .sml-editor-layout { grid-template-columns:165px minmax(0,1fr); gap:10px; }
 .sml-choice-headings { display:none; }
 .sml-admin .sml-choice-editor > summary { grid-template-columns:38px minmax(60px,1fr) 70px; gap:6px; font-size:12px; }
 .sml-choice-picture { width:34px; height:34px; }
 .sml-choice-default { display:none; }
 .sml-choice-editor > summary > span:last-child { grid-column:2; }
}
@media(max-width:480px) {
 .sml-admin .sml-editor-layout { grid-template-columns:1fr; }
 .sml-editor-navigation { position:static; flex-direction:row; flex-wrap:wrap; border-right:0; }
 .sml-editor-navigation > strong { flex-basis:100%; }
 .sml-editor-panel { padding:8px 12px; }
}
/* Klantpopup met rustige productfotografie en zichtbare voortgang. */
.sml-showroom { width:min(1240px,96vw); background:var(--sml-surface,#fffdf9); border:0; }
.sml-showroom > header { background:transparent; padding:22px 26px 12px; }
.sml-showroom > header > strong { font-family:Georgia,serif; font-size:clamp(22px,2.5vw,34px); font-weight:500; line-height:1.2; }
.sml-showroom .sml-progress { display:flex; align-items:center; justify-content:center; gap:6px; overflow-x:auto; padding:8px 24px 16px; flex-shrink:0; }
.sml-showroom .sml-progress .sml-button { border:0; border-radius:0; background:transparent; color:#777; padding:7px 12px; white-space:nowrap; font-size:14px; }
.sml-showroom .sml-progress .sml-button[aria-current=step] { color:var(--sml-accent); border-bottom:2px solid var(--sml-accent); font-weight:700; }
.sml-showroom .sml-body { padding:8px 20px 18px; gap:14px; }
.sml-showroom .sml-image { width:40%; padding:0; margin:0; max-height:55vh; border-radius:7px; object-fit:contain; align-self:center; }
.sml-showroom .sml-content { padding:12px 8px; }
.sml-showroom .sml-content > h2 { font-family:Georgia,serif; font-weight:500; font-size:clamp(22px,2.3vw,30px); }
.sml-showroom .sml-options { gap:18px; margin-top:20px; }
.sml-showroom .sml-options > .sml-option { text-align:center; align-items:center; accent-color:var(--sml-accent); }
.sml-showroom .sml-options > .sml-option > input { accent-color:var(--sml-accent); }
.sml-showroom .sml-image-options { grid-template-columns:repeat(var(--columns,2),minmax(0,1fr)); }
.sml-showroom .sml-image-options > .sml-option { background:transparent; border:0; padding:0; gap:7px; position:relative; min-width:0; }
.sml-showroom .sml-image-options > .sml-option > input { position:absolute; width:1px; height:1px; opacity:0; }
.sml-showroom .sml-choice-photo { display:block; position:relative; width:100%; max-width:250px; }
.sml-showroom .sml-choice-photo img { display:block; width:100%; height:auto; aspect-ratio:auto; object-fit:contain; background:transparent; border-radius:5px; box-sizing:border-box; }
.sml-showroom .sml-image-options .sml-selected .sml-choice-photo img { outline:2px solid var(--sml-accent); outline-offset:3px; }
.sml-showroom .sml-image-options .sml-option:focus-within .sml-choice-photo { outline:2px solid var(--sml-accent); outline-offset:6px; border-radius:4px; }
.sml-showroom .sml-choice-check { display:none; position:absolute; top:7px; right:7px; width:23px; height:23px; border-radius:50%; background:var(--sml-accent); color:white; font-size:14px; line-height:23px; text-align:center; box-shadow:0 0 0 2px white; }
.sml-showroom .sml-selected .sml-choice-check { display:block; }
.sml-showroom .sml-image-options strong { font-size:16px; margin-top:5px; }
.sml-showroom .sml-choice-price { display:block; width:100%; text-align:center; margin-top:auto; color:#555; min-height:1.5em; }
.sml-showroom .sml-without-image .sml-content { max-width:1000px; margin-inline:auto; width:100%; }
.sml-showroom footer { border-top:1px solid #e2ddd5; background:var(--sml-surface,#fffdf9); padding:16px 26px; flex-shrink:0; }
.sml-showroom .sml-total { display:flex; flex-direction:column; gap:2px; }
.sml-showroom .sml-total > small { color:#666; font-size:12px; }
.sml-showroom .sml-total output { font-size:clamp(18px,2vw,25px); color:var(--sml-accent); }
.sml-showroom footer .sml-button { border-radius:5px; }
@media(max-width:680px) {
 .sml-showroom > header { padding:14px 16px 8px; }
 .sml-showroom .sml-progress { justify-content:flex-start; padding:4px 10px 8px; }
 .sml-showroom .sml-body { padding:8px 14px; }
 .sml-showroom .sml-image { width:100%; height:auto; max-height:26vh; margin:0 auto 12px; }
 .sml-showroom .sml-image-options { grid-template-columns:repeat(min(var(--columns,2),2),minmax(0,1fr)); gap:18px 14px; }
 .sml-showroom .sml-content { padding:4px; }
 .sml-showroom footer { padding:12px 16px max(12px,env(safe-area-inset-bottom)); gap:10px; }
 .sml-showroom footer .sml-nav { margin-left:auto; }
 .sml-showroom footer .sml-button { font-size:13px; padding:8px 12px; }
}
.sml-showroom .sml-image-options > .sml-without-photo { padding:14px; border:1px solid #ddd; border-radius:5px; }
.sml-showroom .sml-image-options > .sml-without-photo.sml-selected { border-color:var(--sml-accent); }
.sml-showroom .sml-image-options > .sml-without-photo > input { position:static; width:auto; height:auto; opacity:1; align-self:center; }
/* Voorrang op de kaartmaten van bestaande versies. */
.sml-dialog.sml-showroom:not(.sml-admin) .sml-image-options > .sml-option { display:flex; padding:0; border:0; background:transparent; }
.sml-dialog.sml-showroom:not(.sml-admin) .sml-image-options .sml-choice-photo img { height:auto; width:100%; max-height:none; margin:0; aspect-ratio:auto; }
.sml-dialog.sml-showroom:not(.sml-admin) .sml-image-options > .sml-option strong { font-size:16px; text-align:center; }
.sml-dialog.sml-showroom:not(.sml-admin) .sml-image-options > .sml-option > input { position:absolute; width:1px; height:1px; opacity:0; }
.sml-showroom .sml-content { box-sizing:border-box; }
.sml-showroom .sml-body { box-sizing:border-box; width:100%; overflow-x:hidden; }
.sml-showroom .sml-progress { box-sizing:border-box; max-width:100%; }
.sml-dialog.sml-showroom:not(.sml-admin) .sml-image-options > .sml-without-photo { padding:14px; border:1px solid #ddd; }
.sml-dialog.sml-showroom:not(.sml-admin) .sml-image-options > .sml-without-photo.sml-selected { border-color:var(--sml-accent); }
.sml-dialog.sml-showroom:not(.sml-admin) .sml-image-options > .sml-without-photo > input { position:static; width:auto; height:auto; opacity:1; }

/* 1.2.1: Keep every image choice's title, description and price centered. */
.sml-dialog.sml-showroom:not(.sml-admin) .sml-image-options > .sml-option {
    flex-direction:column; align-items:center; text-align:center;
}
.sml-dialog.sml-showroom:not(.sml-admin) .sml-image-options > .sml-option > strong,
.sml-dialog.sml-showroom:not(.sml-admin) .sml-image-options > .sml-option > small {
    display:block; width:100%; text-align:center; box-sizing:border-box;
}

/* 1.2.2: toegankelijke voortgangsbalk met afgeronde en actieve stappen. */
.sml-showroom .sml-progress { display:flex; justify-content:center; align-items:stretch; gap:8px; padding:10px 24px 18px; }
.sml-showroom .sml-progress .sml-progress-step { position:relative; flex:1 1 0; min-width:0; max-width:210px; display:flex; align-items:center; justify-content:center; gap:9px; padding:8px 7px 13px; background:transparent; color:#777; border:0; border-radius:0; white-space:normal; font-size:13px; text-align:center; }
.sml-showroom .sml-progress .sml-progress-step::after { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; border-radius:5px; background:#e6e4e1; }
.sml-showroom .sml-progress .sml-progress-number { display:inline-flex; align-items:center; justify-content:center; flex:0 0 30px; height:30px; border-radius:50%; background:#e9e8e6; color:#777; font-size:13px; font-weight:700; }
.sml-showroom .sml-progress .sml-progress-done::after { background:#242424; }
.sml-showroom .sml-progress .sml-progress-done .sml-progress-number { background:#242424; color:#fff; }
.sml-showroom .sml-progress .sml-progress-active { color:#222; font-weight:700; border-bottom:0; }
.sml-showroom .sml-progress .sml-progress-active::after { background:var(--sml-accent,#b91c1c); }
.sml-showroom .sml-progress .sml-progress-active .sml-progress-number { background:var(--sml-accent,#b91c1c); color:#fff; }
.sml-showroom .sml-progress .sml-progress-step[aria-current=step] { color:#222; border-bottom:0; }
@media(max-width:680px) {
 .sml-showroom .sml-progress { justify-content:flex-start; gap:3px; padding:6px 8px 12px; overflow-x:auto; }
 .sml-showroom .sml-progress .sml-progress-step { min-width:100px; flex:1 0 100px; gap:4px; flex-direction:column; font-size:11px; padding:6px 3px 10px; }
 .sml-showroom .sml-progress .sml-progress-number { flex-basis:26px; width:26px; height:26px; }
}
