/* Checkout and app layouts tuned for touch tablets, narrow phones and desktops. */
.app-shell { height: 100dvh; }
.app-viewport, .app-main, .app-main-content, .pos-tab-pane, .pos-terminal-grid,
.pos-catalog-column, .pos-register-column, .dashboard-viewport,
.orders-table-card, .table-responsive { min-width: 0; }
.table-responsive { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

#checkoutModal .pos-checkout-container {
  width: min(1120px, calc(100vw - 24px)) !important;
  max-width: 1120px !important;
  height: min(820px, calc(100dvh - 24px)) !important;
  max-height: calc(100dvh - 24px) !important;
}
#checkoutModal .pos-checkout-grid { grid-template-columns: minmax(295px, 34%) minmax(0, 1fr) !important; }
#checkoutModal .pos-checkout-receipt-col,
#checkoutModal .pos-checkout-terminal-col { min-width: 0; }
#checkoutModal .checkout-actions-row {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: .6rem 0 .25rem !important;
  background: #fff;
  z-index: 10;
  box-shadow: 0 -7px 18px rgba(255,255,255,.94);
}
#checkoutModal .payment-method-card,
#checkoutModal .checkout-status-btn { min-height: 54px; }
#methodSplitFields { min-width: 0; }
.split-payment-heading,
.split-online-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  min-width: 0;
}
.split-payment-heading { font-size: .82rem; color: #0f172a; }
.split-payment-heading > span { font-size: .73rem; color: #475569; }
.split-online-summary {
  border: 1px solid #dce7f3;
  border-radius: 8px;
  background: #fff;
  padding: .6rem .7rem;
  font-size: .78rem;
  color: #475569;
}
#splitOnlineAmount { font-size: 1.03rem; color: #0f172a; overflow-wrap: anywhere; }
#splitUpiQrWrap { min-width: 0; overflow: hidden; }
.split-qr-placeholder {
  min-height: 108px;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: .78rem;
  line-height: 1.45;
  color: #64748b;
  background: #f8fafc;
  border-radius: 8px;
}
#imgSplitUpiQr { display: block; width: min(190px, 100%); height: auto; aspect-ratio: 1; }
#imgSplitUpiQr:not([src]) { display: none !important; }
#dynamicUpiQrContainer img { max-width: 100%; }
.draft-orders-card { margin-bottom: 1rem; }
.draft-orders-card .orders-table-header-bar h3 { margin: 0; font-size: 1.1rem; }
.draft-orders-card .orders-table-header-bar p { margin: .25rem 0 0; color: #64748b; font-size: .78rem; }
.draft-orders-list { padding: .75rem 1rem 1rem; display: grid; gap: .55rem; color: #475569; font-size: .82rem; }
.draft-order-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; border: 1px solid #e2e8f0; border-radius: 9px; padding: .7rem .8rem; background: #fff; }
.draft-order-row strong { color: #0f172a; }
.draft-order-row a { color: #7c1235; font-weight: 700; }

/* Landscape iPad: keep register and catalogue visible together. */
@media (min-width: 901px) and (max-width: 1180px) {
  .pos-register-column { width: clamp(310px, 34vw, 390px) !important; min-width: 310px !important; }
  .pos-catalog-column { min-width: 0; }
  .pos-tiles-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 145px), 1fr)) !important; }
}

@media (min-width: 769px) and (max-width: 1180px) {
  .app-sidebar .sidebar-nav-btn { min-height: 56px; }
  .pos-tile-card .tile-add-btn,
  .pos-product-tile .tile-add-btn,
  .btn-pos-charge,
  .btn-inv-action { min-height: 42px; }
}

/* Portrait iPad: receipt summary stays above a roomy payment terminal. */
@media (max-width: 900px) {
  #ratesTab .rates-body-grid { grid-template-columns: minmax(0, 1fr) !important; }
  #checkoutModal .pos-checkout-container {
    width: min(calc(100vw - 16px), 840px) !important;
    height: calc(100dvh - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
  }
  #checkoutModal .pos-checkout-grid {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    min-height: 0;
  }
  #checkoutModal .pos-checkout-receipt-col {
    flex: 0 0 auto;
    width: 100%;
    max-height: clamp(170px, 24dvh, 260px) !important;
    border-right: 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    overflow-y: auto !important;
  }
  #checkoutModal .pos-checkout-terminal-col {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    overflow-y: auto !important;
  }
  #checkoutModal .checkout-payment-methods-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  #checkoutModal .checkout-status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* Phone: full-height checkout, two-column method cards and reachable action bar. */
