:root {
  --orange: #f97316;
  --orange-dark: #c2410c;
  --orange-soft: #fff2e8;
  --white: #ffffff;
  --ink: #27211d;
  --muted: #77675d;
  --line: #ffd2b4;
  --focus: #0f766e;
  --deal-sent-start: #225eae;
  --deal-sent-end: #174780;
  --deal-received-start: #c2410c;
  --deal-received-end: #92300e;
  --deal-card-elevation: 0 14px 32px rgb(15 35 72 / 20%);
  --deal-card-elevation-sent: 0 16px 38px rgb(17 61 119 / 30%);
  --deal-card-elevation-received: 0 16px 38px rgb(126 43 9 / 28%);
  --deal-card-highlight: inset 0 1px rgb(255 255 255 / 24%);
  --deal-tile-elevation: inset 0 1px rgb(255 255 255 / 92%), 0 5px 14px rgb(15 35 72 / 9%);
  --deal-control-elevation: inset 0 1px rgb(255 255 255 / 18%), 0 8px 20px rgb(7 27 62 / 22%);
  --font-retro: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", ui-rounded, system-ui, sans-serif;
  --font-profile-title: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", ui-rounded, system-ui, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font-body);
}

/* Personable transaction story and unmistakable pickup payment colors. */
body #messageCenterScreen .message-transaction-spotlight > p {
  margin: 4px 0 0;
  color: #5d6978;
  font-size: 0.68rem;
  line-height: 1.42;
}

body #messageCenterScreen .message-purchaser-card[data-payment-tone] {
  border: 1px solid transparent;
  border-radius: 15px;
  padding: 10px;
}

body #messageCenterScreen .message-purchaser-card[data-payment-tone="card"] {
  border-color: rgba(35, 104, 201, 0.28);
  background: linear-gradient(135deg, rgba(224, 237, 255, 0.96), rgba(255, 255, 255, 0.94) 66%);
}

body #messageCenterScreen .message-purchaser-card[data-payment-tone="cash"] {
  border-color: rgba(19, 130, 87, 0.28);
  background: linear-gradient(135deg, rgba(222, 247, 235, 0.96), rgba(255, 255, 255, 0.94) 66%);
}

body #messageCenterScreen .message-purchaser-card.is-simple-buy-now[data-payment-tone] {
  border: 0;
  padding: 0;
  background: transparent;
}

body #messageCenterScreen .message-purchaser-card[data-payment-tone="card"] .message-buy-now-request {
  border-color: rgba(35, 104, 201, 0.3);
  background: linear-gradient(120deg, #e8f2ff, #fff 68%);
}

body #messageCenterScreen .message-purchaser-card[data-payment-tone="cash"] .message-buy-now-request {
  border-color: rgba(19, 130, 87, 0.3);
  background: linear-gradient(120deg, #e7f8ef, #fff 68%);
}

body #messageCenterScreen .message-purchaser-card[data-payment-tone="card"] .message-buy-now-request > small {
  color: #1f5eb9;
}

body #messageCenterScreen .message-purchaser-card[data-payment-tone="cash"] .message-buy-now-request > small {
  color: #14734e;
}

body #messageCenterScreen .message-final-pickup-calendar[data-pickup-payment="card"] .message-final-calendar-copy > strong {
  color: #1f5eb9;
}

body #messageCenterScreen .message-final-pickup-calendar[data-pickup-payment="cash"] .message-final-calendar-copy > strong {
  color: #14734e;
}

body #messageCenterScreen .message-final-pickup-calendar > footer small {
  display: inline;
  line-height: 1.4;
}

body #messageCenterScreen .message-final-pickup-calendar > footer small strong {
  color: inherit;
}

body #messageCenterScreen .message-transaction-flow-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 16px;
  padding: 12px;
  color: #222b38;
  background: linear-gradient(145deg, #fff8f1, #fff 62%);
  box-shadow: 0 9px 24px rgba(97, 55, 27, 0.08);
}

body #messageCenterScreen .message-transaction-flow-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

body #messageCenterScreen .message-transaction-flow-card > header > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body #messageCenterScreen .message-transaction-flow-card > header small,
body #messageCenterScreen .message-transaction-flow-facts small {
  color: #9a4a1c;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body #messageCenterScreen .message-transaction-flow-card > header strong {
  color: #1d2734;
  font-size: 0.88rem;
  line-height: 1.25;
}

body #messageCenterScreen .message-transaction-flow-card > header > b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  color: #bf4608;
  background: #fff0e5;
  font-size: 0.82rem;
}

body #messageCenterScreen .message-transaction-flow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body #messageCenterScreen .message-transaction-flow-steps li {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  border-radius: 9px;
  padding: 6px 3px;
  color: #7a828c;
  background: #f4f5f6;
  text-align: center;
}

body #messageCenterScreen .message-transaction-flow-steps li > b {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #6d7580;
  background: #e4e7ea;
  font-size: 0.61rem;
}

body #messageCenterScreen .message-transaction-flow-steps li > span {
  min-width: 0;
  display: grid;
}

body #messageCenterScreen .message-transaction-flow-steps strong {
  overflow: hidden;
  color: inherit;
  font-size: 0.57rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body #messageCenterScreen .message-transaction-flow-steps small {
  overflow: hidden;
  font-size: 0.48rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body #messageCenterScreen .message-transaction-flow-steps li[data-step-state="complete"] {
  color: #146a4b;
  background: #eaf8f1;
}

body #messageCenterScreen .message-transaction-flow-steps li[data-step-state="complete"] > b {
  color: #fff;
  background: #138a5b;
}

body #messageCenterScreen .message-transaction-flow-steps li[data-step-state="current"] {
  color: #a73c04;
  background: #fff0e5;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.28);
}

body #messageCenterScreen .message-transaction-flow-steps li[data-step-state="current"] > b {
  color: #fff;
  background: #ed6415;
}

body #messageCenterScreen .message-transaction-flow-facts {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1.35fr;
  overflow: hidden;
  border: 1px solid #e8e3df;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
}

body #messageCenterScreen .message-transaction-flow-facts > span {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 8px;
}

body #messageCenterScreen .message-transaction-flow-facts > span + span {
  border-left: 1px solid #ece7e3;
}

body #messageCenterScreen .message-transaction-flow-facts strong {
  color: #293342;
  font-size: 0.64rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

body #messageCenterScreen .message-transaction-flow-facts em {
  color: #737b85;
  font-size: 0.54rem;
  font-style: normal;
  line-height: 1.3;
}

body #messageCenterScreen .message-transaction-flow-facts [data-location-state="seller_only"],
body #messageCenterScreen .message-transaction-flow-facts [data-location-state="selected"] {
  background: #fffaf5;
}

@media (max-width: 560px) {
  body #messageCenterScreen .message-transaction-flow-steps {
    grid-template-columns: repeat(5, minmax(52px, 1fr));
    overflow-x: auto;
    scrollbar-width: none;
  }

  body #messageCenterScreen .message-transaction-flow-facts {
    grid-template-columns: 1fr 1fr;
  }

  body #messageCenterScreen .message-transaction-flow-facts > span:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid #ece7e3;
    border-left: 0;
  }
}

/* Mobile-first full-screen Reel feed. */
body #nationalFeed.national-feed {
  color: #171717;
  background: #fff;
}

body #nationalFeed .national-feed-shell {
  width: min(100%, 720px);
  max-width: 720px;
  height: 100dvh;
  background: #fff;
}

body #nationalFeed .national-feed-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 60;
  width: min(100%, 720px);
  min-height: calc(64px + env(safe-area-inset-top));
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  border: 0;
  border-bottom: 1px solid #eee9e5;
  border-radius: 0;
  padding: max(7px, env(safe-area-inset-top)) 12px 7px;
  color: #171717;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.feed-brand {
  width: 70px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 90, 0, 0.24);
  border-radius: 999px;
  padding: 0 9px;
  color: #c2410c;
  background: #fff2e8;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
}

.feed-back-arrow {
  font-family: Arial, sans-serif;
  font-size: 1.2rem;
  line-height: 1;
}

.feed-back-button:hover,
.feed-back-button:focus-visible {
  border-color: #ff5a00;
  color: #fff;
  background: #ff5a00;
}

.feed-back-button:focus-visible {
  outline: 3px solid rgba(255, 90, 0, 0.22);
  outline-offset: 2px;
}

.feed-mode-tabs {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.feed-mode-tabs button {
  position: relative;
  min-height: 40px;
  border: 0;
  padding: 0 2px;
  color: #817873;
  background: transparent !important;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.feed-mode-tabs button[aria-pressed="true"] {
  color: #171717;
}

.feed-mode-tabs button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 3px;
  border-radius: 3px;
  background: #ff5a00;
}

.feed-search-control {
  position: relative;
  align-self: center;
  justify-self: end;
}

.feed-search-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  color: #24201e;
  background: transparent;
  cursor: pointer;
}

.feed-search-toggle svg,
.national-feed-nav svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body #nationalFeed .feed-search {
  position: absolute;
  top: 48px;
  right: 0;
  width: min(330px, calc(100vw - 24px));
  display: grid;
  gap: 5px;
  border: 1px solid #e6ddd7;
  border-radius: 7px;
  padding: 10px;
  color: #655d58;
  background: #fff;
  box-shadow: 0 16px 36px rgba(35, 27, 23, 0.16);
}

body #nationalFeed .feed-search[hidden] {
  display: none;
}

body #nationalFeed .feed-search span {
  padding: 0;
  font-size: 0.64rem;
}

body #nationalFeed .feed-search input {
  min-height: 42px;
  border: 1px solid #ded7d2;
  border-radius: 6px;
  padding: 0 11px;
  background: #fff;
  font-size: 16px;
}

body #nationalFeed .national-feed-track {
  position: fixed;
  top: calc(64px + env(safe-area-inset-top));
  bottom: calc(72px + env(safe-area-inset-bottom));
  left: 50%;
  width: min(100%, 720px);
  height: auto;
  overflow-y: auto;
  overflow-anchor: none;
  scroll-snap-type: y mandatory;
  scroll-behavior: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  transform: translateX(-50%);
  padding: 0 8px;
  background: #fff;
}

body #nationalFeed .national-feed-card.reel-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  margin: 0;
  overflow: hidden;
  overflow-anchor: none;
  border-radius: 10px;
  color: #fff;
  background: #000;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

body #nationalFeed .national-feed-card .national-media-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #000;
}

body #nationalFeed .national-media-frame .national-image-strip,
body #nationalFeed .national-media-frame .national-image-strip img {
  width: 100%;
  height: 100%;
  background: #000;
}

body #nationalFeed .national-media-frame .national-image-strip {
  display: flex;
  grid-auto-flow: unset;
  grid-auto-columns: unset;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  touch-action: pan-y;
}

