/* UBTracker Furniture · v121 mobile product studio.
 * One mobile layout, instead of stacking patches v116–v120.
 * Only active for the public Furniture demo and viewport <= 900px.
 */
@media (max-width:900px) {
  html { height:100%!important; overflow:hidden!important; scroll-behavior:auto!important; }
  body.fur-page.fur-premium {
    height:100%!important; width:100%!important; margin:0!important; overflow:hidden!important;
    overscroll-behavior:none!important; background:#e9e7e1!important;
    --fur-ink:#20352a; --fur-accent:#1e3729;
  }
  body.fur-premium .fur-shell {
    position:fixed!important; inset:0!important; width:100%!important; max-width:none!important;
    height:100dvh!important; max-height:none!important; min-height:0!important;
    display:block!important; overflow:hidden!important; padding:0!important; margin:0!important;
    background:#e9e7e1!important;
  }
  body.fur-premium .fur-main { display:block!important; height:100%!important; min-height:0!important; overflow:visible!important; background:transparent!important; }
  body.fur-premium .fur-header {
    display:flex!important; position:fixed!important; top:0!important; left:0!important;
    right:auto!important; z-index:120!important; width:143px!important; height:67px!important;
    min-height:0!important; padding:16px 0 0 13px!important; margin:0!important;
    border:0!important; box-shadow:none!important; background:transparent!important;
    pointer-events:none!important;
  }
  body.fur-premium .fur-header-right {display:none!important}
  body.fur-premium .fur-premium-brand {display:inline-flex!important; max-width:128px!important; pointer-events:auto!important;}
  body.fur-premium .fur-premium-brand .fur-brand-logo,
  body.fur-premium .fur-brand-logo {
    display:block!important; width:126px!important; max-width:126px!important; max-height:42px!important;
    height:auto!important; object-fit:contain!important;
  }
  /* The viewport is divided into a pure product stage and a measured fixed panel. */
  body.fur-premium .fur-visual {
    display:block!important; position:fixed!important; top:0!important; left:0!important; right:0!important;
    bottom:var(--fur-v121-panel-height,152px)!important; z-index:10!important;
    flex:none!important; align-self:auto!important; height:auto!important; min-height:0!important;
    max-height:none!important; width:100%!important; overflow:hidden!important; border:0!important;
    background:#e9e7e1!important; box-shadow:none!important;
  }
  body.fur-premium .fur-stage,
  body.fur-premium .fur-stage[data-mode="photo"],
  body.fur-premium .fur-stage[data-mode="3d"] {
    display:block!important; position:relative!important; width:100%!important; height:100%!important;
    min-height:0!important; max-height:none!important; flex:none!important; overflow:hidden!important;
    background:#e9e7e1!important;
  }
  body.fur-premium .fur-stage[data-mode="3d"] {background:radial-gradient(ellipse at 45% 39%,#f9f8f5 0%,#eeede8 68%,#e2dfd6 100%)!important;}
  body.fur-premium .fur-stage::after,
  body.fur-premium .fur-stage::before {content:none!important;display:none!important}
  body.fur-premium .fur-photo-frame, body.fur-premium .fur-three-wrap {
    position:absolute!important; inset:0!important; height:100%!important; width:100%!important;
    margin:0!important; overflow:hidden!important;
  }
  body.fur-premium #fur-photo-frame[hidden],body.fur-premium #fur-three-wrap[hidden],
  body.fur-premium #fur-3d-toolbar[hidden],body.fur-premium #fur-mode-status[hidden] {display:none!important}
  body.fur-premium .fur-responsive-photo {display:block!important; height:100%!important; width:100%!important;}
  body.fur-premium .fur-stage[data-mode="photo"] .fur-product-photo {
    display:block!important; width:100%!important; height:100%!important;
    padding:69px 5px 9px!important; box-sizing:border-box!important;
    object-fit:contain!important; object-position:center center!important;
    transform:none!important; filter:none!important; opacity:1!important;
    transition:none!important;
  }
  body.fur-premium #fur-three-canvas {display:block!important; width:100%!important; height:100%!important; touch-action:none!important;}
  /* One clear mode switch. No text floating over the chair. */
  body.fur-premium .fur-mode-toggle,
  body.fur-premium .fur-stage[data-mode="3d"] .fur-mode-toggle {
    display:flex!important; position:absolute!important; z-index:160!important;
    top:14px!important; right:12px!important; left:auto!important; bottom:auto!important;
    align-items:center!important; gap:2px!important;
    width:auto!important; max-width:calc(100% - 144px)!important;
    padding:4px!important; border:1px solid #e9e9e3!important; border-radius:999px!important;
    background:rgba(255,255,255,.95)!important; box-shadow:0 7px 24px rgba(27,35,28,.12)!important;
    -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  }
  body.fur-premium .fur-mode-option {
    display:inline-flex!important; align-items:center!important; justify-content:center!important;
    flex:none!important; min-height:37px!important; gap:5px!important; padding:0 10px!important;
    font:760 11px/1.1 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
    white-space:nowrap!important; border:0!important; border-radius:999px!important;
    background:transparent!important; color:#526257!important; box-shadow:none!important;
  }
  body.fur-premium .fur-mode-option.is-active {background:#20372a!important;color:#fff!important;box-shadow:0 2px 9px #1325182a!important}
  body.fur-premium .fur-mode-option svg {display:block!important; width:14px!important; height:14px!important; flex:0 0 14px!important; fill:none!important; stroke:currentColor!important;stroke-width:1.7!important;}
  body.fur-premium .fur-mode-option span {display:inline!important; font-size:11px!important;white-space:nowrap!important;}
  body.fur-premium .fur-3d-help,
  body.fur-premium .fur-3d-insignia,
  body.fur-premium .fur-premium-stage-label,
  body.fur-premium .fur-premium-material-caption,
  body.fur-premium .fur-lux-signature,
  body.fur-premium .fur-visual-proof,
  body.fur-premium .fur-detail-rail,
  body.fur-premium .fur-material-panel,
  body.fur-premium .fur-studio-glow,
  body.fur-premium .fur-hero-3d-cta,
  body.fur-premium .fur-zoom,
  body.fur-premium .fur-gallery-bar,
  body.fur-premium .fur-visual-note,
  body.fur-premium .fur-footer {display:none!important}
  /* Loading/error messages are discreet and do not block controls. */
  body.fur-premium .fur-mode-status:not([hidden]) {
    display:flex!important;position:absolute!important; top:70px!important; left:50%!important; right:auto!important;
    transform:translateX(-50%)!important; z-index:155!important; max-width:calc(100% - 30px)!important;
    padding:8px 12px!important; border-radius:999px!important;
    font-size:11px!important; background:rgba(255,255,255,.93)!important;
    box-shadow:0 7px 18px rgba(23,39,28,.11)!important;
  }
  body.fur-premium .fur-3d-toolbar:not([hidden]) {
    display:flex!important; position:absolute!important; z-index:100!important; left:12px!important; right:auto!important;
    top:auto!important; bottom:13px!important; gap:4px!important;
    padding:5px!important; border-radius:15px!important; border:1px solid #e9ebe5!important;
    background:rgba(255,255,255,.94)!important; box-shadow:0 7px 18px rgba(16,28,20,.09)!important;
    -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  }
  body.fur-premium .fur-3d-toolbar button {display:flex!important;align-items:center!important;justify-content:center!important;width:39px!important;height:38px!important;font-size:22px!important;min-height:38px!important;border-radius:11px!important;}
  body.fur-premium .fur-3d-toolbar button[data-fur-3d="spin"], body.fur-premium .fur-tool-divider {display:none!important}

  /* Crucially, the builder must stay visible. The earlier v120 hid it along with price and buttons. */
  body.fur-premium .fur-builder {
    display:block!important; position:fixed!important; z-index:180!important; left:0!important; right:0!important;
    top:auto!important; bottom:0!important; width:100%!important; max-width:none!important;
    height:auto!important; min-height:0!important; max-height:none!important;
    padding:0!important; margin:0!important; overflow:visible!important; flex:none!important;
    background:#fff!important; border:0!important; border-top:1px solid #e5e9e3!important;
    border-radius:20px 20px 0 0!important; box-shadow:0 -11px 36px rgba(24,33,27,.075)!important;
  }
  body.fur-premium .fur-editor-top,
  body.fur-premium .fur-builder>h1,
  body.fur-premium .fur-premium-intro,
  body.fur-premium .fur-premium-process,
  body.fur-premium .fur-lux-edits-stage,
  body.fur-premium .fur-lux-mobile-lookbook,
  body.fur-premium .fur-config-label,
  body.fur-premium .fur-option-group,
  body.fur-premium .fur-option-group.is-active,
  body.fur-premium .fur-premium-price-note,
  body.fur-premium .fur-legal {display:none!important}
  body.fur-premium .fur-config-form {
    display:flex!important; flex-direction:column!important; grid-template-rows:none!important;grid-template-columns:none!important;
    width:100%!important; height:auto!important; min-height:0!important;
    gap:0!important; padding:9px 12px calc(8px + env(safe-area-inset-bottom,0px))!important;
    margin:0!important; overflow:visible!important; background:#fff!important; border-radius:20px 20px 0 0!important;
  }
  body.fur-premium .fur-m-options {
    order:1!important; position:relative!important;display:flex!important; align-items:center!important;gap:7px!important;
    width:100%!important; height:49px!important; min-height:49px!important; max-height:49px!important;
    padding:0 0 8px!important;margin:0!important;overflow:hidden!important;
    border-bottom:1px solid #f0f1ec!important;
  }
  body.fur-premium .fur-m-strip {display:flex!important;align-items:center!important;gap:7px!important;flex:1 1 auto!important;min-width:0!important;overflow-x:auto!important;scrollbar-width:none!important;overscroll-behavior-x:contain!important;scroll-snap-type:x proximity!important;}
  body.fur-premium .fur-m-strip::-webkit-scrollbar {display:none!important;}
  body.fur-premium .fur-m-chip,body.fur-premium .fur-m-more {
    appearance:none!important; flex:0 0 auto!important; display:inline-flex!important;align-items:center!important;justify-content:center!important;
    gap:6px!important; height:39px!important; min-height:39px!important;
    padding:0 11px!important; border:1px solid #e5e9e2!important;border-radius:12px!important;
    background:#f6f7f4!important; color:#26382b!important; box-shadow:none!important;
    font-size:12px!important;font-weight:720!important;line-height:1!important;white-space:nowrap!important;
    scroll-snap-align:start!important;
  }
  body.fur-premium .fur-m-chip:active,body.fur-premium .fur-m-more:active{background:#e7eee7!important}
  body.fur-premium .fur-m-dot{display:block!important;width:14px!important;height:14px!important;border:1px solid #3332!important;border-radius:5px!important;flex:0 0 14px!important;}
  body.fur-premium .fur-m-more {width:40px!important;min-width:40px!important;padding:0!important; font-size:22px!important;font-weight:450!important;background:#eaf0e9!important;border-color:#dce7da!important;}
  body.fur-premium .fur-action-dock {
    order:2!important;display:grid!important;position:relative!important;top:auto!important;right:auto!important;left:auto!important;bottom:auto!important;
    grid-row:auto!important; grid-template-columns:minmax(0,1fr) 76px minmax(107px,.88fr)!important;grid-template-rows:1fr!important;
    align-items:center!important;gap:8px!important;width:100%!important;
    height:62px!important;min-height:62px!important;max-height:none!important;
    padding:7px 0 0!important;margin:0!important;border:0!important;
    background:transparent!important;box-shadow:none!important;
  }
  body.fur-premium .fur-price-summary {display:flex!important; flex-direction:column!important;align-items:flex-start!important;justify-content:center!important; gap:0!important;min-width:0!important;padding:0!important;margin:0!important;}
  body.fur-premium .fur-price-summary>span {display:block!important;font-size:9px!important;line-height:1!important;font-weight:700!important;letter-spacing:.055em!important;text-transform:uppercase!important;color:#8c958b!important;margin:0 0 5px!important;}
  body.fur-premium .fur-price-summary strong {display:block!important; max-width:100%!important;font-size:clamp(15px,4.35vw,20px)!important;line-height:1!important;letter-spacing:-.055em!important;white-space:nowrap!important;overflow:visible!important;color:#21362a!important;}
  body.fur-premium .fur-quantity {display:block!important;min-width:0!important;max-width:76px!important;margin:0!important;padding:0!important;border:0!important;}
  body.fur-premium .fur-quantity>span{display:none!important}
  body.fur-premium .fur-stepper {display:flex!important;align-items:center!important;justify-content:space-between!important;width:76px!important;max-width:76px!important;height:42px!important;border:1px solid #e4e9e2!important;border-radius:12px!important;background:#f8f9f7!important;}
  body.fur-premium .fur-stepper button {display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 22px!important;width:22px!important;height:40px!important;font-size:17px!important;padding:0!important;}
  body.fur-premium .fur-stepper input {width:30px!important;min-width:0!important;max-width:30px!important;flex:1 1 0!important;height:40px!important;padding:0!important;font-size:12px!important;}
  body.fur-premium .fur-action-dock>.fur-primary {
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    height:45px!important;min-height:45px!important;max-height:none!important;
    width:100%!important;padding:0 11px!important;margin:0!important;
    border:0!important;border-radius:13px!important;background:#1f392a!important;color:#fff!important;
    font-size:12px!important;line-height:1!important;font-weight:780!important;
    box-shadow:0 6px 18px rgba(25,54,35,.14)!important;
  }
  body.fur-premium .fur-cta-desktop{display:none!important}
  body.fur-premium .fur-cta-mobile{display:inline!important;font-size:12px!important;font-weight:780!important;white-space:nowrap!important;}
  body.fur-premium .fur-primary>span:last-child{font-size:19px!important;line-height:1!important;}
  /* Keep form POST result and lead capture usable when client receives an estimate. */
  body.fur-premium .fur-result {display:none!important;position:fixed!important;z-index:900!important;inset:0!important;overflow-y:auto!important;
    width:100%!important;height:100dvh!important;padding:65px 20px calc(24px + env(safe-area-inset-bottom,0px))!important;
    margin:0!important;border-radius:0!important;border:0!important;background:#fff!important;box-shadow:none!important;}
  body.fur-premium .fur-result.is-app-open:not(.is-dismissed){display:block!important}
  body.fur-premium .fur-result-dismiss{position:absolute!important;top:17px!important;right:20px!important;z-index:1!important}
  body.fur-premium .fur-contact-grid input{font-size:16px!important}
}
/* Small phones: never overlap mode tabs and logo, retain tap targets. */
@media(max-width:350px){
  body.fur-premium .fur-premium-brand .fur-brand-logo{width:107px!important;max-width:107px!important}
  body.fur-premium .fur-mode-toggle{max-width:calc(100% - 124px)!important;right:8px!important}
  body.fur-premium .fur-mode-option{padding:0 7px!important;font-size:10px!important}
  body.fur-premium .fur-mode-option span{font-size:10px!important}
  body.fur-premium .fur-config-form{padding-left:9px!important;padding-right:9px!important}
  body.fur-premium .fur-action-dock{grid-template-columns:minmax(0,1fr) 70px minmax(99px,.87fr)!important;gap:5px!important}
  body.fur-premium .fur-stepper{width:70px!important;max-width:70px!important}
  body.fur-premium .fur-price-summary strong{font-size:15px!important}
  body.fur-premium .fur-cta-mobile{font-size:11px!important}
}
/* On-screen options modal */
@media(max-width:900px){
  body.fur-premium .fur-m-backdrop[hidden] {display:none!important}
  body.fur-premium .fur-m-backdrop {display:block!important;position:fixed!important;inset:0!important;z-index:500!important;
    background:rgba(12,20,15,.34)!important;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);}
  body.fur-premium .fur-m-sheet {position:absolute!important;left:0!important;right:0!important;bottom:0!important;
    display:flex!important;flex-direction:column!important;max-height:min(77dvh,600px)!important;min-height:290px!important;
    padding:12px 16px calc(17px + env(safe-area-inset-bottom,0px))!important;
    margin:0!important;overflow:hidden!important;background:#fff!important;border-radius:23px 23px 0 0!important;
    box-shadow:0 -18px 48px rgba(9,19,12,.22)!important;}
  body.fur-premium .fur-m-handle{width:44px;height:5px;border-radius:99px;background:#dadeD7;margin:0 auto 15px;flex:0 0 auto;}
  body.fur-premium .fur-m-sheet-header{display:flex;justify-content:space-between;align-items:center;gap:10px;flex:0 0 auto;margin-bottom:12px;}
  body.fur-premium .fur-m-sheet-title{font-size:20px;line-height:1.2;font-weight:770;letter-spacing:-.035em;color:#203426;}
  body.fur-premium .fur-m-close{display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;border:1px solid #edf0ea;background:#f7f8f5;color:#435347;border-radius:12px;font-size:23px;}
  body.fur-premium .fur-m-tabs{display:flex;align-items:center;gap:8px;flex:0 0 42px;overflow-x:auto;scrollbar-width:none;margin:0 0 17px;}
  body.fur-premium .fur-m-tabs::-webkit-scrollbar{display:none}
  body.fur-premium .fur-m-tab{flex:0 0 auto;padding:0 14px;height:37px;min-height:37px;background:#f3f5f1;border:1px solid #e7ebe4;border-radius:999px;color:#58665a;font-weight:700;font-size:12px;}
  body.fur-premium .fur-m-tab[aria-selected="true"]{background:#223b2c;color:#fff;border-color:#223b2c;}
  body.fur-premium .fur-m-options-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1 1 auto;align-content:start;padding:1px 1px 14px;}
  body.fur-premium .fur-m-choice{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:104px;gap:8px;
    border:1px solid #e7eae3;border-radius:17px;background:#fbfbf9;padding:12px;color:#243329;text-align:left;}
  body.fur-premium .fur-m-choice[aria-pressed="true"]{border-color:#b39b75;background:#f8f6ef;box-shadow:inset 0 0 0 1px #b39b75;}
  body.fur-premium .fur-m-choice-swatch{display:inline-flex;width:33px;height:33px;border-radius:11px;overflow:hidden;align-items:center;justify-content:center;background:#f3f4f0;}
  body.fur-premium .fur-m-choice-swatch .fur-color{width:33px!important;height:33px!important;min-width:33px!important;border-radius:10px!important;}
  body.fur-premium .fur-m-choice-name{display:block;font-size:13px;line-height:1.3;font-weight:745;}
  body.fur-premium .fur-m-choice-price{display:block;margin-top:-5px;font-size:11px;color:#7b887b;}
  body.fur-premium .fur-m-done{display:block;flex:0 0 46px;width:100%;height:46px;margin-top:8px;border:0;border-radius:13px;background:#203a2b;color:#fff;font-weight:750;font-size:13px;}
  body.fur-premium .fur-m-choice:focus-visible,body.fur-premium .fur-m-tab:focus-visible,body.fur-premium .fur-m-done:focus-visible,
  body.fur-premium .fur-m-chip:focus-visible,body.fur-premium .fur-m-more:focus-visible{outline:3px solid #a5b5a3;outline-offset:2px}
}

@media(max-width:350px){body.fur-premium .fur-m-strip .fur-m-chip:nth-child(n+4){display:none!important}}