@media (max-width: 600px) {
  #checkoutModal.modal-overlay { padding: 0 !important; }
  #checkoutModal .pos-checkout-container {
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: 0 !important;
    margin: 0 !important;
  }
  #checkoutModal .checkout-modal-header { padding: .65rem .75rem !important; }
  #checkoutModal .checkout-modal-header img { max-width: 60px !important; }
  #checkoutModal .checkout-modal-header > div:first-child { min-width: 0; gap: .55rem !important; }
  #checkoutModal .checkout-modal-header > div:first-child > div { min-width: 0; padding-left: .55rem !important; }
  #checkoutModal .checkout-modal-header > div:first-child > div > div:first-child {
    font-size: .75rem !important;
    flex-wrap: wrap;
  }
  #checkoutModal .checkout-modal-header > div:first-child > div > div:last-child { display: none; }
  #checkoutModal .pos-checkout-receipt-col {
    max-height: clamp(145px, 22dvh, 190px) !important;
    padding: .7rem .8rem !important;
    gap: .45rem !important;
  }
  #checkoutModal .pos-checkout-terminal-col { padding: .75rem !important; gap: .65rem !important; }
  #checkoutModal .checkout-payment-methods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #checkoutModal .checkout-status-grid { gap: .35rem !important; }
  #checkoutModal .checkout-status-btn { padding: .5rem .2rem !important; }
  #checkoutModal .checkout-status-btn .status-btn-title { font-size: .69rem !important; }
  #checkoutModal .checkout-status-btn .status-btn-desc { font-size: .58rem !important; }
  #checkoutModal .checkout-actions-row { gap: .45rem !important; }
  #checkoutModal #btnCancelCheckout { flex-basis: 78px !important; padding: .62rem .35rem !important; }
  #checkoutModal #btnConfirmAndPrintInvoice { min-height: 48px; padding: .65rem .55rem !important; font-size: .78rem !important; }
  #methodSplitFields .checkout-row-2 { grid-template-columns: minmax(0, 1fr) !important; }
  #imgSplitUpiQr { width: min(165px, 100%); }
  #splitUpiQrWrap { scroll-margin-bottom: 80px; }
  .dashboard-viewport, .full-view-tab { padding-left: .75rem !important; padding-right: .75rem !important; }
}

@media (max-width: 360px) {
  #checkoutModal .checkout-modal-header img { max-width: 48px !important; }
  #checkoutModal .checkout-modal-header > div:first-child > div > div:first-child { font-size: .68rem !important; }
  #checkoutModal .checkout-status-btn .status-btn-desc { display: none; }
  .pos-tiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (min-width: 769px) and (max-width: 1080px) {
  .app-sidebar { width: 80px; min-width: 80px; }
  .app-sidebar .sidebar-header { padding: .7rem .45rem .5rem !important; align-items: center !important; }
  .app-sidebar .sidebar-brand-logo-img { width: 64px !important; max-width: 64px !important; max-height: 40px !important; }
  .app-sidebar .sidebar-nav-btn .sidebar-btn-label {
    max-width: 76px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.15;
  }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .app-header-banner .banner-top-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .4rem .6rem; }
  .app-header-banner .banner-search-wrap { display: flex; grid-column: 1; grid-row: 1; width: 100%; }
  .app-header-banner .banner-right-group { grid-column: 2; grid-row: 1; gap: .5rem; }
  .app-header-banner .banner-greeting-cluster { display: none; }
  .app-header-banner .banner-rates-ticker { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; }
}
@media (min-width: 769px) and (max-width: 900px) {
  .banner-top-row { gap: .4rem; }
  .banner-controls-row { gap: .3rem; }
  .app-header-banner .banner-rates-ticker { gap: 2px; padding-inline: 5px; flex-wrap: wrap; white-space: normal; overflow-x: visible; border-radius: 14px; }
  .app-header-banner .banner-rate-item { gap: 2px; padding-inline: 1px; }
  .app-header-banner .banner-rate-badge { padding-inline: 2px; }
  .app-header-banner .banner-rate-item strong { font-size: .72rem; }
  .app-header-banner .btn-banner-edit-rates { padding-inline: 7px; }
}

