/* Compact catalog and recognizable order rows, based on the supplied mobile reference. */
@media(max-width:600px){
 body.ui-refresh.ui-refresh .shop-overview{margin:10px 0;gap:8px}
 body.ui-refresh.ui-refresh .hero .copy{padding:12px 14px}
 body.ui-refresh.ui-refresh .hero h1{font-size:21px;line-height:1.25}
 body.ui-refresh.ui-refresh .top-depositors{padding:10px 12px}
 body.ui-refresh.ui-refresh .layout .filters{order:0;padding:4px 0 10px;gap:6px}
 body.ui-refresh.ui-refresh .layout .toolbar{order:1;margin-bottom:10px;padding:0;background:transparent;border:0}
 body.ui-refresh.ui-refresh .layout>div:first-child{display:flex;flex-direction:column}
 body.ui-refresh.ui-refresh .layout .section{order:2}
 body.ui-refresh.ui-refresh #products{order:3;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.ui-refresh.ui-refresh #products .card{display:flex;flex-direction:column;gap:6px;padding:8px;min-width:0}
 body.ui-refresh.ui-refresh #products .photo{width:100%;aspect-ratio:4/3;grid-column:auto;grid-row:auto}
 body.ui-refresh.ui-refresh #products .card>:not(.photo){grid-column:auto}
 body.ui-refresh.ui-refresh #products h3{font-size:14px;line-height:1.3;min-height:2.6em}
 body.ui-refresh.ui-refresh #products .price{font-size:18px}
 body.ui-refresh.ui-refresh #products :is(.add,.buy-now){font-size:12px;min-height:40px;padding:6px}
 body.ui-refresh.ui-refresh #products .shop-group-heading{font-size:17px;margin:10px 0 0}
 body.ui-refresh.ui-refresh #products .product-meta{min-width:0;margin-top:auto}
}
.order-thumb{display:inline-grid;place-items:center;position:relative;flex:none;width:52px;height:52px;overflow:hidden;border-radius:9px;border:1px solid var(--ui-border,#414b52);background:var(--ui-raised,#22262b);color:var(--ui-muted,#b0bac0);font-size:12px;font-weight:800}
.order-thumb img{width:100%;height:100%;object-fit:cover}
.order-thumb-count{position:absolute;bottom:1px;right:1px;background:#111b27e8;color:white;border-radius:5px;padding:0 3px;font-size:10px}
.admin-row-heading{display:flex;align-items:center;gap:10px;min-width:0}
.admin-row-heading>strong{flex:1;min-width:0;overflow-wrap:anywhere}
.admin-order-heading{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}
.admin-order-heading .admin-order-name{min-width:0;flex:1}
.live-order-head{gap:9px;min-width:0}
.live-order-head>b{min-width:0;overflow-wrap:anywhere}
@media(max-width:600px){.admin-row-heading .order-thumb,.live-order-head .order-thumb{width:44px;height:44px}}

/* Order heading on narrow screens: the title owns a real text column. */
@media(max-width:850px){
 body.ui-refresh.ui-refresh .admin-order-compact .live-order-head{
  display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-items:start;
 }
 body.ui-refresh.ui-refresh .admin-order-compact .admin-order-heading{
  display:grid;grid-template-columns:44px minmax(0,1fr);gap:0 10px;
  align-items:center;width:100%;min-width:0;
 }
 body.ui-refresh.ui-refresh .admin-order-compact .admin-order-heading>.order-thumb{
  grid-column:1;grid-row:1 / span 2;align-self:start;
 }
 body.ui-refresh.ui-refresh .admin-order-compact .admin-order-name{
  grid-column:2;grid-row:1;display:block;min-width:0;width:100%;
  margin:0;font-size:20px;line-height:1.3;
  word-break:normal;overflow-wrap:break-word;
 }
 body.ui-refresh.ui-refresh .admin-order-compact .admin-order-meta{
  grid-column:2;grid-row:2;min-width:0;overflow-wrap:anywhere;
 }
 body.ui-refresh.ui-refresh .admin-order-compact .admin-order-cancel{
  justify-self:end;margin:0;
 }
}
/* Safari's form-focus zoom threshold: retain the user's pinch zoom. */
@media(max-width:1024px), (pointer:coarse){
 html{ -webkit-text-size-adjust:100%;text-size-adjust:100%; }
 body.ui-refresh.ui-refresh :is(
  #chat-message,.chat-composer input,.chat-composer textarea,
  .admin-inline-composer textarea,.admin-inline-composer select,
  .fcm-chat-form textarea,.fcm-chat-form input,
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),
  textarea,select,[contenteditable=true]
 ){font-size:16px!important;line-height:1.4;min-width:0}
}
