.rvs-configurator {
    --rvs-accent: #00d5c8;
    --rvs-accent-dark: #00afa4;
    --rvs-text: #222222;
    --rvs-muted: #777777;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 460px);
    gap: 18px;
    margin: 18px 0;
    align-items: start;
    color: var(--rvs-text);
}

.rvs-configurator__preview {
    position: relative;
    background: #fcfcfc;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    min-height: 360px;
    padding: 16px;
}

.rvs-configurator__svg {
    display: block;
    width: 100%;
    height: 360px;
}

.rvs-configurator__outer-line {
    stroke: #202020;
    stroke-width: 4;
    vector-effect: non-scaling-stroke;
    fill: none;
}

.rvs-configurator__dimension-label {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    color: #202020;
    background: rgba(255,255,255,0.96);
    border: 1px solid #dddddd;
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 16px;
    line-height: 1.3;
    font-family: Arial, sans-serif;
    font-weight: 700;
    white-space: nowrap;
}

.rvs-configurator__blocks {
    display: grid;
    gap: 12px;
}

.rvs-configurator__block {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.rvs-configurator__block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rvs-configurator__block-header h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--rvs-text);
}

.rvs-configurator__help {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: #006b9b;
    cursor: pointer;
    font-weight: 700;
    line-height: 28px;
    padding: 0;
}

.rvs-configurator__info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    height: 30px;
    border: 1px solid var(--rvs-accent-dark);
    border-radius: 7px;
    background: #fbffff;
    color: var(--rvs-accent-dark);
    font-size: 18px;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.rvs-configurator__info-icon:hover,
.rvs-configurator__info-icon[aria-expanded="true"] {
    background: #efffff;
    box-shadow: 0 0 0 2px rgba(0,213,200,0.10);
}

.rvs-configurator__shape-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 16px;
}

.rvs-configurator__shape-option {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    text-align: center;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #ffffff;
    padding: 8px 10px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.rvs-configurator__shape-option:hover,
.rvs-configurator__shape-option.is-active {
    border-color: var(--rvs-accent);
    background: #fbffff;
    box-shadow: 0 0 0 2px rgba(0,213,200,0.10);
}

.rvs-configurator__shape-option strong {
    font-size: 14px;
    font-weight: 700;
    color: #555555;
}

.rvs-configurator__shape-option span {
    color: #999999;
    font-size: 12px;
}

.rvs-configurator__field-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(128px, 1fr));
    gap: 16px;
    align-items: start;
    justify-items: center;
}

.rvs-configurator__field-grid[hidden] {
    display: none !important;
}

.rvs-configurator__field {
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 7px;
    margin: 0;
    width: 100%;
    max-width: 150px;
    font-weight: 700;
    color: var(--rvs-text);
    align-items: start;
}

.rvs-configurator__field > span:first-child {
    font-size: 15px;
    line-height: 1.25;
    text-align: center;
}

.rvs-configurator__input-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    width: 100%;
    max-width: 150px;
    min-height: 38px;
    height: 38px;
    margin: 0 auto;
    border: 1px solid var(--rvs-accent);
    border-radius: 4px;
    background: #ffffff;
    overflow: hidden;
}

.rvs-configurator__input-wrap input {
    width: 100%;
    min-height: 36px !important;
    height: 36px !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 4px 0 4px !important;
    font-size: 18px !important;
    line-height: 36px !important;
    color: #333333;
    background: #ffffff;
    font-weight: 700;
    text-align: center;
}

.rvs-configurator__input-wrap:focus-within {
    box-shadow: 0 0 0 2px rgba(0,213,200,0.16);
}

.rvs-configurator__unit {
    display: flex;
    padding: 0 10px 0 4px;
    color: #999999;
    font-size: 12px;
    font-weight: 600;
    height: 0;
    align-content: flex-end;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    line-height: normal;
}

.rvs-configurator__field em {
    color: #555555;
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    min-height: 18px;
    text-align: center;
}

.rvs-configurator__helptext {
    margin-top: 16px;
    border-left: 3px solid var(--rvs-accent);
    background: #f7f7f7;
    padding: 8px 10px;
    font-size: 14px;
    color: #555555;
}


@media (max-width: 900px) {
    .rvs-configurator {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .rvs-configurator__field-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .rvs-configurator__field-grid {
        grid-template-columns: 1fr;
    }

    .rvs-configurator__input-wrap {
        max-width: 100%;
    }
}

.rvs-configurator__field-set[hidden] {
    display: none !important;
}

.rvs-configurator__field-set {
    display: grid;
    gap: 16px;
}

.rvs-configurator__field-grid--two {
    grid-template-columns: repeat(2, minmax(128px, 1fr));
    justify-content: center;
}

.rvs-configurator__field--select {
    max-width: 170px;
}

.rvs-configurator__select-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 170px;
    min-height: 38px;
    height: 38px;
    margin: 0 auto;
    border: 1px solid var(--rvs-accent);
    border-radius: 4px;
    background: #ffffff;
    overflow: hidden;
}

.rvs-configurator__select-wrap select {
    width: 100%;
    height: 36px !important;
    min-height: 36px !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    background: #ffffff;
    color: #333333;
    font-size: 14px !important;
    font-weight: 700;
    text-align: center;
    text-align-last: center;
    padding: 0 8px !important;
}


/* v0.3.2 layout finetuning */
.rvs-configurator {
    gap: 16px;
    margin: 16px 0;
}

.rvs-configurator__preview {
    margin-bottom: 8px !important;
}