/* Header controls and search remain reachable on every iPad orientation. */
.app-header-banner { overflow: visible; }
.banner-search-wrap { overflow: visible; z-index: 80; }
.favorite-buyers-wrap[hidden], .banner-search-results[hidden] { display: none !important; }
.banner-search-results {
  position: absolute;
  z-index: 100;
  top: calc(100% + 8px);
  left: 0;
  width: min(390px, calc(100vw - 24px));
  max-height: min(440px, 60vh);
  overflow-y: auto;
  padding: .4rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 18px 40px rgba(15,23,42,.22);
}
.banner-search-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  width: 100%;
  min-height: 48px;
  padding: .55rem .7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}
.banner-search-option:hover, .banner-search-option:focus-visible { background: #f8edf0; outline: 2px solid transparent; }
.banner-search-option strong { display: block; font-size: .78rem; line-height: 1.3; }
.banner-search-option small { display: block; margin-top: .12rem; color: #64748b; font-size: .68rem; }
.banner-search-option > span:last-child { color: #7c1235; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.banner-search-empty { padding: .7rem; color: #64748b; font-size: .75rem; }
.buyer-avatar-bubble { padding: 0; }

.invoice-table-row[data-inv], .invoice-details-row { cursor: pointer; }
.invoice-table-row[data-inv]:hover, .invoice-details-row:hover { background: #fff7f8; }
.invoice-table-row[data-inv]:focus-visible, .invoice-details-row:focus-visible { outline: 3px solid #9f1239; outline-offset: -3px; }
.invoice-details-container { max-width: 860px; max-height: min(92dvh, 940px); display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; }
.invoice-details-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid #e2e8f0; background: linear-gradient(135deg,#fff 0%,#fff5f6 100%); }
.invoice-details-eyebrow { margin: 0 0 .35rem; color: #9f1239; font-size: .68rem; font-weight: 800; letter-spacing: .1em; }
.invoice-details-header h2 { margin: 0; font-size: clamp(1.2rem,2vw,1.6rem); color: #111827; }
.invoice-details-header p:last-child { margin: .3rem 0 0; color: #64748b; font-size: .82rem; }
.invoice-details-close { flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #334155; font-size: 1.55rem; cursor: pointer; }
.invoice-details-content { padding: 1.25rem 1.5rem; overflow-y: auto; overscroll-behavior: contain; }
.invoice-details-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.invoice-details-card { padding: 1rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; min-width: 0; }
.invoice-details-card h3 { margin: 0 0 .8rem; font-size: .85rem; color: #334155; }
.invoice-details-facts { display: grid; grid-template-columns: minmax(90px,38%) minmax(0,1fr); gap: .55rem .8rem; margin: 0; font-size: .78rem; }
.invoice-details-facts dt { color: #64748b; }
.invoice-details-facts dd { margin: 0; color: #0f172a; font-weight: 650; overflow-wrap: anywhere; }
.invoice-details-full { grid-column: 1 / -1; }
.invoice-details-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .4rem .8rem; padding: .75rem 0; border-top: 1px solid #e2e8f0; }
.invoice-details-item:first-of-type { border-top: 0; padding-top: 0; }
.invoice-details-item strong { display: block; font-size: .84rem; color: #111827; }
.invoice-details-item small { display: block; margin-top: .25rem; color: #64748b; line-height: 1.45; overflow-wrap: anywhere; }
.invoice-details-amount { font-weight: 800; white-space: nowrap; color: #111827; }
.invoice-details-status { display: inline-flex; align-items: center; padding: .32rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 800; background: #ecfdf5; color: #047857; }
.invoice-details-status.pending { background: #fff7ed; color: #9a3412; }
.invoice-details-error { margin: .7rem 0 0; color: #9a3412; font-size: .76rem; overflow-wrap: anywhere; }
.invoice-details-footer { display: flex; gap: .65rem; justify-content: flex-end; padding: .9rem 1.5rem; border-top: 1px solid #e2e8f0; background: #fff; }
.invoice-details-footer button { min-height: 44px; padding: .6rem .9rem; border-radius: 9px; font-size: .8rem; font-weight: 800; cursor: pointer; }
.invoice-details-retry { border: 1px solid #9f1239; color: #9f1239; background: #fff; }
.invoice-details-primary { border: 1px solid #780e2b; color: #fff; background: #780e2b; }
.invoice-details-footer button[hidden] { display: none; }
@media (max-width: 600px) {
  #invoiceDetailsModal { padding: .5rem; align-items: flex-end; }
  .invoice-details-container { max-height: 96dvh; border-radius: 16px 16px 0 0; }
  .invoice-details-header, .invoice-details-content, .invoice-details-footer { padding-inline: 1rem; }
  .invoice-details-grid { grid-template-columns: 1fr; }
  .invoice-details-full { grid-column: 1; }
  .invoice-details-footer button { flex: 1; }
}

@media (min-width: 1101px) and (max-width: 1600px) {
  .app-header-banner .banner-top-row { display: grid; grid-template-columns: minmax(180px,1fr) auto auto; gap: .4rem .7rem; }
  .app-header-banner .banner-search-wrap { grid-column: 1; grid-row: 1; width: 100%; }
  .app-header-banner .favorite-buyers-wrap { grid-column: 2; grid-row: 1; }
  .app-header-banner .banner-right-group { grid-column: 3; grid-row: 1; }
  .app-header-banner .banner-rates-ticker { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; }
}

@media (max-width: 768px) {
  .app-header-banner .banner-top-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .45rem; }
  .app-header-banner .banner-search-wrap { display: flex; grid-column: 1; grid-row: 1; width: 100%; order: initial; }
  .app-header-banner .banner-right-group { grid-column: 2; grid-row: 1; min-width: 0; }
  .app-header-banner .banner-greeting-cluster { display: none; }
  .app-header-banner .banner-rates-ticker { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; order: initial; }
  .app-header-banner .favorite-buyers-wrap { display: none !important; }
  .dashboard-filter-pills { flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .app-header-banner .banner-top-row { grid-template-columns: 1fr; }
  .app-header-banner .banner-search-wrap { grid-column: 1; grid-row: 1; }
  .app-header-banner .banner-rates-ticker { grid-column: 1; grid-row: 2; }
  .app-header-banner .banner-right-group { grid-column: 1; grid-row: 3; justify-content: flex-end; }
  .app-header-banner .banner-controls-row { width: 100%; justify-content: space-between; }
  .app-header-banner .btn-banner-icon { width: 38px; height: 38px; }
  .dashboard-filter-pills { width: 100%; }
  .filter-date-pill { flex: 1 1 auto; min-width: 0; }
}

/* Invoice and customer records become readable touch cards on iPads and phones. */
@media (max-width: 900px) {
  .invoice-streamlined-table,
  .cust-directory-table,
  .invoice-streamlined-table tbody,
  .cust-directory-table tbody { display: block; width: 100%; table-layout: auto; }
  .invoice-streamlined-table thead,
  .cust-directory-table thead { display: none; }
  .invoice-streamlined-table tbody,
  .cust-directory-table tbody { padding: .55rem; }
  .invoice-streamlined-table tbody tr,
  .cust-directory-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .2rem .75rem;
    margin-bottom: .6rem;
    padding: .65rem .8rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
  }
  .invoice-streamlined-table tbody tr:last-child,
  .cust-directory-table tbody tr:last-child { margin-bottom: 0; }
  .invoice-streamlined-table tbody td,
  .cust-directory-table tbody td {
    display: block;
    width: auto;
    min-width: 0;
    padding: .3rem 0 !important;
    border: 0 !important;
    text-align: left !important;
    overflow-wrap: anywhere;
  }
  .invoice-streamlined-table tbody td::before,
  .cust-directory-table tbody td::before {
    display: block;
    margin-bottom: .13rem;
    color: #64748b;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .invoice-streamlined-table tbody td:nth-child(1)::before { content: 'Invoice'; }
  .invoice-streamlined-table tbody td:nth-child(2)::before { content: 'Customer'; }
  .invoice-streamlined-table tbody td:nth-child(3)::before { content: 'Items'; }
  .invoice-streamlined-table tbody td:nth-child(4)::before { content: 'Total & tax'; }
  .invoice-streamlined-table tbody td:nth-child(5)::before { content: 'Payment status'; }
  .cust-directory-table tbody td:nth-child(1)::before { content: 'Customer'; }
  .cust-directory-table tbody td:nth-child(2)::before { content: 'Contact'; }
  .cust-directory-table tbody td:nth-child(3)::before { content: 'Location'; }
  .cust-directory-table tbody td:nth-child(4)::before { content: 'PAN'; }
  .cust-directory-table tbody td:nth-child(5)::before { content: 'Orders'; }
  .invoice-streamlined-table tbody td:last-child,
  .cust-directory-table tbody td:last-child { grid-column: 1 / -1; border-top: 1px solid #e2e8f0 !important; margin-top: .3rem; padding-top: .6rem !important; }
  .invoice-streamlined-table tbody td:last-child::before,
  .cust-directory-table tbody td:last-child::before,
  .invoice-streamlined-table tbody td[colspan]::before,
  .cust-directory-table tbody td[colspan]::before { display: none; }
  .invoice-streamlined-table tbody td[colspan],
  .cust-directory-table tbody td[colspan] { grid-column: 1 / -1; border-top: 0 !important; }
  .invoice-streamlined-table .inv-actions-cluster,
  .cust-directory-table tbody td:last-child > div { justify-content: flex-start !important; flex-wrap: wrap; }
  .invoice-streamlined-table .btn-inv-action,
  .cust-directory-table tbody td:last-child button { min-height: 38px; }
  .orders-table-card .orders-table-header-bar { flex-wrap: wrap; gap: .75rem; }
  .orders-table-card .orders-table-header-bar > div { min-width: 0; max-width: 100%; }
}
@media (max-width: 520px) {
  .invoice-streamlined-table tbody tr,
  .cust-directory-table tbody tr { grid-template-columns: minmax(0, 1fr); }
  .invoice-streamlined-table tbody td:last-child,
  .cust-directory-table tbody td:last-child { grid-column: 1; }
}
@media (max-width: 768px) {
  .app-sidebar.mobile-open { width: min(260px, 85vw); min-width: min(260px, 85vw); }
  .app-sidebar.mobile-open .sidebar-nav-btn { flex-direction: row; justify-content: flex-start; text-align: left; padding: .58rem .85rem; }
  .app-sidebar.mobile-open .sidebar-nav-btn .sidebar-btn-label { max-width: none; font-size: .85rem; }
}
/* Status messages must never block POS actions on the iPad dock. */
.toast-container .toast { pointer-events: none; }

/* POS header: readable rates, clear actions and a compact phone brand. */
.banner-mobile-brand { display: none; }
.app-header-banner {
  padding: .7rem 1rem .75rem;
  background: linear-gradient(115deg, #3b0a19 0%, #64112a 58%, #4b0b1d 100%);
  animation: none;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 5px 18px rgba(65, 9, 27, .18);
}
.app-header-banner::before,
.app-header-banner::after { animation: none; }
.app-header-banner .banner-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem .9rem;
}
.app-header-banner .banner-search-wrap {
  grid-column: 1;
  grid-row: 1;
  width: min(100%, 580px);
  min-width: 0;
  min-height: 42px;
  padding: .55rem .85rem;
  border-radius: 11px;
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.25);
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}
.app-header-banner .banner-search-wrap:focus-within {
  width: min(100%, 580px);
  background: rgba(255,255,255,.2);
  outline: 2px solid #f4d38a;
  outline-offset: 2px;
}
.app-header-banner .banner-search-input { font-size: .85rem; min-width: 0; }
.app-header-banner .banner-search-input::placeholder { color: rgba(255,255,255,.77); }
.app-header-banner .banner-right-group { grid-column: 2; grid-row: 1; gap: .8rem; min-width: 0; }
.app-header-banner .banner-greeting-title { font-size: 1.05rem; }
.app-header-banner .banner-controls-row { gap: .42rem; }
.app-header-banner .btn-banner-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: none;
}
.app-header-banner .btn-banner-icon:hover { transform: translateY(-1px); }
.app-header-banner .btn-banner-icon:focus-visible,
.app-header-banner .btn-banner-edit-rates:focus-visible {
  outline: 2px solid #f4d38a;
  outline-offset: 2px;
}
.app-header-banner #btnOpenNotifications svg { animation: none; }
.app-header-banner .banner-rates-ticker {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  gap: .45rem;
  padding: .3rem .45rem;
  border-radius: 12px;
  background: rgba(20, 3, 11, .34);
  border-color: rgba(255,255,255,.2);
  box-shadow: none;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
}
.app-header-banner .banner-ticker-divider { display: none; }
.app-header-banner .live-pulse-badge { flex: 0 0 auto; }
.app-header-banner .banner-rate-item {
  min-height: 30px;
  padding: .25rem .48rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}
.app-header-banner .banner-rate-badge {
  padding: 0;
  border: 0;
  background: transparent;
  color: #f5d583;
  font-size: .71rem;
}
.app-header-banner .banner-rate-item strong { font-size: .79rem; text-shadow: none; }
.app-header-banner .btn-banner-edit-rates {
  margin-left: auto;
  flex: 0 0 auto;
  min-height: 30px;
  padding: .3rem .65rem;
  border-radius: 8px;
  background: #f5d583;
  border: 1px solid #f5d583;
  color: #43101f;
  box-shadow: none;
}
.app-header-banner .btn-banner-edit-rates svg { stroke: #43101f; }
.app-header-banner .btn-banner-edit-rates:hover { background: #ffe5a2; color: #43101f; transform: none; box-shadow: none; }
.app-header-banner .favorite-buyers-wrap { grid-column: 2; grid-row: 2; justify-self: end; }

@media (max-width: 1100px) {
  .app-header-banner .banner-greeting-cluster,
  .app-header-banner .favorite-buyers-wrap { display: none !important; }
  .app-header-banner .banner-rates-ticker { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .app-header-banner { padding: .65rem .8rem .75rem; }
  .app-header-banner .banner-top-row { grid-template-columns: minmax(0,1fr) auto; gap: .55rem; }
  .app-header-banner .banner-mobile-brand {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .03em;
    white-space: nowrap;
  }
  .banner-mobile-brand img {
    width: 70px;
    height: 30px;
    padding: .15rem .3rem;
    border-radius: 7px;
    background: #fff;
    object-fit: contain;
  }
  .app-header-banner .banner-right-group { grid-column: 2; grid-row: 1; }
  .app-header-banner .banner-search-wrap { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .app-header-banner .banner-rates-ticker { grid-column: 1 / -1; grid-row: 3; width: 100%; max-width: 100%; }
  .app-header-banner .btn-banner-icon { width: 39px; height: 39px; flex-basis: 39px; }
}
@media (max-width: 540px) {
  .app-header-banner .banner-top-row { grid-template-columns: minmax(0,1fr) auto; }
  .app-header-banner .banner-right-group { grid-column: 2; grid-row: 1; justify-self: end; }
  .app-header-banner .banner-controls-row { width: auto; gap: .3rem; }
  .app-header-banner .btn-banner-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .app-header-banner .banner-rates-ticker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .35rem;
    overflow: visible;
    white-space: normal;
    padding: .45rem;
  }
  .app-header-banner .live-pulse-badge { grid-column: 1; grid-row: 1; justify-self: start; }
  .app-header-banner .btn-banner-edit-rates { grid-column: 2; grid-row: 1; justify-self: end; }
  .app-header-banner .banner-rate-item { min-width: 0; justify-content: space-between; gap: .2rem; }
  .app-header-banner .banner-rate-item strong { font-size: .74rem; }
}
@media (max-width: 360px) {
  .app-header-banner .banner-mobile-brand { grid-column: 1 / -1; }
  .app-header-banner .banner-right-group { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .app-header-banner .banner-controls-row { width: 100%; justify-content: space-between; }
  .app-header-banner .banner-search-wrap { grid-row: 3; }
  .app-header-banner .banner-rates-ticker { grid-row: 4; }
  .app-header-banner .banner-rate-item { padding-inline: .3rem; }
  .app-header-banner .banner-rate-item strong { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  .app-header-banner *, .app-header-banner::before, .app-header-banner::after { animation-duration: .01ms !important; }
}
