.shopper-page {
  --chat-panel: #fff;
  --chat-on-panel: #000;
  --chat-header: #166344;
  --chat-on-header: #fff;
  --ink: color-mix(in srgb, var(--chat-on-panel) 86%, var(--chat-panel));
  --muted: color-mix(in srgb, var(--chat-on-panel) 63%, var(--chat-panel));
  --line: color-mix(in srgb, var(--chat-on-panel) 17%, var(--chat-panel));
  --wash: color-mix(in srgb, var(--chat-on-panel) 4%, var(--chat-panel));
  --green: var(--chat-header);
  color: var(--ink);
  font:
    15px/1.45 var(--editor, system-ui),
    sans-serif;
}
.shopper-page [hidden] {
  display: none !important;
}
.shopper-page .buyer-head {
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 18px 24px;
  border-radius: 16px 16px 0 0;
  color: var(--chat-on-header);
  background: var(--chat-header);
  overflow-wrap: anywhere;
}
.shopper-page .buyer-head h1 {
  margin: 0;
  color: inherit;
  line-height: 1.2;
  font-family: inherit;
  font-style: normal;
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.025em;
}
.shopper-page .buyer-head p {
  color: inherit;
  margin: 3px 0 0;
  font-size: 14px;
}
.shopper-page .buyer-head a {
  flex: none;
  color: inherit;
}
.shopper-page .buyer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(225px, 31%);
  align-items: stretch;
  gap: 0;
  height: clamp(450px, 71dvh, 810px);
  padding: 0;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  color: var(--ink);
  background: var(--chat-panel);
}
.shopper-page .buyer-dialog,
.shopper-page .buyer-basket {
  min-height: 0;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: var(--chat-panel);
}
.shopper-page .buyer-log {
  min-width: 0;
  min-height: 0;
  max-height: none;
  padding: 20px;
  overflow: auto;
  overscroll-behavior: contain;
}
.shopper-page .buyer-welcome {
  padding: clamp(16px, 5vh, 50px) 2px;
  max-width: 470px;
}
.shopper-page .buyer-welcome h2 {
  font: 700 clamp(27px, 4vw, 39px) / 1.12 var(--editor, system-ui);
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.shopper-page .buyer-welcome p {
  margin: 10px 0 18px;
}
.shopper-page button.ghost,
.shopper-page .buyer-steps button {
  background: var(--chat-panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.shopper-page .buyer-welcome .ghost {
  border-radius: 22px;
  margin-bottom: 5px;
}
.shopper-page .bubble {
  width: fit-content;
  max-width: 92%;
  background: var(--wash);
  color: var(--ink);
  border: 0;
  border-radius: 13px 13px 13px 3px;
  margin: 0 0 10px;
  padding: 9px 13px;
  overflow-wrap: anywhere;
}
.shopper-page .bubble.you {
  margin-left: auto;
  border-radius: 13px 13px 3px 13px;
  background: color-mix(in srgb, var(--chat-header) 11%, var(--chat-panel));
  color: var(--ink);
}
.shopper-page .bubble small {
  color: var(--muted);
  font: 600 12px/1.4 var(--editor, system-ui);
}
.shopper-page .bubble p {
  margin: 3px 0;
  white-space: pre-line;
  font-size: 15px;
}
.shopper-page .buyer-form {
  display: flex;
  padding: 12px;
  margin: 0;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: end;
  border-top: 1px solid var(--line);
}
.shopper-page .buyer-form textarea,
.shopper-page .buyer-basket input {
  min-width: 0;
  min-height: 42px;
  color: var(--ink);
  background: var(--chat-panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
}
.shopper-page .buyer-form textarea {
  flex: 1;
  resize: none;
  padding: 9px 12px;
}
.shopper-page textarea::placeholder {
  color: var(--muted);
}
.shopper-page .primary {
  color: var(--chat-on-header);
  background: var(--chat-header);
  border: 0;
  border-radius: 9px;
  min-height: 43px;
}
.shopper-page .buyer-form .primary {
  padding: 10px 14px;
}
.shopper-page .buyer-basket {
  border-left: 1px solid var(--line);
  overflow: auto;
  background: var(--wash);
}
.shopper-page .buyer-basket #basket-content {
  padding: 20px 16px;
}
#buyer-lines {
  container-type: inline-size;
}
@container (max-width: 22rem) {
  .shopper-page .buyer-line {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    row-gap: 4px;
  }
  .shopper-page .buyer-thumb {
    grid-row: span 2;
    width: 44px;
    height: 48px;
  }
  .shopper-page .buyer-line > b {
    grid-column: 2;
  }
}
.shopper-page .panel-head h2 {
  font: 700 22px/1.2 var(--editor, system-ui);
  letter-spacing: -0.035em;
  color: var(--ink);
}
.shopper-page .kicker,
.shopper-page .buyer-basket .muted,
.shopper-page .buyer-line small {
  color: var(--muted);
}
.shopper-page .invoice-total {
  border-color: var(--line);
}
.shopper-page .invoice-total strong {
  color: var(--ink);
  font: 700 29px/1.1 var(--editor, system-ui);
}
.shopper-page .buyer-basket .text-link,
.shopper-page #buyer-contact summary {
  color: var(--ink);
}
.shopper-page #buyer-status {
  margin: 0;
  background: var(--chat-panel);
  color: var(--ink);
}
.shopper-page #buyer-status:not(:empty) {
  padding: 6px 12px;
  font-size: 13px;
}
.shopper-page :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}
.offer-carousel {
  width: 100%;
  max-width: 34rem;
  margin: 4px 0 14px;
}
.buyer-choices {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.offer-list {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--chat-panel);
  scroll-snap-align: start;
}
.buyer-offer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
}
.buyer-offer + .buyer-offer {
  border-top: 1px solid var(--line);
}
.buyer-offer a {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.buyer-offer a:hover strong {
  text-decoration: underline;
}
.offer-thumb {
  flex: none;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--wash);
}
.offer-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.offer-thumb .no-photo {
  height: 100%;
  background: var(--wash);
}
.offer-info {
  min-width: 0;
  overflow-wrap: anywhere;
}
.offer-info strong,
.offer-info small {
  display: block;
  line-height: 1.3;
}
.offer-info strong {
  font-size: 15px;
}
.offer-info small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}
.offer-info b {
  color: var(--ink);
  white-space: nowrap;
}
.buyer-offer button {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: var(--chat-header);
  color: var(--chat-on-header);
}
.carousel-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 5px;
}
.carousel-count {
  margin-right: auto;
  font-size: 12px;
  color: var(--muted);
}
.carousel-nav button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 32px;
  border-radius: 20px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--chat-panel);
  color: var(--ink);
}
.carousel-nav button:disabled {
  opacity: 0.38;
}
body.widget .shopper-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: var(--chat-panel);
}
.widget .shopper-page .buyer-head,
.widget .shopper-page .buyer-layout {
  border-radius: 0;
}
.widget .shopper-page .buyer-layout {
  flex: 1;
  min-height: 0;
  height: auto;
}
body.widget .store-footer.bottom-line {
  display: none;
}
@media (max-width: 720px) {
  .shopper-page .buyer-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .shopper-page .buyer-basket {
    position: static;
    box-shadow: none;
    border: 0;
    border-top: 1px solid var(--line);
  }
  .shopper-page .basket-handle {
    height: auto;
    min-height: 46px;
    gap: 4px 12px;
    align-items: center;
    flex-wrap: wrap;
    padding: 8px 12px;
    text-align: left;
    color: var(--ink);
    background: var(--wash);
    border: 0;
    border-radius: 0;
  }
  .shopper-page .basket-handle b {
    margin-left: auto;
  }
  .shopper-page .buyer-basket #basket-content.expanded {
    max-height: 48dvh;
  }
  .shopper-page .buyer-log {
    padding: 14px 12px;
  }
  .shopper-page .buyer-form {
    padding: 8px;
  }
}
.shopper-page .consult-bundle {
  width: min(100%, 33rem);
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--chat-panel);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.shopper-page .consult-bundle h3 {
  margin: 0 0 6px;
  font: 700 16px/1.35 var(--editor, system-ui);
  letter-spacing: normal;
  color: inherit;
}
.consult-bundle ul { margin: 0; padding: 0; list-style: none }
.consult-bundle li, .bundle-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.consult-bundle li a { display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; min-width: 0 }
.consult-bundle li a:hover { text-decoration: underline }
.consult-bundle .offer-thumb { display: block; flex: 0 0 44px; width: 44px; height: 44px; overflow: hidden; border-radius: 6px }
.consult-bundle .offer-thumb img { display: block; width: 100%; height: 100%; object-fit: cover }
.consult-bundle small { display: block; font-size: 13px; color: var(--muted) }
.consult-bundle li b, .bundle-total strong { white-space: nowrap; font-variant-numeric: tabular-nums }
.bundle-total { border: 0; padding-bottom: 3px }
.consult-bundle button.primary { width: 100%; margin-top: 12px }
.consult-question { margin: 2px 0 16px; max-width: 33rem; padding-left: 12px; border-left: 2px solid var(--chat-header) }
.consult-question p { margin: 0; color: var(--ink); overflow-wrap: anywhere }
.consult-replies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px }
.consult-replies:empty { display: none }
.consult-replies button { background: var(--chat-panel); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; min-height: 42px; max-width: 100%; padding: 5px 12px; font: inherit; overflow-wrap: anywhere }
.consult-replies button:hover { border-color: var(--chat-header) }
.consult-sources { margin-top: 7px; color: var(--muted); font-size: 13px }
.consult-sources summary { cursor: pointer }
.shopper-page .consult-sources p { font-size: 13px }
.consult-typing { padding: 6px 12px; color: var(--muted) }
