/* Chat thread, direction B "Receipt tape" (Franz LOCKED 2026-10-31).
   Measurements from chat-redesign/SPEC.md. Tomato is #C9362A. Loads after
   aisle-chat-c.css and only targets .aisle-chat-b, so the Matches list and
   other screens are unchanged. */

.aisle-chat-b {
  --rt-ink: #1C1917;
  --rt-cream: #F7F1E6;
  --rt-paper: #FFFBF4;
  --rt-edge: #E6DED0;
  --rt-rule: #E2D9CB;
  --rt-day-rule: #D8CFC0;
  --rt-muted: #5F5A54;
  --rt-tomato: #C9362A;
  --rt-produce: #1F7A4D;
  --rt-pill-edge: #EDE5D8;
}

/* Header: white receipt paper with a zigzag bottom edge. */
.aisle-chat-b .header.aisle-subview-header.aisle-receipt-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: auto;
  min-height: 0;
  padding: 8px 14px 8px;
  background: #fff;
  border-bottom: none;
  position: relative;
  z-index: 4;
  filter: drop-shadow(0 2px 3px rgba(28, 25, 23, 0.08));
  /* The thread screen is a flex column. Without this the header shrinks to
     fit and the carts line and zigzag hang over the scrolling messages. */
  flex: 0 0 auto;
}

.aisle-chat-b .aisle-receipt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.aisle-chat-b .aisle-receipt-row .back-btn {
  flex: 0 0 auto;
}

.aisle-chat-b .aisle-receipt-avatar {
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--rt-cream);
}

/* aisle-header-center.css centers .header .aisle-header-title (0,3,0), so this
   needs one more class to keep the name and match line left-aligned. */
