/* Native Studioplanner product previews and their local 3D controls. */
.sp-ui { --sp-blue: #1786ac; --sp-ink: #0a2144; --sp-muted: #728390; --sp-line: #e2e9ed; container-type: inline-size; width: 100%; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #d8e4e9; border-radius: 10px; color: var(--sp-ink); font-size: 11px; line-height: 1.4; text-align: left; }
.sp-ui *, .sp-ui *::before, .sp-ui *::after { box-sizing: border-box; }
.sp-ui h4, .sp-ui p { margin: 0; }
.sp-ui .sp-icon { width: 16px; height: 16px; flex-basis: 16px; }
.sp-toolbar { display: flex; align-items: center; gap: 13px; padding: 13px 16px; border-bottom: 1px solid var(--sp-line); min-height: 48px; }
.sp-wordmark { display: inline-flex; align-items: center; gap: 6px; letter-spacing: .04em; font-size: 11px; }
.sp-wordmark .sp-icon { width: 20px; height: 20px; flex-basis: 20px; color: var(--sp-blue); }
.sp-toolbar > span:nth-child(2) { font-size: 8px; color: var(--sp-muted); border-left: 1px solid var(--sp-line); padding-left: 13px; }
.sp-toolbar-mode { display: flex; align-items: center; gap: 5px; margin-left: auto; font-size: 8px; }
.sp-toolbar-mode .sp-icon { width: 13px; height: 13px; flex-basis: 13px; }
.sp-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 29%; }
.sp-stage { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 304px; background: #edf3f2; padding: 22px 10px 25px; overflow: hidden; }
.sp-stage-label { position: absolute; z-index: 1; top: 17px; left: 18px; display: grid; gap: 2px; }
.sp-stage-label > span { font-size: 7px; color: var(--sp-muted); }
.sp-stage-label > b { font-size: 12px; font-weight: 600; letter-spacing: -.03em; }
.sp-furniture { --sp-fabric: #b9b19f; --sp-fabric-light: #d3cbb9; --sp-fabric-shadow: #a69d88; --sp-fabric-seam: #b0a894; display: block; width: 100%; height: auto; overflow: visible; }
.sp-fabric-base { fill: var(--sp-fabric); stroke: var(--sp-fabric-shadow); stroke-width: .8; }
.sp-fabric-light { fill: var(--sp-fabric-light); stroke: var(--sp-fabric); stroke-width: 1; }
.sp-fabric-shadow { fill: var(--sp-fabric-shadow); }
.sp-fabric-seam { stroke: var(--sp-fabric-seam); stroke-width: 1; }
.sp-furniture--sage { --sp-fabric: #7e8674; --sp-fabric-light: #a7ad9d; --sp-fabric-shadow: #626d59; --sp-fabric-seam: #939a88; }
.sp-ui .sp-viewer { position: relative; isolation: isolate; width: 100%; min-width: 0; min-height: 240px; aspect-ratio: 520 / 330; overflow: hidden; }
.sp-ui .sp-viewer > canvas, .sp-ui .sp-viewer > .scene-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.sp-ui .sp-viewer > canvas { display: block; visibility: hidden; opacity: 0; touch-action: pan-y; cursor: grab; }
.sp-ui .sp-viewer > canvas:active { cursor: grabbing; }
.sp-ui .sp-viewer > canvas:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: -4px; }
.sp-ui .sp-viewer > .scene-fallback { display: block; object-fit: contain; mix-blend-mode: multiply; }
.sp-ui .sp-viewer.is-ready:not(.is-fallback) > canvas { visibility: visible; opacity: 1; }
.sp-ui .sp-viewer.is-ready:not(.is-fallback) > .scene-fallback { visibility: hidden; }
.sp-ui .sp-viewer > .scene-drag { position: absolute; z-index: 1; left: 13px; bottom: 16px; display: none; max-width: calc(100% - 110px); color: var(--sp-muted); font-size: 9px; line-height: 1.4; pointer-events: none; }
.sp-ui .sp-viewer > .scene-reset, .sp-ui .sp-viewer > .scene-zoom { position: absolute; z-index: 2; right: 12px; bottom: 10px; display: none; place-items: center; width: 32px; height: 32px; min-height: 32px; padding: 7px; border: 1px solid #c6d5d9; border-radius: 50%; background: rgb(248 247 243 / 94%); color: var(--sp-ink); }
.sp-ui .sp-viewer > .scene-reset { right: 51px; }
.sp-ui .sp-viewer > .scene-reset .sp-icon, .sp-ui .sp-viewer > .scene-zoom .sp-icon { width: 16px; height: 16px; }
.sp-ui .sp-viewer > .scene-reset:hover, .sp-ui .sp-viewer > .scene-zoom:hover, .sp-ui .sp-viewer > .scene-zoom[aria-pressed="true"] { background: #deeff8; border-color: #6bacc6; color: #116787; }
.sp-ui .sp-viewer > button:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 3px; }
.sp-ui .sp-viewer.is-ready:not(.is-fallback) > .scene-drag { display: block; }
.sp-ui .sp-viewer.is-ready:not(.is-fallback) > .scene-reset, .sp-ui .sp-viewer.is-ready:not(.is-fallback) > .scene-zoom { display: grid; }
.sp-stage > .sp-viewer { position: absolute; inset: 0; height: 100%; min-height: 0; aspect-ratio: auto; }
.sp-stage-label { pointer-events: none; }
.sp-perspective { position: absolute; left: 18px; bottom: 13px; display: flex; gap: 5px; align-items: center; color: #73838c; font-size: 7px; }
.sp-perspective .sp-icon { width: 12px; height: 12px; flex-basis: 12px; }
.sp-stage-orbit { position: absolute; bottom: 15px; right: 17px; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #c6d5d9; border-radius: 50%; font-size: 7px; color: var(--sp-blue); }
.sp-settings { min-width: 0; padding: 20px 14px 17px; background: #fcfdfd; border-left: 1px solid var(--sp-line); }
.sp-label { display: block; color: var(--sp-muted); font-size: 9px; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.sp-settings > strong { display: block; margin-top: 6px; font-size: 18px; letter-spacing: -.04em; line-height: 1.1; font-weight: 600; }
.sp-settings > p { margin-top: 6px; font-size: 9px; color: var(--sp-muted); line-height: 1.5; }
.sp-control { padding-top: 15px; margin-top: 15px; border-top: 1px solid var(--sp-line); }
.sp-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-top: 7px; font-size: 7px; text-align: center; }
.sp-options > * { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 32px; padding: 5px 4px; border: 1px solid #dde6e9; border-radius: 4px; background: transparent; color: var(--sp-ink); font-weight: 500; }
.sp-options > button { font-size: 10px; line-height: 1.3; }
.sp-options > button:hover { background: #edf5f8; border-color: #a4c6d4; }
.sp-options > b, .sp-options > .is-selected, .sp-options > [aria-pressed="true"] { background: #deeff8; border-color: #6bacc6; color: #116787; }
.sp-options > button:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 2px; }
.sp-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.sp-swatches > i { width: 19px; height: 19px; border-radius: 50%; background: #c9c1af; flex-shrink: 0; }
.sp-swatches > i:nth-child(2) { background: #7e8674; }
.sp-swatches > i:nth-child(3) { background: #a6705a; }
.sp-swatches > i:nth-child(4) { background: #4b4c4d; }
.sp-swatches .is-selected { outline: 1px solid #1786ac; outline-offset: 3px; }
.sp-swatches > button { --sp-swatch: #c9c1af; position: relative; width: 32px; height: 32px; min-width: 32px; min-height: 32px; flex: 0 0 32px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; }
.sp-swatches > button::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--sp-swatch); }
.sp-swatches > button:nth-child(2) { --sp-swatch: #7e8674; }
.sp-swatches > button:nth-child(3) { --sp-swatch: #a6705a; }
.sp-swatches > button:nth-child(4) { --sp-swatch: #4b4c4d; }
.sp-swatches > button:hover { border-color: #a4c6d4; background: #edf5f8; }
.sp-swatches > button.is-selected, .sp-swatches > button[aria-pressed="true"] { border-color: var(--sp-blue); outline: none; }
.sp-swatches > button:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 2px; }
.sp-material-name { font-size: 9px; color: var(--sp-muted); }
.sp-measure { display: flex; align-items: center; gap: 7px; margin-top: 18px; padding: 9px 0; border-top: 1px solid var(--sp-line); font-size: 9px; }
.sp-measure .sp-icon { color: var(--sp-blue); width: 14px; height: 14px; flex-basis: 14px; }
.sp-product-code { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px; margin-top: 4px; font-size: 6px; color: var(--sp-muted); }
.sp-product-code b { font-weight: 500; }
.sp-ui-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--sp-line); font-size: 7px; }
.sp-ui-foot > span { display: flex; align-items: center; gap: 5px; }
.sp-ui-foot .sp-icon { width: 12px; height: 12px; flex-basis: 12px; color: var(--sp-blue); }
.sp-ui-foot small { font-size: 6px; color: var(--sp-muted); text-align: right; }
.sp-collection-heading { position: relative; padding: 23px 24px 20px; border-bottom: 1px solid var(--sp-line); }
.sp-collection-heading h4 { font-size: 24px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; margin-top: 7px; }
.sp-collection-heading > span { position: absolute; bottom: 22px; right: 22px; color: var(--sp-muted); font-size: 8px; }
.sp-collection-body { display: grid; grid-template-columns: minmax(0, 1fr) 31%; }
.sp-collection-model { position: relative; min-width: 0; background: #edf3f2; padding: 8px 14px 18px; }
.sp-collection-model .sp-furniture { max-height: 235px; }
.sp-collection-model > .sp-viewer { height: 235px; min-height: 0; max-height: 235px; aspect-ratio: auto; }
.sp-selection { display: flex; align-items: center; gap: 4px; position: absolute; left: 16px; top: 14px; z-index: 1; padding: 5px 7px; background: #fff; color: #116787; border: 1px solid #d7e7eb; border-radius: 4px; font-size: 7px; }
.sp-selection .sp-icon { width: 11px; height: 11px; flex-basis: 11px; }
.sp-collection-model > div:not(.sp-viewer) { display: flex; justify-content: space-between; gap: 10px; align-items: end; padding-inline: 5px; }
.sp-collection-model > div:not(.sp-viewer) strong { font-size: 15px; font-weight: 600; letter-spacing: -.03em; }
.sp-collection-model > div:not(.sp-viewer) span { font-size: 7px; color: var(--sp-muted); }
.sp-collection-details { min-width: 0; padding: 18px 15px; }
.sp-collection-details > div { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 2px 8px; margin-top: 18px; }
.sp-collection-details > div .sp-icon { grid-row: 1 / 3; color: var(--sp-blue); }
.sp-collection-details > div strong { font-size: 9px; font-weight: 600; }
.sp-collection-details > div span { font-size: 7px; color: var(--sp-muted); }
.sp-fake-action { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 21px; padding: 9px; background: #0a2144; color: #fff; border-radius: 4px; font-size: 7px; }
.sp-fake-action .sp-icon { width: 12px; height: 12px; flex-basis: 12px; }
.sp-options--vertical { grid-template-columns: 1fr; margin-top: 15px; text-align: left; }
.sp-options--vertical > * { justify-content: flex-start; padding: 5px 8px; }
.sp-options--vertical .sp-icon { width: 11px; height: 11px; flex-basis: 11px; }
.sp-module-strip { display: flex; align-items: center; gap: 5px; position: absolute; bottom: 10px; left: 17px; font-size: 6px; }
.sp-module-strip > * { padding: 4px 7px; background: #fff; border: 1px solid #d7e5e8; border-radius: 3px; font-weight: 500; }
.sp-module-strip > b { color: #116787; border-color: #85b7cd; }
.sp-material .sp-stage { min-height: 337px; }
.sp-fabric-detail { position: absolute; display: flex; gap: 7px; align-items: center; right: 13px; top: 13px; padding: 6px; background: #fff; border-radius: 5px; box-shadow: 0 4px 15px -7px rgb(10 33 68 / 18%); pointer-events: none; }
.sp-fabric-detail > i { width: 29px; height: 29px; border-radius: 3px; background: repeating-linear-gradient(45deg, #c9c1af 0, #c9c1af 2px, #e6e0d2 2px, #e6e0d2 3px); }
.sp-fabric-detail > span { font-size: 8px; }
.sp-fabric-detail small { display: block; font-size: 6px; color: var(--sp-muted); margin-top: 1px; }
.sp-material-properties { display: grid; gap: 9px; padding-top: 15px; margin-top: 15px; border-top: 1px solid var(--sp-line); font-size: 9px; }
.sp-material-properties > span { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px; color: var(--sp-muted); }
.sp-material-properties b { font-size: 10px; color: var(--sp-ink); font-weight: 500; }
.sp-presentation-scene { position: relative; min-height: 294px; background: #e4ece5; padding: 25px 17px 10px; overflow: hidden; }
.sp-presentation-copy { position: absolute; left: 23px; top: 24px; z-index: 1; }
.sp-presentation-copy .sp-label { font-size: 7px; color: #6f837a; }
.sp-presentation-copy h4 { margin-top: 10px; font-size: 28px; line-height: 1.08; font-weight: 550; letter-spacing: -.055em; color: #34524a; }
.sp-presentation-copy > p { color: #6f837a; font-size: 8px; margin-top: 12px; }
.sp-presentation-scene > .sp-furniture { width: 76%; margin: 31px 0 0 auto; }
.sp-presentation-scene > .sp-viewer { width: 76%; min-height: 240px; margin: 31px 0 0 auto; }
.sp-presentation-mark { position: absolute; right: 21px; bottom: 20px; text-align: right; font-size: 11px; letter-spacing: .06em; color: #34524a; font-weight: 600; }
.sp-presentation-mark > span { display: block; color: #6f837a; font-size: 6px; letter-spacing: .025em; font-weight: 400; }
.sp-presentation-scene:has(> .sp-viewer) > .sp-presentation-mark { bottom: 60px; pointer-events: none; }
.sp-presentation-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 20px 24px; }
.sp-presentation-specs > div + div { padding-left: 17px; border-left: 1px solid var(--sp-line); }
.sp-presentation-specs small { display: block; color: var(--sp-muted); font-size: 7px; }
.sp-presentation-specs strong { display: block; font-weight: 550; font-size: 10px; margin-top: 5px; }
@container (max-width: 470px) {
  .sp-toolbar { padding-inline: 12px; gap: 9px; }
  .sp-toolbar > span:nth-child(2) { font-size: 7px; padding-left: 9px; }
  .sp-toolbar-mode { font-size: 7px; }
  .sp-workspace { grid-template-columns: minmax(0, 1fr) 33%; }
  .sp-stage { min-height: 277px; padding-inline: 4px; }
  .sp-settings { padding-inline: 10px; }
  .sp-settings > strong { font-size: 16px; }
  .sp-swatches { gap: 6px; }
  .sp-swatches > i { width: 16px; height: 16px; }
  .sp-ui-foot { font-size: 6px; gap: 8px; }
  .sp-collection-heading { padding: 20px 17px; }
  .sp-collection-heading h4 { font-size: 22px; }
  .sp-collection-heading > span { position: static; display: block; margin-top: 9px; font-size: 7px; }
  .sp-collection-body { grid-template-columns: minmax(0, 1fr) 34%; }
  .sp-collection-details { padding-inline: 11px; }
  .sp-collection-model > div:not(.sp-viewer) { flex-direction: column; align-items: start; gap: 3px; }
  .sp-collection-model { padding-inline: 6px; }
  .sp-fabric-detail { display: none; }
  .sp-presentation-copy h4 { font-size: 24px; }
  .sp-presentation-scene { min-height: 282px; padding-top: 53px; }
  .sp-presentation-scene > .sp-furniture { width: 100%; margin-top: 29px; }
  .sp-presentation-specs { padding: 16px 14px; gap: 9px; }
  .sp-presentation-specs > div + div { padding-left: 9px; }
  .sp-presentation-specs strong { font-size: 8px; }
}
@container (max-width: 350px) {
  .sp-toolbar > span:nth-child(2) { display: none; }
  .sp-workspace, .sp-collection-body { grid-template-columns: 1fr; }
  .sp-stage, .sp-material .sp-stage { min-height: 225px; padding-top: 36px; }
  .sp-stage-label { left: 13px; top: 13px; }
  .sp-stage-label > b { font-size: 11px; }
  .sp-stage-label > span { font-size: 7px; }
  .sp-perspective { left: 13px; font-size: 6px; }
  .sp-settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 16px; padding: 16px 14px; border-left: 0; border-top: 1px solid var(--sp-line); }
  .sp-settings > .sp-label, .sp-settings > strong, .sp-settings > p { grid-column: 1; }
  .sp-settings > strong { font-size: 17px; }
  .sp-settings > p { max-width: 115px; font-size: 9px; }
  .sp-settings > .sp-control { grid-column: 2; grid-row: 1 / 5; margin-top: 0; padding-top: 0; border-top: 0; }
  .sp-overview .sp-settings > .sp-control + .sp-control { grid-row: 5 / 8; }
  .sp-overview .sp-settings > .sp-measure { grid-column: 1; grid-row: 5; }
  .sp-overview .sp-settings > .sp-product-code { grid-column: 1; grid-row: 6; }
  .sp-measure { margin-top: 10px; font-size: 9px; }
  .sp-product-code { font-size: 6px; }
  .sp-swatches { gap: 8px; margin-top: 10px; }
  .sp-swatches > i { width: 18px; height: 18px; }
  .sp-composition .sp-settings > .sp-options--vertical { grid-column: 2; grid-row: 1 / 6; margin: 0; font-size: 8px; }
  .sp-composition .sp-settings > .sp-measure { grid-column: 1; }
  .sp-material .sp-settings { display: block; }
  .sp-material .sp-settings > strong br { display: none; }
  .sp-material .sp-settings > strong { margin-bottom: 5px; }
  .sp-material .sp-settings > p { max-width: none; }
  .sp-material .sp-settings > .sp-control { margin-top: 15px; }
  .sp-material-properties { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .sp-material-properties > span { display: grid; justify-content: start; gap: 3px; }
  .sp-material .sp-fake-action { margin-top: 14px; font-size: 8px; }
  .sp-fabric-detail { display: none; }
  .sp-fabric-detail > i { width: 20px; height: 20px; }
  .sp-fabric-detail > span { font-size: 7px; }
  .sp-fabric-detail small { font-size: 5px; }
  .sp-collection-model { padding: 15px 14px; }
  .sp-collection-model > div:not(.sp-viewer) { flex-direction: row; align-items: end; }
  .sp-collection-model > div:not(.sp-viewer) span { text-align: right; max-width: 110px; }
  .sp-collection-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 9px; padding: 16px 14px; }
  .sp-collection-details > .sp-label { grid-column: 1 / -1; }
  .sp-collection-details > div { display: flex; flex-direction: column; gap: 4px; margin: 0; }
  .sp-collection-details > div strong { font-size: 8px; }
  .sp-collection-details > div span { font-size: 7px; }
  .sp-collection-details > .sp-fake-action { grid-column: 1 / -1; margin: 3px 0 0; font-size: 8px; }
  .sp-presentation-copy { left: 16px; top: 20px; }
  .sp-presentation-copy h4 { font-size: 24px; }
  .sp-presentation-scene { min-height: 290px; padding: 90px 0 20px; }
  .sp-presentation-scene > .sp-furniture { margin-top: 15px; }
  .sp-presentation-scene > .sp-viewer { width: 100%; min-height: 210px; margin-top: 15px; }
  .sp-presentation-mark { font-size: 9px; bottom: 12px; right: 14px; }
  .sp-presentation-specs { padding: 15px 12px; gap: 8px; }
  .sp-presentation-specs small { font-size: 6px; }
  .sp-presentation-specs strong { font-size: 8px; }
  .sp-ui-foot { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; font-size: 7px; }
  .sp-ui-foot small { font-size: 6px; }
}
@media (max-width: 760px) {
  .sp-ui .sp-viewer > .scene-reset, .sp-ui .sp-viewer > .scene-zoom { right: 10px; bottom: 9px; width: 44px; height: 44px; min-height: 44px; padding: 12px; }
  .sp-ui .sp-viewer > .scene-reset { right: 61px; }
  .sp-ui .sp-viewer > .scene-drag { left: 10px; bottom: 22px; max-width: calc(100% - 123px); }
  .sp-ui .sp-options > button { min-height: 44px; }
  .sp-presentation-scene:has(> .sp-viewer) > .sp-presentation-mark { bottom: 70px; }
}