body #nationalFeed .national-media-frame .national-image-strip .national-photo-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  user-select: none;
}

.national-seller-overlay {
  position: absolute;
  top: 30px;
  left: 16px;
  z-index: 8;
  max-width: min(64%, 290px);
}

.national-seller-overlay .profile-chip-card {
  position: relative;
  min-height: 52px;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 6px 11px 6px 6px;
  color: #fff;
  background: rgba(20, 20, 23, 0.7);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px) saturate(130%);
}

.national-seller-overlay .profile-chip-card::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ff6a16;
  box-shadow: 0 0 0 3px rgba(255, 106, 22, 0.16);
}

.national-seller-overlay .national-seller-row img {
  width: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

body #nationalFeed .national-seller-overlay .feed-seller-link {
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: 0.74rem;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body #nationalFeed .national-seller-overlay .national-seller-row small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.6rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.national-reactions-overlay {
  position: absolute;
  top: 30px;
  right: 16px;
  z-index: 9;
  display: grid;
  justify-items: end;
  gap: 6px;
}

body #nationalFeed .national-reactions-overlay .favorite-heart-button {
  position: static;
  width: 42px;
  height: 42px;
  border-color: rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  background: rgba(20, 20, 23, 0.62);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

body #nationalFeed .national-reactions-overlay .favorite-heart-button.is-favorite {
  border-color: #ff7a2f;
  color: #fff;
  background: #ff5a00;
}

.national-reactions-overlay .reaction-bar {
  display: grid;
  gap: 6px;
}

body #nationalFeed .national-reactions-overlay .reaction-bar button {
  width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 5px 2px;
  color: #fff;
  background: rgba(20, 20, 23, 0.62);
  font-size: 0.82rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

body #nationalFeed .national-reactions-overlay .reaction-bar button span {
  font-size: 0.52rem;
}

.national-product-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 7;
  display: grid;
  gap: 7px;
  padding: 130px 74px 76px 16px;
  color: #fff;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 24%, rgba(0, 0, 0, 0.86) 72%, rgba(0, 0, 0, 0.94) 100%);
  pointer-events: none;
}

.national-product-overlay > * {
  pointer-events: auto;
}

.national-product-heading {
  display: grid;
  gap: 2px;
}

.national-product-heading h3,
.national-product-heading strong {
  margin: 0;
  color: #fff;
  letter-spacing: 0;
}

.national-product-heading h3 {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1.12;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.national-product-heading strong {
  width: fit-content;
  color: #ff8a47;
  font-size: 1.14rem;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

body #nationalFeed .national-description-preview .reel-description-inline {
  display: block;
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
}

body #nationalFeed .national-description-preview .reel-description-preview-text,
body #nationalFeed .national-description-preview .reel-description-text,
body #nationalFeed .national-description-preview .reel-description-full {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.76rem;
  line-height: 1.38;
}

body #nationalFeed .national-description-preview .reel-description-more {
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
}

body #nationalFeed .national-product-overlay .national-listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.66rem;
}

body #nationalFeed .national-product-overlay .fulfillment-badge,
body #nationalFeed .national-product-overlay .shipping-only-buy-note {
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  padding: 4px 8px;
  color: #fff;
  background: transparent;
}

body #nationalFeed .national-product-overlay .feed-comments-panel {
  border: 0;
  padding: 0;
  background: transparent;
}

body #nationalFeed .national-product-overlay .question-panel-button {
  width: fit-content;
  min-height: 44px;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 0 18px;
  color: #24201e;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  font-weight: 850;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px) saturate(120%);
}

body #nationalFeed .national-product-overlay .question-panel-button strong {
  min-width: 20px;
  min-height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #ff5a00;
  font-size: 0.56rem;
}

body #nationalFeed .feed-question-panel {
  position: absolute;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  z-index: 80;
  width: min(calc(100% - 28px), 410px);
  max-height: min(68dvh, 560px);
  display: grid;
  gap: 10px;
  overflow-y: auto;
  transform: translate(-50%, -50%);
  border: 1px solid #e8e1dc;
  border-radius: 8px;
  padding: 14px;
  color: #24201e;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 70px rgba(17, 15, 14, 0.38);
  backdrop-filter: blur(18px);
  animation: flea-question-enter 180ms ease-out;
}

body #nationalFeed .feed-question-panel[hidden] {
  display: none;
}

body #nationalFeed .question-dialog-head {
  min-height: 76px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #eee8e4;
  padding-bottom: 10px;
}

body #nationalFeed .question-dialog-head > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body #nationalFeed .question-dialog-head small {
  color: #ff5a00;
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
}

body #nationalFeed .question-dialog-head strong {
  overflow: hidden;
  color: #24201e;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.question-thinking-flea {
  width: 62px;
  height: 72px;
  display: block;
  object-fit: contain;
  animation: flea-thinking-float 2.8s ease-in-out infinite;
}

body #nationalFeed .question-dialog-head > button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #5f5752;
  background: #f4f1ef;
  font-size: 1rem;
}

body #nationalFeed .feed-question-panel .feed-comment-list {
  display: grid;
  gap: 7px;
}

body #nationalFeed .feed-question-panel .reel-comment {
  border: 1px solid #eee7e2;
  border-radius: 8px;
  padding: 9px 10px;
  background: #faf8f7;
}

body #nationalFeed .feed-question-panel .question-input-bubble {
  border: 1px solid #ded7d2;
  border-radius: 8px;
  background: #fff;
}

@keyframes flea-question-enter {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.98); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes flea-thinking-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .question-thinking-flea,
  body #nationalFeed .feed-question-panel {
    animation: none;
  }
}

body #nationalFeed .national-card-footer {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 12;
  width: auto;
  padding: 0;
  background: transparent;
}

body #nationalFeed .national-actions {
  grid-template-columns: minmax(0, 1fr) minmax(110px, 0.7fr);
  gap: 7px;
  padding: 0;
}

body #nationalFeed .national-actions button,
body #nationalFeed .national-offer-box {
  min-height: 48px;
  border-radius: 8px;
}

body #nationalFeed .national-offer-box {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(20, 20, 23, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

body #nationalFeed .national-offer-box input {
  color: #fff;
  background: transparent;
}

body #nationalFeed .national-offer-box button {
  color: #ff8a47;
  background: transparent;
}

body #nationalFeed .national-actions > button[data-national-action="buy"] {
  border: 1px solid #ff7a2f;
  color: #fff;
  background: #ff5a00;
  box-shadow: 0 10px 24px rgba(255, 90, 0, 0.3);
}

body #nationalFeed .national-photo-arrow {
  top: 50%;
  width: 36px;
  height: 36px;
  opacity: 0.7;
}

.national-feed-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 50%;
  z-index: 60;
  width: min(100%, 720px);
  min-height: calc(72px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  transform: translateX(-50%);
  border-top: 1px solid #eee9e5;
  padding: 7px 8px max(7px, env(safe-area-inset-bottom));
  background: #fff;
}

.national-feed-nav button {
  min-width: 0;
  min-height: 50px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 0;
  padding: 0;
  color: #69615c;
  background: transparent;
  font-size: 0.56rem;
  font-weight: 800;
  cursor: pointer;
}

.national-feed-nav button[aria-current="page"] {
  color: #ff5a00;
}

.national-feed-nav .feed-add-button > strong {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #ff5a00;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
}

.national-feed-nav .feed-add-button > span {
  color: #69615c;
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1;
}

body #nationalFeed .national-feed-nav .feed-profile-button {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

body #nationalFeed .national-feed-nav .feed-profile-button img {
  width: 27px;
  height: 27px;
  border: 1px solid #d9d1cc;
  border-radius: 999px;
}

@media (min-width: 721px) {
  body #nationalFeed .national-feed-card.reel-card {
    border-radius: 10px;
  }
}

@media (max-width: 390px) {
  body #nationalFeed .national-feed-header {
    grid-template-columns: 62px minmax(0, 1fr) 44px;
    padding-inline: 8px;
  }

  .feed-brand {
    width: 60px;
  }

  .feed-mode-tabs {
    gap: 14px;
  }

  .feed-mode-tabs button {
    font-size: 0.76rem;
  }

  .national-product-overlay {
    padding-right: 64px;
    padding-left: 13px;
  }
}

/* Reference-matched live offer confirmation. */
body #offerConfirmModal {
  z-index: 120;
}

body .offer-confirm-card.modern-offer-card {
  position: relative;
  width: min(100%, 480px);
  max-height: min(92dvh, 820px);
  display: grid;
  gap: 14px;
  overflow-y: auto;
  border: 1px solid #ded8d4;
  border-radius: 8px;
  padding: 22px;
  color: #24201e;
  background: #fff;
  box-shadow: 0 30px 80px rgba(30, 24, 21, 0.3);
}

.modern-offer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  color: #171717;
  background: transparent;
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.modern-offer-flea {
  width: 76px;
  height: 76px;
  justify-self: center;
  object-fit: contain;
}

.modern-offer-heading {
  display: grid;
  gap: 6px;
  text-align: center;
}

body .modern-offer-heading h2 {
  color: #171717;
  font-size: 1.8rem;
  line-height: 1.08;
}

body .modern-offer-heading p {
  color: #68616b;
  font-size: 0.86rem;
}

.modern-offer-product {
  min-width: 0;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border: 1px solid #e5dfdb;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.modern-offer-product > img {
  width: 126px;
  height: 104px;
  display: block;
  border-radius: 7px;
  background: #111;
  object-fit: cover;
}

.modern-offer-product > span {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.modern-offer-product strong,
.modern-offer-product small,
.modern-offer-product b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modern-offer-product strong {
  color: #171717;
  font-size: 1rem;
}

.modern-offer-product small {
  color: #62606b;
  font-size: 0.72rem;
}

.modern-offer-product b {
  color: #ff5a00;
  font-size: 1.06rem;
}

.modern-offer-amount {
  display: grid;
  justify-items: center;
  gap: 4px;
  border: 1px solid #e7e1dd;
  border-radius: 8px;
  padding: 18px 12px;
  text-align: center;
  background: #fff;
}

.modern-offer-meetup {
  border: 1px solid #e7e1dd;
  border-radius: 8px;
  padding: 12px;
  background: #fffaf7;
}

.modern-offer-meetup .pickup-location-map-shell,
.modern-offer-meetup .pickup-location-map,
.modern-offer-meetup .pickup-location-empty {
  min-height: 178px;
  height: 178px;
}

.modern-offer-amount small {
  color: #24201e;
  font-size: 0.8rem;
  font-weight: 900;
}

.modern-offer-amount strong {
  color: #ff5a00;
  font-size: 2.5rem;
  line-height: 1;
}

body .modern-offer-amount p {
  color: #68616b;
  font-size: 0.72rem;
}

.modern-offer-notes {
  display: grid;
  gap: 8px;
}

.modern-offer-notes > span {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border-radius: 8px;
  padding: 12px;
  background: #fff7f1;
}

.modern-offer-notes > span > b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid #ff5a00;
  border-radius: 999px;
  color: #ff5a00;
  font-size: 1rem;
}