.aisle-chat-b .header .aisle-header-title.aisle-receipt-id {
  flex: 1 1 auto;
  justify-content: center;
  text-align: left;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.aisle-chat-b .aisle-header-title .aisle-receipt-name {
  font-size: var(--aisle-sub-size, 16px);
  font-weight: var(--aisle-sub-weight, 600);
  letter-spacing: normal;
  text-transform: none;
  color: var(--aisle-ink, var(--rt-ink));
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aisle-chat-b .aisle-header-title .aisle-receipt-meta {
  font-size: var(--aisle-caption-size, 13px);
  font-weight: var(--aisle-caption-weight, 500);
  letter-spacing: normal;
  text-transform: none;
  color: var(--rt-muted);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aisle-chat-b .aisle-receipt-row .aisle-header-menu {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--rt-ink);
}

/* Dashed rule, then "IN BOTH CARTS ··· OAT MILK · SOURDOUGH". */
.aisle-chat-b .aisle-receipt-carts {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 8px 0 0;
  padding: 6px 0 2px;
  border-top: 2px dashed var(--rt-rule);
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rt-ink);
}

/* Section token on the label. Item names stay 12/600 ink, not Section. */
.aisle-chat-b .aisle-receipt-carts-label {
  flex: 0 0 auto;
  font-size: var(--aisle-section-size, 12px);
  font-weight: var(--aisle-section-weight, 700);
  letter-spacing: var(--aisle-section-track, 0.06em);
  text-transform: uppercase;
  color: var(--rt-muted);
}

.aisle-chat-b .aisle-receipt-carts-items {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aisle-ink, #1C1917);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aisle-chat-b .aisle-receipt-zig {
  /* Hangs 10px below the header's own box, so it can't pull the Your Turn
     pill or the first message up under the header. */
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 10px;
  margin: 0;
  background:
    linear-gradient(-45deg, transparent 5px, #fff 0) 0 0 / 10px 10px,
    linear-gradient(45deg, transparent 5px, #fff 0) 0 0 / 10px 10px;
}

/* Thread. */
.aisle-chat-b .messages {
  background: var(--rt-cream);
  padding: 18px 16px 12px;
  gap: 4px;
}

.aisle-chat-b .aisle-thread-status.aisle-turn-pill {
  display: flex;
  justify-content: center;
  padding: 22px 16px 0;
  background: var(--rt-cream);
}

.aisle-chat-b .aisle-turn-pill span {
  background: #fff;
  color: var(--rt-ink);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: var(--aisle-section-size, 12px);
  font-weight: var(--aisle-section-weight, 700);
  letter-spacing: var(--aisle-section-track, 0.06em);
  text-transform: uppercase;
}

/* Day divider: a dashed rule with the day in caps. */
.aisle-chat-b .aisle-day-pill.aisle-day-rule {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 10px 0 8px;
  font-size: var(--aisle-section-size, 12px);
  font-weight: var(--aisle-section-weight, 700);
  letter-spacing: var(--aisle-section-track, 0.06em);
  text-transform: uppercase;
  color: var(--rt-muted);
}

.aisle-chat-b .aisle-day-rule::before,
.aisle-chat-b .aisle-day-rule::after {
  content: '';
  flex: 1;
  border-top: 2px dashed var(--rt-day-rule);
}

/* Bubbles: radius 16 with a 4pt tail corner, max width 252, padding 10×14. */
.aisle-chat-b .aisle-msg-col {
  max-width: min(252px, 78%);
}

.aisle-chat-b .msg,
.aisle-chat-b .msg.me.aisle-msg-own {
  padding: 10px 14px;
  font-size: var(--aisle-body-size, 15px);
  font-weight: var(--aisle-body-weight, 400);
  line-height: var(--aisle-body-lh, 1.45);
  overflow-wrap: anywhere;
}

.aisle-chat-b .msg.me,
.aisle-chat-b .msg.me.aisle-msg-own {
  background: var(--rt-ink) !important;
  color: var(--rt-cream) !important;
  border-radius: 16px 16px 4px 16px;
  padding-right: 14px;
}

.aisle-chat-b .msg.them {
  background: var(--rt-paper) !important;
  color: var(--rt-ink) !important;
  border: 1.5px solid var(--rt-edge) !important;
  border-radius: 16px 16px 16px 4px;
}

.aisle-chat-b .aisle-tail {
  position: absolute;
  bottom: 0;
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.aisle-chat-b .msg.me .aisle-tail {
  right: -5px;
  background: var(--rt-tomato);
  border-radius: 0 0 0 12px;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.aisle-chat-b .msg.them .aisle-tail {
  left: -6.5px;
  bottom: -1.5px;
  background: var(--rt-produce);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* Until long-press lands (PR 3), tapping your own bubble opens Edit / Copy /
   Delete. The ••• stays for screen readers and keyboards but is not drawn. */
.aisle-chat-b .aisle-msg-more {
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.aisle-chat-b .aisle-msg-more:focus-visible {
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  padding: 4px 6px;
  right: 4px;
  top: 2px;
  color: var(--rt-cream);
  outline: 2px solid var(--rt-cream);
  border-radius: 6px;
}

.aisle-chat-b .aisle-msg-row.them .aisle-msg-more:focus-visible {
  color: var(--rt-ink);
  outline-color: var(--rt-ink);
}

.aisle-chat-b .aisle-side-time,
.aisle-chat-b .aisle-edited,
.aisle-chat-b .aisle-read {
  font-size: 12px;
  font-weight: 400;
  color: var(--rt-muted);
}

.aisle-chat-b .aisle-side-time {
  margin: 0 2px 4px;
}

.aisle-chat-b .aisle-edited {
  margin: 2px 2px 0;
}

.aisle-chat-b .aisle-read {
  align-self: flex-end;
  margin: 2px 2px 0;
}

/* Composer: a white 44pt pill with a 1.5pt border and a 44pt ink send. */
.aisle-chat-b .chat-input-row {
  background: var(--rt-cream);
  padding: 8px 12px 10px;
  gap: 8px;
}

.aisle-chat-b .chat-input {
  height: 44px;
  background: #fff;
  border: 1.5px solid var(--rt-pill-edge);
  border-radius: 22px;
  padding: 0 16px;
  font-size: 16px;
  color: var(--rt-ink);
}

.aisle-chat-b .chat-input::placeholder {
  color: var(--rt-muted);
  opacity: 1;
}

.aisle-chat-b .chat-send,
.aisle-chat-b .chat-send.aisle-send {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  background: var(--rt-ink) !important;
}

/* ---- PR 3: long-press, "Message deleted", quoted replies ---- */

.screen.active.aisle-chat-b {
  position: relative;
}

/* Hold to open the action card; iOS must not start a text selection or the
   link callout instead. Copy is on the card. */
.aisle-chat-b .msg.me.aisle-msg-own,
.aisle-chat-b .msg.them {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  cursor: default;
}

.aisle-chat-b .msg:focus-visible {
  outline: 2px solid var(--rt-produce);
  outline-offset: 2px;
}

.aisle-chat-b .msg.is-pressed {
  visibility: hidden;
}

/* "Message deleted": transparent, 1.5pt dashed #C9C1B4, 16/400 italic. */
.aisle-chat-b .msg.aisle-msg-deleted,
.aisle-chat-b .msg.aisle-msg-deleted.me,
.aisle-chat-b .msg.aisle-msg-deleted.them {
  background: transparent !important;
  color: var(--rt-muted) !important;
  border: 1.5px dashed #C9C1B4 !important;
  border-radius: 16px;
  font-style: italic;
  font-size: 16px;
  padding: 10px 14px;
}

/* The press layer is fixed on document.body, over the header and the tab
   bar, like the B-2b mock. It carries .aisle-chat-b so these rules apply. */
.aisle-chat-b.aisle-press-layer {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.aisle-press-layer .aisle-press-scrim {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.45);
  animation: aisle-press-fade 120ms ease-out;
}

.aisle-press-layer .aisle-press-lift {
  position: absolute;
  max-width: min(252px, 78%);
  display: flex;
}

.aisle-press-layer .aisle-press-lift.me {
  justify-content: flex-end;
}

.aisle-press-layer .aisle-press-lift .msg {
  box-shadow: 0 6px 18px rgba(28, 25, 23, 0.25);
}

.aisle-press-layer .aisle-press-card {
  position: absolute;
  width: 200px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(28, 25, 23, 0.25);
  animation: aisle-press-fade 120ms ease-out;
}

.aisle-chat-b .aisle-press-row {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #F0E9DD;
  background: #fff;
  color: var(--rt-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

.aisle-chat-b .aisle-press-row:last-child {
  border-bottom: 0;
}

.aisle-chat-b .aisle-press-row:focus-visible {
  outline: 2px solid var(--rt-produce);
  outline-offset: -2px;
}

@keyframes aisle-press-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Quoted reply inside a bubble. Not in Franz's mocks; receipt-tape colors,
   needs Richard's visual OK. The bar color is the quoted author's tail. */
.aisle-chat-b .aisle-quote {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  width: 100%;
  margin: 0 0 6px;
  padding: 4px 8px 4px 10px;
  border: 0;
  border-left: 3px solid var(--rt-produce);
  border-radius: 6px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.aisle-chat-b .aisle-quote.is-mine {
  border-left-color: var(--rt-tomato);
}

.aisle-chat-b .msg.them .aisle-quote {
  background: #F3ECE0;
  color: var(--rt-ink);
}

.aisle-chat-b .msg.me .aisle-quote {
  background: rgba(247, 241, 230, 0.14);
  color: var(--rt-cream);
}

.aisle-chat-b .aisle-quote-name {
  font-size: 12px;
  font-weight: 600;
}

.aisle-chat-b .aisle-quote-text {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aisle-chat-b .aisle-quote.is-deleted .aisle-quote-text {
  font-style: italic;
}

/* "Replying to" bar above the composer. */
.aisle-chat-b .aisle-reply-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px;
  padding: 6px 4px 6px 12px;
  background: #fff;
  border: 1.5px solid var(--rt-pill-edge);
  border-left: 3px solid var(--rt-produce);
  border-radius: 12px;
}

.aisle-chat-b .aisle-reply-bar-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.aisle-chat-b .aisle-reply-bar-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--rt-ink);
}

.aisle-chat-b .aisle-reply-bar-text {
  font-size: 13px;
  color: var(--rt-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aisle-chat-b .aisle-reply-bar-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--rt-muted);
  font-size: 22px;
  cursor: pointer;
}

/* ---- PR 4: reactions (SPEC "Reactions", B-2) ---- */

/* Pills overlap the bubble's bottom edge by 14pt on the inner side. The
   16pt of extra spacing goes under the bubble itself, so "Edited" and the
   next row sit below the pills instead of under them. */
.aisle-chat-b .aisle-msg-row.has-rx .aisle-msg-own-wrap {
  margin-bottom: 16px;
}

.aisle-chat-b .aisle-rx-row {
  position: absolute;
  bottom: -14px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.aisle-chat-b .aisle-rx-row.them {
  left: 8px;
}

.aisle-chat-b .aisle-rx-row.me {
  right: 8px;
}

.aisle-chat-b .aisle-rx-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 26px;
  padding: 1px 7px;
  background: #fff;
  border: 1.5px solid var(--rt-pill-edge);
  border-radius: 999px;
  color: var(--rt-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}

/* The pill is 26px tall; ::after keeps a 44pt tap area without moving it. */

.aisle-chat-b .aisle-rx-pill::after {
  content: '';
  position: absolute;
  inset: -9px -4px;
}

.aisle-chat-b .aisle-rx-pill i {
  font-style: normal;
  font-size: 14px;
  font-family: "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Emoji", sans-serif;
}

.aisle-chat-b .aisle-rx-pill:focus-visible,
.aisle-chat-b .aisle-rx-quick:focus-visible {
  outline: 2px solid var(--rt-produce);
  outline-offset: 2px;
}

/* Long-press reaction bar: a white pill with six quick emoji at 38pt. */
.aisle-press-layer .aisle-rx-bar {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(28, 25, 23, 0.25);
  animation: aisle-press-fade 120ms ease-out;
}

.aisle-chat-b .aisle-rx-quick {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.aisle-chat-b .aisle-rx-quick span {
  font-size: 28px;
  line-height: 38px;
  width: 38px;
  height: 38px;
  font-family: "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Emoji", sans-serif;
}

.aisle-chat-b .aisle-rx-quick.is-picked {
  background: #D7E6D4;
}

@media (prefers-reduced-motion: reduce) {
  .aisle-chat-b * {
    transition: none !important;
    animation: none !important;
  }
}

/* ---- PR 5: emoji picker (SPEC "Picker", "Composer", B-3) ---- */

/* Composer pill holds the input and a 24pt smiley button. */
.aisle-chat-b .aisle-compose-pill {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
}

.aisle-chat-b .aisle-compose-pill .chat-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding-right: 48px;
}

.aisle-chat-b .aisle-emoji-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rt-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}

.aisle-chat-b .aisle-emoji-btn.is-open {
  color: var(--rt-produce);
}

.aisle-chat-b .aisle-emoji-btn:focus-visible,
.aisle-chat-b .aisle-picker-cell:focus-visible,
.aisle-chat-b .aisle-picker-close:focus-visible {
  outline: 2px solid var(--rt-produce);
  outline-offset: 1px;
}

/* The panel takes the keyboard's place under the composer. */
.aisle-chat-b .aisle-picker {
  flex: 0 0 auto;
  height: min(400px, 47vh);
  display: flex;
  flex-direction: column;
  background: var(--rt-cream);
  border-top: 1.5px solid var(--rt-pill-edge);
  border-radius: 20px 20px 0 0;
  padding: 12px 12px 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}

body.aisle-picker-open .nav {
  display: none !important;
}

/* ...and the space the chat screen keeps for the tab bar goes to the panel. */
body.aisle-picker-open .screen.active.aisle-chat-b {
  padding-bottom: 0 !important;
}

.aisle-chat-b .aisle-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -4px 0 6px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--rt-ink);
}

.aisle-chat-b .aisle-picker-close {
  width: 44px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--rt-muted);
  cursor: pointer;
}

.aisle-chat-b .aisle-picker-search {
  flex: 0 0 auto;
  height: 40px;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1.5px solid var(--rt-pill-edge);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  color: var(--rt-ink);
  -webkit-appearance: none;
  appearance: none;
}

.aisle-chat-b .aisle-picker-search:focus,
.aisle-chat-b .aisle-picker-search:focus-visible {
  outline: 2px solid var(--rt-produce);
  outline-offset: 1px;
  border-color: var(--rt-produce);
}

.aisle-chat-b .aisle-picker-search::placeholder {
  color: var(--rt-muted);
  opacity: 1;
}

.aisle-chat-b .aisle-picker-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 12px;
}

.aisle-chat-b .aisle-picker-label {
  margin: 14px 4px 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rt-muted);
}

.aisle-chat-b .aisle-picker-sec:first-child .aisle-picker-label {
  margin-top: 12px;
}

.aisle-chat-b .aisle-picker-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.aisle-chat-b .aisle-picker-sec.is-groceries .aisle-picker-grid {
  background: #D7E6D4;
  border-radius: 14px;
  padding: 4px 0;
}

.aisle-chat-b .aisle-picker-cell {
  height: 40px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.aisle-chat-b .aisle-picker-cell span {
  font-size: 26px;
  line-height: 1;
  font-family: "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Emoji", sans-serif;
}

.aisle-chat-b .aisle-picker-cell.is-picked {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--rt-produce);
}

.aisle-chat-b .aisle-picker-empty {
  padding: 24px 4px;
  font-size: 15px;
  color: var(--rt-muted);
  text-align: center;
}

.aisle-chat-b .aisle-rx-more span {
  font-family: inherit;
  font-size: 26px;
  font-weight: 400;
  color: var(--rt-muted);
  text-align: center;
}

/* Seven 44pt buttons don't fit a 320pt screen; tighten them there. */
@media (max-width: 359px) {
  .aisle-press-layer .aisle-rx-bar {
    gap: 0;
    padding: 3px 4px;
  }
  .aisle-chat-b .aisle-rx-quick {
    width: 38px;
    height: 44px;
  }
  .aisle-chat-b .aisle-rx-quick span {
    font-size: 25px;
    width: 34px;
  }
}

/* ---- PR 6: header menu with Mute (SPEC "Header menu", B-5) ---- */

.aisle-head-menu-layer {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.aisle-head-menu-scrim {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.35);
  animation: aisle-press-fade 120ms ease-out;
}

/* A 236pt white popover, radius 16, anchored under •••. */
.aisle-head-menu-layer .aisle-head-menu {
  position: absolute;
  width: 236px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.25);
  overflow: hidden;
  animation: aisle-press-fade 120ms ease-out;
}

.aisle-head-menu-layer .aisle-head-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 47px;
  padding: 0 16px;
  border: 0;
  border-top: 1px solid #F0E9DD;
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--rt-ink, #1C1917);
  text-align: left;
  cursor: pointer;
}

.aisle-head-menu-layer .aisle-head-menu-row:first-child {
  border-top: 0;
}

.aisle-head-menu-layer .aisle-head-menu-row:active {
  background: #F7F1E6;
}

.aisle-head-menu-layer .aisle-head-menu-row:focus-visible {
  outline: 2px solid var(--rt-produce, #1F7A4D);
  outline-offset: -3px;
}

.aisle-head-menu-layer .aisle-head-menu-note {
  font-size: 12px;
  color: var(--rt-muted, #5F5A54);
}

/* "Muted" keeps its place; the match number and score truncate first. */
.aisle-chat-b .aisle-header-title .aisle-receipt-metarow {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}

.aisle-chat-b .aisle-header-title .aisle-receipt-metarow .aisle-receipt-meta {
  min-width: 0;
  flex: 0 1 auto;
}

.aisle-chat-b .aisle-header-title .aisle-receipt-muted {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rt-muted);
  white-space: nowrap;
}

.aisle-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The scrim is a button (VoiceOver can close the menu with it). */
.aisle-head-menu-layer button.aisle-head-menu-scrim {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: default;
  -webkit-appearance: none;
  appearance: none;
}
