/* Narrow screen repairs shared by Classic, Modern and Studio. Content is reflowed, not clipped. */
:is(.lw-hero,.sw-hero-grid,.sig-product-hero,.lw-blank-config,.lw-shipping-body)>*{min-width:0}
@media(max-width:899px){
  .lw-detail .lw-hero{grid-template-columns:1fr!important;gap:30px}.lw-detail .lw-hero>.lw-gallery-block{width:min(100%,560px);margin-inline:auto}
  html[data-lw-design=studio] .sig-product-hero{grid-template-columns:1fr;gap:30px}html[data-lw-design=studio] .sig-product-art{width:min(100%,570px);margin-inline:auto}html[data-lw-design=studio] .sig-product-copy{padding:0}
  .sw-hero-grid,.sw-compact .sw-hero-grid{grid-template-columns:1fr;gap:32px}.sw-stage-area{width:min(100%,560px);margin-inline:auto}.sw-world-hero h1{font-size:clamp(40px,8vw,72px)}.sw-stage{height:390px}.sw-compact .sw-stage{height:255px}
  .lw-blank-config,.lw-shipping-body{grid-template-columns:1fr!important}.lw-table-scroll,.lw-size-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto}
}
@media(max-width:899px){
  body{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
  body>button.fixed:has(svg.lucide-message-circle){width:46px!important;height:46px!important;padding:10px!important;right:14px!important;bottom:calc(78px + env(safe-area-inset-bottom))!important;box-shadow:0 4px 18px #0002}
  body>button.fixed:has(svg.lucide-message-circle)>svg{width:25px!important;height:25px!important}
  body:has(#home)>button.fixed:has(svg.lucide-message-circle){bottom:calc(176px + env(safe-area-inset-bottom))!important}
  html body .lw-design-switch{left:10px!important;right:auto!important;bottom:calc(10px + env(safe-area-inset-bottom))!important;max-width:calc(100vw - 20px);padding:5px 7px!important;gap:5px!important;box-sizing:border-box;display:flex!important;flex-wrap:nowrap!important;min-height:41px}
  html body .lw-design-switch .lw-design-label{display:none!important}html body .lw-design-switch>div{display:flex;gap:0}.lw-design-switch button{min-height:32px!important;padding:6px 9px!important;font-size:10px!important}.lw-design-switch .lw-motion-toggle{font-size:9px!important;padding-inline:7px!important}
  #home{--banner-thumb-bottom:68px;--banner-thumb-width:clamp(68px,21vw,100px);--banner-thumb-height:clamp(52px,16vw,76px);min-height:720px!important;height:max(100svh,720px)!important}
  #home .thumbs-swiper{left:20px!important;right:20px!important;bottom:var(--banner-thumb-bottom)!important;width:auto!important;max-width:none!important}
  #home .thumbs-swiper>.swiper-wrapper{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px!important;width:100%!important}
  #home .thumbs-swiper .swiper-slide{width:100%!important;height:var(--banner-thumb-height)!important;min-width:0}
  #home .main-swiper>.swiper-wrapper>.swiper-slide>div{bottom:calc(var(--banner-thumb-height) + var(--banner-thumb-bottom) + 34px)!important;padding-bottom:20px;align-items:center!important}
  #home .main-swiper h1{font-size:clamp(28px,7vw,38px)!important;line-height:1.12!important}#home .main-swiper p{font-size:14px!important;line-height:1.7!important}
  #home .lw-carousel-pause{right:20px!important;left:auto!important;bottom:18px!important;top:auto!important;max-width:150px;font-size:10px!important;min-height:34px}
  html[data-lw-design=studio] .lws-deck-peek,html[data-lw-design=studio] .lws-deck-tag{display:none!important}
  html[data-lw-design=studio] .lws-deck-scene{height:350px;margin-top:12px}html[data-lw-design=studio] .lws-deck-scene .lwx-garment-wrap{width:min(78%,calc(100% - 40px))}
  html[data-lw-design=studio] .lwx-product-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}html[data-lw-design=studio] .lwx-product-controls button{padding:12px 7px;font-size:10px;min-height:44px}
  html[data-lw-design=studio] .lwx-collection-canvas{height:auto;min-height:0;padding-bottom:20px;display:flex;flex-direction:column}html[data-lw-design=studio] .lwx-collection-composition{position:relative;inset:auto;left:auto;top:auto;height:285px;margin:65px 10px 0}html[data-lw-design=studio] .lwx-collection-main{width:76%;left:12%}html[data-lw-design=studio] .lwx-collection-secondary{display:none}html[data-lw-design=studio] .lwx-collection-caption{position:relative;inset:auto;max-width:none;margin:15px 18px 0;padding:15px;background:#1d281aee}html[data-lw-design=studio] .lwx-collection-index{position:relative;inset:auto;margin:15px 18px 0}html[data-lw-design=studio] .lwx-collection-word{top:60px;font-size:65px}html[data-lw-design=studio] .lwx-collection-circle{width:280px;height:280px;top:33%}
  html[data-lw-design=studio] .sig-explorer-grid{grid-template-columns:1fr!important}.sig-detail-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.sig-detail-tabs button{min-height:48px;white-space:normal!important}.sig-reference-variants{display:flex;flex-wrap:wrap;gap:8px}.sig-reference-variants button{min-height:40px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
  .lw-tabs{display:flex!important;overflow-x:auto;white-space:nowrap;scrollbar-width:thin;padding-bottom:10px;max-width:100%}.lw-tabs button{flex:0 0 auto;min-height:48px;padding-inline:14px!important;font-size:11px!important}
  .lw-actions{display:flex;flex-wrap:wrap;gap:10px}.lw-actions>*{max-width:100%;min-height:44px;box-sizing:border-box}
  .sw-world-hero{padding-top:118px}.sw-world-hero .sw-stage{height:345px}.sw-compact .sw-stage{height:240px}.sw-stage-controls button{font-size:11px;min-height:48px}.sw-stage-context p{font-size:10px}.sw-stage-context a{font-size:11px}.sw-kicker{font-size:8px}.sw-intro{font-size:13px}.sw-world-hero .lw-contact-channels{grid-template-columns:1fr;gap:10px}.sw-world-hero .lw-contact-channels strong{font-size:17px}.sw-world-hero .lw-contact-social nav a{font-size:11px;min-height:44px}.sw-world-hero .lw-contact-social h2{font-size:14px}
  :is(.lw-first-form,.lw-agent-form,.lw-tool-card,.lw-shipping,.lw-blank-config) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important;max-width:100%;min-width:0}
  .lw-blank-config .lw-table-scroll{display:block;overflow-x:auto;max-width:100%;width:100%}.lw-blank-config table{min-width:610px}.lw-blank-config{max-width:100%;min-width:0}.lw-blanks-grid,.lw-blank-grid{gap:18px!important}
}
@media(max-width:899px) and (max-height:700px){
  body:has(#home)>button.fixed:has(svg.lucide-message-circle){bottom:calc(78px + env(safe-area-inset-bottom))!important}
}
@media(max-width:399px){
  .lw-blanks-grid,.lw-blank-grid{grid-template-columns:1fr!important}
  .sw-stage-controls{grid-template-columns:1fr!important}.sw-stage-controls button{display:flex;gap:9px;border-right:0;border-bottom:1px solid #b2986155;padding:12px}.sw-stage-controls button>span{display:inline;margin:0}.sw-stage-controls:has(button:nth-child(4)){grid-template-columns:1fr 1fr!important}
  html[data-lw-design=studio] .lws-deck-scene{height:300px}.sw-world-hero .sw-stage{height:300px}.sw-compact .sw-stage{height:225px}.sw-paper h3{font-size:27px}.sw-paper li{font-size:11px}.sw-compact .sw-paper li{font-size:9px}
  .lw-design-switch button{padding-inline:7px!important}html[data-lw-design=studio] .sig-product-copy h1{font-size:43px}.sig-product-facts{grid-template-columns:1fr!important}
}
@media(max-width:899px){body:has([data-baseline-menu].baseline-open)>.lw-design-switch,body:has([data-baseline-menu].baseline-open)>button.fixed:has(svg.lucide-message-circle),body:has(.baseline-dialog:not([hidden]))>.lw-design-switch,body:has(.baseline-dialog:not([hidden]))>button.fixed:has(svg.lucide-message-circle){display:none!important}}

/* One shared phone system for every custom apparel product and information tab. */
@media(max-width:767px){
  html[data-prototype-page^="/apparel/"] .lw-detail{
    --lw-phone-page-title:clamp(30px,9.5vw,40px);
    --lw-phone-tab-heading:26px;
    --lw-phone-section-label:11px;
    --lw-phone-body:14px;
    --lw-phone-card-title:14px;
    --lw-phone-card-text:12px;
    --lw-phone-note:11px;
    --lw-phone-side-padding:20px;
    --lw-phone-section-gap:32px;
    max-width:100%;
    overflow-x:clip;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail :is(.lw-wrap,.lw-hero,.sig-product-hero,.sig-product-copy,.lw-panel,.lw-panel>*,.lw-full-specs,.lw-fabrics,.lw-grid,.lw-gsm,.lw-branding-links,.lw-card,.lw-card-body,.lw-step,.lw-note,.lw-caption,.lw-size-guide,.lw-size-table,.lw-table-scroll,.lw-size-scroll,.lw-product-shortcuts){
    min-width:0;
    max-width:100%;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail :is(h1,h2,h3,h4,h5,h6,p,dt,dd,li,label,figcaption,summary,small,strong,span,a,button){
    min-width:0;
    max-width:100%;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    text-overflow:clip!important;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail .lw-wrap{
    padding-inline:var(--lw-phone-side-padding)!important;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail :is(.sig-product-copy h1,.lw-hero h1){
    font-size:var(--lw-phone-page-title)!important;
    line-height:1.04!important;
    max-width:100%!important;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail .lw-panel{
    padding-block:var(--lw-phone-section-gap) 12px!important;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail .lw-panel>h2{
    font-size:var(--lw-phone-tab-heading)!important;
    line-height:1.2!important;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail .lw-panel :is(h3,.lw-eyebrow,.lw-section-label){
    font-size:var(--lw-phone-section-label)!important;
    line-height:1.55!important;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail .lw-panel>h3{
    margin-top:var(--lw-phone-section-gap)!important;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail .lw-panel :is(p,li,dt,dd,label,summary){
    font-size:var(--lw-phone-body)!important;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail .lw-card h4,
  html[data-prototype-page^="/apparel/"] .lw-detail .lw-step h4{
    font-size:var(--lw-phone-card-title)!important;
    line-height:1.4!important;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail :is(.lw-card,.lw-step,.lw-gsm>div) p,
  html[data-prototype-page^="/apparel/"] .lw-detail .lw-gsm>div{
    font-size:var(--lw-phone-card-text)!important;
    line-height:1.7!important;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail :is(.lw-note,.lw-caption,.lw-ai-reference,.lw-size-footer,.lw-size-footer p,.lw-size-methods span,.lw-sizing-draft){
    font-size:var(--lw-phone-note)!important;
    line-height:1.7!important;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail .lw-gsm strong{
    font-size:20px!important;
    line-height:1.2!important;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail :is(.lw-card-body,.lw-step,.lw-gsm>div){
    padding:16px!important;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail :is(.lw-full-specs,.lw-fabrics){
    margin-block:var(--lw-phone-section-gap) 0!important;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail .lw-panel>.lw-grid{
    margin-top:20px;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail .lw-panel>.lw-note{
    margin-block:var(--lw-phone-section-gap)!important;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail :is(.lw-gsm,.lw-fabric-grid,.lw-branding-links,.lw-grid,.lw-grid.two,.lw-grid.three,.lw-product-shortcuts,.lw-size-standard){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:16px!important;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail :is(.lw-spec,.sig-product-facts>div){
    display:grid;
    grid-template-columns:minmax(88px,34%) minmax(0,1fr)!important;
    align-items:start;
    gap:6px 16px!important;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail :is(.lw-spec,.sig-product-facts>div)>:is(dt,dd){
    width:100%;
    min-width:0;
    margin:0;
    text-align:left;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail :is(.lw-size-table,.lw-table-scroll,.lw-size-scroll){
    display:block;
    width:100%;
    max-width:100%;
    overflow-x:auto!important;
    overflow-y:hidden;
    overscroll-behavior-inline:contain;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail .lw-tabs{
    width:100%;
    max-width:100%;
    white-space:normal!important;
    overflow-x:auto;
    overflow-y:hidden;
  }
  html[data-prototype-page^="/apparel/"] .lw-detail .lw-tabs button{
    flex:0 0 min(42vw,150px);
    min-width:128px;
    line-height:1.45;
    text-align:left;
  }
}

@media(max-width:399px){
  html[data-prototype-page^="/apparel/"] .lw-detail :is(.lw-gsm,.lw-fabric-grid,.lw-branding-links,.lw-grid,.lw-grid.two,.lw-grid.three,.lw-product-shortcuts,.lw-size-standard){
    grid-template-columns:minmax(0,1fr)!important;
  }
}

@media(max-width:359px){
  html[data-prototype-page^="/apparel/"] .lw-detail :is(.lw-spec,.sig-product-facts>div){
    grid-template-columns:minmax(0,1fr)!important;
  }
}