body .modern-offer-notes p {
  display: grid;
  gap: 2px;
  color: #4f4945;
  font-size: 0.7rem;
  line-height: 1.4;
}

.modern-offer-notes p strong {
  color: #24201e;
  font-size: 0.78rem;
}

body .modern-offer-card .offer-confirm-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

body .modern-offer-card .offer-confirm-submit-status {
  margin: 0;
  border: 1px solid #f4b5a8;
  border-radius: 8px;
  padding: 10px 12px;
  color: #8f2417;
  background: #fff3f0;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

body .modern-offer-card .offer-confirm-button,
body .modern-offer-card .offer-cancel-button {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

body .modern-offer-card .offer-confirm-button {
  border: 0;
  color: #fff;
  background: #ff5a00;
  box-shadow: 0 10px 24px rgba(255, 90, 0, 0.24);
}

body .modern-offer-card .offer-cancel-button {
  border: 1px solid #ff5a00;
  color: #ff5a00;
  background: #fff;
}

@media (max-width: 520px) {
  body .offer-confirm-modal {
    align-items: end;
    padding: 0;
  }

  body .offer-confirm-card.modern-offer-card {
    width: 100%;
    max-height: 94dvh;
    border-radius: 8px 8px 0 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  }

  .modern-offer-flea {
    width: 62px;
    height: 62px;
  }

  body .modern-offer-heading h2 {
    font-size: 1.5rem;
  }

  .modern-offer-product {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .modern-offer-product > img {
    width: 100px;
    height: 88px;
  }
}

/* Notification archive: swipe current alerts into a 30-day Past Notifications window. */
body .notification-item-row {
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
}

body .notification-item-row > .notification-item {
  position: relative;
  z-index: 2;
  min-height: 92px;
  padding-right: 54px;
  touch-action: pan-y;
  will-change: auto;
}

body .notification-item-row.is-swiping > .notification-item {
  will-change: transform;
}

body .notification-item-row > .notification-item:not(.is-unread) {
  padding-right: 54px;
}

body .notification-swipe-archive {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 auto;
  width: 112px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #d64e0a, #9d3000);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  opacity: 0;
}

body .notification-item-row.is-swiping-archive .notification-swipe-archive {
  opacity: 1;
}

body .notification-row-archive {
  position: absolute;
  z-index: 4;
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #efc7ae;
  border-radius: 9px;
  padding: 0;
  color: #a63b04;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

body .notification-swipe-hint {
  margin: 0;
  color: #8b6d5c;
  font-size: 0.64rem;
  font-weight: 800;
  text-align: center;
}

body.past-notifications-open {
  overflow: hidden;
}

body .past-notifications-modal {
  position: fixed;
  z-index: 6200 !important;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(40, 23, 14, 0.58);
  backdrop-filter: blur(8px);
}

body .past-notifications-modal[hidden] {
  display: none !important;
}

body .past-notifications-card {
  position: relative;
  isolation: isolate;
  width: min(540px, 100%);
  max-height: min(760px, calc(100svh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  border: 1px solid #efcdb8;
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(150deg, #fff 0%, #fff8f3 68%, #ffe2ce 100%);
  box-shadow: 0 28px 70px rgba(72, 31, 8, 0.3);
}

body .past-notifications-card > header {
  padding-right: 38px;
}

body .past-notifications-card > header span {
  color: #d64b05;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body .past-notifications-card > header h2 {
  margin: 4px 0;
  color: #201711;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
}

body .past-notifications-card > header p,
body .past-notifications-card > footer {
  margin: 0;
  color: #765c4d;
  font-size: 0.75rem;
  line-height: 1.4;
}

body .past-notifications-card > footer {
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 225, 204, 0.65);
  text-align: center;
}

body .past-notifications-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  color: #3c2518;
  background: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(80, 37, 14, 0.13);
}

body .past-notification-list {
  min-height: 120px;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body .past-notification-item {
  width: 100%;
  display: grid;
  gap: 6px;
  border: 1px solid #eaded6;
  border-radius: 14px;
  padding: 13px;
  color: inherit;
  background: #fff;
  font: inherit;
  text-align: left;
  appearance: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(79, 42, 21, 0.07);
}

body .past-notification-item:hover,
body .past-notification-item:focus-visible {
  border-color: #ff9e64;
  outline: 3px solid rgba(255, 90, 0, 0.15);
  background: linear-gradient(145deg, #fff 0%, #fff8f1 100%);
}

body .past-notification-item > header,
body .past-notification-item > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body .past-notification-item > header span {
  border-radius: 999px;
  padding: 3px 7px;
  color: #a43b00;
  background: #fff0e5;
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
}

body .past-notification-item > header time,
body .past-notification-item > footer {
  color: #8a7062;
  font-size: 0.62rem;
  font-weight: 750;
}

body .past-notification-item > strong {
  color: #2b2019;
  font-size: 0.84rem;
}

body .past-notification-item > p {
  margin: 0;
  color: #6f5c51;
  font-size: 0.72rem;
  line-height: 1.4;
}

body .past-notification-item > em {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: #d94800;
  font-size: 0.69rem;
  font-style: normal;
  font-weight: 850;
}

body .past-notifications-empty {
  min-height: 150px;
  display: grid;
  place-content: center;
  gap: 4px;
  margin: 0;
  color: #6f5a4d;
  text-align: center;
}

body .past-notifications-empty strong {
  color: #34251c;
}

body .past-notifications-empty span {
  font-size: 0.74rem;
}

@media (max-width: 760px) {
  body .notification-row-archive {
    display: none;
  }

  body .notification-item-row > .notification-item,
  body .notification-item-row > .notification-item:not(.is-unread) {
    padding-right: 15px;
  }

  body .past-notifications-modal {
    align-items: end;
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    overflow: hidden;
  }

  body .past-notifications-card {
    width: 100%;
    max-height: min(82dvh, 720px);
    border-radius: 24px 24px 16px 16px;
    padding: 20px 16px 16px;
  }
}

body #messageCenterScreen .message-offer-waiting-banner[data-transaction-speaker="them"] .message-transaction-profile {
  border-color: rgba(255, 111, 31, 0.24);
}

body #messageCenterScreen .message-offer-waiting-banner[data-transaction-speaker="you"] .message-transaction-profile {
  border-color: rgba(39, 112, 224, 0.24);
}

/* Message ownership: current-account actions are blue; received actions are orange. */
body #messageCenterScreen .message-bubble {
  position: relative;
  min-width: min(180px, 72%);
  gap: 7px;
  border: 1px solid transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(26, 56, 98, 0.12);
}

body #messageCenterScreen .message-bubble .message-soft-delete {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.12);
  font: 800 1rem/1 system-ui, sans-serif;
  opacity: 0;
  cursor: pointer;
  transition: opacity 140ms ease, background 140ms ease;
}

body #messageCenterScreen .message-bubble:hover .message-soft-delete,
body #messageCenterScreen .message-bubble:focus-within .message-soft-delete,
body #messageCenterScreen .message-bubble .message-soft-delete:focus-visible {
  opacity: 1;
}

body #messageCenterScreen .message-bubble .message-soft-delete:hover {
  background: rgba(0, 0, 0, 0.24);
}

@media (hover: none) {
  body #messageCenterScreen .message-bubble .message-soft-delete {
    opacity: 0.72;
  }
}

body #messageCenterScreen button:is(.message-bubble-sender, .message-activity-sender) {
  cursor: pointer;
}

body #messageCenterScreen .message-bubble .message-photo-link {
  background: rgba(255, 255, 255, 0.18);
}

body #messageCenterScreen .message-activity-copy {
  min-width: 0;
}

body #messageCenterScreen .message-transaction-card[data-transaction-speaker="system"] {
  box-shadow: 0 9px 22px rgba(68, 78, 91, 0.08);
}

/* Compact Flea market-ticket Buy It Now sheet. Seller acceptance keeps its full workflow. */
.buy-now-find-ticket {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.68);
  border-radius: 16px;
  padding: 11px 13px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 14%, rgba(255, 255, 255, 0.25) 0 7%, transparent 7.5%),
    linear-gradient(135deg, #ff4f00, #ff7a21 58%, #ff9a56);
  box-shadow: 0 15px 32px rgba(200, 65, 0, 0.23);
}

.buy-now-find-ticket[hidden] {
  display: none !important;
}

.buy-now-find-ticket::before,
.buy-now-find-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fffaf6;
  transform: translateY(-50%);
}

.buy-now-find-ticket::before { left: -11px; }
.buy-now-find-ticket::after { right: -11px; }

.buy-now-find-ticket > img {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 13px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 7px 18px rgba(118, 35, 0, 0.22);
}

.buy-now-find-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.buy-now-find-copy > small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.buy-now-find-copy > small i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.buy-now-find-copy > strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.94rem;
  line-height: 1.14;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buy-now-find-copy > span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buy-now-find-ticket > b {
  color: #fff;
  font-size: 1.24rem;
  line-height: 1;
  white-space: nowrap;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) {
  width: min(100%, 500px);
  max-height: min(90dvh, 700px);
  gap: 9px;
  border: 1px solid rgba(255, 112, 28, 0.28);
  border-radius: 24px;
  padding: 14px;
  background: linear-gradient(180deg, #fffaf6 0, #fff 32%, #fff 100%);
  box-shadow: 0 28px 80px rgba(77, 36, 13, 0.28);
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) > #transactionFlowTitle {
  order: 1;
  color: #c74400;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) > #transactionFlowCopy {
  order: 2;
  color: #756359;
  font-size: 0.71rem;
  line-height: 1.3;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) > .buy-now-find-ticket { order: 3; }
