:root {
    --fmv2-ink: #162126;
    --fmv2-muted: #66747a;
    --fmv2-line: #dce5e7;
    --fmv2-soft: #f4f8f8;
    --fmv2-brand: #64c7c9;
    --fmv2-brand-dark: #247f83;
    --fmv2-warm: #f3a83b;
    --fmv2-radius: 18px;
    --fmv2-shadow: 0 18px 55px rgba(17, 42, 48, .12);
}

.fmv2, .fmv2 * { box-sizing: border-box; }
.fmv2 [hidden] { display: none !important; }
.fmv2 {
    width: min(1500px, calc(100% - 32px));
    margin: 30px auto 70px;
    color: var(--fmv2-ink);
    font-family: Inter, Raleway, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.45;
}
.fmv2 button, .fmv2 input { font: inherit; }
.fmv2 button { max-width: 100%; color: inherit; }
.fmv2__header { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 26px; }
.fmv2__header h1 { margin: 3px 0 6px; font-size: clamp(29px, 4vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.fmv2__header p { margin: 0; color: var(--fmv2-muted); font-size: 17px; }
.fmv2__eyebrow, .fmv2__step-label { color: var(--fmv2-brand-dark); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.fmv2__trust { display: flex; gap: 14px; color: #38555d; font-size: 13px; font-weight: 700; white-space: nowrap; }

.fmv2__steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; margin-bottom: 18px; border: 1px solid var(--fmv2-line); border-radius: 14px; background: #fff; overflow: hidden; }
.fmv2__steps button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; padding: 8px 12px; border: 0; border-right: 1px solid var(--fmv2-line); background: #fff; color: #7b8a8f; font-weight: 750; cursor: pointer; }
.fmv2__steps button:last-child { border-right: 0; }
.fmv2__steps button span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #edf2f3; font-size: 12px; }
.fmv2__steps button.is-active { background: #e9f8f8; color: var(--fmv2-brand-dark); }
.fmv2__steps button.is-active span, .fmv2__steps button.is-complete span { background: var(--fmv2-brand-dark); color: #fff; }

.fmv2__layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(410px, .75fr); gap: 20px; align-items: start; }
.fmv2__stage, .fmv2__panel { border: 1px solid var(--fmv2-line); border-radius: var(--fmv2-radius); background: #fff; box-shadow: var(--fmv2-shadow); overflow: hidden; }
.fmv2__stage { padding: 18px; }
.fmv2__canvas-shell { position: relative; display: grid; place-items: center; aspect-ratio: 900 / 560; border-radius: 14px; background: linear-gradient(135deg, #edf3f3, #f9fbfb); overflow: hidden; touch-action: none; }
.fmv2__canvas { display: block; width: 100%; height: 100%; outline: none; cursor: move; }
.fmv2__canvas.is-photo-mode { cursor: grab; }
.fmv2__canvas:focus-visible { box-shadow: inset 0 0 0 4px rgba(36,127,131,.42); }
.fmv2__empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; text-align: center; }
.fmv2__empty h2 { margin: 12px 0 4px; font-size: clamp(21px, 3vw, 30px); }
.fmv2__empty p { margin: 0 0 18px; color: var(--fmv2-muted); }
.fmv2__upload-icon { display: grid; place-items: center; width: 62px; height: 62px; border: 2px dashed var(--fmv2-brand); border-radius: 18px; background: #fff; color: var(--fmv2-brand-dark); font-size: 30px; font-weight: 400; }
.fmv2__canvas-help { position: absolute; left: 50%; bottom: 14px; width: max-content; max-width: calc(100% - 24px); transform: translateX(-50%); padding: 9px 15px; border-radius: 30px; background: rgba(16, 29, 33, .86); color: #fff; font-size: 12px; font-weight: 700; text-align: center; pointer-events: none; }

.fmv2__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; padding: 8px; border-radius: 13px; background: var(--fmv2-soft); }
.fmv2__toolbar button { display: flex; align-items: center; gap: 5px; min-height: 39px; padding: 7px 10px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
.fmv2__toolbar button:hover { background: #fff; }
.fmv2__toolbar button span { font-size: 12px; }
.fmv2__edit-modes { display: flex; flex: 1 1 340px; gap: 4px; padding: 3px; border-radius: 10px; background: #dfe9ea; }
.fmv2__edit-modes button { flex: 1; justify-content: center; min-height: 39px; font-size: 12px; font-weight: 750; }
.fmv2__edit-modes button strong { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.75); font-size: 10px; }
.fmv2__edit-modes button.is-active { background: #fff; color: var(--fmv2-brand-dark); box-shadow: 0 2px 8px rgba(17,42,48,.1); }
.fmv2__zoom { display: flex; align-items: center; gap: 6px; flex: 1 1 180px; padding: 0 3px; color: var(--fmv2-muted); font-size: 12px; }
.fmv2__zoom input { width: 100%; accent-color: var(--fmv2-brand-dark); }
.fmv2__zoom button { flex: 0 0 34px; justify-content: center; padding: 3px; background: #fff; font-size: 20px; }
.fmv2__preview-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.fmv2__room-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 50px; padding: 10px; border: 1px solid var(--fmv2-brand); border-radius: 13px; background: #edfbfb; color: var(--fmv2-brand-dark); font-weight: 800; cursor: pointer; }
.fmv2__room-button--strong { background: var(--fmv2-brand-dark); color: #fff !important; }
.fmv2__room-button:disabled { opacity: .45; cursor: not-allowed; }

.fmv2__panel { position: sticky; top: 18px; }
.fmv2__panel-step { min-height: 410px; padding: 28px 26px 20px; }
.fmv2__panel-step h2 { margin: 6px 0 20px; font-size: 24px; letter-spacing: -.025em; }
.fmv2__subheading { margin: 22px 0 11px; font-size: 16px; }
.fmv2__choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.fmv2__choice-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 148px; padding: 18px 12px; border: 1.5px solid var(--fmv2-line); border-radius: 14px; background: #fff; text-align: center; white-space: normal; overflow: visible; cursor: pointer; }
.fmv2__choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.fmv2__choice-card.is-selected, .fmv2__choice-card.is-active { border-color: var(--fmv2-brand-dark); background: #effafa; box-shadow: inset 0 0 0 1px var(--fmv2-brand-dark); }
.fmv2__choice-icon { margin-bottom: 8px; font-size: 31px; line-height: 1; }
.fmv2__choice-card strong { max-width: 100%; line-height: 1.28; overflow-wrap: anywhere; }
.fmv2__choice-card small { margin-top: 3px; color: var(--fmv2-muted); }

.fmv2__button { min-height: 46px; padding: 11px 18px; border: 0; border-radius: 11px; font-weight: 800; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.fmv2__button:hover:not(:disabled) { transform: translateY(-1px); }
.fmv2__button:disabled { opacity: .42; cursor: not-allowed; }
.fmv2 .fmv2__button--primary { border: 1px solid var(--fmv2-brand-dark) !important; background-color: var(--fmv2-brand-dark) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(36, 127, 131, .2); }
.fmv2 .fmv2__button--ghost { border: 1px solid var(--fmv2-line) !important; background-color: #fff !important; color: var(--fmv2-brand-dark) !important; }
.fmv2__button--wide { width: 100%; }

/* Keep every configurator action readable when the surrounding theme adds white hover styles. */
.fmv2 button:hover:not(:disabled),
.fmv2 button:focus-visible {
    border-color: var(--fmv2-brand-dark) !important;
    background-color: #dff4f5 !important;
    color: #185f63 !important;
}
.fmv2 .fmv2__button--primary:hover:not(:disabled),
.fmv2 .fmv2__button--primary:focus-visible,
.fmv2 .fmv2__room-button--strong:hover:not(:disabled),
.fmv2 .fmv2__room-button--strong:focus-visible {
    border-color: #1b686b !important;
    background-color: #1b686b !important;
    color: #fff !important;
}
.fmv2 .fmv2__button--ghost:hover:not(:disabled),
.fmv2 .fmv2__button--ghost:focus-visible {
    border-color: var(--fmv2-brand-dark) !important;
    background-color: #dff4f5 !important;
    color: #185f63 !important;
}
.fmv2 button.is-active:hover:not(:disabled),
.fmv2 button.is-selected:hover:not(:disabled) {
    background-color: #d8f1f2 !important;
    color: var(--fmv2-brand-dark) !important;
}

.fmv2__dimensions { display: grid; grid-template-columns: 1fr 18px 1fr; gap: 6px; align-items: end; }
.fmv2__dimensions label { color: var(--fmv2-muted); font-size: 12px; font-weight: 700; }
.fmv2__dimensions label span { display: flex; align-items: center; margin-top: 6px; border: 1px solid var(--fmv2-line); border-radius: 11px; background: #fff; overflow: hidden; color: var(--fmv2-muted); }
.fmv2__dimensions input { min-width: 0; width: 100%; height: 46px; padding: 0 5px 0 12px; border: 0; outline: 0; color: var(--fmv2-ink); font-size: 17px; font-weight: 800; }
.fmv2__dimension-x { padding-bottom: 13px; text-align: center; color: #95a3a7; }
.fmv2__toggle { display: flex; align-items: center; gap: 10px; margin: 18px 0; cursor: pointer; }
.fmv2__toggle input { position: absolute; opacity: 0; }
.fmv2__toggle span { position: relative; flex: 0 0 38px; height: 22px; border-radius: 30px; background: #cfd8da; }
.fmv2__toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .18s; }
.fmv2__toggle input:checked + span { background: var(--fmv2-brand-dark); }
.fmv2__toggle input:checked + span::after { transform: translateX(16px); }
.fmv2__toggle em { color: var(--fmv2-muted); font-size: 12px; font-style: normal; }
.fmv2__crop-instruction { margin: 15px 0 0; padding: 12px 13px; border-left: 3px solid var(--fmv2-brand); border-radius: 0 10px 10px 0; background: var(--fmv2-soft); color: var(--fmv2-muted); font-size: 12px; }
.fmv2__crop-instruction strong { color: var(--fmv2-ink); }
.fmv2__composition { margin-top: 12px; padding: 12px; border: 1px solid var(--fmv2-line); border-radius: 11px; background: #fff; }
.fmv2__composition > strong, .fmv2__composition > small { display: block; }
.fmv2__composition > small { margin-top: 2px; color: var(--fmv2-muted); font-size: 10px; }
.fmv2__composition > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 10px; }
.fmv2__composition button { min-height: 38px; padding: 7px; border: 1px solid var(--fmv2-line); border-radius: 8px; background: var(--fmv2-soft); font-size: 10px; font-weight: 750; cursor: pointer; }
.fmv2__composition button.is-active { border-color: var(--fmv2-brand-dark); background: #effafa; color: var(--fmv2-brand-dark); }

.fmv2__circle-sizes { display: grid; gap: 8px; }
.fmv2__circle-size, .fmv2-size { display: flex; align-items: center; justify-content: space-between; padding: 14px; border: 1.5px solid var(--fmv2-line); border-radius: 12px; background: #fff; cursor: pointer; }
.fmv2__circle-size.is-selected, .fmv2-size.is-active { border-color: var(--fmv2-brand-dark); background: #effafa; }
.fmv2__circle-size input { position: absolute; opacity: 0; }
.fmv2__circle-size strong, .fmv2-size strong { font-size: 15px; }
.fmv2__circle-size span, .fmv2-size span { color: var(--fmv2-brand-dark); font-weight: 800; }
.fmv2__product-sizes { display: grid; gap: 8px; }
.fmv2__product-sizes button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--fmv2-line); border-radius: 11px; background: #fff; text-align: left; cursor: pointer; }
.fmv2__product-sizes button strong, .fmv2__product-sizes button span { min-width: 0; }
.fmv2__product-sizes button span { color: var(--fmv2-muted); font-size: 11px; text-align: right; }
.fmv2__product-sizes button.is-active { border-color: var(--fmv2-brand-dark); background: #effafa; box-shadow: inset 0 0 0 1px var(--fmv2-brand-dark); }
.fmv2__custom-size { margin-top: 12px; }
.fmv2__swap-size { margin-top: 10px; }

.fmv2__quality { margin-top: 22px; padding: 14px; border-radius: 13px; background: var(--fmv2-soft); }
.fmv2__quality > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.fmv2__quality > div:first-child span { color: var(--fmv2-muted); font-size: 12px; }
.fmv2__quality-track { height: 8px; margin: 10px 0 7px; border-radius: 20px; background: #dfe7e9; overflow: hidden; }
.fmv2__quality-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: #aab6ba; transition: width .25s, background .25s; }
.fmv2__quality small { color: var(--fmv2-muted); }

.fmv2__materials { display: grid; gap: 9px; }
.fmv2__material { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 14px; border: 1.5px solid var(--fmv2-line); border-radius: 13px; cursor: pointer; }
.fmv2__material.is-selected { border-color: var(--fmv2-brand-dark); background: #effafa; }
.fmv2-material { position: relative; display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 4px 10px; align-items: center; width: 100%; min-width: 0; min-height: 94px; padding: 18px 14px 13px; border: 1.5px solid var(--fmv2-line); border-radius: 13px; background: #fff; text-align: left; white-space: normal; overflow: visible; cursor: pointer; }
.fmv2-material.is-active { border-color: var(--fmv2-brand-dark); background: #effafa; }
.fmv2-material__check { grid-row: 1 / 5; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--fmv2-line); border-radius: 50%; color: transparent; }
.fmv2-material.is-active .fmv2-material__check { border-color: var(--fmv2-brand-dark); background: var(--fmv2-brand-dark); color: #fff; }
.fmv2-material > strong { grid-column: 2; grid-row: 2; }
.fmv2-material > span:not(.fmv2-material__check) { grid-column: 2; grid-row: 3; color: var(--fmv2-muted); font-size: 11px; }
.fmv2-material > b { grid-column: 2; grid-row: 4; color: var(--fmv2-brand-dark); font-size: 12px; white-space: normal; }
.fmv2-material > em { position: static; grid-column: 2; grid-row: 1; justify-self: start; max-width: 100%; padding: 3px 8px; border-radius: 20px; background: #24945e; color: #fff; font-size: 9px; font-style: normal; font-weight: 850; letter-spacing: .02em; text-transform: uppercase; }
.fmv2__material input { width: 18px; height: 18px; margin: 0; accent-color: var(--fmv2-brand-dark); }
.fmv2__material strong, .fmv2__material small { display: block; }
.fmv2__material small { margin-top: 2px; color: var(--fmv2-muted); font-size: 11px; }
.fmv2__material-price { text-align: right; font-weight: 850; white-space: nowrap; }
.fmv2__material-price small { font-weight: 500; }
.fmv2__material-badge { position: absolute; top: -7px; right: 10px; padding: 2px 7px; border-radius: 20px; background: var(--fmv2-warm); color: #fff; font-size: 9px; font-weight: 850; text-transform: uppercase; }

.fmv2__lane-section, .fmv2__filter-section { margin-top: 22px; padding-top: 19px; border-top: 1px solid var(--fmv2-line); }
.fmv2__section-heading { display: flex; justify-content: space-between; gap: 14px; align-items: end; margin-bottom: 11px; }
.fmv2__section-heading strong, .fmv2__section-heading small { display: block; }
.fmv2__section-heading small { margin-top: 2px; color: var(--fmv2-muted); font-size: 11px; }
.fmv2__section-heading > span { color: var(--fmv2-brand-dark); font-size: 11px; font-weight: 800; text-align: right; }
.fmv2__lane-options { display: grid; gap: 7px; }
.fmv2__lane-options button { display: grid; grid-template-columns: 22px 1fr auto; gap: 1px 9px; align-items: center; width: 100%; padding: 11px 12px; border: 1.5px solid var(--fmv2-line); border-radius: 11px; background: #fff; text-align: left; cursor: pointer; }
.fmv2__lane-options button { min-width: 0; white-space: normal; }
.fmv2__lane-options button .fmv2-material__check { grid-row: 1 / 3; }
.fmv2__lane-options button strong { grid-column: 2; }
.fmv2__lane-options button small { grid-column: 2; color: var(--fmv2-muted); }
.fmv2__lane-options button b { grid-column: 3; grid-row: 1 / 3; color: var(--fmv2-brand-dark); font-size: 11px; }
.fmv2__lane-options button.is-active { border-color: var(--fmv2-brand-dark); background: #effafa; }
.fmv2__lane-options button.is-active .fmv2-material__check { border-color: var(--fmv2-brand-dark); background: var(--fmv2-brand-dark); color: #fff; }
.fmv2__lane-options button:disabled { opacity: .42; cursor: not-allowed; }
.fmv2__lane-section > p { margin: 9px 2px 0; color: var(--fmv2-muted); font-size: 10px; }
.fmv2__discount-hint { margin-top: 16px; padding: 11px 12px; border: 1px dashed #9dcfd0; border-radius: 11px; background: #f1fbfb; color: #35666a; font-size: 11px; font-weight: 700; }
.fmv2__discount-hint.is-active { border-style: solid; border-color: #79bf92; background: #eef9f3; color: #246b45; }
.fmv2__filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fmv2__filters button { min-width: 0; padding: 4px; border: 1.5px solid transparent; border-radius: 10px; background: transparent; cursor: pointer; }
.fmv2__filters button > span { display: block; aspect-ratio: 1.15; border-radius: 7px; background: linear-gradient(135deg,#dfe9ea,#f6f9f9); overflow: hidden; }
.fmv2__filters img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fmv2__filters small { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.fmv2__filters button.is-active { border-color: var(--fmv2-brand-dark); background: #effafa; }

.fmv2__summary { margin: 0; }
.fmv2__summary div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--fmv2-line); }
.fmv2__summary dt { color: var(--fmv2-muted); }
.fmv2__summary dd { margin: 0; text-align: right; font-weight: 750; }
.fmv2__notice { margin-top: 18px; padding: 13px; border-radius: 12px; background: #eef9f3; color: #2d5c42; font-size: 12px; }
.fmv2__quality-approval { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin-top: 14px; padding: 13px; border: 1px solid var(--fmv2-line); border-radius: 12px; background: #fff; font-size: 12px; cursor: pointer; }
.fmv2__quality-approval input { width: 18px; height: 18px; margin: 0; accent-color: var(--fmv2-brand-dark); }
.fmv2__quality-review > .fmv2__quality { margin-top: 0; }
.fmv2__service-option { display: grid; grid-template-columns: 20px 1fr auto; gap: 11px; align-items: start; margin-top: 14px; padding: 15px; border: 1.5px solid var(--fmv2-line); border-radius: 13px; background: #fff; cursor: pointer; }
.fmv2__service-option > input { position: absolute; opacity: 0; }
.fmv2__service-check { display: grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid var(--fmv2-line); border-radius: 5px; color: transparent; }
.fmv2__service-option input:checked + .fmv2__service-check { border-color: var(--fmv2-brand-dark); background: var(--fmv2-brand-dark); color: #fff; }
.fmv2__service-option strong, .fmv2__service-option small { display: block; }
.fmv2__service-option small { margin-top: 4px; color: var(--fmv2-muted); font-size: 11px; line-height: 1.4; }
.fmv2__service-option b { color: var(--fmv2-brand-dark); white-space: nowrap; }
.fmv2__service-option--rush { border-color: #d9c695; background: linear-gradient(135deg,#fffdf6,#fff); }
.fmv2__service-option--rush.is-unavailable { opacity: .58; background: #f4f6f6; cursor: not-allowed; }
.fmv2__service-option--rush.is-unavailable b { color: var(--fmv2-muted); }
.fmv2__overview-button { margin-top: 15px; color: var(--fmv2-brand-dark); }
.fmv2__design-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 9px; }
.fmv2__design-actions button { min-height: 42px; padding: 8px; border: 1px solid var(--fmv2-line); border-radius: 9px; background: #fff; color: var(--fmv2-brand-dark); font-size: 10px; font-weight: 800; cursor: pointer; }
.fmv2__upsells { margin-top: 14px; border: 1px solid var(--fmv2-line); border-radius: 12px; background: #fff; overflow: hidden; }
.fmv2__upsells--featured { margin: 0 0 18px; border: 1.5px solid #8fcfd1; background: linear-gradient(180deg,#f0fbfb,#fff 82px); box-shadow: 0 10px 25px rgba(36,127,131,.09); }
.fmv2__upsells--featured summary { min-height: 72px; }
.fmv2__upsells--featured summary span strong { color: var(--fmv2-brand-dark); font-size: 15px; }
.fmv2__upsells summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; cursor: pointer; list-style: none; }
.fmv2__upsells summary::-webkit-details-marker { display: none; }
.fmv2__upsells summary span strong, .fmv2__upsells summary span small { display: block; }
.fmv2__upsells summary span small { margin-top: 2px; color: var(--fmv2-muted); font-size: 10px; }
.fmv2__upsells summary b { color: var(--fmv2-brand-dark); font-size: 11px; white-space: nowrap; }
.fmv2__upsell-list { display: grid; max-height: 230px; padding: 0 10px; overflow: auto; }
.fmv2__upsell-list > p { color: var(--fmv2-muted); font-size: 11px; }
.fmv2__upsell { display: grid; grid-template-columns: 18px 42px 1fr auto; gap: 9px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--fmv2-line); cursor: pointer; }
.fmv2__upsell > input { position: absolute; opacity: 0; }
.fmv2__upsell-check { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--fmv2-line); border-radius: 5px; color: transparent; }
.fmv2__upsell input:checked + .fmv2__upsell-check { border-color: var(--fmv2-brand-dark); background: var(--fmv2-brand-dark); color: #fff; }
.fmv2__upsell img, .fmv2__upsell-placeholder { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 7px; background: var(--fmv2-soft); object-fit: contain; }
.fmv2__upsell strong, .fmv2__upsell small { display: block; }
.fmv2__upsell strong { font-size: 11px; line-height: 1.25; }
.fmv2__upsell small { color: var(--fmv2-muted); font-size: 9px; }
.fmv2__upsell b { color: var(--fmv2-brand-dark); font-size: 11px; white-space: nowrap; }
.fmv2__upsells > a { display: block; padding: 11px 14px; border-top: 1px solid var(--fmv2-line); color: var(--fmv2-brand-dark); font-size: 11px; font-weight: 800; text-decoration: none; }
.fmv2__panel-footer { padding: 18px 26px 22px; border-top: 1px solid var(--fmv2-line); background: #fbfcfc; }
.fmv2__shipping-line { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; color: var(--fmv2-muted); font-size: 11px; }
.fmv2__shipping-line b { color: var(--fmv2-ink); }
.fmv2__price { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.fmv2__price span { color: var(--fmv2-muted); font-size: 12px; }
.fmv2__price strong { font-size: 25px; }
.fmv2__nav-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.fmv2__nav-buttons .fmv2__button--primary { flex: 1; }
.fmv2__nav-buttons .fmv2__button { min-width: 0; white-space: normal; line-height: 1.25; }
.fmv2__nav-buttons [data-finish] { flex: 1 1 210px; }
.fmv2__prototype-note { display: block; margin-top: 9px; color: #9a7870; text-align: center; font-size: 10px; }
.fmv2__finish-inline { margin: -6px 0 18px; }

.fmv2__trim-legend { display: flex; align-items: flex-start; gap: 11px; margin: 11px 0 0; padding: 11px 12px; border: 1px solid #f0c36a; border-radius: 10px; background: #fff9eb; }
.fmv2__trim-legend > span { flex: 0 0 34px; height: 24px; margin-top: 2px; border: 3px dashed #f2a900; border-radius: 3px; background: rgba(242,169,0,.13); }
.fmv2__trim-legend p, .fmv2__trim-legend small { display: block; margin: 0; }
.fmv2__trim-legend strong { color: var(--fmv2-ink); font-size: 12px; }
.fmv2__trim-legend small { margin-top: 3px; color: var(--fmv2-muted); font-size: 11px; line-height: 1.45; }
.fmv2-message { min-height: 18px; margin-top: 8px; font-size: 11px; text-align: center; }
.fmv2-message.is-error { color: #b53131; }
.fmv2-message.is-success { color: #237551; }
.fmv2__canvas.is-dragging { cursor: grabbing; }
body.fmv2-modal-open { overflow: hidden; }

.fmv2__room-modal[hidden] { display: none; }
.fmv2__room-modal { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 18px; background: rgba(10, 20, 23, .72); backdrop-filter: blur(8px); }
.fmv2__room-dialog { width: min(1200px, 100%); max-height: calc(100vh - 36px); border-radius: 20px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.34); overflow: auto; }
.fmv2__room-dialog > header { display: flex; justify-content: space-between; gap: 20px; align-items: start; padding: 22px 24px; border-bottom: 1px solid var(--fmv2-line); }
.fmv2__room-dialog h2 { margin: 3px 0 0; }
.fmv2__room-dialog > header button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--fmv2-soft); font-size: 27px; cursor: pointer; }
.fmv2__overview-dialog { width: min(1100px, 100%); max-height: calc(100vh - 36px); border-radius: 20px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.34); overflow: auto; }
.fmv2__overview-dialog > header { display: flex; justify-content: space-between; gap: 20px; align-items: start; padding: 22px 24px; border-bottom: 1px solid var(--fmv2-line); }
.fmv2__overview-dialog h2 { margin: 3px 0 0; }
.fmv2__overview-dialog > header button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--fmv2-soft); font-size: 27px; cursor: pointer; }
.fmv2__overview-content { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 24px; padding: 22px; }
.fmv2__overview-content > canvas { display: block; width: 100%; border-radius: 14px; background: var(--fmv2-soft); }
.fmv2__overview-content .fmv2__summary { font-size: 13px; }
.fmv2__overview-total { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 20px 0; padding-top: 16px; border-top: 2px solid var(--fmv2-ink); }
.fmv2__overview-total span { color: var(--fmv2-muted); }
.fmv2__overview-total strong { font-size: 25px; }
.fmv2__room-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr); gap: 18px; padding: 20px; }
.fmv2__room-canvas-shell { position: relative; aspect-ratio: 3 / 2; border-radius: 14px; background: #eef2f3; overflow: hidden; touch-action: none; }
.fmv2__room-canvas { width: 100%; height: 100%; display: block; }
[data-room-canvas] { pointer-events: none; }
.fmv2__room-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; }
.fmv2__room-layout aside { padding: 8px 5px; }
.fmv2__room-layout aside h3 { margin-top: 0; }
.fmv2__room-layout ol { padding-left: 20px; color: var(--fmv2-muted); }
.fmv2__room-layout li { margin-bottom: 10px; }
.fmv2__opacity { display: grid; gap: 8px; margin-top: 25px; font-weight: 750; }
.fmv2__opacity input { width: 100%; accent-color: var(--fmv2-brand-dark); }
.fmv2__privacy { margin-top: 25px; padding: 12px; border-radius: 11px; background: var(--fmv2-soft); color: var(--fmv2-muted); font-size: 11px; }
.fmv2__auto-badge { margin-top: 12px; padding: 10px; border-radius: 9px; background: #eef9f3; color: #24704b; font-size: 11px; font-weight: 750; text-align: center; }
.fmv2__preset-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr); gap: 18px; padding: 20px; }
.fmv2__preset-layout aside { padding: 8px 5px; }
.fmv2__preset-layout aside h3 { margin-top: 0; }
.fmv2__preset-options { display: grid; gap: 8px; }
.fmv2__preset-options button { display: block; width: 100%; padding: 13px; border: 1.5px solid var(--fmv2-line); border-radius: 11px; background: #fff; text-align: left; cursor: pointer; }
.fmv2__preset-options button strong, .fmv2__preset-options button small { display: block; }
.fmv2__preset-options button small { margin-top: 2px; color: var(--fmv2-muted); }
.fmv2__preset-options button.is-active { border-color: var(--fmv2-brand-dark); background: #effafa; }
.fmv2__preset-auto { margin: -3px 0 13px; color: var(--fmv2-muted); font-size: 11px; }

@media (max-width: 980px) {
    .fmv2 { width: min(100% - 20px, 760px); margin-top: 18px; }
    .fmv2__header { align-items: start; }
    .fmv2__trust { display: none; }
    .fmv2__layout { grid-template-columns: 1fr; }
    .fmv2__panel { position: static; }
    .fmv2__panel-step { min-height: 0; }
    .fmv2__room-layout { grid-template-columns: 1fr; }
    .fmv2__preset-layout { grid-template-columns: 1fr; }
    .fmv2__overview-content { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .fmv2 { width: 100%; margin: 0 auto 40px; font-size: 14px; }
    .fmv2__header { padding: 18px 17px 4px; }
    .fmv2__header p { font-size: 14px; }
    .fmv2__steps { margin: 12px 10px; }
    .fmv2__steps button { gap: 0; min-height: 45px; padding: 6px; font-size: 0; }
    .fmv2__steps button span { font-size: 12px; }
    .fmv2__layout { gap: 10px; }
    .fmv2__stage, .fmv2__panel { border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
    .fmv2__stage { padding: 10px; }
    .fmv2__panel-step { padding: 23px 18px 16px; }
    .fmv2__panel-footer { position: sticky; bottom: 0; z-index: 20; padding: 13px 18px 16px; box-shadow: 0 -8px 28px rgba(17,42,48,.09); }
    .fmv2__toolbar { overflow-x: auto; }
    .fmv2__edit-modes { flex: 1 0 100%; }
    .fmv2__edit-modes button { flex: 1; justify-content: center; }
    .fmv2__toolbar > button span { display: none; }
    .fmv2__edit-modes button span { display: inline; }
    .fmv2__zoom { min-width: 130px; }
    .fmv2__room-modal { padding: 0; }
    .fmv2__room-dialog { max-height: 100vh; height: 100%; border-radius: 0; }
    .fmv2__overview-dialog { max-height: 100vh; height: 100%; border-radius: 0; }
    .fmv2__room-layout { padding: 10px; }
    .fmv2__preset-layout { padding: 10px; }
    .fmv2__preview-buttons { grid-template-columns: 1fr; }
    .fmv2__filters { grid-template-columns: repeat(3, 1fr); }
    .fmv2__choice-grid { grid-template-columns: 1fr; }
    .fmv2__choice-card { min-height: 92px; }
    .fmv2__design-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .fmv2 *, .fmv2 *::before, .fmv2 *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Readable supporting copy throughout every configurator step. */
.fmv2__crop-instruction,
.fmv2__composition > small,
.fmv2__quality small,
.fmv2__material small,
.fmv2__section-heading small,
.fmv2__lane-section > p,
.fmv2__discount-hint,
.fmv2__notice,
.fmv2__quality-approval,
.fmv2__service-option small,
.fmv2__upsells summary span small,
.fmv2__upsell-list > p,
.fmv2__trim-legend small,
.fmv2__prototype-note,
.fmv2-message,
.fmv2__privacy,
.fmv2__preset-auto {
    font-size: 14px;
    line-height: 1.5;
}
.fmv2__choice-card small,
.fmv2__dimensions label,
.fmv2__toggle em,
.fmv2__product-sizes button span,
.fmv2-material > span:not(.fmv2-material__check),
.fmv2-material > b,
.fmv2__section-heading > span,
.fmv2__lane-options button b,
.fmv2__shipping-line,
.fmv2__price span {
    font-size: 13px;
    line-height: 1.45;
}
.fmv2__trim-legend strong { font-size: 15px; }
.fmv2__upsell strong { font-size: 14px; line-height: 1.35; }
.fmv2__upsell small { font-size: 13px; line-height: 1.45; }
.fmv2__upsells summary span small,
.fmv2__upsell-list > p { font-size: 13px; }

@media (max-width: 760px) {
    .fmv2 { font-size: 15px; }
}

/* Mobile flow: choices before preview; compact product types without horizontal overflow. */
@media (max-width: 600px) {
    .fmv2__panel { order: 1; }
    .fmv2__stage { order: 2; }
    .fmv2__choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .fmv2__choice-card { min-height: 112px; padding: 12px 8px; }
    .fmv2__choice-icon { margin-bottom: 6px; font-size: 26px; }
    .fmv2__choice-card strong { font-size: 12px; line-height: 1.25; }
    .fmv2__choice-card small { font-size: 11px; line-height: 1.3; }
}

/* Mobile filter strip: all effects remain available without four vertical rows. */
@media (max-width: 600px) {
    .fmv2__filters {
        display: flex;
        gap: 8px;
        padding: 2px 2px 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }
    .fmv2__filters button {
        flex: 0 0 96px;
        scroll-snap-align: start;
    }
}

/* Overview action layout: readable buttons in the narrow desktop panel. */
.fmv2__design-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fmv2__design-actions button:last-child {
    grid-column: 1 / -1;
}
@media (max-width: 600px) {
    .fmv2__design-actions {
        grid-template-columns: 1fr;
    }
    .fmv2__design-actions button:last-child {
        grid-column: auto;
    }
}