.rvs-configurator__shape-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(104px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.rvs-configurator__shape-option {
    display: grid;
    grid-template-rows: 38px auto;
    align-items: center;
    justify-items: center;
    min-height: 82px;
    padding: 10px 8px;
    gap: 6px;
}

.rvs-configurator__shape-option strong {
    font-size: 13px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.rvs-configurator__shape-option span {
    display: none;
}

.rvs-configurator__shape-preview {
    width: 72px;
    height: 38px;
    display: block;
}

.rvs-configurator__shape-preview rect,
.rvs-configurator__shape-preview polygon,
.rvs-configurator__shape-preview circle,
.rvs-configurator__shape-preview ellipse {
    fill: #ffffff;
    stroke: #666666;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.rvs-configurator__shape-option.is-active .rvs-configurator__shape-preview rect,
.rvs-configurator__shape-option.is-active .rvs-configurator__shape-preview polygon,
.rvs-configurator__shape-option.is-active .rvs-configurator__shape-preview circle,
.rvs-configurator__shape-option.is-active .rvs-configurator__shape-preview ellipse,
.rvs-configurator__shape-option:hover .rvs-configurator__shape-preview rect,
.rvs-configurator__shape-option:hover .rvs-configurator__shape-preview polygon,
.rvs-configurator__shape-option:hover .rvs-configurator__shape-preview circle,
.rvs-configurator__shape-option:hover .rvs-configurator__shape-preview ellipse {
    stroke: var(--rvs-accent-dark);
}

.rvs-configurator__field-grid--two {
    grid-template-columns: repeat(2, minmax(128px, 1fr));
    justify-content: center;
    justify-items: center;
}

.rvs-configurator__field-grid--three {
    grid-template-columns: repeat(3, minmax(128px, 1fr));
    justify-content: center;
    justify-items: center;
}

.rvs-configurator__field {
    max-width: 150px;
}

.rvs-configurator__field--select,
.rvs-configurator__select-wrap {
    max-width: 150px;
}

.rvs-configurator__select-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    min-height: 38px;
}

.rvs-configurator__select-wrap select {
    display: block;
    height: 36px !important;
    min-height: 36px !important;
    line-height: 36px !important;
    padding: 0 24px 0 8px !important;
    margin: 0 !important;
    text-align: center;
    text-align-last: center;
    background-position: right 8px center;
}

@media (max-width: 620px) {
    .rvs-configurator__shape-options {
        grid-template-columns: repeat(2, minmax(104px, 1fr));
    }
}

@media (max-width: 420px) {
    .rvs-configurator__shape-options,
    .rvs-configurator__field-grid--two,
    .rvs-configurator__field-grid--three {
        grid-template-columns: 1fr;
    }
}


/* v0.3.3 info icon + compact shape titles */
.rvs-configurator__block-header {
    margin-bottom: 14px;
}

.rvs-configurator__shape-options {
    margin-bottom: 8px;
}

.rvs-configurator__shape-option {
    min-height: 76px;
}

.rvs-configurator__shape-option strong {
    font-size: 13px;
    line-height: 1.25;
}

.rvs-configurator__info-row {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 14px 0;
}

.rvs-configurator__help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 2px solid var(--rvs-accent-dark);
    border-radius: 50%;
    background: #ffffff;
    color: var(--rvs-accent-dark);
    cursor: pointer;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.rvs-configurator__help:hover,
.rvs-configurator__help:focus {
    background: #fbffff;
    box-shadow: 0 0 0 3px rgba(0,213,200,0.12);
    transform: translateY(-1px);
}

.rvs-configurator__helptext {
    margin: 0 0 16px 0;
    border-left: 3px solid var(--rvs-accent);
    background: #f7fafa;
    padding: 10px 12px;
    font-size: 14px;
    color: #444444;
    border-radius: 4px;
}


/* v0.3.4 info icon finetuning */
.rvs-configurator__shape-options {
    margin-bottom: 6px;
}

.rvs-configurator__info-row {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 8px 0;
    line-height: 1;
}

.rvs-configurator__help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--rvs-accent-dark);
    border-radius: 7px;
    background: #fbffff;
    color: var(--rvs-accent-dark);
    cursor: pointer;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 19px;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    box-shadow: none;
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.rvs-configurator__help:hover,
.rvs-configurator__help:focus {
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(0,213,200,0.14);
    transform: translateY(-1px);
}

.rvs-configurator__helptext {
    margin: 0 0 12px 0;
    border-left: 3px solid var(--rvs-accent);
    background: #f7fafa;
    padding: 9px 11px;
    font-size: 14px;
    color: #444444;
    border-radius: 4px;
}

.rvs-configurator__helptext strong {
    display: inline-block;
    margin-bottom: 3px;
    color: #222222;
}

/* v0.4.0 extra vorm-presets */
.rvs-configurator__shape-preview path {
    fill: #ffffff;
    stroke: #666666;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.rvs-configurator__shape-option.is-active .rvs-configurator__shape-preview path,
.rvs-configurator__shape-option:hover .rvs-configurator__shape-preview path {
    stroke: var(--rvs-accent-dark);
}

.rvs-configurator__shape-option strong {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* v0.4.2 vorm/afmeting indeling + inklapbare vormen */
.rvs-configurator__block-header {
    margin-bottom: 12px;
}

.rvs-configurator__shape-options {
    margin-bottom: 10px;
}

.rvs-configurator__shape-options:not(.is-expanded) .rvs-configurator__shape-option.is-extra-shape {
    display: none;
}

.rvs-configurator__shape-more {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    width: 100%;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    background: #ffffff;
    color: #555555;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.rvs-configurator__shape-more:hover,
.rvs-configurator__shape-more:focus {
    border-color: var(--rvs-accent);
    background: #fbffff;
    color: var(--rvs-accent-dark);
}

.rvs-configurator__shape-options.is-expanded .rvs-configurator__shape-more-icon {
    transform: rotate(180deg);
}

.rvs-configurator__shape-more-icon {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    transition: transform .15s ease;
}

.rvs-configurator__info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0 12px 0;
}

.rvs-configurator__subheading {
    margin: 0 !important;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--rvs-text);
}

.rvs-configurator__help {
    flex: 0 0 auto;
}


/* v0.5.0 SVG CAD basis */
.rvs-configurator__preview {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    min-height: 380px;
    padding: 12px;
}

.rvs-configurator__svg {
    height: 390px;
    overflow: visible;
}

.rvs-configurator__dimension-label {
    display: none;
}

.rvs-configurator__plate-fill {
    fill: url(#rvs-brushed-fill);
    stroke: none;
    opacity: 0.92;
}

.rvs-configurator__brushed-line {
    stroke: rgba(255,255,255,0.42);
    stroke-width: 1;
}

.rvs-configurator__outer-line,
.rvs-configurator__inner-line {
    stroke: #252525;
    stroke-width: 1.4;
    vector-effect: non-scaling-stroke;
    fill: none;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.rvs-configurator__inner-line {
    stroke: #333333;
    stroke-dasharray: 0;
}

.rvs-configurator__dimension-line {
    stroke: #555555;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    fill: none;
    stroke-linecap: round;
}

.rvs-configurator__dimension-main,
.rvs-configurator__dimension-primary {
    stroke: #333333;
}

.rvs-configurator__dimension-secondary {
    stroke: #8a8a8a;
    opacity: 0.72;
}

.rvs-configurator__dimension-helper {
    stroke: #9a9a9a;
    stroke-dasharray: 4 4;
    opacity: 0.55;
}

.rvs-configurator__dimension-text {
    fill: #333333;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    paint-order: stroke;
    stroke: #ffffff;
    stroke-width: 3px;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}

.rvs-configurator__dimension-text--secondary {
    fill: #777777;
    font-weight: 500;
    opacity: 0.82;
}

.rvs-configurator__dimension-text--helper {
    fill: #888888;
    font-weight: 500;
    opacity: 0.65;
}

.rvs-configurator__plate-layer {
    shape-rendering: geometricPrecision;
}

@media (max-width: 900px) {
    .rvs-configurator__svg {
        height: 330px;
    }
}

/* v0.5.2 SVG zoom/pan bediening - compact boven tekenvlak */
.rvs-configurator__preview-toolbar {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin: 0 0 8px 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.rvs-configurator__preview-button {
    width: 32px;
    min-width: 32px;
    height: 30px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #ffffff;
    color: #333333;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.rvs-configurator__preview-button:hover,
.rvs-configurator__preview-button:focus {
    border-color: var(--rvs-accent);
    color: #111111;
    outline: none;
}

.rvs-configurator__preview-hint {
    position: absolute;
    left: 14px;
    bottom: 10px;
    z-index: 2;
    color: #777777;
    font-size: 11px;
    line-height: 1.2;
    background: rgba(255,255,255,0.82);
    border-radius: 999px;
    padding: 4px 9px;
    pointer-events: none;
}

.rvs-configurator__svg {
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.rvs-configurator__preview.is-panning .rvs-configurator__svg {
    cursor: grabbing;
}

@media (max-width: 900px) {
    .rvs-configurator__preview-hint {
        display: none;
    }
}

/* v0.5.3 toolbar los van het SVG-tekenvlak */
.rvs-configurator__preview-shell {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rvs-configurator__preview-shell > .rvs-configurator__preview-toolbar {
    order: 1;
    margin: 0;
    padding: 0 2px;
}

.rvs-configurator__preview-shell > .rvs-configurator__preview {
    order: 2;
    overflow: hidden;
}

.rvs-configurator__preview-shell .rvs-configurator__svg {
    display: block;
}

/* v0.5.4 meetfunctie - aparte UI-laag, niet gebruiken voor export */
.rvs-configurator__preview-button--measure {
    width: auto;
    min-width: 54px;
    padding: 0 10px;
    font-size: 13px;
    line-height: 1;
}

.rvs-configurator__preview-button--measure.is-active {
    border-color: var(--rvs-accent);
    background: #f2fffe;
    color: #111111;
    box-shadow: 0 0 0 2px rgba(0,213,200,0.12);
}

.rvs-configurator.is-measuring .rvs-configurator__svg {
    cursor: crosshair;
}

.rvs-configurator__measure-layer,
.rvs-configurator__snap-points-layer {
    pointer-events: none;
}

.rvs-configurator__snap-point {
    fill: rgba(0, 213, 200, 0.16);
    stroke: var(--rvs-accent-dark);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

.rvs-configurator__measure-point {
    fill: #ffffff;
    stroke: var(--rvs-accent-dark);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.rvs-configurator__measure-line {
    stroke: var(--rvs-accent-dark);
    stroke-width: 2;
    stroke-dasharray: 7 5;
    vector-effect: non-scaling-stroke;
}

.rvs-configurator__measure-line--preview {
    opacity: 0.7;
}

.rvs-configurator__measure-text {
    fill: #111111;
    stroke: rgba(255,255,255,0.96);
    stroke-width: 5px;
    paint-order: stroke fill;
    font-family: Arial, sans-serif;
    font-weight: 700;
    pointer-events: none;
}

.rvs-configurator__block--material {
    --rvs-material-border: #dedede;
}

.rvs-configurator__block-header--compact {
    margin-bottom: 10px;
}

.rvs-configurator__material-groups {
    display: grid;
    gap: 9px;
}

.rvs-configurator__material-group {
    display: grid;
    gap: 5px;
}

.rvs-configurator__material-label {
    color: #333333;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.rvs-configurator__material-choicegrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.rvs-configurator__material-choicegrid--thickness {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rvs-configurator__material-pill {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--rvs-material-border);
    border-radius: 6px;
    background: #ffffff;
    color: #3d4a55;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.12;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.rvs-configurator__material-pill:hover,
.rvs-configurator__material-pill.is-active {
    border-color: var(--rvs-accent);
    background: #efffff;
    box-shadow: 0 0 0 2px rgba(0,213,200,0.10);
    color: #24434a;
}

.rvs-configurator__material-pill[hidden] {
    display: none;
}

.rvs-configurator__material-info {
    margin-top: 8px;
    padding: 9px 10px;
    border-left: 3px solid var(--rvs-accent);
    background: #fbffff;
    color: #555555;
    font-size: 13px;
    line-height: 1.4;
}

.rvs-configurator__material-info[hidden] {
    display: none !important;
}

.rvs-configurator__material-features {
    order: 3;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-top: 2px;
}

.rvs-configurator__material-feature-card {
    display: grid;
    gap: 3px;
    min-height: 48px;
    padding: 7px 9px;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    background: #ffffff;
    color: #4f5a63;
    font-size: 12px;
    line-height: 1.25;
}

.rvs-configurator__material-feature-card strong {
    color: #222222;
    font-size: 11px;
    line-height: 1.2;
}

.rvs-configurator__material-feature-card span {
    color: #555555;
}

.rvs-configurator__material-feature-card--wide {
    grid-column: span 1;
}

.rvs-configurator__material-output {
    margin-top: 8px;
    color: #555555;
    font-size: 12px;
    line-height: 1.3;
}

@media (max-width: 640px) {
    .rvs-configurator__material-choicegrid,
    .rvs-configurator__material-choicegrid--thickness,
    .rvs-configurator__material-features {
        grid-template-columns: 1fr 1fr;
    }
}

/* v0.8.3 - compact modules + order info under SVG */
.rvs-configurator {
    gap: 14px;
}

.rvs-configurator__blocks {
    gap: 10px;
}

.rvs-configurator__block {
    padding: 14px;
}

.rvs-configurator__block-header {
    margin-bottom: 9px;
}

.rvs-configurator__info-icon {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 27px;
    font-style: italic;
    line-height: 1;
}

.rvs-configurator__shape-options {
    margin-bottom: 10px;
}

.rvs-configurator__field-grid {
    gap: 10px 14px;
}

.rvs-configurator__material-groups {
    gap: 9px;
}

.rvs-configurator__material-group {
    gap: 5px;
}

.rvs-configurator__material-choicegrid {
    gap: 6px;
}

.rvs-configurator__material-pill {
    min-height: 31px;
}

.rvs-configurator__material-output {
    display: none !important;
}

.rvs-configurator__order-info {
    order: 3;
    display: grid;
    gap: 9px;
    margin-top: 8px;
}

.rvs-configurator__order-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    align-items: stretch;
}

.rvs-configurator__order-card {
    display: grid;
    gap: 2px;
    min-height: 54px;
    padding: 8px 10px;
    border: 1px solid #e1e1e1;
    border-radius: 7px;
    background: #ffffff;
    color: #4d5861;
    font-size: 12px;
    line-height: 1.25;
}

.rvs-configurator__order-card strong {
    color: #222222;
    font-size: 11px;
    line-height: 1.2;
}

.rvs-configurator__order-card small {
    color: #777777;
    font-size: 10.5px;
    line-height: 1.25;
}

.rvs-configurator__order-card--price {
    border-color: rgba(0, 213, 200, 0.35);
    background: #fbffff;
}

.rvs-configurator__price-incl {
    color: #111111;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.15;
}

.rvs-configurator__price-excl {
    color: #666666;
    font-size: 12px;
    line-height: 1.15;
}

.rvs-configurator__price-incl small,
.rvs-configurator__price-excl small {
    font-size: 10px;
    font-weight: 600;
}

.rvs-configurator__cart-button {
    min-height: 54px;
    border: 1px solid var(--rvs-accent-dark);
    border-radius: 7px;
    background: var(--rvs-accent-dark);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .15s ease, transform .15s ease;
}

.rvs-configurator__cart-button:disabled,
.rvs-configurator__cart-button[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
}


.rvs-configurator__cart-button:hover {
    opacity: .92;
    transform: translateY(-1px);
}

.rvs-configurator__material-table {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.rvs-configurator__material-feature-card {
    min-height: 44px;
    padding: 7px 9px;
}

.rvs-configurator__material-feature-card--wide {
    grid-column: span 1;
}

@media (max-width: 900px) {
    .rvs-configurator__order-summary,
    .rvs-configurator__material-table {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .rvs-configurator__order-summary,
    .rvs-configurator__material-table {
        grid-template-columns: 1fr;
    }
}

/* v0.8.4 - rustig info-paneel + uniforme info-iconen */
.rvs-configurator__help,
.rvs-configurator__info-icon {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 27px !important;
    font-style: italic !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.rvs-configurator__order-info {
    order: 3;
    display: block;
    margin-top: 8px;
}

.rvs-configurator__order-panel {
    border: 1px solid rgba(0, 149, 146, .55);
    border-top: 3px solid var(--rvs-accent-dark);
    border-radius: 3px;
    background: #ffffff;
    padding: 10px 14px 12px;
    color: #222222;
    font-size: 13px;
    line-height: 1.35;
}

.rvs-configurator__order-row {
    display: grid;
    grid-template-columns: 175px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    padding: 5px 0;
    border-bottom: 1px solid #dddddd;
}

.rvs-configurator__order-row:last-of-type {
    border-bottom: 0;
}

.rvs-configurator__order-row strong {
    color: #111111;
    font-weight: 800;
    text-align: right;
}

.rvs-configurator__order-row span {
    color: #222222;
}

.rvs-configurator__order-row small {
    display: block;
    margin-top: 1px;
    color: #666666;
    font-size: 11px;
    line-height: 1.25;
}

.rvs-configurator__order-row--price .rvs-configurator__price-incl {
    color: #111111;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}

.rvs-configurator__order-row--price .rvs-configurator__price-excl {
    display: block;
    color: #555555;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

/* v0.10.185 - koopregel prijs/aantal groter tonen */
.rvs-configurator__order-buy-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 7px 0 2px;
    border-bottom: 0;
    font-size: 18px;
    line-height: 1.25;
}

.rvs-configurator__order-buy-summary .rvs-configurator__order-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px;
    padding: 0;
    border-bottom: 0;
}

.rvs-configurator__order-buy-summary .rvs-configurator__order-row strong {
    text-align: right;
}

.rvs-configurator__order-buy-summary .rvs-configurator__order-row--price {
    align-items: center;
}

.rvs-configurator__order-buy-summary .rvs-configurator__order-row--price span {
    white-space: nowrap;
}

.rvs-configurator__order-buy-summary small {
    font-size: 12px;
    line-height: 1.25;
}

.rvs-configurator__order-buy-summary .rvs-configurator__price-incl {
    font-size: 18px;
    font-weight: 700;
}

@media (max-width: 640px) {
    .rvs-configurator__order-buy-summary {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .rvs-configurator__order-buy-summary .rvs-configurator__order-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .rvs-configurator__order-buy-summary .rvs-configurator__order-row strong {
        text-align: left;
    }

    .rvs-configurator__order-buy-summary .rvs-configurator__order-row--price span {
        white-space: normal;
    }
}

.rvs-configurator__cart-button {
    width: 100%;
    margin-top: 10px;
    min-height: 46px;
    border-radius: 7px;
}

.rvs-configurator__material-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 8px;
    margin-top: 9px;
}

.rvs-configurator__material-feature-card {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 7px;
    background: #ffffff;
    color: #4b5963;
    font-size: 12px;
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: 7px;
}

.rvs-configurator__material-feature-card strong {
    display: none;
}

.rvs-configurator__material-feature-dot {
    width: 15px;
    height: 15px;
    min-width: 15px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eefafa;
    color: var(--rvs-accent-dark);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.rvs-configurator__material-properties-source[hidden] {
    display: none !important;
}

@media (max-width: 640px) {
    .rvs-configurator__order-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .rvs-configurator__order-row strong {
        text-align: left;
    }

    .rvs-configurator__material-table {
        grid-template-columns: 1fr;
    }
}


/* v0.8.5 - eigen RVS iconenset */
.rvs-configurator__help,
.rvs-configurator__info-icon {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 2px !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.rvs-configurator__help img,
.rvs-configurator__info-icon img {
    width: 36px !important;
    height: 36px !important;
    display: block !important;
    pointer-events: none !important;
}

.rvs-configurator__feature-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    object-fit: contain;
    display: block;
}

.rvs-configurator__material-feature-dot {
    display: none !important;
}

.rvs-configurator__material-feature-card {
    gap: 8px;
    min-height: 36px;
    padding: 6px 9px;
}

/* v0.9.0 - zetkantenmodule + compacte info-iconen */
.rvs-configurator__help,
.rvs-configurator__info-icon {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
}

.rvs-configurator__help img,
.rvs-configurator__info-icon img {
    width: 40px !important;
    height: 40px !important;
}

.rvs-configurator__block--folds {
    --rvs-fold-muted: #66737b;
}

.rvs-configurator__folds-info,
.rvs-configurator__fold-rule {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-left: 3px solid var(--rvs-accent);
    background: #fbffff;
    color: #4d5960;
    font-size: 13px;
    line-height: 1.35;
}

.rvs-configurator__folds-info[hidden] {
    display: none !important;
}

.rvs-configurator__fold-rule {
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-left: 3px solid var(--rvs-accent);
    border-radius: 5px;
}

.rvs-configurator__fold-layout {
    display: block;
}

.rvs-configurator__fold-list {
    display: grid;
    gap: 0;
    padding: 6px 8px;
    border: 1px solid #e3e3e3;
    border-radius: 7px;
    background: #ffffff;
}

.rvs-configurator__fold-row {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 8px 2px;
    border: 0;
    border-bottom: 1px solid #eeeeee;
    border-radius: 0;
    background: transparent;
}

.rvs-configurator__fold-row:last-child {
    border-bottom: 0;
}

.rvs-configurator__fold-controls {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) auto;
    gap: 8px;
    align-items: start;
}

.rvs-configurator__fold-controls[hidden] {
    display: none !important;
}

.rvs-configurator__fold-check {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #222222;
    font-size: 13px;
    font-weight: 800;
}

.rvs-configurator__fold-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--rvs-accent-dark);
}

.rvs-configurator__fold-small-field {
    display: grid;
    gap: 3px;
    margin: 0;
    color: #333333;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.rvs-configurator__fold-input-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 32px;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    background: #ffffff;
    overflow: hidden;
}

.rvs-configurator__fold-input-wrap:focus-within {
    border-color: var(--rvs-accent);
    box-shadow: 0 0 0 2px rgba(0,213,200,0.10);
}

.rvs-configurator__fold-input-wrap input {
    min-height: 30px !important;
    height: 30px !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 4px !important;
    text-align: center;
    font-size: 15px !important;
    font-weight: 800;
}

.rvs-configurator__fold-input-wrap b {
    padding-right: 8px;
    color: #888888;
    font-size: 11px;
    text-transform: none;
}

.rvs-configurator__fold-inner-length {
    display: block;
    margin-top: 2px;
    color: #69747a;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
}

.rvs-configurator__fold-small-field select {
    min-height: 32px !important;
    height: 32px !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 5px !important;
    background: #ffffff;
    font-size: 12px !important;
    font-weight: 700;
    padding: 0 8px !important;
}

.rvs-configurator__fold-summary {
    margin-top: 9px;
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
    color: #4b5963;
    font-size: 13px;
    line-height: 1.35;
}


.rvs-configurator__fold-validation,
.rvs-configurator__material-validation,
.rvs-configurator__cart-validation {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #e6d49a;
    background: #fff8e5;
    color: #59430b;
    font-size: 13px;
    line-height: 1.35;
}

.rvs-configurator__fold-validation[hidden],
.rvs-configurator__material-validation[hidden],
.rvs-configurator__cart-validation[hidden] {
    display: none !important;
}

.rvs-configurator__fold-validation.is-error,
.rvs-configurator__material-validation.is-error,
.rvs-configurator__cart-validation.is-error {
    border-color: #d63638;
    background: #fcf0f1;
    color: #8a2424;
}

.rvs-configurator__fold-validation.is-info,
.rvs-configurator__material-validation.is-info,
.rvs-configurator__cart-validation.is-info {
    border-color: #b8d7ef;
    background: #f0f6fc;
    color: #1d4b6f;
}

.rvs-configurator__fold-validation-item + .rvs-configurator__fold-validation-item,
.rvs-configurator__material-validation-item + .rvs-configurator__material-validation-item {
    margin-top: 4px;
}

.rvs-configurator__fold-validation-item::before,
.rvs-configurator__material-validation-item::before {
    content: "• ";
    font-weight: 700;
}

.rvs-configurator__fold-preview-fill {
    fill: rgba(0, 213, 200, 0.08);
    stroke: var(--rvs-accent-dark);
    stroke-width: 1.2;
    stroke-dasharray: 7 5;
    vector-effect: non-scaling-stroke;
}

.rvs-configurator__fold-line {
    stroke: var(--rvs-accent-dark);
    stroke-width: 1.5;
    stroke-dasharray: 7 5;
    vector-effect: non-scaling-stroke;
}

@media (max-width: 720px) {
    .rvs-configurator__fold-row,
    .rvs-configurator__fold-controls {
        grid-template-columns: 1fr;
    }
}

/* v0.9.1 - zetkanten rij-opbouw + actieve accordions */
.rvs-configurator__block-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.rvs-configurator__accordion-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #dedede;
    border-radius: 7px;
    background: #ffffff;
    color: #34444b;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.rvs-configurator__accordion-toggle:hover,
.rvs-configurator__accordion-toggle[aria-expanded="true"] {
    border-color: var(--rvs-accent);
    background: #efffff;
}

.rvs-configurator__block.is-collapsed .rvs-configurator__accordion-toggle {
    transform: rotate(-90deg);
}

.rvs-configurator__block.is-collapsed [data-rvs-accordion-body] {
    display: none !important;
}

.rvs-configurator__block .rvs-configurator__info-icon {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.rvs-configurator__block .rvs-configurator__info-icon img {
    display: block !important;
}

.rvs-configurator__fold-rule {
    margin-bottom: 12px;
}

.rvs-configurator__fold-row {
    display: block;
    padding: 9px 10px;
}

.rvs-configurator__fold-row.is-active {
    border-color: rgba(0, 170, 165, .42);
    box-shadow: 0 0 0 2px rgba(0,213,200,0.08);
}

.rvs-configurator__fold-check {
    min-height: 24px;
}

.rvs-configurator__fold-controls {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) minmax(115px, 1fr);
    gap: 8px;
    align-items: end;
    margin-top: 8px;
}

.rvs-configurator__fold-controls[hidden] {
    display: none !important;
}

.rvs-configurator__fold-extra-check {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 0;
    color: #4b5963;
    font-size: 12px;
    font-weight: 700;
}

.rvs-configurator__fold-extra-check input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--rvs-accent-dark);
}

@media (max-width: 720px) {
    .rvs-configurator__fold-controls {
        grid-template-columns: 1fr;
    }
}


/* v0.9.2 - accordion UX fix */
.rvs-configurator__block {
    padding: 12px 14px;
}

.rvs-configurator__block-header--compact,
.rvs-configurator__block-header[data-rvs-accordion-header] {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 9px;
    margin: -4px -4px 8px;
    padding: 7px 4px;
    cursor: pointer;
    border-radius: 7px;
}

.rvs-configurator__block-header[data-rvs-accordion-header]:hover {
    background: #fbffff;
}

.rvs-configurator__block-title-wrap {
    min-width: 0;
}

.rvs-configurator__block-title-wrap h3,
.rvs-configurator__block-header--compact h3 {
    margin: 0;
}

.rvs-configurator__block-summary {
    display: block;
    margin-top: 2px;
    color: #6b7780;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 500;
}

.rvs-configurator__step-status {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #b9deda;
    border-radius: 50%;
    color: var(--rvs-accent-dark);
    background: #ffffff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
}

.rvs-configurator__step-status.is-complete {
    background: var(--rvs-accent-dark);
    border-color: var(--rvs-accent-dark);
    color: #ffffff;
}

.rvs-configurator__block-actions {
    gap: 6px;
}

.rvs-configurator__accordion-toggle,
.rvs-configurator__block .rvs-configurator__info-icon {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 8px !important;
}

.rvs-configurator__accordion-toggle {
    border: 1px solid #dfe6e9;
    background: #ffffff;
    color: #34444b;
    font-size: 20px;
    font-weight: 900;
}

.rvs-configurator__block .rvs-configurator__info-icon {
    border: 1px solid var(--rvs-accent-dark) !important;
    background: #fbffff !important;
}

.rvs-configurator__block .rvs-configurator__info-icon img {
    width: 32px;
    height: 32px;
}

.rvs-configurator__block.is-collapsed .rvs-configurator__accordion-toggle {
    transform: rotate(-90deg);
}

.rvs-configurator__material-groups {
    gap: 10px;
}

.rvs-configurator__material-group {
    margin-bottom: 8px;
}

.rvs-configurator__fold-rule {
    margin-bottom: 8px;
}

.rvs-configurator__fold-layout {
    gap: 10px;
}

.rvs-configurator__fold-row {
    padding: 8px 9px;
}


/* v0.9.3 - accordion polish + decimal support */
.rvs-configurator__block-actions {
    align-items: center;
}

.rvs-configurator__accordion-toggle {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #34444b;
}

.rvs-configurator__accordion-toggle:hover,
.rvs-configurator__accordion-toggle[aria-expanded="true"] {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.rvs-configurator__block .rvs-configurator__info-icon {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.rvs-configurator__block .rvs-configurator__info-icon:hover {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.rvs-configurator__block.is-collapsed .rvs-configurator__accordion-toggle {
    transform: none !important;
}

.rvs-configurator__fold-input-wrap input[type="number"] {
    -moz-appearance: textfield;
}

.rvs-configurator__fold-input-wrap input[type="number"]::-webkit-outer-spin-button,
.rvs-configurator__fold-input-wrap input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* v0.10.4 - Flatsome veilige 2-koloms layout + tekening/foto switch */
.rvs-configurator-product-layout .product-info,
.rvs-configurator-product-layout .summary {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
}

.rvs-configurator-product-layout .product-gallery:not(.rvs-configurator__moved-gallery):empty,
.rvs-configurator-product-layout .woocommerce-product-gallery:not(.rvs-configurator__moved-gallery):empty {
    display: none !important;
}

.rvs-configurator {
    grid-template-columns: minmax(420px, 1.35fr) minmax(360px, .85fr);
    align-items: start;
    gap: 18px;
    width: 100%;
}

.rvs-configurator__preview-shell {
    position: sticky;
    top: 90px;
    align-self: start;
    max-height: calc(100vh - 110px);
    overflow: auto;
    scrollbar-width: thin;
}

.rvs-configurator__viewer-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 8px;
    border: 1px solid #e2e2e2;
    border-radius: 7px;
    overflow: hidden;
    background: #ffffff;
}

.rvs-configurator__viewer-tab {
    min-height: 42px;
    border: 0;
    border-right: 1px solid #e2e2e2;
    background: #ffffff;
    color: #2d3740;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.rvs-configurator__viewer-tab:last-child {
    border-right: 0;
}

.rvs-configurator__viewer-tab.is-active {
    background: var(--rvs-accent-dark);
    color: #ffffff;
}

.rvs-configurator__viewer-panel[hidden] {
    display: none !important;
}

.rvs-configurator__photo-viewer {
    min-height: 420px;
    border: 1px solid #e5e5e5;
    border-radius: 7px;
    background: #ffffff;
    overflow: hidden;
}

.rvs-configurator__photo-viewer .product-gallery,
.rvs-configurator__photo-viewer .woocommerce-product-gallery,
.rvs-configurator__moved-gallery {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

.rvs-configurator__photo-placeholder {
    padding: 24px;
    color: #777777;
    font-size: 13px;
    text-align: center;
}

.rvs-configurator__blocks {
    min-width: 0;
}

@media (max-width: 1024px) {
    .rvs-configurator {
        grid-template-columns: 1fr;
    }

    .rvs-configurator__preview-shell {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 640px) {
    .rvs-configurator__viewer-tab {
        min-height: 38px;
        font-size: 12px;
    }

    .rvs-configurator__photo-viewer {
        min-height: 260px;
    }
}


/* v0.10.5 - voorkom dubbele Flatsome galerij boven de configurator */
.rvs-configurator-product-layout .product-gallery:not(.rvs-configurator__moved-gallery),
.rvs-configurator-product-layout .woocommerce-product-gallery:not(.rvs-configurator__moved-gallery),
.rvs-configurator-product-layout .product-images:not(.rvs-configurator__moved-gallery) {
    display: none !important;
}

.rvs-configurator__photo-viewer .product-gallery.rvs-configurator__moved-gallery,
.rvs-configurator__photo-viewer .woocommerce-product-gallery.rvs-configurator__moved-gallery,
.rvs-configurator__photo-viewer .product-images.rvs-configurator__moved-gallery {
    display: block !important;
}


/* v0.10.6 - foto-tab als normale galerij: grote foto met thumbnails eronder */
.rvs-configurator__photo-viewer {
    padding: 0;
}

.rvs-configurator__photo-viewer .product-gallery,
.rvs-configurator__photo-viewer .woocommerce-product-gallery,
.rvs-configurator__photo-viewer .product-images,
.rvs-configurator__moved-gallery {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    display: block !important;
    margin: 0 !important;
}

.rvs-configurator__photo-viewer .woocommerce-product-gallery__wrapper,
.rvs-configurator__photo-viewer .product-gallery-slider,
.rvs-configurator__photo-viewer .flickity-viewport,
.rvs-configurator__photo-viewer .flickity-slider {
    width: 100% !important;
}

.rvs-configurator__photo-viewer .woocommerce-product-gallery__image,
.rvs-configurator__photo-viewer .product-gallery-slider .slide,
.rvs-configurator__photo-viewer .flickity-slider > * {
    width: 100% !important;
}

.rvs-configurator__photo-viewer img {
    max-width: 100%;
    height: auto;
}

.rvs-configurator__photo-viewer .product-thumbnails,
.rvs-configurator__photo-viewer .woocommerce-product-gallery .flex-control-thumbs,
.rvs-configurator__photo-viewer .woocommerce-product-gallery .flex-control-nav {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 12px;
    margin: 0;
    overflow-x: auto;
}

.rvs-configurator__photo-viewer .product-thumbnails img,
.rvs-configurator__photo-viewer .flex-control-thumbs img,
.rvs-configurator__photo-viewer .flex-control-nav img {
    width: 82px !important;
    height: 82px !important;
    object-fit: cover;
    border-radius: 4px;
}


/* v0.10.7 - galerij definitief uit originele Flatsome positie halen */
body.rvs-configurator-product-layout-active .product-gallery.rvs-configurator__source-gallery-hidden,
body.rvs-configurator-product-layout-active .woocommerce-product-gallery.rvs-configurator__source-gallery-hidden,
body.rvs-configurator-product-layout-active .product-images.rvs-configurator__source-gallery-hidden {
    display: none !important;
}

body.rvs-configurator-product-layout-active .product-gallery:not(.rvs-configurator__moved-gallery):not(.rvs-configurator__source-gallery-hidden),
body.rvs-configurator-product-layout-active .woocommerce-product-gallery:not(.rvs-configurator__moved-gallery):not(.rvs-configurator__source-gallery-hidden),
body.rvs-configurator-product-layout-active .product-images:not(.rvs-configurator__moved-gallery):not(.rvs-configurator__source-gallery-hidden) {
    display: none !important;
}

.rvs-configurator__photo-viewer .rvs-configurator__moved-gallery,
.rvs-configurator__photo-viewer .product-gallery.rvs-configurator__moved-gallery,
.rvs-configurator__photo-viewer .woocommerce-product-gallery.rvs-configurator__moved-gallery,
.rvs-configurator__photo-viewer .product-images.rvs-configurator__moved-gallery {
    display: block !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
}


/* v0.10.8 - verberg originele Flatsome galerij al via body class, vóór JS verplaatsing */
body.rvs-configurator-product-layout-active.single-product .product-main .product-gallery:not(.rvs-configurator__moved-gallery),
body.rvs-configurator-product-layout-active.single-product .product-main .woocommerce-product-gallery:not(.rvs-configurator__moved-gallery),
body.rvs-configurator-product-layout-active.single-product .product-main .product-images:not(.rvs-configurator__moved-gallery),
body.rvs-configurator-product-layout-active.single-product .product-main .product-thumbnails:not(.rvs-configurator__moved-gallery) {
    display: none !important;
}

body.rvs-configurator-product-layout-active.single-product .rvs-configurator__photo-viewer .product-gallery,
body.rvs-configurator-product-layout-active.single-product .rvs-configurator__photo-viewer .woocommerce-product-gallery,
body.rvs-configurator-product-layout-active.single-product .rvs-configurator__photo-viewer .product-images,
body.rvs-configurator-product-layout-active.single-product .rvs-configurator__photo-viewer .product-thumbnails {
    display: block !important;
}

/* v0.10.9 - eigen foto-viewer in tab, zonder afhankelijkheid van Flatsome galerij verplaatsen */
.rvs-configurator__native-gallery {
    display: block;
    width: 100%;
    background: #ffffff;
}

.rvs-configurator__native-main-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.rvs-configurator__native-main-image {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    background: #ffffff;
}

.rvs-configurator__native-thumbs {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid #eeeeee;
    overflow-x: auto;
}

.rvs-configurator__native-thumb {
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    padding: 0;
    border: 1px solid #dddddd;
    border-radius: 5px;
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
}

.rvs-configurator__native-thumb.is-active {
    border-color: var(--rvs-accent-dark);
    box-shadow: 0 0 0 1px var(--rvs-accent-dark);
}

.rvs-configurator__native-thumb img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* v0.10.10 - native foto-viewer: thumbnails wisselen hoofdfoto, hoofdfoto zoomt inline */
.rvs-configurator__native-main-link {
    cursor: zoom-in;
}

.rvs-configurator__native-gallery.is-zoomed .rvs-configurator__native-main-link {
    cursor: zoom-out;
}

.rvs-configurator__native-gallery.is-zoomed .rvs-configurator__native-main-image {
    max-height: none;
    object-fit: contain;
}

/* v0.10.11 - viewer switch blijft zichtbaar bij Foto's/Tekening wissel */
.rvs-configurator__viewer-switch {
    position: sticky;
    top: 0;
    z-index: 40;
}

.rvs-configurator__viewer-panel {
    position: relative;
    z-index: 1;
}

.rvs-configurator__viewer-panel.is-active {
    display: block;
}

/* v0.10.38 - SVG maatlabels losgekoppeld van het HTML plaatmaat-label */
.rvs-configurator__dimension-layer .rvs-configurator__svg-dimension-label {
    display: inline;
    pointer-events: none;
}

.rvs-configurator__dimension-layer .rvs-configurator__dimension-label-bg {
    fill: rgba(255, 255, 255, 0.98);
    stroke: rgba(35, 35, 35, 0.22);
    stroke-width: 0.75;
    vector-effect: non-scaling-stroke;
}

.rvs-configurator__dimension-layer .rvs-configurator__dimension-text--cutout {
    fill: #111111;
    stroke: none;
    opacity: 1;
    font-weight: 700;
}

.rvs-configurator__dimension-cutout-position,
.rvs-configurator__dimension-cutout-size {
    stroke: #555555;
    opacity: 0.82;
}
/* v0.10.21 - Uitsparingen: POMC-achtige veldopmaak */
.rvs-configurator__block--cutouts .rvs-configurator__cutout-tabs,
.rvs-configurator__block--cutouts .rvs-configurator__cutout-subtabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0 16px;
}

.rvs-configurator__block--cutouts .rvs-configurator__cutout-tab,
.rvs-configurator__block--cutouts .rvs-configurator__cutout-subtab {
    min-height: 38px;
    padding: 9px 10px;
    border: 1px solid #dedede;
    border-radius: 6px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}

.rvs-configurator__block--cutouts .rvs-configurator__cutout-tab:hover,
.rvs-configurator__block--cutouts .rvs-configurator__cutout-subtab:hover,
.rvs-configurator__block--cutouts .rvs-configurator__cutout-tab.is-active,
.rvs-configurator__block--cutouts .rvs-configurator__cutout-subtab.is-active {
    border-color: var(--rvs-accent);
    background: #fbffff;
    color: #0f766e;
    box-shadow: 0 0 0 2px rgba(0,213,200,0.10);
}

.rvs-configurator__block--cutouts .rvs-configurator__cutout-panel[hidden] {
    display: none !important;
}

.rvs-configurator__block--cutouts .rvs-configurator__field-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    justify-items: stretch;
    align-items: start;
    margin-bottom: 14px;
}

.rvs-configurator__block--cutouts .rvs-configurator__field {
    max-width: none;
    gap: 6px;
}

.rvs-configurator__block--cutouts .rvs-configurator__field > span:first-child {
    min-height: 16px;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    text-transform: none;
}

.rvs-configurator__block--cutouts .rvs-configurator__input-wrap {
    width: 100%;
    max-width: none;
    height: 34px;
    min-height: 34px;
    border: 1px solid var(--rvs-accent);
    border-radius: 4px;
    background: #ffffff;
    box-shadow: none;
}

.rvs-configurator__block--cutouts .rvs-configurator__input-wrap input,
.rvs-configurator__block--cutouts input[data-rvs-cutout-text-value] {
    width: 100%;
    min-height: 34px;
    border: 1px solid var(--rvs-accent);
    border-radius: 4px;
    background: #ffffff;
    box-shadow: none;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.rvs-configurator__block--cutouts .rvs-configurator__input-wrap input {
    border: 0;
    min-height: 32px;
}

.rvs-configurator__block--cutouts .rvs-configurator__input-unit {
    padding-right: 8px;
    font-size: 10px;
    color: #64748b;
}

.rvs-configurator__block--cutouts .rvs-configurator__field small {
    min-height: 14px;
    font-size: 10px;
    font-weight: 600;
    color: #334155;
    text-align: center;
}

.rvs-configurator__block--cutouts .rvs-configurator__cutout-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin: 2px 0 16px;
    padding: 9px 14px;
    border: 1px solid var(--rvs-accent-dark);
    border-radius: 6px;
    background: var(--rvs-accent-dark);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
}

.rvs-configurator__block--cutouts .rvs-configurator__cutout-add:hover {
    background: #00998f;
    border-color: #00998f;
}

.rvs-configurator__block--cutouts .rvs-configurator__cutout-list-wrap {
    margin-top: 4px;
}

.rvs-configurator__block--cutouts .rvs-configurator__cutout-list-wrap h4 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}

.rvs-configurator__block--cutouts .rvs-configurator__cutout-list {
    display: grid;
    gap: 8px;
    max-height: 260px;
    overflow: auto;
    padding-right: 3px;
    color: #64748b;
    font-size: 12px;
}

.rvs-configurator__block--cutouts .rvs-configurator__cutout-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 58px;
    padding: 8px 9px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.rvs-configurator__block--cutouts .rvs-configurator__cutout-list-item.is-active {
    border-color: var(--rvs-accent);
    box-shadow: 0 0 0 1px rgba(0,213,200,0.18) inset, 0 8px 18px rgba(0,213,200,0.10);
}

.rvs-configurator__block--cutouts .rvs-configurator__cutout-select {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.rvs-configurator__block--cutouts .rvs-configurator__cutout-select strong {
    display: block;
    margin-bottom: 2px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: none;
}

.rvs-configurator__block--cutouts .rvs-configurator__cutout-select small {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.rvs-configurator__block--cutouts .rvs-configurator__cutout-actions {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.rvs-configurator__block--cutouts .rvs-configurator__cutout-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.rvs-configurator__block--cutouts .rvs-configurator__cutout-actions button:hover {
    border-color: var(--rvs-accent);
    color: #0f766e;
    background: #fbffff;
}

@media (max-width: 520px) {
    .rvs-configurator__block--cutouts .rvs-configurator__cutout-tabs,
    .rvs-configurator__block--cutouts .rvs-configurator__cutout-subtabs,
    .rvs-configurator__block--cutouts .rvs-configurator__field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* v0.10.22 - Uitsparingen: transparante sparingen + stopcontactvelden */
.rvs-configurator__block--cutouts .rvs-configurator__cutout-tabs {
    padding-bottom: 14px;
    border-bottom: 1px solid #e6e6e6;
    margin-bottom: 16px;
}

.rvs-configurator__block--cutouts .rvs-configurator__cutout-subtabs {
    padding-bottom: 14px;
    border-bottom: 1px solid #ececec;
    margin-bottom: 16px;
}

.rvs-configurator__block--cutouts .rvs-configurator__select-wrap {
    width: 100%;
    max-width: none;
    height: 34px;
    min-height: 34px;
    border: 1px solid var(--rvs-accent);
    border-radius: 4px;
    background: #ffffff;
    box-shadow: none;
}

.rvs-configurator__block--cutouts .rvs-configurator__select-wrap select {
    width: 100%;
    height: 32px;
    min-height: 32px;
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-align-last: center;
    color: #0f172a;
}

.rvs-configurator__cutout-preview {
    fill: rgba(255,255,255,0.88);
    stroke: #505050;
    stroke-width: 1.4;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 5 4;
    cursor: move;
}

.rvs-configurator__cutout-preview.is-active {
    fill: rgba(255,255,255,0.96);
    stroke: var(--rvs-accent-dark);
    stroke-width: 2;
    stroke-dasharray: none;
}
/* v0.10.36 - uitsparingen blijven optisch uitgesneden/wit */
.rvs-configurator__cutout-preview {
    fill: #ffffff !important;
    fill-opacity: 1 !important;
    stroke: #5b626b !important;
    stroke-width: 1.3 !important;
    stroke-dasharray: 7 5;
    vector-effect: non-scaling-stroke;
}

.rvs-configurator__cutout-preview.is-active {
    fill: #ffffff !important;
    stroke: var(--rvs-accent) !important;
    stroke-width: 1.7 !important;
    stroke-dasharray: none;
}

.rvs-configurator__plate-fill {
    fill-rule: nonzero;
}

/* v0.10.39 - ronde patronen: POMC-achtige invoervelden */
.rvs-configurator__block--cutouts .rvs-configurator__cutout-pattern-separator {
    height: 1px;
    background: #ececec;
    margin: 2px 0 14px;
}

.rvs-configurator__block--cutouts .rvs-configurator__round-pattern-fields[hidden],
.rvs-configurator__block--cutouts .rvs-configurator__field[hidden] {
    display: none !important;
}

.rvs-configurator__block--cutouts .rvs-configurator__field--checkbox {
    justify-content: center;
    align-items: center;
    min-height: 58px;
    padding: 8px 10px;
    border: 1px solid #dedede;
    border-radius: 6px;
    background: #ffffff;
}

.rvs-configurator__block--cutouts .rvs-configurator__field--checkbox > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 20px;
    font-weight: 800;
    color: #334155;
}

.rvs-configurator__block--cutouts .rvs-configurator__field--checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--rvs-accent);
}

/* v0.10.41 - laserfonts + tekstmaatvoering */
@font-face {
    font-family: 'RVS LaserFB';
    src: url('../fonts/laser/LaserFb.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'RVS LaserOS';
    src: url('../fonts/laser/LaserOS.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'RVS LaserS';
    src: url('../fonts/laser/LaserS.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'RVS LasersS';
    src: url('../fonts/laser/LasersS.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'RVS LasersSB';
    src: url('../fonts/laser/LasersSb.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'RVS LasNext';
    src: url('../fonts/laser/lasNext.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'RVS LasSpir';
    src: url('../fonts/laser/LasSpir.ttf') format('truetype');
    font-display: swap;
}
.rvs-configurator__block--cutouts .rvs-configurator__field--count em {
    display: none !important;
}
.rvs-configurator__block--cutouts .rvs-configurator__field--count .rvs-configurator__unit {
    min-width: 2.2em;
}
.rvs-configurator__block--cutouts .rvs-configurator__field--wide {
    margin: 10px 0;
}
.rvs-configurator__cutout-text-preview {
    fill: none !important;
    stroke: #111827 !important;
    stroke-width: 0.55px !important;
    paint-order: stroke;
    font-family: 'RVS LasersSB', Arial, Helvetica, sans-serif;
    font-weight: 400;
}
.rvs-configurator__cutout-text-preview--laserfb { font-family: 'RVS LaserFB', Arial, Helvetica, sans-serif; }
.rvs-configurator__cutout-text-preview--laseros { font-family: 'RVS LaserOS', Arial, Helvetica, sans-serif; }
.rvs-configurator__cutout-text-preview--lasers { font-family: 'RVS LaserS', Arial, Helvetica, sans-serif; }
.rvs-configurator__cutout-text-preview--laserss { font-family: 'RVS LasersS', Arial, Helvetica, sans-serif; }
.rvs-configurator__cutout-text-preview--laserssb { font-family: 'RVS LasersSB', Arial, Helvetica, sans-serif; }
.rvs-configurator__cutout-text-preview--lasnext { font-family: 'RVS LasNext', Arial, Helvetica, sans-serif; }
.rvs-configurator__cutout-text-preview--lasspir { font-family: 'RVS LasSpir', Arial, Helvetica, sans-serif; }

/* v0.10.47 - tekstveld uitsparingen */
.rvs-configurator__text-field {
    display: grid;
    gap: 6px;
    margin: 0 0 12px;
}

.rvs-configurator__text-field > span {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #333333;
}

.rvs-configurator__text-field input {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--rvs-material-border, #dedede);
    border-radius: 6px;
    background: #ffffff;
    color: #222222;
    font: inherit;
    text-align: center;
    box-sizing: border-box;
}

.rvs-configurator__text-field input:focus {
    outline: none;
    border-color: var(--rvs-accent, #00d5c8);
    box-shadow: 0 0 0 2px rgba(0, 213, 200, .12);
}


/* v0.10.53 - tekst als visuele uitsparing via SVG-masker */
.rvs-configurator__cutout-text-preview {
    fill: none !important;
    stroke: #0f172a !important;
    stroke-width: 0.7px !important;
    stroke-dasharray: none !important;
    vector-effect: non-scaling-stroke;
    pointer-events: visiblePainted;
}
.rvs-configurator__cutout-text-preview.is-active,
.rvs-configurator__cutout-preview.is-active.rvs-configurator__cutout-text-preview {
    stroke: var(--rvs-accent) !important;
    stroke-width: 1.1px !important;
}

/* v0.10.63 - Productaanzicht / Uitslag / Deel bewerken */
.rvs-configurator__drawing-view-switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 0 0 8px 0;
    border: 1px solid #e2e2e2;
    border-radius: 7px;
    overflow: hidden;
    background: #ffffff;
}

.rvs-configurator__drawing-view-tab {
    min-height: 36px;
    border: 0;
    border-right: 1px solid #e2e2e2;
    background: #ffffff;
    color: #2d3740;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    padding: 0 8px;
}

.rvs-configurator__drawing-view-tab:last-child {
    border-right: 0;
}

.rvs-configurator__drawing-view-tab.is-active {
    background: #2d3740;
    color: #ffffff;
}

.rvs-configurator__face-toolbar {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    gap: 10px;
    align-items: center;
    margin: 0 0 8px 0;
    padding: 8px 10px;
    border: 1px solid #e5e5e5;
    border-radius: 7px;
    background: #fbfbfb;
}

.rvs-configurator__face-toolbar[hidden] {
    display: none !important;
}

.rvs-configurator__face-select-label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
    margin: 0;
    color: #333333;
    font-size: 13px;
    font-weight: 800;
}

.rvs-configurator__face-select-label select {
    min-height: 32px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 8px;
}

.rvs-configurator__face-toolbar small {
    color: #66717a;
    font-size: 12px;
    line-height: 1.35;
}

.rvs-configurator__fold-preview-fill.is-active {
    fill: rgba(0, 213, 200, 0.18);
    stroke-width: 2;
}

.rvs-configurator__face-label-layer {
    pointer-events: none;
}

.rvs-configurator__face-label {
    fill: #4b5963;
    font-family: Arial, sans-serif;
    font-weight: 800;
    opacity: 0.72;
    paint-order: stroke;
    stroke: rgba(255,255,255,0.92);
    stroke-width: 4px;
    stroke-linejoin: round;
}

.rvs-configurator__face-label.is-active {
    fill: #111111;
    opacity: 1;
}

@media (max-width: 720px) {
    .rvs-configurator__drawing-view-switch {
        grid-template-columns: 1fr;
    }

    .rvs-configurator__drawing-view-tab {
        border-right: 0;
        border-bottom: 1px solid #e2e2e2;
    }

    .rvs-configurator__drawing-view-tab:last-child {
        border-bottom: 0;
    }

    .rvs-configurator__face-toolbar {
        grid-template-columns: 1fr;
    }
}

/* v0.10.64 - rustige aanzichtkeuze in de preview-toolbar */
.rvs-configurator__preview-toolbar {
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rvs-configurator__preview-view-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.rvs-configurator__preview-view-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    min-width: 0;
    color: #333333;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
}

.rvs-configurator__preview-view-label span {
    white-space: nowrap;
}

.rvs-configurator__preview-view-select {
    min-width: 190px;
    max-width: min(270px, 52vw);
    height: 32px;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    background: #ffffff;
    color: #25313a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 30px 4px 10px;
}

.rvs-configurator__preview-button--flat {
    width: auto;
    min-width: 78px;
    padding: 0 12px;
    font-size: 12px;
    text-transform: none;
}

.rvs-configurator__preview-button--flat.is-active {
    border-color: #2d3740;
    background: #2d3740;
    color: #ffffff;
}

.rvs-configurator__preview-toolbar-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

@media (max-width: 720px) {
    .rvs-configurator__preview-toolbar {
        align-items: stretch;
    }

    .rvs-configurator__preview-view-controls {
        width: 100%;
    }

    .rvs-configurator__preview-view-label {
        flex: 1 1 auto;
    }

    .rvs-configurator__preview-view-select {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .rvs-configurator__preview-toolbar-actions {
        width: 100%;
        margin-left: 0;
    }
}

/* v0.10.65 - los aanzicht per zetvlak + referentie naar hoofdvlak */
.rvs-configurator__face-context-layer {
    pointer-events: none;
}

.rvs-configurator__face-parent-line {
    stroke: #333333;
    stroke-width: 1.6;
    stroke-dasharray: 7 5;
    vector-effect: non-scaling-stroke;
    fill: none;
}

.rvs-configurator__face-parent-label,
.rvs-configurator__face-origin-label {
    fill: #4b5963;
    font-family: Arial, sans-serif;
    font-weight: 800;
    paint-order: stroke;
    stroke: rgba(255,255,255,0.96);
    stroke-width: 4px;
    stroke-linejoin: round;
}

.rvs-configurator__face-origin-marker circle {
    fill: #2d3740;
    stroke: #ffffff;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

/* v0.10.67 - zetlijnreferenties hoofdvlak + buigrichting visueel */
.rvs-configurator__main-fold-reference-layer {
    pointer-events: none;
}

.rvs-configurator__main-fold-reference-line,
.rvs-configurator__face-parent-line.is-back {
    stroke: #333333;
    stroke-width: 1.6;
    stroke-dasharray: 7 5;
    vector-effect: non-scaling-stroke;
    fill: none;
}

.rvs-configurator__main-fold-reference-line.is-front,
.rvs-configurator__face-parent-line.is-front {
    stroke-dasharray: none;
    stroke-width: 2;
}

.rvs-configurator__main-fold-reference-label {
    fill: #4b5963;
    font-family: Arial, sans-serif;
    font-weight: 800;
    paint-order: stroke;
    stroke: rgba(255,255,255,0.96);
    stroke-width: 4px;
    stroke-linejoin: round;
}

/* v0.10.69 - extra zetkanten + duidelijkere zetlijnen/uitslagmaat */
.rvs-configurator__fold-extra-controls {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(90px, 1fr) minmax(115px, 1fr);
    gap: 8px;
    align-items: end;
    padding: 7px 8px;
    border: 1px dashed rgba(0,170,165,0.45);
    border-radius: 6px;
    background: rgba(0,213,200,0.035);
}

.rvs-configurator__fold-extra-controls[hidden] {
    display: none !important;
}

.rvs-configurator__fold-line,
.rvs-configurator__main-fold-reference-line,
.rvs-configurator__face-parent-line,
.rvs-configurator__face-parent-line.is-back,
.rvs-configurator__main-fold-reference-line.is-back {
    stroke: var(--rvs-accent-dark, #00aaa5);
}

.rvs-configurator__main-fold-reference-line.is-front,
.rvs-configurator__face-parent-line.is-front {
    stroke: #007e7a;
}

.rvs-configurator__dimension-layer--flat-overall {
    pointer-events: none;
}

.rvs-configurator__dimension-flat-overall-line {
    stroke-width: 1.7;
}

.rvs-configurator__dimension-text--flat-overall {
    fill: #111111;
    font-weight: 900;
    paint-order: stroke;
    stroke: rgba(255,255,255,0.95);
    stroke-width: 4px;
    stroke-linejoin: round;
}

@media (max-width: 720px) {
    .rvs-configurator__fold-extra-controls {
        grid-template-columns: 1fr;
    }
}

/* v0.10.79 - Randsparingen basis */
.rvs-configurator__edge-cutout-readout,
.rvs-configurator__edge-cutout-validation {
    margin: 0 0 12px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.rvs-configurator__edge-cutout-readout.is-error,
.rvs-configurator__edge-cutout-validation.is-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.rvs-configurator__edge-cutout-list-wrap {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e6e6e6;
}

.rvs-configurator__edge-cutout-list-item.is-invalid {
    border-color: #fecaca;
    background: #fff7f7;
}

.rvs-configurator__edge-cutout-preview {
    fill: none;
    stroke: #0f172a;
    stroke-width: 1.6;
    vector-effect: non-scaling-stroke;
    cursor: pointer;
    pointer-events: stroke;
}

.rvs-configurator__edge-cutout-preview.is-active {
    stroke: #0f766e;
    stroke-width: 2.4;
}

.rvs-configurator__edge-cutout-preview.is-draft {
    stroke-dasharray: 8 5;
}

.rvs-configurator__edge-cutout-preview.is-blocked {
    stroke: #dc2626;
    stroke-dasharray: 7 5;
}

/* v0.10.81 - Randsparing eigen typekeuze en lijstopmaak */
.rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e6e6e6;
    margin: 10px 0 16px;
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-tab {
    min-height: 38px;
    padding: 9px 10px;
    border: 1px solid #dedede;
    border-radius: 6px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-tab:hover,
.rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-tab.is-active {
    border-color: var(--rvs-accent);
    background: #fbffff;
    color: #0f766e;
    box-shadow: 0 0 0 2px rgba(0,213,200,0.10);
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-panel[hidden] {
    display: none !important;
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__field-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    justify-items: stretch;
    align-items: start;
    margin-bottom: 14px;
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__field {
    max-width: none;
    gap: 6px;
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__field > span:first-child {
    min-height: 16px;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    text-transform: none;
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__select-wrap,
.rvs-configurator__block--edge-cutouts .rvs-configurator__input-wrap {
    width: 100%;
    max-width: none;
    height: 34px;
    min-height: 34px;
    border: 1px solid var(--rvs-accent);
    border-radius: 4px;
    background: #ffffff;
    box-shadow: none;
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__select-wrap select,
.rvs-configurator__block--edge-cutouts .rvs-configurator__input-wrap input {
    width: 100%;
    height: 32px;
    min-height: 32px;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__input-unit {
    padding-right: 8px;
    font-size: 10px;
    color: #64748b;
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__field small {
    min-height: 14px;
    font-size: 10px;
    font-weight: 600;
    color: #334155;
    text-align: center;
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin: 2px 0 16px;
    padding: 9px 14px;
    border: 1px solid var(--rvs-accent-dark);
    border-radius: 6px;
    background: var(--rvs-accent-dark);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-add:hover {
    background: #00998f;
    border-color: #00998f;
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-add:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-list-wrap {
    margin-top: 4px;
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-list-wrap h4 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-list {
    display: grid;
    gap: 8px;
    max-height: 260px;
    overflow: auto;
    padding-right: 3px;
    color: #64748b;
    font-size: 12px;
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 58px;
    padding: 8px 9px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-list-item.is-active {
    border-color: var(--rvs-accent);
    box-shadow: 0 0 0 1px rgba(0,213,200,0.18) inset, 0 8px 18px rgba(0,213,200,0.10);
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-select {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-select strong {
    display: block;
    margin-bottom: 2px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: none;
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-select small {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-actions {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-actions button:hover {
    border-color: var(--rvs-accent);
    color: #0f766e;
    background: #fbffff;
}

@media (max-width: 520px) {
    .rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-tabs,
    .rvs-configurator__block--edge-cutouts .rvs-configurator__field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* v0.10.98 - randsparing SVG fallback: wis uitgespaarde randzone visueel */
.rvs-configurator__edge-cutout-eraser {
    fill: #ffffff;
    stroke: none;
    pointer-events: none;
}

/* v0.10.103 - hoekpuntselectie groter voor hoeksparingen en ronde kanten */
.rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-tabs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.rvs-configurator__corner-placeholder {
    margin-bottom: 12px;
}

.rvs-configurator__corner-vertex-layer {
    pointer-events: none;
}

.rvs-configurator__corner-vertex {
    fill: #ffffff;
    stroke: var(--rvs-accent-dark, #00aaa5);
    stroke-width: 2.6;
    vector-effect: non-scaling-stroke;
    cursor: pointer;
    pointer-events: all;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.20));
}

.rvs-configurator__corner-vertex:hover,
.rvs-configurator__corner-vertex.is-active {
    fill: var(--rvs-accent, #00d5c8);
    stroke: #0f172a;
    stroke-width: 3.2;
}

@media (max-width: 720px) {
    .rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .rvs-configurator__block--edge-cutouts .rvs-configurator__cutout-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* v0.10.123 - XY-uitleg bij uitsparingen en oorsprongmarkering */
.rvs-configurator__cutout-action-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 2px 0 16px;
}

.rvs-configurator__cutout-action-row .rvs-configurator__cutout-add {
    margin: 0;
    flex: 0 0 auto;
}

.rvs-configurator__cutout-coordinate-help {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 10px;
    border-radius: 7px;
    background: #f3f1e8;
    color: #263238;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.rvs-configurator__cutout-coordinate-help p {
    margin: 0;
}

.rvs-configurator__cutout-coordinate-icon {
    position: relative;
    display: inline-flex;
    flex: 0 0 42px;
    width: 42px;
    height: 34px;
    border: 1px solid #d8d4c8;
    border-radius: 4px;
    background: #ffffff;
}

.rvs-configurator__cutout-coordinate-icon::before,
.rvs-configurator__cutout-coordinate-icon::after {
    content: '';
    position: absolute;
    left: 7px;
    bottom: 7px;
    background: var(--rvs-accent-dark, #00aaa5);
}

.rvs-configurator__cutout-coordinate-icon::before {
    width: 23px;
    height: 2px;
}

.rvs-configurator__cutout-coordinate-icon::after {
    width: 2px;
    height: 23px;
}

.rvs-configurator__cutout-coordinate-icon span {
    position: absolute;
    right: 8px;
    top: 6px;
    width: 15px;
    height: 13px;
    border: 2px dashed var(--rvs-accent-dark, #00aaa5);
    border-radius: 2px;
}

.rvs-configurator__origin-axis-layer {
    pointer-events: none;
}

.rvs-configurator__origin-axis-line {
    stroke: var(--rvs-accent-dark, #00aaa5);
    stroke-width: 2.2;
    marker-end: none;
    vector-effect: non-scaling-stroke;
}

.rvs-configurator__origin-axis-dot {
    fill: var(--rvs-accent-dark, #00aaa5);
    stroke: #ffffff;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

.rvs-configurator__origin-axis-text {
    fill: var(--rvs-accent-dark, #00aaa5);
    paint-order: stroke;
    stroke: #ffffff;
    stroke-width: 3px;
    stroke-linejoin: round;
}

@media (max-width: 720px) {
    .rvs-configurator__cutout-action-row {
        flex-direction: column;
    }
}

/* v0.10.125 - losse poedercoatingmodule */
.rvs-configurator__block--powder-coating .rvs-configurator__accordion-body {
    display: grid;
    gap: 14px;
}

.rvs-configurator__powder-info,
.rvs-configurator__powder-hint {
    font-size: 13px;
    line-height: 1.45;
    color: #4b5563;
}

.rvs-configurator__powder-info {
    padding: 10px 12px;
    border: 1px solid rgba(24, 199, 207, .22);
    border-radius: 10px;
    background: rgba(24, 199, 207, .06);
}

.rvs-configurator__powder-section {
    display: grid;
    gap: 10px;
}

.rvs-configurator__powder-section + .rvs-configurator__powder-section {
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, .08);
}

.rvs-configurator__powder-section--disabled {
    opacity: .52;
}

.rvs-configurator__powder-section--disabled .rvs-configurator__powder-choice,
.rvs-configurator__powder-section--disabled .rvs-configurator__ral-family,
.rvs-configurator__powder-section--disabled .rvs-configurator__ral-card {
    pointer-events: none;
}

.rvs-configurator__powder-title {
    font-size: 12px;
    font-weight: 800;
    color: #111827;
}

.rvs-configurator__powder-title--tight {
    margin-top: 2px;
}

.rvs-configurator__powder-choicegrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.rvs-configurator__powder-choice {
    appearance: none;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 10px;
    background: #fff;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: .18s ease all;
    text-align: center;
    line-height: 1.15;
}

.rvs-configurator__powder-choice:hover {
    border-color: rgba(24, 199, 207, .5);
}

.rvs-configurator__powder-choice.is-selected {
    border-color: #18c7cf;
    background: linear-gradient(180deg, #e9fdff 0%, #d8fbff 100%);
    color: #007b86;
    box-shadow: 0 8px 18px rgba(24, 199, 207, .16);
}

.rvs-configurator__ral-family-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.rvs-configurator__ral-family {
    appearance: none;
    position: relative;
    min-height: 46px;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: .18s ease all;
    padding: 0;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.rvs-configurator__ral-family:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.rvs-configurator__ral-family.is-selected {
    border-color: #18c7cf;
    box-shadow: 0 10px 22px rgba(24, 199, 207, .18);
}

.rvs-configurator__ral-family::before,
.rvs-configurator__ral-family::after {
    content: "";
    position: absolute;
    inset: 0;
}

.rvs-configurator__ral-family::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, .22) 100%);
}

.rvs-configurator__ral-family-label {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    padding: 0 4px 5px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
    text-align: center;
}

.rvs-configurator__ral-family--neutral::before { background: linear-gradient(90deg, #fdf4e3 0%, #e7ebda 28%, #f6f6f6 45%, #8f8f8f 68%, #0a0a0a 100%); }
.rvs-configurator__ral-family--yellow::before { background: linear-gradient(90deg, #ccc58f 0%, #f7ba0b 48%, #eea205 100%); }
.rvs-configurator__ral-family--orange::before { background: linear-gradient(90deg, #dd7907 0%, #e75b12 45%, #fa4402 100%); }
.rvs-configurator__ral-family--red::before { background: linear-gradient(90deg, #ab2524 0%, #c1121c 50%, #b24c43 100%); }
.rvs-configurator__ral-family--violet::before { background: linear-gradient(90deg, #8a5a83 0%, #992572 50%, #6b6880 100%); }
.rvs-configurator__ral-family--blue::before { background: linear-gradient(90deg, #384c70 0%, #13447c 45%, #6a93b0 100%); }
.rvs-configurator__ral-family--green::before { background: linear-gradient(90deg, #327662 0%, #28713e 40%, #b3c43e 100%); }
.rvs-configurator__ral-family--gray::before { background: linear-gradient(90deg, #7e8b92 0%, #373f43 55%, #cfd0cf 100%); }
.rvs-configurator__ral-family--brown::before { background: linear-gradient(90deg, #887142 0%, #5a3a29 55%, #763c28 100%); }

.rvs-configurator__powder-picked {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 18px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.rvs-configurator__ral-swatches {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 3px;
    row-gap: 6px;
}

.rvs-configurator__ral-card {
    appearance: none;
    position: relative;
    display: grid;
    grid-template-rows: 42px auto;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 10px;
    background: #fff;
    padding: 0;
    overflow: visible;
    cursor: pointer;
    transition: .18s ease all;
    text-align: center;
    min-width: 0;
}

.rvs-configurator__ral-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.rvs-configurator__ral-card.is-selected {
    border-color: #18c7cf;
    box-shadow: 0 10px 22px rgba(24, 199, 207, .18);
}

.rvs-configurator__ral-card-swatch {
    display: block;
    width: 100%;
    height: 100%;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    border-radius: 10px 10px 0 0;
}

.rvs-configurator__ral-card-meta {
    display: grid;
    gap: 0;
    padding: 5px 4px 6px;
}

.rvs-configurator__ral-card-code {
    font-size: 10px;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rvs-configurator__ral-card-name {
    display: none;
}

@media (max-width: 900px) {
    .rvs-configurator__ral-family-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rvs-configurator__ral-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .rvs-configurator__powder-choicegrid { grid-template-columns: 1fr; }
    .rvs-configurator__ral-family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rvs-configurator__ral-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* v0.10.130 - lichte 3D-previewmodule in bestaande preview-controls */
.rvs-configurator__preview-button--view,
.rvs-configurator__preview-button--flat {
    width: auto;
    min-width: 50px;
    padding: 0 11px;
    font-size: 12px;
    text-transform: none;
}

.rvs-configurator__preview-button--view.is-active,
.rvs-configurator__preview-button--flat.is-active {
    border-color: #2d3740;
    background: #2d3740;
    color: #ffffff;
}

.rvs-configurator__preview.is-three-d .rvs-configurator__preview-hint,
.rvs-configurator__preview.is-three-d .rvs-configurator__dimension-label {
    display: none;
}

.rvs-configurator__three-d-view {
    display: block;
    width: 100%;
    min-height: 430px;
    height: min(64vw, 560px);
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #f8fafc;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.rvs-configurator__three-d-view[hidden] {
    display: none !important;
}

.rvs-configurator__three-d-view.is-dragging {
    cursor: grabbing;
}

.rvs-configurator__three-d-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.rvs-configurator__three-d-top {
    stroke: rgba(45, 55, 64, 0.88);
    stroke-width: 1.7;
    vector-effect: non-scaling-stroke;
}

.rvs-configurator__three-d-side,
.rvs-configurator__three-d-bottom,
.rvs-configurator__three-d-fold {
    stroke: rgba(45, 55, 64, 0.24);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.rvs-configurator__three-d-fold {
    stroke: rgba(45, 55, 64, 0.4);
}

.rvs-configurator__three-d-fold-line {
    stroke: rgba(24, 34, 45, 0.58);
    stroke-width: 1.2;
    stroke-dasharray: 4 3;
    vector-effect: non-scaling-stroke;
}

.rvs-configurator__three-d-outline,
.rvs-configurator__three-d-hole-line {
    fill: none;
    stroke: rgba(30, 41, 59, 0.78);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

.rvs-configurator__three-d-hole-line {
    stroke: rgba(30, 41, 59, 0.52);
    stroke-dasharray: 0;
}

.rvs-configurator__three-d-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #475467;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    padding: 18px;
}

.rvs-configurator__three-d-viewpanel {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    display: flex;
    gap: 5px;
}

.rvs-configurator__three-d-viewbutton {
    min-width: 44px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    color: #334155;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.rvs-configurator__three-d-viewbutton:hover,
.rvs-configurator__three-d-viewbutton:focus {
    border-color: var(--rvs-accent);
    outline: none;
}

.rvs-configurator__three-d-viewbutton.is-active {
    border-color: var(--rvs-accent);
    background: rgba(0, 213, 200, 0.14);
    color: #0f766e;
}

.rvs-configurator__three-d-label {
    position: absolute;
    left: 14px;
    bottom: 10px;
    z-index: 3;
    max-width: calc(100% - 28px);
    color: #64748b;
    font-size: 11px;
    line-height: 1.25;
    background: rgba(255, 255, 255, 0.84);
    border-radius: 999px;
    padding: 5px 10px;
    pointer-events: none;
}

.rvs-configurator.is-preview-3d .rvs-configurator__preview-button--measure {
    opacity: 0.62;
}

@media (max-width: 720px) {
    .rvs-configurator__preview-view-controls {
        flex-wrap: wrap;
    }

    .rvs-configurator__three-d-view {
        min-height: 330px;
        height: 390px;
    }

    .rvs-configurator__three-d-viewpanel {
        top: 8px;
        right: 8px;
        gap: 4px;
    }

    .rvs-configurator__three-d-viewbutton {
        min-width: 40px;
        height: 30px;
        padding: 0 6px;
        font-size: 9px;
    }
}

.rvs-configurator__material-info {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.rvs-configurator__material-info-text:empty {
    display: none;
}
.rvs-configurator__material-info-text a {
    color: var(--rvs-accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}



.rvs-configurator__material-info-sample {
    grid-column: 1 / -1;
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px solid #e5eeee;
    color: #465a5a;
    font-size: 12px;
    line-height: 1.35;
}
.rvs-configurator__material-info-sample a {
    color: var(--rvs-accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rvs-configurator__material-info-media {
    width: 96px;
    aspect-ratio: 1 / 1;
    border: 1px solid #dde4e4;
    border-radius: 6px;
    overflow: hidden;
    background: #f4f6f6;
}

.rvs-configurator__material-info-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rvs-configurator__material-group[hidden] {
    display: none !important;
}

@media (max-width: 640px) {
    .rvs-configurator__material-info {
        grid-template-columns: 72px minmax(0, 1fr);
    }
    .rvs-configurator__material-info-media {
        width: 72px;
    }
}

/* v0.10.165 - aantal + compacte staffelkorting bij winkelwagen */
.rvs-configurator__order-row--quantity .rvs-configurator__quantity-input {
    width: 92px;
    min-height: 36px;
    padding: 6px 9px;
    border: 1px solid #cbd5d8;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.rvs-configurator__discount-box {
    margin-top: 7px;
    padding: 7px;
    border: 1px solid rgba(0, 149, 146, .22);
    border-radius: 7px;
    background: #f8ffff;
}

.rvs-configurator__discount-title {
    margin-bottom: 5px;
    color: #0b5f5d;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.rvs-configurator__discount-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 5px;
}

.rvs-configurator__discount-tier {
    min-height: 42px;
    padding: 5px 5px;
    border: 1px solid #c9d9dc;
    border-radius: 6px;
    background: #ffffff;
    color: #1c2d35;
    cursor: pointer;
    text-align: center;
    line-height: 1.15;
}

.rvs-configurator__discount-tier strong,
.rvs-configurator__discount-tier span {
    display: block;
}

.rvs-configurator__discount-tier strong {
    font-size: 11px;
    font-weight: 800;
}

.rvs-configurator__discount-tier span {
    margin-top: 2px;
    color: #007f7a;
    font-size: 10px;
    font-weight: 700;
}

.rvs-configurator__discount-tier.is-active {
    border-color: var(--rvs-accent-dark);
    background: rgba(0, 213, 200, .12);
    box-shadow: inset 0 0 0 1px rgba(0, 149, 146, .18);
}

.rvs-configurator__discount-note {
    margin-top: 6px;
    color: #225052;
    font-size: 10.5px;
    line-height: 1.3;
}

@media (max-width: 520px) {
    .rvs-configurator__discount-tiers {
        grid-template-columns: 1fr;
    }
}

/* v0.10.182 - verberg alleen de originele WooCommerce/Flatsome price-wrapper.
   De JS zet deze class alleen op een price-wrapper die niet de configurator bevat. */
body.rvs-configurator-product-layout-active.single-product .price-wrapper.rvs-configurator__price-wrapper-hidden {
    display: none !important;
}

body.rvs-configurator-product-layout-active.single-product .summary > .price,
body.rvs-configurator-product-layout-active.single-product .product-info > .price {
    display: none !important;
}

/* v0.10.179 - voorkom dat het verbergen van WooCommerce prijs/foto's de configurator-tabs raakt. */
body.rvs-configurator-product-layout-active.single-product .rvs-configurator .rvs-configurator__viewer-switch {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.rvs-configurator-product-layout-active.single-product .rvs-configurator .rvs-configurator__viewer-tab {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.rvs-configurator-product-layout-active.single-product .rvs-configurator .rvs-configurator__viewer-panel.is-active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.rvs-configurator-product-layout-active.single-product form.cart > .quantity,
body.rvs-configurator-product-layout-active.single-product form.cart > button.single_add_to_cart_button {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.rvs-configurator__undo-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid #d8edf0;
    border-radius: 7px;
    background: #f5ffff;
    color: #34444b;
    font-size: 12px;
    line-height: 1.25;
}

.rvs-configurator__undo-notice button {
    border: 0;
    background: transparent;
    color: var(--rvs-accent-dark);
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.rvs-configurator__powder-hint--finish,
.rvs-configurator__powder-hint--ral {
    margin-top: 6px;
    margin-bottom: 8px;
    color: #5f6b72;
}

@media (max-width: 768px) {
    .rvs-configurator {
        display: flex;
        flex-direction: column;
    }

    .rvs-configurator__preview-shell {
        display: contents;
    }

    .rvs-configurator__viewer-switch {
        order: 1;
    }

    .rvs-configurator__viewer-panel {
        order: 2;
        width: 100%;
    }

    .rvs-configurator__blocks {
        order: 3;
    }

    .rvs-configurator__order-info {
        order: 4;
        width: 100%;
        margin-top: 12px;
    }
}


/* v0.10.179 - eigen foto-tab altijd zichtbaar binnen configurator, ook als Flatsome/Woo galerijen buiten de configurator verborgen worden. */
body.rvs-configurator-product-layout-active.single-product .rvs-configurator__photo-viewer,
body.rvs-configurator-product-layout-active.single-product .rvs-configurator__native-gallery,
body.rvs-configurator-product-layout-active.single-product .rvs-configurator__native-main-button,
body.rvs-configurator-product-layout-active.single-product .rvs-configurator__native-main-image,
body.rvs-configurator-product-layout-active.single-product .rvs-configurator__native-thumbs,
body.rvs-configurator-product-layout-active.single-product .rvs-configurator__native-thumb {
    visibility: visible !important;
    opacity: 1 !important;
}

body.rvs-configurator-product-layout-active.single-product .rvs-configurator__native-gallery,
body.rvs-configurator-product-layout-active.single-product .rvs-configurator__native-main-button,
body.rvs-configurator-product-layout-active.single-product .rvs-configurator__native-main-image {
    display: block !important;
}

body.rvs-configurator-product-layout-active.single-product .rvs-configurator__native-thumbs {
    display: flex !important;
}

/* v0.10.183 - Tekening/Foto's-tabs altijd beschermen tegen price-wrapper/gallery verbergregels. */
body.rvs-configurator-product-layout-active.single-product [data-rvs-configurator] .rvs-configurator__preview-shell > .rvs-configurator__viewer-switch,
body.rvs-configurator-product-layout-active.single-product .rvs-configurator .rvs-configurator__viewer-switch {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-height: 42px !important;
    height: auto !important;
    max-height: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 60 !important;
    margin: 0 0 8px 0 !important;
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
}

body.rvs-configurator-product-layout-active.single-product [data-rvs-configurator] .rvs-configurator__viewer-switch > .rvs-configurator__viewer-tab,
body.rvs-configurator-product-layout-active.single-product .rvs-configurator .rvs-configurator__viewer-tab {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    height: auto !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 12px !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    position: relative !important;
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
    pointer-events: auto !important;
}

/* v0.10.195 - Magneetbord in kleur preset */
.rvs-configurator__magnet-execution-grid,
.rvs-configurator__magnet-choicegrid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:10px;
}
.rvs-configurator__magnet-choice{
    appearance:none;
    border:1px solid #d6d6d6;
    background:#fff;
    border-radius:10px;
    padding:12px;
    text-align:left;
    cursor:pointer;
    display:grid;
    gap:6px;
    min-height:130px;
}
.rvs-configurator__magnet-choice strong{font-size:15px;line-height:1.2;}
.rvs-configurator__magnet-choice small{display:block;color:#555;line-height:1.35;}
.rvs-configurator__magnet-choice.is-active,
.rvs-configurator__magnet-choice:focus-visible{
    border-color:#222;
    box-shadow:0 0 0 2px rgba(0,0,0,.08);
}
.rvs-configurator__magnet-sideview-svg{
    display:block;
    width:100%;
    max-width:150px;
    height:44px;
    margin-top:4px;
    overflow:visible;
}
.rvs-configurator__magnet-sideview-svg .wall{fill:#ddd;}
.rvs-configurator__magnet-sideview-svg .board{fill:#486b92;stroke:#26394e;stroke-width:1.4;}
.rvs-configurator__magnet-sideview-svg .inner{fill:none;stroke:rgba(255,255,255,.7);stroke-width:1;}
.rvs-configurator__magnet-sideview-svg .size-line{stroke:#777;stroke-width:1;stroke-dasharray:2 2;}
.rvs-configurator__magnet-sideview-svg .label{font-size:10px;fill:#555;font-weight:700;}
.rvs-configurator__magnet-note{margin-top:10px;font-size:13px;line-height:1.45;color:#555;background:#f7f7f7;border-radius:8px;padding:10px 12px;}
.rvs-configurator__magnet-check{display:flex;gap:10px;align-items:flex-start;margin-top:10px;padding:10px 12px;border:1px solid #ddd;border-radius:8px;background:#fff;}
.rvs-configurator__magnet-check input{margin-top:3px;}
.rvs-configurator__magnet-check > span{display:grid;gap:3px;}
.rvs-configurator__magnet-check small{display:block;color:#555;line-height:1.35;}

/* v0.10.198 - magneetbord montagepreview in de bestaande SVG-renderer */
.rvs-configurator__magnet-mounting-preview {
    pointer-events: none;
    opacity: 0.94;
    filter: drop-shadow(0 0 1.6px rgba(0, 0, 0, 0.95));
}

.rvs-configurator__magnet-bracket {
    fill: rgba(232, 236, 238, 0.48);
    stroke: rgba(18, 24, 32, 0.9);
    stroke-width: 1.35;
    stroke-dasharray: 5 4;
    vector-effect: non-scaling-stroke;
}

.rvs-configurator__magnet-bracket-centerline {
    stroke: rgba(18, 24, 32, 0.82);
    stroke-width: 1.05;
    stroke-dasharray: 3 3;
    vector-effect: non-scaling-stroke;
}

.rvs-configurator__bottom-magnet {
    fill: rgba(232, 236, 238, 0.62);
    stroke: rgba(18, 24, 32, 0.92);
    stroke-width: 1.35;
    stroke-dasharray: 5 4;
    vector-effect: non-scaling-stroke;
}

.rvs-configurator__bottom-magnet-core {
    fill: rgba(18, 24, 32, 0.58);
    stroke: rgba(255, 255, 255, 0.72);
    stroke-width: 0.8;
    vector-effect: non-scaling-stroke;
}

.rvs-configurator__three-d-mounting-bracket {
    stroke: rgba(25, 31, 38, 0.88);
    stroke-width: 0.65;
    stroke-linejoin: round;
}

.rvs-configurator__three-d-mounting-slot,
.rvs-configurator__three-d-mounting-screw {
    stroke: rgba(24, 29, 35, 0.9);
    stroke-width: 0.8;
    fill: rgba(240, 243, 244, 0.88);
}

.rvs-configurator__three-d-bottom-magnet,
.rvs-configurator__three-d-bottom-magnet-side {
    stroke: rgba(82, 88, 94, 0.85);
    stroke-width: 0.7;
    stroke-linejoin: round;
}

.rvs-configurator__three-d-spacer,
.rvs-configurator__three-d-spacer-side {
    stroke: rgba(18, 18, 18, 0.86);
    stroke-width: 0.55;
    stroke-linejoin: round;
}

/* v0.10.199 - 3D montagemateriaal alleen zichtbaar vanuit achteraanzicht */


/* v0.10.200 - magneetbord vlakke plaat opties */
.rvs-configurator__magnet-hole-panel {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: 10px;
    background: rgba(248, 250, 252, .85);
}
.rvs-configurator__magnet-check--inline {
    margin-top: 12px;
}

/* v0.10.202/203 - magneetbord 20 mm verstevigingsprofiel */
.rvs-configurator__magnet-reinforcement {
    fill: rgba(232, 236, 238, 0.38);
    stroke: rgba(18, 24, 32, 0.86);
    stroke-width: 1.2;
    stroke-dasharray: 8 4;
    vector-effect: non-scaling-stroke;
}

.rvs-configurator__magnet-reinforcement-foldline {
    stroke: rgba(18, 24, 32, 0.68);
    stroke-width: 0.9;
    stroke-dasharray: 4 4;
    vector-effect: non-scaling-stroke;
}

.rvs-configurator__three-d-reinforcement-profile {
    stroke: rgba(55, 62, 70, 0.88);
    stroke-width: 0.65;
    stroke-linejoin: round;
}

/* v0.10.206 - meer verticale ruimte voor de configuratorpreview en bestelknop */
@media (min-width: 1025px) {
    .rvs-configurator__preview-shell {
        top: 16px;
        max-height: calc(100vh - 32px);
    }
}

/* v0.10.206 - magneetbord montagekeuze compact houden */
.rvs-configurator__magnet-check strong {
    white-space: nowrap;
}

.woocommerce-cart .rvs-configurator-cart-thumbnail,
.woocommerce-checkout .rvs-configurator-cart-thumbnail {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e4e4e4;
    background: #f7f8f9;
}


/* v0.10.208 - globale verborgen items altijd echt verbergen, ook bij vormknoppen */
.rvs-configurator [hidden] {
    display: none !important;
}

/* v0.10.208 - ballonvorm previews ruimer en dichter bij DXF-contour */
.rvs-configurator__shape-preview path {
    stroke-linejoin: round;
    stroke-linecap: round;
}


/* v0.10.209 - magneetbord: uitslagknop verbergen en ballon-preview gespiegeld tonen */
.rvs-configurator--magneetbord [data-rvs-drawing-view="flat"] {
    display: none !important;
}

.rvs-configurator__shape-option[data-rvs-mirrorable-shape] .rvs-configurator__shape-preview {
    transform: scaleX(-1);
    transform-origin: center;
    transform-box: fill-box;
}

/* v0.10.209 - checkboxtekst op één regel houden ondanks geneste teller-span */
.rvs-configurator__magnet-check strong {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    max-width: 100%;
}

.rvs-configurator__magnet-check strong [data-rvs-magnet-bottom-magnet-count] {
    display: inline !important;
}

/* v0.10.209 - globale 3D-maatlijnen */
.rvs-configurator__three-d-dimension-layer {
    pointer-events: none;
}

.rvs-configurator__three-d-dimension-line,
.rvs-configurator__three-d-dimension-tick {
    stroke: rgba(45, 55, 64, 0.68);
    stroke-width: 1.25;
    vector-effect: non-scaling-stroke;
}

.rvs-configurator__three-d-dimension-text {
    fill: #222;
    font-size: 13px;
    font-weight: 800;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 4px;
    stroke-linejoin: round;
}