.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) > .transaction-flow-summary { display: none; }
.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) > .buyer-checkout-panel { order: 4; }
.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) > .pickup-scheduler { order: 5; }
.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) > .buyer-availability-confirmation { order: 6; }
.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) > .offer-warning { order: 7; }
.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) > .offer-confirm-actions { order: 8; }

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .buyer-checkout-panel {
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .buyer-checkout-panel > .transaction-section-head {
  align-items: end;
  padding: 2px 2px 0;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .buyer-checkout-panel > .transaction-section-head strong {
  color: #322720;
  font-size: 0.8rem;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .buyer-checkout-panel > .transaction-section-head small {
  max-width: 230px;
  color: #786b64;
  font-size: 0.64rem;
  text-align: right;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .checkout-method-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .checkout-method-card {
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 72px;
  gap: 10px;
  border-width: 1px;
  border-color: #eadfd8;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: none;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .checkout-method-circle {
  width: 40px;
  height: 40px;
  border-width: 1px;
  font-size: 1rem;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .checkout-method-card strong {
  font-size: 0.78rem;
  line-height: 1.15;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .checkout-method-card small {
  display: block;
  overflow: visible;
  color: #786b64;
  font-size: 0.61rem;
  line-height: 1.24;
  -webkit-line-clamp: unset;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .checkout-method-card .checkout-method-fee {
  display: block;
  overflow: visible;
  margin-top: 4px;
  color: #594943;
  font-weight: 700;
  -webkit-line-clamp: unset;
}

.checkout-card-fee-disclosure {
  display: block;
  margin: 0 0 9px;
  color: #6f5e55;
  font-size: 0.69rem;
  line-height: 1.35;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .cash-method-card:has(input:checked) {
  border-color: rgba(15, 118, 110, 0.5);
  background: linear-gradient(145deg, #ecfdf5, #fff);
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .cash-method-card:has(input:checked) .checkout-method-circle {
  border-color: #0f766e;
  background: #0f766e;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .buy-now-method-card:has(input:checked) {
  border-color: rgba(255, 90, 0, 0.52);
  background: linear-gradient(145deg, #fff2e8, #fff);
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .checkout-total-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .checkout-total-grid[data-layout="shipping"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .checkout-total-grid span {
  gap: 2px;
  border-radius: 10px;
  padding: 7px 9px;
  background: #fff;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .checkout-total-grid small {
  font-size: 0.56rem;
  text-transform: uppercase;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .checkout-total-grid strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .release-confirmation-panel {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 10px;
  padding: 7px 9px;
  background: #f2f7ff;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation)[data-checkout-payment="cash"] .release-confirmation-panel {
  background: #edf9f5;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .release-confirmation-panel strong {
  color: #153f69;
  font-size: 0.67rem;
  white-space: nowrap;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation)[data-checkout-payment="cash"] .release-confirmation-panel strong {
  color: #0f6d61;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .release-confirmation-panel small {
  font-size: 0.61rem;
  line-height: 1.25;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .pickup-scheduler {
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 10px;
  background: #fff7f0;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .pickup-scheduler > .transaction-section-head strong {
  color: #3a2b22;
  font-size: 0.79rem;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .pickup-scheduler > .transaction-section-head small {
  max-width: 230px;
  font-size: 0.62rem;
  text-align: right;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .pickup-time-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .pickup-time-option {
  grid-template-columns: 16px minmax(0, 1fr);
  min-height: 54px;
  gap: 6px;
  border-radius: 11px;
  padding: 7px 8px;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .pickup-time-option strong {
  font-size: 0.69rem;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .pickup-time-option small {
  font-size: 0.58rem;
  line-height: 1.22;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .pickup-specific-schedule {
  gap: 6px;
  border: 0;
  border-radius: 10px;
  padding: 7px;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .pickup-specific-schedule select,
.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .pickup-specific-schedule input {
  min-height: 38px;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .address-release-note {
  border-left: 3px solid #ff7a21;
  padding-left: 7px;
  font-size: 0.59rem;
  line-height: 1.25;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) > .offer-warning {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  color: #745c4e;
  background: #f8f3ef;
  font-size: 0.61rem;
  line-height: 1.2;
  text-align: center;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) > .offer-confirm-actions {
  position: sticky;
  z-index: 5;
  bottom: -14px;
  grid-template-columns: 86px minmax(0, 1fr);
  margin: 0 -14px -14px;
  border-top: 1px solid rgba(255, 112, 28, 0.15);
  padding: 9px 14px 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) > .offer-confirm-actions button {
  min-height: 42px;
  font-size: 0.72rem;
}

.transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) > .offer-confirm-actions .offer-confirm-button {
  background: linear-gradient(135deg, #ff6a00, #ff4f00);
  box-shadow: 0 9px 20px rgba(255, 79, 0, 0.24);
}

@media (max-width: 520px) {
  .offer-confirm-modal.is-buyer-checkout-modal {
    place-items: end center;
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
    background: rgba(38, 25, 18, 0.34);
  }

  .transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) {
    width: 100%;
    max-height: min(92dvh, 720px);
    border-radius: 24px 24px 16px 16px;
    padding: 12px;
  }

  .transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) > #transactionFlowCopy {
    display: none;
  }

  .transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) > .offer-confirm-actions {
    bottom: -12px;
    margin: 0 -12px -12px;
    padding: 8px 12px max(10px, env(safe-area-inset-bottom));
  }

  .buy-now-find-ticket {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    padding: 9px 11px;
  }

  .buy-now-find-ticket > img {
    width: 52px;
    height: 52px;
  }

  .transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .pickup-time-choices,
  .transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .pickup-specific-schedule {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 370px) {
  .transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .checkout-method-card {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 7px;
  }

  .transaction-flow-card.is-buyer-checkout:not(.is-purchase-confirmation) .checkout-method-circle {
    width: 32px;
    height: 32px;
  }

  .buy-now-find-ticket > b {
    font-size: 1.02rem;
  }
}

/* Swap profile and notifications in the shared app navigation. */
body .home-header .profile-bubble-button.home-profile-button {
  padding: 3px;
  overflow: hidden;
}

body .home-header .home-notification-avatar-source {
  width: 100%;
  height: 100%;
  display: block !important;
  border-radius: 999px;
  object-fit: cover;
}

.profile-dashboard-header-button .app-header-profile-avatar {
  width: 100%;
  height: 100%;
  display: block;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #fff2e8;
  object-fit: cover;
  box-shadow: 0 0 0 1px #e6e8ec;
}

.home-bottom-navigation button {
  position: relative;
  font-size: 0.76rem;
  font-weight: 750;
}

.home-bottom-navigation button > span {
  line-height: 1.05;
}

.home-bottom-navigation .home-bottom-nav-badge {
  position: absolute;
  top: 2px;
  right: auto;
  left: calc(50% + 8px);
  z-index: 3;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 0 5px;
  color: #fff;
  background: #ff5a00;
  box-shadow: 0 3px 8px rgba(177, 55, 0, 0.24);
  font-family: Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
  line-height: 1;
}

.home-bottom-navigation .home-bottom-nav-badge[hidden] {
  display: none;
}

.home-bottom-navigation #homeBottomMessageBadge {
  background: #2876df;
  box-shadow: 0 3px 8px rgba(28, 83, 165, 0.24);
}

.home-bottom-navigation #homeBottomMessages.has-unread-messages {
  color: #0d5fce;
}

.home-bottom-navigation #homeBottomMessages.has-unread-messages svg {
  fill: rgb(40 118 223 / 14%);
  filter: drop-shadow(0 3px 6px rgb(28 83 165 / 24%));
  stroke: #0d5fce;
}

@media (max-width: 620px) {
  .home-bottom-navigation button {
    font-size: 0.7rem;
  }
}

@media (max-width: 390px) {
  .home-bottom-navigation button span {
    font-size: 0.64rem;
  }

  .home-bottom-navigation .home-bottom-notifications span {
    letter-spacing: -0.025em;
  }
}

@media (max-width: 350px) {
  .home-bottom-navigation .home-bottom-notifications span {
    font-size: 0.59rem;
  }
}

/* Buyer pickup-time counter and final shared calendar */
.message-time-counter-card {
  width: min(92vw, 460px);
  padding: 24px;
  border-radius: 26px;
  text-align: left;
  background: radial-gradient(circle at 100% 0, rgba(249, 115, 22, 0.14), transparent 36%), #fff;
}

#messageTimeCounterModal {
  z-index: 4520;
}

.message-pickup-confirm-modal {
  z-index: 5250 !important;
  background: rgba(24, 31, 43, 0.48);
  backdrop-filter: blur(13px);
}

body.message-pickup-confirm-open {
  overflow: hidden;
}

.message-pickup-confirm-card {
  position: relative;
  width: min(94vw, 520px);
  max-height: min(92vh, 760px);
  overflow-y: auto;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 157, 94, 0.66);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 131, 48, 0.2), transparent 34%),
    linear-gradient(180deg, #fffdfb 0%, #fff 100%);
  box-shadow: 0 28px 78px rgba(37, 28, 23, 0.3);
}

.message-pickup-confirm-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #4b5563;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 16px rgba(59, 42, 30, 0.12);
  font-size: 1.35rem;
  line-height: 1;
}

.message-pickup-confirm-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding-right: 32px;
}

.message-pickup-confirm-heading > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #f15b14, #ff8a35);
  box-shadow: 0 10px 24px rgba(241, 91, 20, 0.25);
  font-size: 1.35rem;
  font-weight: 950;
}

.message-pickup-confirm-heading > div {
  display: grid;
  gap: 3px;
}

.message-pickup-confirm-heading small {
  color: #e8520c;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.message-pickup-confirm-heading h2 {
  color: #171b25;
  font-size: clamp(1.35rem, 5vw, 1.72rem);
  line-height: 1.08;
}

.message-pickup-confirm-heading p {
  color: #697386;
  font-size: 0.82rem;
}

.message-pickup-confirm-product {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid rgba(222, 228, 237, 0.95);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(35, 45, 63, 0.08);
}

.message-pickup-confirm-product img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  background: #fff5ed;
}

.message-pickup-confirm-product > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.message-pickup-confirm-product small,
.message-pickup-confirm-product em {
  color: #697386;
  font-size: 0.7rem;
  font-style: normal;
}

.message-pickup-confirm-product strong {
  overflow: hidden;
  color: #182033;
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-pickup-confirm-product > b {
  color: #e9510b;
  font-size: 1.05rem;
}

.message-pickup-confirm-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 11px;
}

.message-pickup-confirm-fields > label {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}

.message-pickup-confirm-fields > label[hidden] {
  display: none;
}

.message-pickup-confirm-time {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}

.message-pickup-confirm-time > span,
.message-pickup-confirm-time-values label > span {
  color: #c8490e;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message-pickup-confirm-time-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.message-pickup-confirm-time-modes button {
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(220, 226, 235, 0.98);
  border-radius: 10px;
  padding: 5px 7px;
  color: #6b7280;
  background: #fff;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 850;
  cursor: pointer;
}

.message-pickup-confirm-time-modes button[aria-pressed="true"] {
  border-color: #f97316;
  color: #fff;
  background: linear-gradient(135deg, #ff7a21, #e95308);
  box-shadow: 0 6px 14px rgba(226, 82, 7, 0.22);
}

.message-pickup-confirm-time-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.message-pickup-confirm-time-values > label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.message-pickup-confirm-time-values > label[hidden] {
  display: none;
}

.message-pickup-confirm-time:not([data-time-mode="range"]) .message-pickup-confirm-time-values > label:not([hidden]) {
  grid-column: 1 / -1;
}

.message-pickup-confirm-location {
  grid-column: auto;
}

.message-pickup-confirm-fields label > span {
  color: #c8490e;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message-pickup-confirm-fields input,
.message-pickup-confirm-fields select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(220, 226, 235, 0.98);
  border-radius: 13px;
  color: #182033;
  background: #fff;
  box-shadow: 0 5px 16px rgba(35, 45, 63, 0.055);
  font: inherit;
  font-size: 0.88rem;
}

.message-pickup-confirm-fields input:focus,
.message-pickup-confirm-fields select:focus {
  border-color: #f97316;
  outline: 3px solid rgba(249, 115, 22, 0.16);
}

.message-pickup-confirm-card > .offer-warning {
  min-height: 18px;
  color: #626d80;
  text-align: center;
}

.message-pickup-confirm-card .offer-confirm-actions button {
  min-height: 48px;
  border-radius: 14px;
}

@media (max-width: 520px) {
  .message-pickup-confirm-modal {
    align-items: end;
    padding: 10px;
  }

  .message-pickup-confirm-card {
    width: 100%;
    max-height: 90dvh;
    padding: 20px 16px 16px;
    border-radius: 24px 24px 16px 16px;
  }

  .message-pickup-confirm-card .offer-confirm-actions {
    grid-template-columns: 0.78fr 1.22fr;
  }

}

.message-time-counter-card > h2,
.message-time-counter-card > p {
  margin-inline: 0;
  text-align: left;
}

.message-time-counter-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ff9b52);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.24);
  font-size: 21px;
  font-weight: 900;
}

.message-time-counter-current {
  display: grid;
  gap: 3px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #fff7ed;
}

.message-time-counter-current small,
.message-time-counter-current span {
  color: #8a4b1d;
  font-size: 12px;
}

.message-time-counter-current strong {
  color: #7c2d12;
  font-size: 16px;
}

.message-time-counter-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.message-time-counter-fields label {
  display: grid;
  gap: 6px;
  color: #3f434b;
  font-size: 12px;
  font-weight: 800;
}

.message-time-counter-fields input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d9dde4;
  border-radius: 13px;
  background: #fff;
  color: #20242b;
  font: inherit;
}

.message-final-pickup-calendar {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  color: #20242b;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(35, 39, 47, 0.1);
}

.message-final-pickup-calendar[data-pickup-payment="card"] {
  border-color: #b9d3ff;
  background: linear-gradient(145deg, #eef5ff 0%, rgba(255, 255, 255, 0.98) 58%);
}

.message-final-pickup-calendar[data-pickup-payment="card"] .message-final-calendar-date {
  border-color: #b9d3ff;
}

.message-final-pickup-calendar[data-pickup-payment="card"] .message-final-calendar-date small,
.message-final-pickup-calendar[data-pickup-payment="card"] .message-final-calendar-location > span:first-child,
.message-final-pickup-calendar[data-pickup-payment="card"] > footer > span {
  background: #2770df;
}

.message-final-pickup-calendar[data-pickup-payment="card"] > footer {
  color: #174ea6;
}

.message-final-pickup-calendar[data-pickup-payment="cash"] {
  border-color: #a8dfc4;
  background: linear-gradient(145deg, #eaf8f1 0%, rgba(255, 255, 255, 0.98) 60%);
}

.message-final-pickup-calendar[data-pickup-payment="cash"] .message-final-calendar-date {
  border-color: #a8dfc4;
}

.message-final-pickup-calendar[data-pickup-payment="cash"] .message-final-calendar-date small,
.message-final-pickup-calendar[data-pickup-payment="cash"] .message-final-calendar-location > span:first-child,
.message-final-pickup-calendar[data-pickup-payment="cash"] > footer > span {
  background: #16855b;
}

.message-final-pickup-calendar[data-pickup-payment="cash"] > footer {
  color: #116342;
}

.message-buyer-payment-status {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 10px;
  border-radius: 13px;
  padding: 11px 12px;
  color: #fff;
  box-shadow: 0 8px 18px rgba(27, 64, 110, 0.14);
}

.message-buyer-payment-status.is-cash {
  background: linear-gradient(135deg, #29a36f, #14734e);
}

.message-buyer-payment-status.is-card {
  background: linear-gradient(135deg, #3b82e6, #1f5eb9);
}

.message-buyer-payment-status > span {
  grid-row: 1 / span 2;
  min-width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  padding: 0 7px;
  color: inherit;
  background: rgba(255, 255, 255, 0.18);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.message-buyer-payment-status > strong {
  color: inherit;
  font-size: 13px;
  line-height: 1.15;
}

.message-buyer-payment-status > small {
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  line-height: 1.3;
}

.message-final-calendar-date {
  display: grid;
  align-content: center;
  min-height: 80px;
  overflow: hidden;
  border: 1px solid #ffd5b7;
  border-radius: 16px;
  text-align: center;
  background: #fff;
}

.message-final-calendar-date small {
  padding: 5px 4px;
  color: #fff;
  background: #f97316;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.message-final-calendar-date strong {
  padding: 8px 4px 10px;
  color: #25282e;
  font-size: 30px;
  line-height: 1;
}

.message-final-calendar-copy {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
}

.message-final-calendar-copy small {
  color: #df5b0b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message-final-calendar-copy h4 {
  margin: 0;
  color: #20242b;
  font-size: 16px;
  line-height: 1.2;
}

.message-final-calendar-copy > strong {
  color: #1d4ed8;
  font-size: 15px;
}

.message-final-calendar-copy > span {
  color: #666c76;
  font-size: 12px;
  font-weight: 700;
}

.message-final-calendar-location {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 14px;
  background: #f3f6fa;
}

.message-final-calendar-location > span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #1d64d8;
}

.message-final-calendar-location > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.message-final-calendar-location small {
  color: #727782;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.message-final-calendar-location strong {
  overflow-wrap: anywhere;
  color: #272b32;
  font-size: 12px;
}

.message-final-calendar-location a {
  padding: 7px 9px;
  border-radius: 9px;
  color: #1755b6;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.message-final-pickup-calendar > footer {
  grid-column: 1 / -1;
  display: flex;
  gap: 7px;
  align-items: center;
  color: #22734b;
  font-size: 11px;
}

.message-final-pickup-calendar > footer > span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #22a268;
  font-size: 11px;
}

@media (max-width: 540px) {
  .message-time-counter-card {
    width: min(94vw, 430px);
    padding: 20px 16px;
    border-radius: 22px;
  }

  .message-time-counter-fields {
    grid-template-columns: 1fr;
  }

  .message-final-pickup-calendar {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 11px;
    padding: 13px;
  }

  .message-final-calendar-date {
    min-height: 74px;
  }

  .message-final-calendar-location {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .message-final-calendar-location a {
    grid-column: 2;
    justify-self: start;
  }
}

.message-cash-pickup-complete {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(34, 162, 104, 0.25);
  border-radius: 20px;
  color: #20242b;
  background: rgba(255, 255, 255, 0.95);
}

.message-cash-complete-check {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #15945a, #38bd7c);
  box-shadow: 0 8px 18px rgba(21, 148, 90, 0.22);
  font-size: 21px;
  font-weight: 900;
}

.message-cash-pickup-complete > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.message-cash-pickup-complete > div small {
  color: #19714a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message-cash-pickup-complete h4,
.message-cash-pickup-complete p {
  margin: 0;
}

.message-cash-pickup-complete h4 {
  font-size: 16px;
}

.message-cash-pickup-complete p {
  color: #656b75;
  font-size: 12px;
  line-height: 1.4;
}

.message-cash-pickup-complete > aside {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #25416c;
  background: #edf4ff;
}

.message-cash-pickup-complete > aside strong {
  font-size: 13px;
}

.message-cash-pickup-complete > aside span {
  font-size: 11px;
  line-height: 1.4;
}

/* Product-specific commerce workspace inside Messages. */
body .message-commerce-panel {
  margin: 0 18px 12px;
  padding: 14px;
  border: 1px solid #e8e4df;
  border-left: 4px solid #ff5a00;
  border-radius: 8px;
  background: #fff;
}

body .message-commerce-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

body .message-commerce-head > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body .message-commerce-head small,
body .message-pickup-qr small {
  color: #8b8178;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

body .message-commerce-head strong {
  color: #171717;
  font-size: 1.02rem;
  line-height: 1.25;
}

body .message-commerce-head b {
  flex: 0 0 auto;
  color: #ff5a00;
  font-size: 1.25rem;
  line-height: 1;
}

body .message-commerce-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 7px 0 4px;
  padding: 0;
  list-style: none;
}

body .message-commerce-progress li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  color: #9b948d;
  font-size: 0.58rem;
  font-weight: 750;
  text-align: center;
}

body .message-commerce-progress li::before {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  border: 1.5px solid #d8d2cc;
  border-radius: 50%;
  background: #fff;
  content: "";
}

body .message-commerce-progress li::after {
  position: absolute;
  top: 3px;
  right: 50%;
  width: 100%;
  height: 1.5px;
  background: #e4dfda;
  content: "";
}

body .message-commerce-progress li:first-child::after {
  display: none;
}

body .message-commerce-progress li.is-complete,
body .message-commerce-progress li.is-current {
  color: #332d29;
}

body .message-commerce-progress li.is-complete::before,
body .message-commerce-progress li.is-current::before {
  border-color: #ff5a00;
  background: #ff5a00;
}

body .message-commerce-progress li.is-complete::after,
body .message-commerce-progress li.is-current::after {
  background: #ff5a00;
}

body .message-commerce-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  padding: 11px 0;
  border-top: 1px solid #eeeae6;
  border-bottom: 1px solid #eeeae6;
}

body .message-commerce-detail {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body .message-commerce-detail small {
  color: #8b8178;
  font-size: 0.69rem;
  font-weight: 750;
}

body .message-commerce-detail strong {
  overflow-wrap: anywhere;
  color: #332d29;
  font-size: 0.8rem;
  line-height: 1.35;
}

body .message-commerce-detail a {
  display: grid;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}

body .message-commerce-detail a span {
  color: #e84f00;
  font-size: 0.72rem;
  font-weight: 850;
}

body .message-commerce-detail a:hover span,
body .message-commerce-detail a:focus-visible span {
  text-decoration: underline;
}

body .message-commerce-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
}

body .message-commerce-actions button,
body .message-pickup-qr button,
body .message-suggested-replies button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #dcd6d0;
  border-radius: 7px;
  color: #332d29;
  background: #fff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

body .message-commerce-panel[hidden],
body .message-pickup-qr[hidden],
body .message-suggested-replies[hidden] {
  display: none !important;
}

body .message-commerce-actions button[data-primary="true"],
body .message-pickup-qr button {
  border-color: #ff5a00;
  color: #fff;
  background: #ff5a00;
}

body .message-commerce-actions button[data-tone="danger"] {
  color: #b42318;
}

body .message-commerce-actions label {
  display: flex;
  flex: 1 1 190px;
  min-width: 0;
  height: 38px;
  border: 1px solid #dcd6d0;
  border-radius: 7px;
  background: #fff;
}

body .message-commerce-actions label span {
  display: grid;
  place-items: center;
  min-width: 28px;
  color: #ff5a00;
  font-weight: 900;
}

body .message-commerce-actions input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: inherit;
  outline: 0;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
}

body .message-pickup-qr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eeeae6;
}

body .message-pickup-qr > span {
  display: grid;
  gap: 2px;
}

body .message-pickup-qr strong {
  color: #171717;
  font-size: 0.88rem;
}

body .message-pickup-qr em {
  color: #756c64;
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.4;
}

body .message-pickup-qr img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border: 1px solid #e5dfd9;
  border-radius: 6px;
}

body .message-pickup-qr b {
  color: #171717;
  font-size: 0.9rem;
  letter-spacing: 0;
}

body .message-commerce-status {
  min-height: 0;
  margin: 8px 0 0;
  color: #756c64;
  font-size: 0.73rem;
}

body .message-commerce-status:empty {
  display: none;
}

body .message-suggested-replies {
  display: grid;
  gap: 9px;
  margin: 0 16px 8px;
  padding: 10px 12px;
  border-top: 1px solid #eeeae6;
  border-radius: 15px;
  background: linear-gradient(135deg, #fffaf6 0%, #fff3e9 100%);
}

body .message-suggested-replies > .message-question-prompt {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #403934;
  font-size: 0.75rem;
}

body .message-question-prompt > b {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff7a1a, #f05200);
  box-shadow: 0 5px 12px rgba(240, 82, 0, 0.2);
  font-size: 0.9rem;
}

body .message-question-prompt > span {
  display: grid;
  gap: 1px;
}

body .message-question-prompt strong {
  color: #352017;
  font-size: 0.76rem;
}

body .message-question-prompt small {
  color: #8c6d5d;
  font-size: 0.65rem;
}

body .message-suggested-replies > div {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

body .message-suggested-replies button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 11px;
  border-color: #ffb184;
  color: #7f3107;
  background: #fff8f4;
  font-size: 0.71rem;
}

body .message-activity-event[data-activity-tone="counter"] .message-activity-icon,
body .message-activity-event[data-activity-tone="offer"] .message-activity-icon {
  color: #ff5a00;
  background: #fff2e9;
}

@media (max-width: 720px) {
  body .message-commerce-panel {
    margin: 0 10px 10px;
    padding: 12px;
  }

  body .message-commerce-progress li {
    font-size: 0.56rem;
  }

  body .message-commerce-details {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  body .message-commerce-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body .message-commerce-actions label,
  body .message-commerce-actions button {
    width: 100%;
  }

  body .message-commerce-actions label {
    grid-column: 1 / -1;
  }

  body .message-pickup-qr {
    grid-template-columns: 1fr auto;
  }

  body .message-pickup-qr button {
    grid-column: 1 / -1;
  }

  body .message-suggested-replies {
    padding-inline: 10px;
  }
}
/* Deal Room: the only interactive transaction surface in Messages. */
.message-commerce-panel:has(.deal-progress-card) {
  display: block;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
  margin-inline: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.deal-progress-card {
  --deal-accent: var(--orange, #e85706);
  --deal-card-start: #ffffff;
  --deal-card-end: #fff8f3;
  --deal-card-ink: #102348;
  --deal-card-muted: #526176;
  --deal-card-line: rgb(16 35 72 / 14%);
  --deal-card-panel: rgb(255 255 255 / 76%);
  width: min(100%, 48rem);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: var(--deal-card-ink);
}

.deal-progress-current {
  --deal-accent: #e85706;
  --deal-card-start: #ffffff;
  --deal-card-end: #fff8f3;
  --deal-card-ink: #102348;
  --deal-card-muted: #526176;
  --deal-card-line: rgb(16 35 72 / 14%);
  --deal-card-panel: rgb(255 255 255 / 76%);
  width: min(78%, 34rem);
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  border: 1px solid var(--deal-card-line);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--deal-card-start), var(--deal-card-end));
  color: var(--deal-card-ink);
  box-shadow: var(--deal-card-highlight), var(--deal-card-elevation);
}

.deal-progress-current.is-sent {
  --deal-accent: #ffffff;
  --deal-card-start: var(--deal-sent-start);
  --deal-card-end: var(--deal-sent-end);
  --deal-card-ink: #ffffff;
  --deal-card-muted: #e5efff;
  --deal-card-line: rgb(255 255 255 / 24%);
  --deal-card-panel: rgb(255 255 255 / 13%);
  margin-inline-start: auto;
  box-shadow: var(--deal-card-highlight), var(--deal-card-elevation-sent);
}

.deal-progress-current.is-received {
  --deal-accent: #ffffff;
  --deal-card-start: var(--deal-received-start);
  --deal-card-end: var(--deal-received-end);
  --deal-card-ink: #ffffff;
  --deal-card-muted: #fff1e8;
  --deal-card-line: rgb(255 255 255 / 24%);
  --deal-card-panel: rgb(255 255 255 / 13%);
  margin-inline-end: auto;
  box-shadow: var(--deal-card-highlight), var(--deal-card-elevation-received);
}

.deal-progress-current.is-system {
  --deal-accent: #e85706;
}

/* Participant-authored cards use one high-contrast ink system. Controls that
   intentionally sit on white input tiles keep their local navy ink below. */
.deal-progress-current:is(.is-sent, .is-received) :is(
  .deal-progress-status,
  .deal-seller-meetup > header,
  .deal-payment-assurance,
  .deal-location-authority,
  .deal-progress-error,
  .deal-progress-actions > details > summary,
  .deal-cancellation > summary
) {
  color: var(--deal-card-ink);
}

.deal-progress-current:is(.is-sent, .is-received) .deal-progress-status :is(small, h3, p),
.deal-progress-current:is(.is-sent, .is-received) .deal-seller-meetup > header :is(h3, p),
.deal-progress-current:is(.is-sent, .is-received) :is(.deal-payment-assurance, .deal-location-authority) {
  color: var(--deal-card-ink);
}

/* The shared screen-heading rule in styles.css carries an ID selector. Match
   that boundary so a participant-authored card cannot inherit navy heading
   ink after this stylesheet is bundled before the main application CSS. */
body #messageCenterScreen .deal-progress-current:is(.is-sent, .is-received) .deal-progress-status :is(small, h3, p),
body #messageCenterScreen .deal-progress-current:is(.is-sent, .is-received) .deal-seller-meetup > header :is(h3, p),
body #messageCenterScreen .deal-progress-current:is(.is-sent, .is-received) :is(.deal-payment-assurance, .deal-location-authority) {
  color: var(--deal-card-ink);
}

.deal-progress-head {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(170px, .8fr);
  align-items: stretch;
  gap: 12px;
  padding: 12px 20px 18px;
}

.deal-progress-head.has-product-image {
  grid-template-columns: minmax(0, 1.45fr) minmax(170px, .8fr);
}

.deal-progress-profile,
.deal-progress-product {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding: 8px;
  border: 0;
  border-radius: 14px;
  background: #f7f9fc;
  box-shadow: var(--deal-tile-elevation);
}

.deal-progress-product {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.deal-progress-product {
  background: #fff;
}

.deal-progress-profile > img,
.deal-progress-profile > span,
.deal-progress-product > img,
.deal-progress-product-fallback {
  display: grid;
  width: 64px;
  height: 64px;
  box-sizing: border-box;
  place-items: center;
  border: 2px solid rgb(255 255 255 / 58%);
  border-radius: 12px;
  object-fit: cover;
  background: #ffffff;
  color: #173a69;
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
}

.deal-progress-profile > div,
.deal-progress-product > div { min-width: 0; }
.deal-progress-head small,
.deal-progress-head strong,
.deal-progress-head em { display: block; }
.deal-progress-head small { margin-bottom: 2px; color: var(--deal-card-muted); font-size: 10px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.deal-progress-head strong { overflow: hidden; color: var(--deal-card-ink); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.deal-progress-head em { margin-top: 1px; color: var(--deal-card-muted); font-size: 11px; font-style: normal; font-weight: 700; }
.deal-progress-product > b { color: var(--deal-card-ink); font-size: 23px; font-weight: 600; white-space: nowrap; }

.deal-progress-rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 16px;
}

.deal-progress-rail-head h2 { margin: 0; color: var(--deal-card-ink); font-size: clamp(24px, 4vw, 30px); line-height: 1.15; }
.deal-progress-rail-head span { color: var(--deal-card-ink); font-size: 16px; font-weight: 650; white-space: nowrap; }

.deal-progress-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(48px, 1fr));
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  gap: 0;
  margin: 0;
  padding: 0 20px 24px;
  list-style: none;
}

.deal-progress-steps li { position: relative; min-width: 0; display: grid; justify-items: center; gap: 7px; color: var(--deal-card-muted); font-size: 11px; text-align: center; }
.deal-progress-steps li::before { position: absolute; top: 13px; right: 50%; left: -50%; height: 3px; background: #d7dee8; content: ""; }
.deal-progress-steps li:first-child::before { display: none; }
.deal-progress-steps li > span { z-index: 1; display: grid; width: 30px; height: 30px; box-sizing: border-box; place-items: center; border: 2px solid #d2d2d2; border-radius: 999px; background: #fff; color: #8a8a8a; font-size: 14px; font-weight: 650; }
.deal-progress-steps li[data-step-state="complete"]::before,
.deal-progress-steps li[data-step-state="complete"] > span,
.deal-progress-steps li[data-step-state="current"]::before { border-color: #1c5fc9; background: #1c5fc9; }
.deal-progress-steps li[data-step-state="complete"],
.deal-progress-steps li[data-step-state="current"] { color: var(--deal-card-ink); }
.deal-progress-steps li[data-step-state="complete"] > span { color: #fff; }
.deal-progress-steps li[data-step-state="current"] > span { border-color: #0f69e8; background: #0f69e8; color: #fff; box-shadow: 0 0 0 4px rgb(15 105 232 / 10%); }
.deal-progress-steps li > b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.deal-progress-timeline { display: grid; gap: 16px; padding: 2px 20px 20px; }
.deal-progress-head,
.deal-progress-rail-head,
.deal-progress-timeline,
.deal-progress-body,
.deal-progress-details,
.deal-progress-actions,
.deal-progress-status {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.deal-progress-status :is(h3,p),
.deal-progress-details :is(strong,small,span,p),
.deal-progress-actions :is(button,p,summary) {
  overflow-wrap: anywhere;
}
.deal-pickup-confirmation-question {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
}
.deal-pickup-confirmation-question legend {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 0 2px;
  padding: 0;
  color: var(--deal-card-ink);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.2;
}
@media (max-width:420px) {
  .deal-pickup-confirmation-question { grid-template-columns: minmax(0,1fr); }
}
.deal-progress-history { display: grid; min-width: 0; max-block-size: 22rem; overflow-y: auto; overscroll-behavior-y: auto; scrollbar-gutter: stable; }
.deal-progress-latest-event { display: grid; min-width: 0; }
.deal-progress-history:focus-visible { outline: 3px solid rgb(28 95 201 / 32%); outline-offset: 2px; border-radius: 16px; }
.deal-progress-body { min-width: 0; height: auto; max-height: none; display: grid; gap: 14px; padding: 20px 18px; }
.deal-progress-status { padding: 0; border: 0; border-radius: 0; background: transparent; }
.deal-progress-status small { color: var(--deal-card-muted); font-size: 11px; font-weight: 900; letter-spacing: .055em; text-transform: uppercase; }
.deal-progress-status h3 { margin: 4px 0; color: var(--deal-card-ink); font-size: clamp(20px, 3.5vw, 26px); line-height: 1.16; }
.deal-progress-status p { margin: 0; color: var(--deal-card-muted); font-size: 16px; line-height: 1.42; }

.deal-progress-details { display: grid; grid-template-columns: 1fr; gap: 9px; margin: 0; }
.deal-progress-details > div { position: relative; min-width: 0; min-height: 50px; height: auto; max-height: none; display: grid; align-content: center; padding: 9px 12px 9px 44px; border: 1px solid rgb(16 35 72 / 8%); border-radius: 12px; background: #fff; color: #102348; box-shadow: var(--deal-tile-elevation); }
.deal-progress-details > div::before { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #102348; font-size: 20px; content: "•"; }
.deal-progress-details > div[data-deal-fact="location"]::before { content: "⌖"; }
.deal-progress-details > div[data-deal-fact="calendar"]::before { content: "□"; }
.deal-progress-details > div[data-deal-fact="time"]::before { content: "◷"; }
.deal-progress-details > div[data-deal-fact="note"]::before { content: "≡"; }
.deal-progress-details > div[data-deal-fact="payment"]::before { content: "▭"; }
.deal-progress-details dt { color: #68778a; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.deal-progress-details dd { min-width: 0; margin: 2px 0 0; overflow-wrap: anywhere; font-size: 15px; font-weight: 650; line-height: 1.35; }

.deal-progress-actions { display: grid; gap: 10px; }
.deal-progress-actions > * { min-width: 0; max-width: 100%; }
.deal-progress-actions button { min-height: 48px; padding: 10px 14px; border: 1px solid #cad5e2; border-radius: 12px; background: #fff; color: #102348; font-size: 16px; font-weight: 800; }
.deal-progress-actions button[data-primary="true"] { border-color: #071b3e; background: #071b3e; color: #fff; box-shadow: var(--deal-control-elevation); }
.deal-progress-actions button[data-tone="danger"] { -webkit-appearance: none; appearance: none; border-color: #cf5a26; color: #96370f; -webkit-text-fill-color: #96370f; background: #fff8f3; }
.deal-progress-actions button[data-tone="danger"]:active { border-color: #b74617; color: #7c2c0c; -webkit-text-fill-color: #7c2c0c; background: #ffe5d5; }
.deal-progress-actions button[data-tone="danger"]:focus-visible { outline: 3px solid rgb(207 90 38 / 34%); outline-offset: 2px; }
.deal-progress-actions button[data-tone="danger"]:disabled { border-color: #c87956; color: #79391f; -webkit-text-fill-color: #79391f; background: #fff1e8; opacity: 1; }
.deal-progress-actions button:disabled { cursor: wait; opacity: .58; }

.deal-payment-choice,
.deal-availability-window { margin: 0; padding: 12px; border: 1px solid #d9e2ec; border-radius: 14px; }
.deal-payment-choice legend,
.deal-availability-window legend { padding: 0 5px; font-size: 12px; font-weight: 850; }
.deal-payment-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border: 0; padding: 0; }
.deal-payment-choice label,
.deal-window-toggle { display: flex; align-items: center; gap: 7px; font-weight: 700; }
.deal-payment-choice label { min-height: 72px; padding: 11px; border: 1px solid rgb(16 35 72 / 8%); border-radius: 12px; background: #fff; color: #102348; box-shadow: var(--deal-tile-elevation); }
.deal-payment-choice label:has(input:checked) { border-color: var(--deal-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--deal-accent) 22%, transparent); }
.deal-payment-choice label > span { display: grid; gap: 2px; }
.deal-payment-choice label small { color: #526176; font-size: 11px; font-weight: 650; }
.deal-payment-assurance { margin: 0; color: var(--deal-card-muted); font-size: 12px; }
.deal-buyer-details,
.deal-availability-list { display: grid; gap: 10px; }
.deal-availability-list h4,
.deal-availability-list p { margin: 0; }
.deal-availability-list p { color: var(--deal-card-muted); font-size: 13px; }
.deal-availability-window > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.deal-availability-window label:not(.deal-window-toggle),
.deal-seller-meetup label,
.deal-cancellation label { display: grid; gap: 5px; color: #526176; font-size: 12px; font-weight: 750; }
.deal-availability-window input,
.deal-availability-window select,
.deal-seller-meetup select,
.deal-seller-meetup textarea,
.deal-cancellation select,
.deal-cancellation textarea { width: 100%; min-height: 42px; box-sizing: border-box; padding: 8px 10px; border: 1px solid #cbd6e3; border-radius: 10px; background: #fff; color: #142033; font: inherit; }
.deal-seller-meetup { display: grid; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.deal-seller-meetup > header { display: grid; gap: 4px; }
.deal-seller-meetup > header h3 { margin: 0; color: var(--deal-card-ink); font-size: 22px; }
.deal-seller-meetup > header p,
.deal-location-authority { margin: 0; color: var(--deal-card-muted); font-size: 13px; line-height: 1.4; }
.deal-meetup-rows { display: grid; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; gap: 8px; }
.deal-meetup-entry-row,
.deal-meetup-row { width: 100%; min-width: 0; max-width: 100%; min-height: 52px; height: auto; max-height: none; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border: 1px solid rgb(16 35 72 / 12%); border-radius: 12px; background: linear-gradient(180deg, #fff 0%, #fbfcff 100%); color: #102348; box-shadow: inset 0 1px rgb(255 255 255 / 90%), 0 9px 20px rgb(15 35 72 / 10%); }
.deal-meetup-entry-row { grid-template-columns: 1fr; }
.deal-meetup-entry-row > span,
.deal-meetup-row small { color: #68778a; font-size: 11px; font-weight: 800; }
.deal-meetup-row > span { min-width: 0; display: grid; gap: 2px; }
.deal-meetup-row strong { overflow-wrap: anywhere; font-size: 15px; }
.deal-meetup-entry-row :is(select, input, textarea),
.deal-meetup-row.is-editing :is(select, input, textarea) { width: 100%; min-width: 0; max-width: 100%; min-height: 44px; height: auto; box-sizing: border-box; border: 1px solid #d7dfeb; border-radius: 9px; padding: 8px 9px; background: #fff; color: #102348; font: inherit; font-size: 16px; line-height: 1.25; }
.deal-meetup-entry-row input[type="date"],
.deal-meetup-row.is-editing input[type="date"] { display: block; inline-size: 100%; min-inline-size: 0; max-inline-size: 100%; }
.deal-meetup-row.is-editing { grid-template-columns: 1fr; }
.deal-meetup-inline-time { min-width: 0; max-width: 100%; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.deal-meetup-inline-time > * { min-width: 0; max-width: 100%; }
.deal-meetup-address-picker { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.deal-meetup-address-picker select { grid-column: 1 / -1; }
.deal-meetup-address-picker small { min-width: 0; color: #526176; font-size: 11px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.deal-meetup-address-picker button { min-height: 34px !important; padding: 6px 9px !important; border-color: #d7dfeb !important; color: #174b91 !important; background: #f5f8fd !important; box-shadow: none !important; font-size: 12px !important; }
.deal-meetup-pencil { width: 44px; min-height: 44px !important; padding: 0 !important; border: 0 !important; background: transparent !important; color: #102348 !important; box-shadow: none !important; font-size: 20px !important; }
.deal-meetup-row-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.deal-text-action { min-height: 36px !important; border: 0 !important; background: transparent !important; color: var(--deal-card-ink) !important; box-shadow: none !important; }
.deal-secondary-button { border-color: #fff !important; background: #fff !important; color: #c54200 !important; }
.deal-seller-meetup > label:first-child,
.deal-seller-meetup > .deal-meetup-time-fields,
.deal-seller-meetup > label:has(textarea),
.deal-seller-meetup > button { grid-column: 1 / -1; }
.deal-seller-meetup button { grid-column: auto; }
.deal-seller-meetup details { grid-column: 1 / -1; padding: 10px; border: 1px solid #d9e2ec; border-radius: 12px; }
.deal-seller-meetup summary,
.deal-counter-meetup summary,
.deal-progress-actions details > summary { cursor: pointer; color: var(--deal-card-ink); font-size: 13px; font-weight: 850; }
.deal-meetup-time-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.deal-meetup-time-fields label { display: grid; gap: 5px; color: #526176; font-size: 12px; font-weight: 750; }
.deal-meetup-time-fields input,
.deal-meetup-time-fields select,
.deal-progress-actions [data-deal-change-location] { width: 100%; min-height: 42px; box-sizing: border-box; padding: 8px 10px; border: 1px solid #cbd6e3; border-radius: 10px; background: #fff; color: #142033; font: inherit; }
.deal-progress-waiting { margin: 0; padding: 12px; border: 1px solid rgb(20 32 51 / 9%); border-radius: 12px; background: rgb(255 255 255 / 94%); color: #3b4c63; box-shadow: var(--deal-tile-elevation); }
.deal-buyer-time-proposal { display: grid; gap: 9px; padding: 12px; border: 1px solid rgb(16 35 72 / 10%); border-radius: 13px; background: rgb(255 255 255 / 94%); color: #102348; box-shadow: var(--deal-tile-elevation); }
.deal-buyer-time-proposal > label { display: grid; gap: 5px; color: #526176; font-size: 12px; font-weight: 750; }
.deal-buyer-time-proposal input,
.deal-buyer-time-proposal select { width: 100%; min-width: 0; max-width: 100%; min-height: 44px; box-sizing: border-box; padding: 8px 9px; border: 1px solid #d7dfeb; border-radius: 9px; background: linear-gradient(180deg, #fff 0%, #fbfcff 100%); color: #102348; box-shadow: inset 0 1px rgb(255 255 255 / 90%), 0 5px 12px rgb(15 35 72 / 8%); font: inherit; font-size: 16px; }
.deal-buyer-time-proposal :is(input, select):focus-visible { outline: 3px solid rgb(15 105 232 / 24%); outline-offset: 1px; border-color: #0f69e8; }
.deal-pickup-soon-warning { margin: 0; padding: 10px 12px; border: 1px solid #ffd09f; border-radius: 10px; background: #fff8ec; color: #7a3510; font-size: 12px; font-weight: 750; line-height: 1.4; }
.deal-locked-location { display: grid; gap: 3px; padding: 10px 12px; border-radius: 10px; background: #eef3f9; }
.deal-locked-location small { color: #68778a; font-size: 11px; font-weight: 800; }
.deal-locked-location strong { color: #102348; font-size: 14px; overflow-wrap: anywhere; }
.deal-pickup-plan-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; border: 1px solid rgb(255 255 255 / 32%); border-radius: 13px; background: rgb(255 255 255 / 12%); }
.deal-pickup-plan-comparison > section { min-width: 0; display: grid; gap: 3px; padding: 11px 12px; border-radius: 10px; background: #fff; color: #102348; box-shadow: inset 0 1px rgb(255 255 255 / 90%), 0 8px 18px rgb(15 35 72 / 12%); }
.deal-pickup-plan-comparison small { color: #68778a; font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.deal-pickup-plan-comparison strong { overflow-wrap: anywhere; font-size: 14px; }
.deal-pickup-plan-comparison span { color: #344357; font-size: 13px; }
.deal-pickup-plan-comparison > p { grid-column: 1 / -1; margin: 0; color: var(--deal-card-ink); font-size: 12px; line-height: 1.35; }

.deal-cancellation { min-width: 0; max-width: 100%; padding: 10px 12px; border: 1px solid #d9784f; border-radius: 12px; background: #fff8f3; box-shadow: var(--deal-tile-elevation); color-scheme: light; }
.deal-cancellation summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: #96370f; -webkit-text-fill-color: #96370f; font-size: 13px; font-weight: 800; }
.deal-progress-current:is(.is-sent, .is-received) .deal-progress-actions .deal-cancellation > summary,
body #messageCenterScreen .deal-progress-current:is(.is-sent, .is-received) .deal-cancellation > summary { color: #96370f; -webkit-text-fill-color: #96370f; }
.deal-cancellation[open] { display: grid; gap: 10px; }
.deal-cancellation p { margin: 0; color: #6d5960; font-size: 12px; }
.deal-cancellation .deal-cancel-confirm { display: flex; grid-template-columns: none; align-items: center; gap: 8px; }
.deal-cancellation .deal-cancel-confirm input { width: auto; min-height: auto; }
.deal-progress-error:empty { display: none; }
.deal-progress-error { margin: 0; color: var(--deal-card-ink); font-size: 13px; font-weight: 700; }

.deal-history-event { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; width: fit-content; max-width: min(76%, 34rem); gap: 10px; margin: 8px 0; padding: 13px 15px; border: 0; border-radius: 13px; background: #f7f9fc; color: #344357; box-shadow: 0 6px 16px rgb(15 35 72 / 9%); }
.deal-history-event > span { width: 9px; height: 9px; margin-top: 7px; border-radius: 999px; background: currentColor; }
.deal-history-event div { min-width: 0; }
.deal-history-event small,
.deal-history-event strong { display: block; }
.deal-history-event small { margin-bottom: 2px; color: inherit; font-size: 9px; font-weight: 900; letter-spacing: .055em; opacity: .82; text-transform: uppercase; }
.deal-history-event strong { color: inherit; font-size: 13px; }
.deal-history-event p { margin: 3px 0 0; color: inherit; font-size: 12px; line-height: 1.35; opacity: .9; }
.deal-history-event time { color: inherit; font-size: 10px; opacity: .78; white-space: nowrap; }
.deal-history-event.is-sent { justify-self: end; border-color: var(--deal-sent-start); background: linear-gradient(145deg, var(--deal-sent-start), var(--deal-sent-end)); color: #fff; box-shadow: var(--deal-card-highlight), var(--deal-card-elevation-sent); }
.deal-history-event.is-received { justify-self: start; border-color: var(--deal-received-start); background: linear-gradient(145deg, var(--deal-received-start), var(--deal-received-end)); color: #fff; box-shadow: var(--deal-card-highlight), var(--deal-card-elevation-received); }
.deal-history-updated { display: inline-flex; margin-left: 7px; border-radius: 999px; padding: 2px 6px; color: currentColor; background: rgb(255 255 255 / 18%); font-size: 9px; font-style: normal; text-transform: uppercase; vertical-align: 1px; }
.deal-history-event.is-system { justify-self: center; max-width: calc(100% - 20px); }
.deal-progress-history > .message-bubble { margin-block: 6px; }
.deal-progress-history > .message-bubble.has-photo .message-photo-link img { max-height: 180px; object-fit: cover; }
.deal-progress-handoff { display: grid; }
.deal-inline-qr { display: grid; grid-template-columns: 1fr; align-items: center; justify-items: center; gap: 12px; padding: 14px; border: 0; border-radius: 14px; background: #fff; box-shadow: var(--deal-tile-elevation); text-align: center; }
.deal-inline-qr > div:first-child { display: grid; gap: 3px; }
.deal-inline-qr small { color: #526176; font-size: 11px; font-weight: 750; }
.deal-inline-qr strong { color: #0e2545; }
.deal-inline-qr p { margin: 0; color: #526176; font-size: 12px; line-height: 1.35; }
.deal-inline-qr button { grid-column: 1 / -1; min-height: 42px; border: 1px solid #0e2545; border-radius: 12px; background: #0e2545; color: #fff; font-weight: 850; }
.deal-inline-qr-code { display: grid; justify-items: center; gap: 5px; }
.deal-inline-qr-code img { width: 144px; height: 144px; border: 6px solid #fff; border-radius: 12px; background: #fff; }
.deal-inline-qr-code code { color: #0e2545; font-size: 16px; font-weight: 850; letter-spacing: .13em; }
.deal-inline-qr-scan { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 16px; background: #0e2545; color: #fff; font-size: 30px; }

.deal-progress-card.is-loading { display: grid; gap: 12px; padding: 18px; }
.deal-progress-skeleton { display: block; height: 14px; border-radius: 999px; background: linear-gradient(90deg, #eee5df, #fff7f0, #eee5df); background-size: 200% 100%; animation: deal-skeleton 1.2s linear infinite; }
.deal-progress-skeleton.is-title { width: 46%; height: 20px; }
.deal-progress-skeleton.is-progress { width: 100%; }
.deal-progress-skeleton.is-copy { width: 72%; }
@keyframes deal-skeleton { to { background-position: -200% 0; } }

.message-bubble.is-local-sender-message { opacity: 1; }
.message-sender-state { display: flex !important; align-items: center; gap: 8px; color: #fff !important; }
.message-sender-state.is-sending::before { width: 8px; height: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 999px; content: ""; animation: deal-sender-spin .8s linear infinite; }
.message-sender-state.is-failed { width: max-content; max-width: 100%; padding: 4px 7px; border: 1px solid rgb(255 255 255 / 55%); border-radius: 9px; background: #7e1f2c; color: #fff !important; }
.message-sender-state button { min-height: 28px; padding: 3px 9px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-weight: 850; }
@keyframes deal-sender-spin { to { transform: rotate(360deg); } }

@media (max-width: 620px) {
  .deal-progress-card { border-radius: 0; }
  .deal-progress-head,
  .deal-progress-head.has-product-image { grid-template-columns: 1fr; gap: 8px; padding: 10px 12px 14px; }
  .deal-progress-profile,
  .deal-progress-product { padding: 6px; border-radius: 12px; }
  .deal-progress-product > img,
  .deal-progress-product-fallback { width: 64px; height: 64px; border-radius: 12px; }
  .deal-progress-profile { grid-template-columns: auto minmax(0, 1fr); justify-items: stretch; align-content: center; background: #f7f9fc; }
  .deal-progress-profile > img,
  .deal-progress-profile > span { width: 40px; height: 40px; border-radius: 999px; }
  .deal-progress-profile > div { display: block; }
  .deal-progress-rail-head { padding: 20px 14px 14px; }
  .deal-progress-steps { padding: 0 9px 20px; }
  .deal-progress-timeline { padding: 2px 8px 14px; }
  .deal-progress-history {
    max-block-size: none;
    overflow-y: visible;
    overscroll-behavior-y: auto;
    scrollbar-gutter: auto;
  }
  .deal-progress-current { width: min(88%, 340px); border-radius: 14px; }
  .deal-progress-body { padding: 17px; }
  .deal-progress-details { grid-template-columns: 1fr; }
  .deal-meetup-address-picker { grid-template-columns: 1fr; }
  .deal-availability-window > div,
  .deal-seller-meetup,
  .deal-meetup-time-fields { grid-template-columns: 1fr; }
  .deal-history-event { max-width: min(82%, 320px); margin-inline: 0; }
}

@media (max-width: 420px) {
  .deal-availability-window > div,
  .deal-seller-meetup,
  .deal-meetup-time-fields { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .deal-progress-current { width: min(calc(100% - 12px), 340px); }
  .deal-payment-choice,
  .deal-meetup-inline-time,
  .deal-pickup-plan-comparison { grid-template-columns: 1fr; }
}

/* The Progress card is the conversation's primary, non-scrolling purchase
   surface. The surrounding dialog may move to reach long forms; the card and
   every canonical action remain in normal document flow. */
body #messageCenterScreen .deal-progress-card {
  border-color: var(--deal-card-line);
  box-shadow: 0 18px 42px rgb(15 35 72 / 20%);
}

body #messageCenterScreen .deal-progress-status {
  background: var(--deal-card-panel);
  box-shadow: inset 0 0 0 1px var(--deal-card-line);
}

body #messageCenterScreen .deal-progress-actions {
  overflow: visible;
}

body #messageCenterScreen .deal-messages-disclosure .deal-messages-disclosure-end {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

body #messageCenterScreen .deal-messages-disclosure .deal-messages-disclosure-end > em:not([hidden]) {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  padding-inline: 7px;
  place-items: center;
  border-radius: 999px;
  background: #1c5fc9;
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

body #messageCenterScreen .deal-messages-disclosure .deal-messages-disclosure-end > em[hidden] {
  display: none;
}
