/* Customer identification shares the cashier's typography and quiet surfaces. */
.pdv-customer-search-row {display:flex;align-items:center;gap:8px;}
.pdv-customer-search-row #pdv-customer-search {flex:1;min-width:0;}
.pdv-customer-search-row .sale-customer-add {width:38px;min-width:38px;height:38px;min-height:38px;padding:0;border:1px solid #238647;border-radius:4px;background:#238647;color:#fff;font:400 25px/1 "IBM Plex Sans",sans-serif;}
.pdv-customer-search-row .sale-customer-add:hover:not(:disabled) {background:#2b9c54;}
.pdv-customer-search-row .sale-customer-add:disabled {opacity:.4;cursor:not-allowed;}
.pdv-customer-empty p {margin:0 0 12px;}
.pdv-customer-empty .pdv-customer-empty-action {padding:8px 12px;border:1px solid var(--border);border-radius:4px;color:var(--text);background:var(--surface-input);font-size:13px;}
#modal[open]:has(.pdv-customer-picker) { display: flex; flex-direction: column; width: min(680px, calc(100vw - 40px)); height: min(600px, calc(100dvh - 40px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; background: var(--surface); color: var(--text); }
#modal:has(.pdv-customer-picker) > .modal-head { flex: 0 0 auto; min-height: 52px; padding: 11px 22px; }
#modal:has(.pdv-customer-picker) > .modal-head h2 { font: 500 26px/1.15 "Barlow Condensed", "Arial Narrow", sans-serif; }
#modal:has(.pdv-customer-picker) > .modal-body { display: flex; flex: 1; min-width: 0; min-height: 0; padding: 0; overflow: hidden; }
.pdv-customer-picker { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; color: var(--text); font-family: "IBM Plex Sans", "Segoe UI", sans-serif; }
.pdv-customer-picker .pdv-customer-search-area { flex: 0 0 auto; padding: 16px 22px 0; }
.pdv-customer-picker .pdv-customer-current { display: flex; align-items: baseline; gap: 10px; margin: 0 0 15px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.pdv-customer-picker .pdv-customer-current > span { flex: 0 0 auto; }
.pdv-customer-picker .pdv-customer-current strong { min-width: 0; font-weight: 400; color: var(--text); overflow-wrap: anywhere; }
.pdv-customer-picker label[for="pdv-customer-search"] { display: block; margin: 0 0 7px; font-size: 12px; font-weight: 400; color: var(--muted); }
.pdv-customer-picker #pdv-customer-search { display: block; width: 100%; min-width: 0; height: 42px; margin: 0; padding: 9px 11px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface-input); color: var(--text); box-shadow: none; font: 400 14px/1.4 "IBM Plex Sans", "Segoe UI", sans-serif; }
.pdv-customer-picker .pdv-customer-scopes { display: flex; gap: 22px; margin-top: 10px; }
.pdv-customer-picker .pdv-customer-scopes button { margin: 0; padding: 10px 0 11px; min-height: 38px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font: 400 12px/1.4 "IBM Plex Sans", "Segoe UI", sans-serif; box-shadow: none; }
.pdv-customer-picker .pdv-customer-scopes button[aria-pressed="true"] { border-bottom-color: var(--accent-bright); color: var(--text); font-weight: 500; }
.pdv-customer-picker .pdv-customer-scopes button:hover { color: var(--text); }
.pdv-customer-picker .pdv-customer-results { display: block; flex: 1 1 0; min-height: 0; min-width: 0; max-height: none; margin: 0; padding: 0; border-top: 1px solid var(--border); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scroll-padding-block: 3px; }
.pdv-customer-picker .pdv-customer-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 190px); align-items: center; width: 100%; min-height: 77px; padding: 13px 22px; gap: 24px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; color: var(--text); box-shadow: inset 3px 0 transparent; text-align: left; transition: background-color 100ms; }
.pdv-customer-picker .pdv-customer-row:hover:not(:disabled) { background: var(--surface-hover); }
.pdv-customer-picker .pdv-customer-row[aria-pressed="true"] { background: var(--soft); box-shadow: inset 3px 0 var(--accent-bright); }
.pdv-customer-picker .pdv-customer-row:disabled { opacity: .5; cursor: default; }
.pdv-customer-picker .pdv-customer-identity { display: block; min-width: 0; }
.pdv-customer-picker .pdv-customer-identity > strong { display: block; color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.pdv-customer-picker .pdv-customer-identity > small { display: block; margin: 4px 0 0; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }
.pdv-customer-picker .pdv-customer-identity .pdv-customer-employee { display: inline; }
.pdv-customer-picker .pdv-customer-identity .pdv-customer-assigned { color: var(--green); }
.pdv-customer-picker .pdv-customer-account { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; min-width: 0; color: var(--text); text-align: right; }
.pdv-customer-picker .pdv-customer-account > small { margin: 0; color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.4; }
.pdv-customer-picker .pdv-customer-account > strong { color: var(--text); font: 500 25px/1.15 "Barlow Condensed", "Arial Narrow", sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pdv-customer-picker .pdv-customer-account.is-unavailable > span { max-width: 100%; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.45; overflow-wrap: anywhere; }
.pdv-customer-picker .pdv-customer-empty { margin: 0; padding: 24px 22px; color: var(--muted); font-size: 12px; }
.pdv-customer-picker .pdv-customer-list-status { display: flex; flex: 0 0 auto; justify-content: space-between; align-items: center; gap: 12px; min-height: 32px; padding: 6px 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.pdv-customer-picker #pdv-customer-status { min-width: 0; line-height: 1.4; overflow-wrap: anywhere; }
.pdv-customer-picker .pdv-customer-keys { display: flex; flex-shrink: 0; gap: 3px; }
.pdv-customer-picker kbd { padding: 1px 4px; border: 1px solid var(--border); border-radius: 2px; background: transparent; color: inherit; box-shadow: none; font: 400 10px/1.3 "IBM Plex Sans", "Segoe UI", sans-serif; }
.pdv-customer-picker .pdv-customer-footer { display: flex; flex: 0 0 auto; align-items: center; gap: 18px; padding: 12px 22px; border-top: 1px solid var(--border); background: var(--surface); }
.pdv-customer-picker .pdv-customer-footer button, .pdv-customer-picker .pdv-customer-footer a { margin: 0; padding: 8px 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); box-shadow: none; text-decoration: none; font: 400 12px/1.4 "IBM Plex Sans", "Segoe UI", sans-serif; }
.pdv-customer-picker .pdv-customer-footer button:hover, .pdv-customer-picker .pdv-customer-footer a:hover { color: var(--text); }
.pdv-customer-picker .pdv-customer-footer [data-action="close-modal"] { margin-left: auto; padding: 8px 15px; border: 1px solid var(--border); border-radius: 3px; color: var(--text); }
.pdv-customer-picker .pdv-customer-footer [data-action="close-modal"]:hover { background: var(--surface-hover); }
.pdv-customer-picker :is(button, input, a):focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.pdv-customer-picker .pdv-customer-row:focus-visible { outline-offset: -3px; }
@media (max-height: 680px) {
  .pdv-customer-picker .pdv-customer-search-area { padding-top: 12px; }
  .pdv-customer-picker .pdv-customer-current { margin-bottom: 10px; }
  .pdv-customer-picker .pdv-customer-row { min-height: 70px; padding-block: 10px; }
  .pdv-customer-picker .pdv-customer-footer { padding-block: 9px; }
}
@media (max-width: 600px) {
  #modal[open]:has(.pdv-customer-picker) { width: calc(100vw - 20px); height: min(600px, calc(100dvh - 20px)); max-height: calc(100dvh - 20px); }
  #modal:has(.pdv-customer-picker) > .modal-head { padding-inline: 16px; }
  .pdv-customer-picker .pdv-customer-search-area, .pdv-customer-picker .pdv-customer-list-status, .pdv-customer-picker .pdv-customer-footer { padding-inline: 16px; }
  .pdv-customer-picker .pdv-customer-row { grid-template-columns: minmax(0, 1fr) 124px; padding-inline: 16px; gap: 14px; }
  .pdv-customer-picker .pdv-customer-account > strong { font-size: 23px; }
  .pdv-customer-picker .pdv-customer-footer { flex-wrap: wrap; gap: 6px 14px; }
}
@media (prefers-reduced-motion: reduce) { .pdv-customer-picker .pdv-customer-row { transition: none; } }
@media (forced-colors: active) { .pdv-customer-picker .pdv-customer-row[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -2px; } }
