/* Earle's Cafe: phone layout (screens narrower than 700px). Desktop is not affected by anything in this file. */
/* MOBILE-FIT: phones only (desktop layout above 700px is untouched) */
@media(max-width:699px){
  html{-webkit-text-size-adjust:100%;overflow-x:clip}
  body{font-size:16px}
  img,video,canvas,iframe{max-width:100%}
  img{height:auto}
  .pic img,.tpic img{height:100%}
  /* readable text: nothing under 16px */
  .brand p,
  .badge,
  .cm a,
  .cm a.gchip,
  .search,
  .chips a,
  .gb p,
  .note,
  .item .name,
  .item .price,
  .item .soldout,
  .kgin2,
  .kgw,
  .kgl,
  .tag,
  .htxt p,
  .hb,
  .tile b,
  .mode button,
  .cbr,
  .dzl,
  .exp .tile b,
  .cgb,
  .bchg,
  .bcard p,
  .fs legend,
  .name,
  .price,
  .desc,
  .sizes button,
  .add,
  .step span,
  footer,
  .dh small,
  .line .name,
  .unit,
  .lt,
  .rm,
  .blank,
  .blank button,
  .otype button,
  .locbtn,
  .locmsg,
  .df textarea,
  .tot,
  .go,
  .dbh small,
  .dbb h3,
  .dbb h3 small,
  .dr,
  .no,
  .hint,
  .eh small,
  .opt,
  .opt b,
  .soldout,
  .ah span,
  .btn,
  .ac,
  .err,
  .stat,
  .rc,
  .rc small,
  .ai small,
  .ai,
  .bd,
  .fm label,
  .fm input,
  .fm select,
  .fm textarea,
  .toast,
  small,.fm label small,.dbh small,.dh small{font-size:1rem!important}
  /* tap targets: at least 44 x 44 */
  button,.btn,.hb,summary,select,textarea,.cm a,.cgl a,.linkb,.flink,.rm,.cgb,.bchg,.kgl,
  input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]){min-height:44px}
  button,.btn,.hb,.dots,.x,.add.plus,.step button,.cartbtn,.linkb,.flink,.rm,.sizes button,.mode button,.ctl2 a,.dr .step button{min-width:44px}
  .dots{height:44px;width:44px}
  .x{width:44px;height:44px}
  .add.plus{width:44px;height:44px}
  .item .step button,.line .step button,.step button{width:44px;height:44px}
  .step span{min-width:34px}
  .sizes button,.mode button{padding:6px 14px}
  .search{height:44px}
  .kgin2,.kgamt,.kgl input{height:44px}
  .chk,label.dr,.fm .chk{min-height:44px;display:flex;align-items:center}
  input[type=checkbox],input[type=radio]{width:22px;height:22px}
  footer a{display:inline-block;min-height:44px;line-height:44px}
  .rm{padding:10px 8px}
  .badge{min-width:24px;height:24px;top:-8px;right:-8px}
  /* header: tagline hidden to keep the sticky bar short */
  #btag{display:none}
  .exp .tile{width:88px}
  .exp .tile b{font-size:1rem!important}
  .cgb{padding:12px}
  .cm{max-height:70dvh}
  /* cards */
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hb,.otype button,.locbtn,.go{min-height:44px}
  /* cart: the whole sheet scrolls, so a long form never squeezes the items list; header and order button stay in view */
  .drawer{overflow-y:auto}
  #lines{overflow:visible;flex:none}
  .df{flex:none}
  .dh{position:sticky;top:0;z-index:3}
  .go{position:sticky;bottom:8px;z-index:3}
}
@media(max-width:479px){
  .grid{grid-template-columns:minmax(0,1fr)}
  .item,.deal{flex-direction:row;align-items:flex-start}
  .item .info,.deal .info{flex:1;min-width:0}
  .hrow.cards .item{flex:0 0 min(86vw,320px)}
  .tag{position:static;display:inline-block;align-self:flex-start;margin-bottom:4px}
}
