/* PROVAI 0.10.161: badge horizontally and vertically aligned with the store name.
   .pv159-hours-badge is positioned only by the hours renderer; it never
   changes the featured badge geometry or touches the Surprise footer. */
body.app-body.pv152-ready .screen .pv152-card .food-info .pv159-store-line{
  align-items:center!important;align-content:center!important;gap:5px 8px!important;
  line-height:normal!important;overflow:visible!important;
}
body.app-body.pv152-ready .screen .pv152-card .food-info .pv159-store-line>[data-pv-text="store_name"]{
  align-self:center!important;line-height:1.3!important;margin:0!important;
}
body.app-body.pv152-ready .screen .pv152-card .pv159-store-line>.pv159-hours-badge{
  align-self:center!important;vertical-align:middle!important;line-height:1.3!important;
  margin:0!important;position:relative!important;
}
body.app-body.pv152-ready .screen .pv152-card .pv159-store-line[data-pv160-side="left"]>.pv159-hours-badge{order:-1!important}
body.app-body.pv152-ready .screen .pv152-card .pv159-store-line[data-pv160-side="right"]>.pv159-hours-badge{order:1!important}
/* Old metadata could briefly appear and change measured positions during F5.
   Keep it out of layout from first paint; new themed counter/location remain. */
body.app-body #card.swipe-card #swipeInfoStack [data-swipe-info="count"],
body.app-body #card.swipe-card #swipeInfoStack [data-swipe-info="location"],
body.app-body .pv152-card .food-info .swipe-info-stack [data-swipe-info="count"],
body.app-body .pv152-card .food-info .swipe-info-stack [data-swipe-info="location"]{
  display:none!important;visibility:hidden!important;position:absolute!important;
  height:0!important;width:0!important;overflow:hidden!important;
}
/* One visual group for each operational state in the theme editor. */
.pv160-state-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}
.pv160-state-panel{min-width:0;padding:13px;border:1px solid #dce2eb;border-radius:13px;background:#f8fafc}
.pv160-state-panel h3{font-size:14px;margin:0 0 12px;color:#1b2943}
.pv160-state-panel label{display:flex;flex-direction:column;gap:6px;margin:0 0 12px;min-width:0;font-size:12px;font-weight:700}
.pv160-state-panel input[type=color]{width:100%;max-width:100%;min-height:40px;box-sizing:border-box}
@media(max-width:900px){.pv160-state-grid{grid-template-columns:1fr}}

/* PV161: older #restName {order:4!important} trumped the v160 class selector,
   making LEFT and RIGHT visually identical in the real Swipe (#card).
   Match the ID specificity as well as the id-less next card. */
body.app-body.pv152-ready .screen .pv152-card .food-info .pv159-store-line>#restName,
body.app-body.pv152-ready .screen .pv152-card .food-info .pv159-store-line>[data-pv-text="store_name"]{
  order:0!important;
  margin:0!important;
  align-self:center!important;
  flex:0 1 auto!important;
  min-width:0!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  line-height:1.3!important;
}
/* Stay on the selected SIDE even when the badge label is long or the phone
   is narrow. Let the two texts wrap within their own columns, not onto a
   separate row that would look like Above/Below. */
body.app-body.pv152-ready .screen .pv152-card .food-info .pv159-store-line[data-pv160-side]{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
}
body.app-body.pv152-ready .screen .pv152-card .food-info .pv159-store-line[data-pv160-side]>.pv159-hours-badge{
  flex:0 1 auto!important;
  max-width:66%!important;
  min-width:0!important;
  overflow-wrap:break-word!important;
  align-self:center!important;
  line-height:1.3!important;
}
body.app-body.pv152-ready .screen .pv152-card .food-info .pv159-store-line[data-pv160-side="left"]>.pv159-hours-badge{order:-1!important}
body.app-body.pv152-ready .screen .pv152-card .food-info .pv159-store-line[data-pv160-side="right"]>.pv159-hours-badge{order:1!important}
