@media screen and (max-width: 760px) {
  :root {
    --panel-gutter: clamp(14px, 4vw, 22px);
  }

  .btn,
  .btn.small,
  .icon-button {
    min-height: 44px;
  }

  .icon-button {
    width: 44px;
  }

  .btn {
    max-width: 100%;
    text-align: center;
    white-space: normal;
  }

  input:not([type="radio"], [type="checkbox"]),
  select,
  textarea {
    max-width: 100%;
    min-height: 44px;
    font-size: 1rem;
  }

  .search-tools > label {
    flex: 1 1 9rem;
    width: auto;
    min-width: 0;
  }

  .search-tools > .input-search {
    flex-basis: 12rem;
  }

  .search-tools .filter {
    width: 100%;
  }

  .shift {
    padding-block: 16px;
  }

  .checkout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .scan-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .scan-form .btn {
    min-width: 44px;
    padding-inline: 12px;
  }

  .cart-line {
    min-height: 54px;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .cart-line strong,
  .result strong {
    overflow-wrap: anywhere;
  }

  .result {
    min-height: 48px;
  }

  .pay-options label,
  .guide-chapter summary {
    min-height: 44px;
  }

  .pay-options label {
    display: grid;
    place-items: center;
  }

  .wallet-payment {
    min-width: 0;
  }

  .table-wrap {
    max-width: 100%;
    min-width: 0;
    overscroll-behavior-inline: contain;
  }

  .table-wrap > table.mobile-stack,
  .mobile-stack > tbody {
    display: block;
  }

  .mobile-stack > thead {
    position: absolute;
    overflow: hidden;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    white-space: nowrap;
  }

  .mobile-stack > tbody > tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 9px 16px;
    padding: 15px var(--panel-gutter);
    border-top: 1px solid var(--line);
  }

  .mobile-stack > tbody > tr:first-child {
    border-top: 0;
  }

  .mobile-stack > tbody > tr > td {
    display: block;
    min-width: 0;
    padding: 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  .mobile-stack > tbody > tr > td[data-label]:not(.cell-primary, .actions-cell, .selection-cell)::before {
    content: attr(data-label);
    content: attr(data-label) / "";
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 550;
  }

  .mobile-stack > tbody > tr > .cell-primary,
  .mobile-stack > tbody > tr > .full-cell,
  .mobile-stack > tbody > tr > .actions-cell {
    grid-column: 1 / -1;
  }

  .mobile-stack > tbody > tr > .cell-primary {
    font-size: 1rem;
  }

  .mobile-stack > tbody > tr > .cell-primary .cell-meta {
    margin-top: 4px;
  }

  .mobile-stack > tbody > tr > .selection-cell {
    position: absolute;
    inset-block-start: 9px;
    inset-inline-end: var(--panel-gutter);
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
  }

  .mobile-stack > tbody > tr:has(> .selection-cell) {
    position: relative;
  }

  .mobile-stack > tbody > tr:has(> .selection-cell) > .cell-primary {
    min-height: 38px;
    padding-inline-end: 53px;
  }

  .mobile-stack .exposure-checkbox {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
  }

  .mobile-stack .selection-cell .exposure-select {
    width: 20px;
    min-height: 20px;
    margin: 0;
  }

  .mobile-stack > tbody > tr > .actions-cell:not(:has(a, button)) {
    display: none;
  }

  .mobile-stack > tbody > tr > .actions-cell,
  .mobile-stack .actions-cell > .cell-value {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
  }

  .mobile-stack .actions-cell .btn.small {
    padding-inline: 9px;
    font-size: .875rem;
  }

  .mobile-stack .actions-cell .btn.small:not(.primary, .danger) {
    border-color: transparent;
    background: transparent;
  }

  .mobile-stack .actions-cell .btn.small:not(.primary, .danger):hover {
    background: var(--paper);
  }

  .mobile-stack .tag {
    white-space: normal;
  }

  #dialog[open] {
    --dialog-gutter: 16px;
    --dialog-body-padding: max(16px, env(safe-area-inset-bottom));
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: 96vh;
    max-height: min(96dvh, calc(100dvh - env(safe-area-inset-top)));
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-block: 66px 80px;
    border-radius: 6px 6px 0 0;
    border-inline: 0;
    border-bottom: 0;
  }

  .dialog-header {
    gap: 8px;
    padding-block: 10px;
  }

  .dialog-body {
    padding-block-start: 16px;
  }

  .dialog-body .dialog-actions {
    position: sticky;
    bottom: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-inline: calc(-1 * var(--dialog-gutter));
    margin-block-end: calc(-1 * var(--dialog-body-padding));
    padding: 10px var(--dialog-gutter) max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--surface);
  }

  .dialog-body .dialog-actions > :only-child {
    grid-column: 1 / -1;
  }

  #dialog[data-kind="menu"] .drawer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  #dialog[data-kind="menu"] .drawer-link {
    min-height: 46px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding-inline: 8px;
    background: transparent;
  }

  #dialog[data-kind="menu"] .drawer-link:hover,
  #dialog[data-kind="menu"] .drawer-link[aria-current="page"] {
    background: var(--sage-tint);
  }

  .dialog-body .docs-fields > label {
    flex-basis: 100%;
  }

  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-row > :first-child {
    grid-column: 1 / -1;
  }

  .module-setting {
    flex-wrap: wrap;
  }

  .notification {
    bottom: calc(var(--mobile-nav-height, 66px) + env(safe-area-inset-bottom) + 12px);
    inset-inline: 14px;
    width: auto;
    max-width: none;
  }
}

@media screen and (max-width: 390px) {
  .scan-form .btn svg {
    display: none;
  }

  .new-customer,
  .wallet-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-stack > tbody > tr {
    column-gap: 11px;
  }
}
