/* Bobbins & Bloom — shared phone-friendly polish (loaded on every customer page).
   Everything here only applies on screens 640px wide or narrower. */
@media (max-width:640px){
  html{-webkit-text-size-adjust:100%;}
  body{overflow-x:hidden;}
  img{max-width:100%;}

  /* 16px+ text in fields stops iPhone Safari from zooming in when you tap one */
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]), select, textarea{font-size:16px !important;}
  input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="password"], input[type="search"], select{min-height:46px;}
  textarea{min-height:96px;}

  /* comfortable thumb-sized targets */
  .btn, button.btn, .qs-btn{min-height:46px;}
  .qs-btn{padding-top:12px; padding-bottom:12px;}
  .nav-toggle{min-width:44px; min-height:44px;}
  .swatch{min-height:60px;}
  .footer-col a{padding:7px 0;}
  button, a.btn, .qs-btn, .swatch, .typebtn{touch-action:manipulation; -webkit-tap-highlight-color:transparent;}

  /* roomier forms: less side padding so fields get the width */
  .builder{padding-left:12px; padding-right:12px; gap:16px;}
  .panel{padding:20px 16px;}
  .panel + .panel{margin-top:14px;}
  .preview-wrap{position:static !important;}
  .page-hero{padding-left:18px; padding-right:18px;}
  .page-hero h1{font-size:30px; line-height:1.15;}

  /* Sticky add-to-cart bar (built by mobile.js on listing pages) */
  .bb-mbar{position:fixed; left:0; right:0; bottom:0; z-index:70; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:10px 16px calc(10px + env(safe-area-inset-bottom)); background:#fff; border-top:1px solid #E8DFD3; box-shadow:0 -4px 14px rgba(58,50,44,0.10); transform:translateY(110%); transition:transform .2s ease;}
  .bb-mbar.show{transform:translateY(0);}
  .bb-mbar .bb-mp{font-family:'Cormorant Garamond',serif; font-size:24px; font-weight:700; color:var(--rose-deep,#9E4552); line-height:1;}
  .bb-mbar .bb-mp small{display:block; font-family:'Jost',sans-serif; font-size:11px; font-weight:400; color:var(--ink-soft,#6B5F55);}
  .bb-mbar button{width:auto; flex:0 0 auto; padding:14px 22px; font-size:13px; letter-spacing:0.06em; text-transform:uppercase; border:none; border-radius:2px; background:var(--rose,#C26A78); color:#fff; box-shadow:0 3px 0 var(--rose-deep,#9E4552); cursor:pointer;}
  body.bb-has-mbar{padding-bottom:78px;}
}
