/* Shared phone layout, including browsers without small viewport units. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
.wyte-header{padding-top:env(safe-area-inset-top,0px)}
.wyte-brand{min-height:44px;display:flex;align-items:center}
.wyte-main-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px}
.wyte-header .wyte-cart{min-height:44px}
.cart-line{grid-template-columns:85px minmax(0,1fr)}
.cart-line>div,.checkout-layout>*{min-width:0}
.cart-line h3,.checkout-status,.order-photo-panel p{overflow-wrap:anywhere}
.quantity-control button{width:44px;height:44px}
.remove-item{min-height:44px;min-width:44px;padding-inline:4px;margin-left:0}
.cart-toast{bottom:calc(14px + env(safe-area-inset-bottom,0px));overflow-wrap:anywhere}
.cart-toast>span{min-width:0}
.cart-toast a{display:inline-flex;align-items:center;min-height:44px;flex-shrink:0}
.pill,.color-choice,.view-thumb,.gallery-control{min-height:44px}
.pill,.view-thumb{min-width:44px}
.text-link,.footer-group a{display:inline-flex;align-items:center;min-height:44px}
.wyte-gallery{height:min(900px,calc(100vh - 32px));height:min(900px,calc(100svh - 32px))}
.wyte-gallery.is-fallback{position:fixed;z-index:1001}
.gallery-backdrop{position:fixed;inset:0;z-index:1000;background:rgba(21,21,24,.72)}
@media(max-width:760px){
  html{scroll-padding-top:100px}
  .checkout-form input,.checkout-form textarea{font-size:16px;scroll-margin-block:100px 30px}
  .checkout-main{padding-bottom:48px}
  .color-choice{font-size:11px}
  .pill{height:auto;font-size:11px}
  .product-info h3{font-size:11px}
  .hero-caption{max-width:calc(100% - 28px)}
  .cart-toast{padding:8px 12px;gap:12px;font-size:12px}
}
@media(max-width:640px){
  .wyte-gallery{width:calc(100% - 20px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));height:calc(100vh - 20px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));height:calc(100svh - 20px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
  .gallery-heading{flex-wrap:wrap}
  .gallery-heading>div:first-child{flex:1 1 150px}
  .gallery-actions{margin-left:auto}
  .gallery-footer{gap:8px}
  .gallery-help{display:none}
}
@media(max-width:359px){
  .wyte-header-inner{padding-inline:16px}
  .shop-grid{grid-template-columns:minmax(0,1fr)}
  .hero h1{font-size:clamp(32px,11vw,39px)}
  .cart-line{grid-template-columns:64px minmax(0,1fr);gap:12px}
  .cart-line>img{width:64px;height:86px}
  .order-photo-panel{padding:16px}
  .gallery-control{padding-inline:9px}
}
@media(max-height:500px) and (orientation:landscape){
  .wyte-header{position:relative}
  .wyte-gallery{width:calc(100% - 32px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));height:calc(100vh - 20px);height:calc(100svh - 20px);padding:10px 14px}
  .wyte-gallery[open]{gap:6px}
  .gallery-kicker,.gallery-help{display:none}
  .gallery-heading h2{font-size:12px}
  .gallery-heading{flex-wrap:nowrap;gap:12px;align-items:center}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
