/* Requester access inherits the approved stone panel; it does not style the shell. */
[data-buyer-access], [data-buyer-track-qr] {
  --ba-wash: var(--buyer-search, #eae1d3);
  --ba-ink: var(--buyer-ink, #23271e);
  --ba-muted: var(--buyer-muted, #50564b);
  --ba-accent: var(--buyer-blue);
  --ba-line: var(--buyer-line, #d6ccba);
  color: var(--ba-ink);
}
[data-buyer-access] [hidden], [data-buyer-track-qr] [hidden] { display: none !important; }
.ba-search {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  min-height: 48px;
  margin: 0;
  border-radius: 16px;
  background: var(--ba-wash);
  color: var(--ba-muted);
}
.ba-lens, .ba-icon {
  display: inline-grid;
  place-items: center;
  height: 44px;
  width: 44px;
  color: inherit;
}
.ba-icon { border: 0; background: transparent; border-radius: 12px; padding: 0; cursor: pointer; }
.ba-search svg, .ba-icon svg, .ba-msg svg { height: 19px; width: 19px; }
.ba-search input {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ba-ink);
  font: inherit;
  line-height: 1.6;
  min-height: 44px;
}
.ba-search input::placeholder { color: var(--ba-muted); opacity: 1; }
.ba-search:focus-within { outline: 2px solid var(--ba-accent); outline-offset: 0; }
.ba-search input:focus, .ba-search input:focus-visible { outline: 0; box-shadow:none; }
.ba-search input { -webkit-appearance: none; appearance: none; }
.ba-search input::-webkit-search-decoration { -webkit-appearance:none; }
.ba-button, .ba-link {
  background: var(--ba-wash);
  color: var(--ba-ink);
  padding: .5em .8em;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  box-sizing: border-box;
  font: inherit;
}
.ba-button { cursor: pointer; }
.ba-button:disabled { cursor: progress; }
.ba-button:focus-visible, .ba-icon:focus-visible, .ba-link:focus-visible { outline: 2px solid var(--ba-accent); outline-offset: -2px; }
.ba-lookup { width: 100%; margin-top: 6px; color: var(--ba-accent); }
/* The access row is a sibling of the scrolling history. Its anchored overlay never reflows the list. */
[data-buyer-access] { position: relative; z-index: 2; }
.ba-anchor { position:relative; }
.ba-open { position:relative; isolation:isolate; }
.ba-open::before {
  content:''; position:absolute; z-index:-1; inset:5px; border-radius:10px;
  background:var(--ba-ink); opacity:0; transition:opacity var(--buyer-overlay-duration,175ms) var(--buyer-overlay-ease,ease-out);
}
.ba-open[aria-expanded="true"] { color:var(--buyer-sidebar,#f5efe5); }
.ba-open[aria-expanded="true"]::before { opacity:1; }
.ba-flyout {
  --ba-arrow:22px;
  --ba-origin:calc(100% - var(--ba-arrow));
  position:absolute; inset-inline-end:0; inset-block-start:calc(100% + 8px);
  inline-size:min(100%, 232px); box-sizing:border-box; isolation:isolate;
  background:var(--buyer-sidebar,#f5efe5); border-radius:var(--buyer-overlay-radius,15px);
  box-shadow:var(--buyer-overlay-shadow,0 5px 18px rgb(36 40 33 / 14%));
  transform-origin:var(--ba-origin) -4px;
}
.ba-flyout:dir(rtl) { --ba-origin:var(--ba-arrow); }
.ba-flyout::before {
  content:''; position:absolute; inline-size:9px; block-size:9px;
  inset-inline-end:calc(var(--ba-arrow) - 4.5px); inset-block-start:-4.5px;
  background:inherit; transform:rotate(45deg); border-start-start-radius:2px;
}
.ba-flyout[data-origin="search"] { --ba-arrow:50%; }
.ba-flyout.ba-enter { animation:ba-arrive var(--buyer-overlay-duration,175ms) var(--buyer-overlay-ease,cubic-bezier(.22,.75,.22,1)) both; }
.ba-flyout[data-closing] { animation:ba-leave 120ms ease-in both; pointer-events:none; }
@keyframes ba-arrive { from {opacity:0; transform:translateY(-3px) scale(.97);} to {opacity:1; transform:none;} }
@keyframes ba-leave { from {opacity:1; transform:none;} to {opacity:0; transform:translateY(-2px) scale(.985);} }
@media (prefers-reduced-motion: reduce) {
  .ba-flyout.ba-enter, .ba-flyout[data-closing] { animation:none; }
  .ba-open::before { transition:none; }
}
.ba-pane { position:relative; padding:6px 8px 8px; overflow:auto; overscroll-behavior:contain; max-block-size:min(52dvh,380px); box-sizing:border-box; }
.ba-pane .ba-icon { flex:none; }
.ba-pane .ba-buttons { display:grid; align-items:stretch; gap:2px; }
.ba-pane .ba-buttons .ba-button { display:flex; align-items:center; text-align:start; gap:10px; width:100%; background:transparent; }
.ba-pane .ba-buttons .ba-button:is(:hover,:focus-visible) { background:var(--ba-wash); }
.ba-pane .ba-buttons svg { inline-size:19px; block-size:19px; flex:none; }
.ba-pane .ba-pane-head { padding-inline-start:8px; }
.ba-pane .ba-pane-head h3 { font-size:.88em; color:var(--ba-muted); }
.ba-pane-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: .5em; }
.ba-pane-head h3 { margin: 0; font-size: inherit; font-weight: 600; }
.ba-buttons { display: flex; align-items: stretch; flex-wrap: wrap; gap: 6px; }
.ba-buttons > .ba-button { flex: 1 1 max-content; }
.ba-msg { display: flex; align-items: center; gap: .45em; margin: .45em 0; color: var(--ba-muted); font-size: .875em; line-height: 1.55; }
.ba-msg:empty { display: none; }
.ba-result-title { display: block; line-height: 1.45; overflow-wrap: anywhere; }
.ba-video { display: block; width: 100%; max-height: 28dvh; background: var(--ba-wash); border-radius: 14px; margin-top: 8px; }
[data-buyer-track-qr] { display: grid; justify-items: center; gap: 8px; }
.ba-qrbox { border-radius: 14px; display: grid; place-items: center; max-width: 100%; min-height: 80px; }
.ba-qrbox svg { background: white; border-radius: 14px; box-sizing: border-box; width: min(100%, 208px); height: auto; }
.ba-code { font-variant-numeric: tabular-nums; font-weight: 600; }
.ba-link { width: 100%; text-align: center; }
