/* Buyoji POS responsive refinement v2 */
@media (max-width: 1099px) {
  body.bill-open { overflow: hidden; }
  .premium-billing {
    display:flex!important; flex-direction:column!important;
    max-width:none!important;
  }
  .premium-bill-head { flex:0 0 auto; }
  .premium-bill-items-wrap { flex:1 1 auto!important; min-height:0!important; }
  .premium-bill-footer { flex:0 0 auto!important; }
  .premium-mobile-cart {
    min-height:52px; bottom:max(12px,env(safe-area-inset-bottom));
    border:0!important;
  }
  .category-scroll,.pos-summary-strip {
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .category-scroll::-webkit-scrollbar,.pos-summary-strip::-webkit-scrollbar { display:none; }
}

@media (max-width: 760px) {
  .content { padding:8px!important; }
  .topbar { padding:0 10px!important; }
  .topbar h1 { font-size:19px!important; }
  .menu-button { width:44px!important; height:44px!important; flex:0 0 44px; }
  .signed-pin-link { min-height:32px; display:flex!important; align-items:center; }
  .logout-button { width:44px!important; height:44px!important; }

  .shift-command { border-radius:16px!important; }
  .ghost-button,.open-shift-button { min-height:44px!important; }
  .field-with-label { min-height:48px!important; }
  .field-with-label input { min-height:24px!important; }
  .pos-summary-strip {
    position:relative; gap:7px!important; padding:5px 8px!important;
    mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 28px),transparent 100%);
  }
  .summary-chip,.summary-link { min-height:36px; display:flex; align-items:center; }
  .summary-link { margin-left:0!important; padding-right:24px!important; }
}

@media (max-width: 760px) {
  .catalog-panel { min-height:560px!important; }
  .catalog-search { gap:8px!important; }
  .search-control,.search-add-button { height:48px!important; }
  .search-control input { min-height:44px!important; font-size:14px!important; }
  .search-shortcut { display:none!important; }
  .search-add-button { min-width:64px; padding:0 15px!important; }
  .category-toolbar {
    position:relative; gap:6px!important; overflow:hidden;
  }
  .category-scroll {
    padding-right:28px;
    mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 30px),transparent 100%);
  }
  .category-pill,.category-reset {
    min-height:44px!important; padding:0 14px!important; font-size:10px!important;
  }
  .category-reset { min-width:58px; }
  .premium-product-card { min-height:132px!important; }
  .premium-product-card .quick-add {
    width:32px!important; height:32px!important; border-radius:10px!important;
  }
}

@media (max-width: 760px) {
  .premium-billing {
    inset:0!important; width:100vw!important; height:100dvh!important;
    border-radius:0!important; transform:translateY(105%)!important;
    padding-top:env(safe-area-inset-top);
    padding-bottom:env(safe-area-inset-bottom);
  }
  .premium-billing.open { transform:translateY(0)!important; }
  .premium-bill-head {
    min-height:70px!important; padding:10px 12px!important;
    border-radius:0!important; border-bottom:1px solid var(--pos-line);
  }
  .bill-title h2 { font-size:20px!important; }
  .customer-button,.clear-bill,.bill-close {
    min-width:44px!important; min-height:44px!important;
  }
  .bill-close { border-radius:12px!important; }
  .premium-bill-items-wrap { padding:7px 10px!important; }
  .bill-columns { display:none!important; }
  .bill-item {
    min-height:76px!important; padding:9px 7px!important;
    grid-template-columns:minmax(0,1fr) 112px 84px!important;
  }
}

@media (max-width: 760px) {
  .bill-item-name strong { font-size:12px!important; line-height:1.25; }
  .bill-item-name small { font-size:9px!important; }
  .bill-item-name .remove {
    min-height:32px!important; padding:6px 2px!important; font-size:9px!important;
  }
  .qty-control { min-height:44px!important; }
  .qty-control button {
    width:44px!important; height:44px!important; font-size:18px!important;
  }
  .qty-control b { min-width:24px; text-align:center; font-size:12px; }
  .line-total { font-size:11px!important; }
  .premium-bill-footer { padding:10px 12px 12px!important; }
  .premium-bill-footer .summary-row { min-height:30px; font-size:11px!important; }
  .discount-input { height:44px!important; min-width:126px!important; }
  .discount-input input { height:40px!important; font-size:13px!important; }
  .premium-grand-total { min-height:58px; }
  .premium-grand-total>strong { font-size:27px!important; }
}

@media (max-width: 760px) {
  .premium-payment-tabs button { height:46px!important; font-size:11px!important; }
  .premium-cash-row input,.exact-button { height:46px!important; }
  .premium-cash-row .due-box { min-height:46px; }
  .split-payment-grid input { height:44px!important; }
  .split-fill-card { min-height:42px!important; }
  .hold-button,.charge-button { height:50px!important; font-size:12px!important; }
  .premium-checkout-actions { grid-template-columns:108px minmax(0,1fr)!important; }
  .premium-mobile-cart {
    left:10px!important; right:10px!important;
    min-height:56px!important; padding:12px 16px!important; border-radius:17px!important;
  }
  .modal-card { max-height:calc(100dvh - 24px); overflow:auto; }
  .modal input,.modal textarea,.modal select,.modal button.primary {
    min-height:44px;
  }
}

/* Mobile management pages: turn wide desktop rows into readable cards. */
@media (max-width: 760px) {
  .management-page,.inventory-page,.report-page { padding-bottom:20px; }
  .management-head,.report-head.inventory-head {
    align-items:stretch!important; gap:10px!important;
  }
  .management-head h2,.inventory-head h2 { font-size:21px!important; }
  .management-head p { font-size:10px!important; line-height:1.45; }
  .management-primary,.inventory-receive-button { min-height:44px; display:grid; place-items:center; }
  .history-summary { align-self:flex-start; }
  .history-filters {
    grid-template-columns:1fr!important; gap:8px!important;
  }
  .history-filters input,.history-filters select,.history-filter-button {
    width:100%!important; min-height:46px!important;
  }
  .sales-history-head,.shift-history-head,.customer-table-head { display:none!important; }
}

@media (max-width: 760px) {
  .sales-history-card,.shift-history-card,.customer-table-card {
    background:transparent!important; border:0!important; box-shadow:none!important;
    display:grid; gap:9px; overflow:visible!important;
  }
  .sales-history-row,.shift-history-row,.customer-table-row {
    min-width:0!important; width:100%!important;
    display:grid!important; grid-template-columns:1fr 1fr!important;
    gap:10px 12px!important; padding:13px!important;
    border:1px solid rgba(18,63,49,.08)!important;
    border-radius:16px!important; background:#fff!important;
    box-shadow:var(--pos-shadow-soft);
  }
  .sales-history-row>span,.shift-history-row>span,.customer-table-row>span {
    white-space:normal!important; overflow:visible!important; min-width:0;
    font-size:10px!important;
  }
  .sales-history-row>span::before,.shift-history-row>span::before,.customer-table-row>span::before {
    display:block; margin-bottom:4px; color:#81958d;
    font-size:7px; font-weight:950; letter-spacing:.1em; text-transform:uppercase;
  }
}

@media (max-width: 760px) {
  .sales-history-row>span:nth-child(1)::before { content:"Receipt"; }
  .sales-history-row>span:nth-child(2)::before { content:"Date / cashier"; }
  .sales-history-row>span:nth-child(3)::before { content:"Customer"; }
  .sales-history-row>span:nth-child(4)::before { content:"Payment"; }
  .sales-history-row>span:nth-child(5)::before { content:"Status"; }
  .sales-history-row>span:nth-child(6)::before { content:"Total"; }
  .sales-history-row .history-total { font-size:16px!important; align-self:end; }

  .shift-history-row>span:nth-child(1)::before { content:"Cashier / shift"; }
  .shift-history-row>span:nth-child(2)::before { content:"Opened"; }
  .shift-history-row>span:nth-child(3)::before { content:"Sales"; }
  .shift-history-row>span:nth-child(4)::before { content:"Expected cash"; }
  .shift-history-row>span:nth-child(5)::before { content:"Counted"; }
  .shift-history-row>span:nth-child(6)::before { content:"Difference"; }
  .shift-history-row>span:nth-child(1),.shift-history-row>span:nth-child(6) {
    grid-column:1/-1;
  }
}

@media (max-width: 760px) {
  .customer-search-bar { flex-wrap:wrap; padding:10px!important; }
  .customer-search-bar input {
    flex:1 0 100%!important; width:100%!important; height:46px!important; font-size:13px!important;
  }
  .customer-search-bar button,.customer-search-bar a {
    min-height:44px; flex:1; display:grid; place-items:center;
  }
  .customer-table-row>span:nth-child(1)::before { content:"Customer"; }
  .customer-table-row>span:nth-child(2)::before { content:"Phone"; }
  .customer-table-row>span:nth-child(3)::before { content:"Email"; }
  .customer-table-row>span:nth-child(4)::before { content:"Created"; }
  .customer-table-row>span:nth-child(5)::before { content:""; }
  .customer-table-row>span:nth-child(1) { grid-column:1/-1; }
  .customer-table-row>span:nth-child(3) { overflow-wrap:anywhere!important; }
  .customer-table-row>span:nth-child(5) {
    grid-column:1/-1; min-height:40px; display:flex; align-items:center; justify-content:flex-end;
    color:var(--pos-green); font-weight:900;
  }
}

/* Inventory cards on phones: no horizontal table scrolling. */
@media (max-width: 760px) {
  .inventory-head-actions { display:grid!important; grid-template-columns:1fr 1fr; gap:8px!important; }
  .inventory-head-actions .inventory-search { grid-column:1/-1; }
  .inventory-head-actions .attention-pill { min-height:44px; display:grid; place-items:center; }
  .inventory-head-actions .soft { min-height:44px; display:grid; place-items:center; }
  .inventory-table-card { padding:0!important; background:transparent!important; box-shadow:none!important; }
  .inventory-table-card .table-scroll { overflow:visible!important; }
  .inventory-table,.inventory-table tbody { display:block!important; width:100%!important; }
  .inventory-table thead { display:none!important; }
  .inventory-table tr {
    display:grid!important; grid-template-columns:1fr 1fr!important;
    gap:10px 12px; margin-bottom:9px; padding:13px;
    border:1px solid rgba(18,63,49,.08); border-radius:16px; background:#fff;
    box-shadow:var(--pos-shadow-soft);
  }
  .inventory-table td {
    display:block!important; padding:0!important; border:0!important; min-width:0!important;
  }
}

@media (max-width: 760px) {
  .inventory-table td::before {
    display:block; margin-bottom:4px; color:#81958d;
    font-size:7px; font-weight:950; letter-spacing:.1em; text-transform:uppercase;
  }
  .inventory-table td:nth-child(1) { grid-column:1/-1; }
  .inventory-table td:nth-child(1)::before { content:"Product"; }
  .inventory-table td:nth-child(2)::before { content:"SKU / barcode"; }
  .inventory-table td:nth-child(3)::before { content:"Stock"; }
  .inventory-table td:nth-child(4)::before { content:"Reorder"; }
  .inventory-table td:nth-child(5)::before { content:"Status"; }
  .inventory-table td:nth-child(6) { grid-column:1/-1; }
  .inventory-table td:nth-child(6)::before { content:"Adjust stock"; }
  .stock-number { font-size:19px!important; }
  .stock-adjust-form {
    min-width:0!important; width:100%!important;
    grid-template-columns:1fr 1fr!important; gap:8px!important;
    padding-top:4px;
  }
}

@media (max-width: 760px) {
  .stock-adjust-form select,.stock-adjust-form input,.stock-adjust-form button {
    min-height:44px!important; font-size:11px!important;
  }
  .stock-adjust-form input[name="note"] { grid-column:1/-1!important; }
  .stock-adjust-form button { grid-column:1/-1; }
  .movement-card { border-radius:16px!important; }
  .movement-row { min-height:56px; }
}

/* Reports: compact cards instead of squeezed tables. */
@media (max-width: 760px) {
  .premium-report-kpis { grid-template-columns:1fr 1fr!important; gap:8px!important; }
  .premium-report-kpis>div { padding:12px!important; border-radius:15px!important; }
  .premium-report-kpis strong { font-size:16px!important; }
  .sales-table { overflow:visible!important; background:transparent!important; box-shadow:none!important; }
  .sales-table .section-title { padding:8px 0!important; }
  .sales-table table,.sales-table tbody { display:block!important; width:100%!important; }
  .sales-table thead { display:none!important; }
  .sales-table tr {
    display:grid!important; grid-template-columns:1fr 1fr!important; gap:9px 12px;
    margin-bottom:9px; padding:12px; border:1px solid rgba(18,63,49,.08);
    border-radius:16px; background:#fff; box-shadow:var(--pos-shadow-soft);
  }
}

@media (max-width: 760px) {
  .sales-table td { display:block!important; padding:0!important; border:0!important; min-width:0; }
  .sales-table td::before {
    display:block; margin-bottom:3px; color:#81958d;
    font-size:7px; font-weight:950; letter-spacing:.09em; text-transform:uppercase;
  }
  .sales-table td:nth-child(1)::before { content:"Receipt"; }
  .sales-table td:nth-child(2)::before { content:"Date"; }
  .sales-table td:nth-child(3)::before { content:"Cashier"; }
  .sales-table td:nth-child(4)::before { content:"Customer"; }
  .sales-table td:nth-child(5)::before { content:"Status"; }
  .sales-table td:nth-child(6)::before { content:"Payment"; }
  .sales-table td:nth-child(7)::before { content:"Total"; }
  .sales-table td:nth-child(1),.sales-table td:nth-child(7) { grid-column:1/-1; }
  .sales-table td:nth-child(7) strong { font-size:16px; }
  .top-products-card { border-radius:16px!important; }
}

/* Receiving history becomes card-based on phones. */
@media (max-width: 760px) {
  .receive-meta-grid input,.receive-line input,.receive-line select { height:44px!important; font-size:11px!important; }
  .receive-line { grid-template-columns:1fr 1fr 44px!important; }
  .receive-remove { width:44px!important; height:44px!important; }
  .receive-submit { min-height:48px!important; }
  .receive-history { overflow:visible!important; background:transparent!important; box-shadow:none!important; }
  .receive-history-head { border-radius:16px!important; margin-bottom:8px!important; }
  .receive-history-list { min-width:0!important; display:grid; gap:8px; }
  .receive-history-row {
    min-width:0!important; display:grid!important; grid-template-columns:1fr 1fr!important;
    gap:10px 12px!important; padding:13px!important; border:1px solid rgba(18,63,49,.08)!important;
    border-radius:16px; background:#fff; box-shadow:var(--pos-shadow-soft);
  }
  .receive-history-row>span:last-child { grid-column:1/-1; text-align:right; font-weight:900; }
  .empty-state-card { min-width:0!important; }
}

@media (max-width: 390px) {
  .content { padding:6px!important; }
  .premium-product-card { min-height:126px!important; }
  .premium-product-image { width:46px!important; height:46px!important; }
  .bill-item { grid-template-columns:minmax(0,1fr) 104px 76px!important; }
  .qty-control button { width:40px!important; }
  .premium-report-kpis { grid-template-columns:1fr!important; }
  .sales-history-row,.shift-history-row,.customer-table-row {
    grid-template-columns:1fr!important;
  }
  .sales-history-row>span,.shift-history-row>span,.customer-table-row>span {
    grid-column:1!important;
  }
  .inventory-table tr { grid-template-columns:1fr 1fr!important; }
}

@supports (height: 100dvh) {
  @media (max-width:760px) {
    .premium-billing { height:100dvh!important; }
  }
}


/* Unified line-icon treatment for the premium shell. */
.nav-icon svg,.logout-button svg{
  width:20px;height:20px;display:block;fill:none;stroke:currentColor;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.logout-button svg{width:17px;height:17px}
.side-nav a.active .nav-icon{opacity:1}


/* Sign-in and refund desk refinements. */
.login-card form input{
  min-height:46px;
}
.login-card input[name="password"]{
  text-align:center;
  font-size:24px;
  font-weight:900;
  letter-spacing:.42em;
  padding-left:calc(12px + .42em);
}
.login-card form .primary{
  min-height:48px;
}
.refund-balance-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  margin:0 0 12px;
}
.refund-balance-grid>div{
  padding:10px;
  border:1px solid var(--pos-line);
  border-radius:12px;
  background:#f8faf8;
}
.refund-balance-grid small,.refund-balance-grid strong{
  display:block;
}
.refund-balance-grid small{
  font-size:7px;
  color:#81958d;
  font-weight:950;
  letter-spacing:.08em;
}
.refund-balance-grid strong{
  margin-top:4px;
  font-size:13px;
}
.refund-balance-grid .available{
  background:#eaf3ee;
  border-color:#cadfd5;
}
.receipt-actions button,.receipt-actions a{
  min-height:44px;
  display:inline-grid;
  place-items:center;
}
@media(max-width:760px){
  .refund-balance-grid{grid-template-columns:1fr}
  .return-item-row{grid-template-columns:1fr!important}
  .return-item-row input,.return-options input,.return-options select,.full-refund-form select{
    min-height:44px!important;
  }
  .return-options button,.full-refund-form button{min-height:46px!important}
  .receipt-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
  .receipt-actions .primary{grid-column:1/-1}
}

/* Final premium inventory/touch polish */
.stock-adjust-disclosure>summary{display:none}
@media(max-width:760px){
  .signed-pin-link{min-height:44px!important}
  .summary-link{min-height:44px!important}
  .customer-button,.clear-bill,.bill-close{min-width:44px!important;min-height:44px!important}
  .stock-adjust-disclosure>summary{
    display:flex;align-items:center;justify-content:center;min-height:44px;
    border:1px solid #cfe0d8;border-radius:11px;background:#f1f7f4;
    color:var(--pos-green);font-size:10px;font-weight:900;cursor:pointer;list-style:none
  }
  .stock-adjust-disclosure>summary::-webkit-details-marker{display:none}
  .stock-adjust-disclosure[open]>summary{margin-bottom:8px}
}

@media(max-width:760px){
  .stock-adjust-disclosure .stock-adjust-form{
    padding:9px!important;border:1px solid var(--pos-line);
    border-radius:12px;background:#fafcfb
  }
  .settings-form label:has(input[type="checkbox"]),.form-card label:has(input[type="checkbox"]){
    min-height:44px;display:flex;align-items:center;gap:10px
  }
  .settings-form input[type="checkbox"],.form-card input[type="checkbox"]{
    width:20px;height:20px
  }
}

@media(max-width:760px){
  .pos-summary-strip{
    display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
    overflow:visible!important;mask-image:none!important
  }
  .summary-chip{min-width:0!important}
  .summary-link{
    grid-column:1/-1;width:100%!important;margin:0!important;padding:0 2px!important;
    justify-content:flex-end!important
  }
}
@media(max-width:430px){
  .pos-summary-strip{grid-template-columns:1fr 1fr!important}
}

@media(max-width:760px){
  .settings-form input:not([type="checkbox"]),
  .settings-form select,.settings-form textarea{
    min-height:44px!important;font-size:11px!important
  }
  .settings-form .form-actions button{min-height:46px!important}
}


/* Final narrow-phone and cashier touch refinements. */
@media (max-width:760px){
  .receive-line>*{min-width:0!important}
  .receive-product,.receive-product select{min-width:0!important;max-width:100%;width:100%}
  .bill-item-name .remove{
    min-height:44px!important;min-width:44px!important;
    display:inline-flex!important;align-items:center!important;
  }
  .sales-table td:first-child a{
    min-height:40px;display:inline-flex;align-items:center;
  }
}
@media (max-width:390px){
  .bill-item{grid-template-columns:minmax(0,1fr) 112px 72px!important}
  .qty-control button{width:44px!important}
  .receive-line{gap:6px!important}
}


/* Short desktop register: preserve checkout visibility while reclaiming cart space. */
@media (min-width:1100px) and (max-height:700px){
  .premium-bill-footer{padding:6px 10px!important}
  .totals-block{gap:1px!important}
  .premium-bill-footer .summary-row{line-height:1.15!important}
  .discount-input{height:28px!important}
  .premium-grand-total{margin-top:1px!important;padding-top:4px!important}
  .premium-grand-total>strong{font-size:23px!important}
  .payment-section{margin-top:4px!important}
  .payment-label{margin-bottom:2px!important}
  .premium-cash-row{margin-top:4px!important}
  .premium-cash-row input,.exact-button{height:34px!important}
  .premium-cash-row .due-box{padding:5px 8px!important}
  .premium-checkout-actions{margin-top:5px!important}
  .hold-button,.charge-button{height:40px!important}
  .checkout-error{margin-top:2px!important;min-height:8px!important}
}


/* Cross-page UX refinement: September 2026 visual audit */
.empty-state-card{
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  gap:5px;min-height:96px;padding:18px;border:1px solid rgba(18,63,49,.08);
  border-radius:16px;background:linear-gradient(180deg,#fff,#fbfcfa);
  color:#5f766d;
}
.empty-state-card strong{display:block;color:var(--pos-green-deep);font-size:12px;line-height:1.25}
.empty-state-card span{display:block;font-size:9px;line-height:1.5;color:#879990}
.empty-state-icon{
  width:42px;height:42px;border-radius:14px;display:grid;place-items:center;
  margin-bottom:3px;background:#eaf2ee;color:#39705a;font-size:21px;font-weight:900;
}
.customer-empty-state{
  min-height:150px;align-items:center;text-align:center;border:0;border-radius:18px;
  background:radial-gradient(circle at 50% 0,#f2f7f4 0,#fff 70%);
}
.customer-empty-state span{max-width:360px}
.customer-sales-card:has(.customer-empty-state){background:#fff;border-color:rgba(18,63,49,.06)}

@media (min-width:1100px){
  .customer-form-page{max-width:620px}
  .compact-form-page:not(.customer-form-page){max-width:560px}
  .settings-page{max-width:1040px}
  .stock-receipt-card{max-width:960px}
  .form-card{padding:20px 22px}
}

@media (max-width:760px){
  .customer-empty-state{min-height:138px;padding:20px 16px}
  .customer-sales-card:has(.customer-empty-state){
    background:transparent!important;border:0!important;box-shadow:none!important;
  }

  .stock-receipt-lines{
    overflow:visible!important;border:0!important;border-radius:0!important;
    display:grid!important;gap:8px;
  }
  .stock-receipt-head{display:none!important}
  .stock-receipt-row{
    min-width:0!important;display:grid!important;grid-template-columns:1fr 1fr!important;
    gap:10px 12px!important;padding:13px!important;border:1px solid rgba(18,63,49,.08)!important;
    border-radius:16px;background:#fff;box-shadow:var(--pos-shadow-soft);
  }
  .stock-receipt-row>span{
    min-width:0;display:block!important;white-space:normal!important;overflow-wrap:anywhere;
    font-size:10px!important;
  }
  .stock-receipt-row>span::before{
    display:block;margin-bottom:4px;color:#81958d;font-size:7px;font-weight:950;
    letter-spacing:.1em;text-transform:uppercase;
  }
  .stock-receipt-row>span:nth-child(1){grid-column:1/-1}
  .stock-receipt-row>span:nth-child(1)::before{content:"Product"}
  .stock-receipt-row>span:nth-child(2)::before{content:"Quantity"}
  .stock-receipt-row>span:nth-child(3)::before{content:"Unit cost"}
  .stock-receipt-row>span:nth-child(4){grid-column:1/-1;text-align:right}
  .stock-receipt-row>span:nth-child(4)::before{content:"Line cost"}
  .stock-receipt-total{
    min-height:56px;justify-content:space-between!important;padding:12px 14px!important;
  }
  .stock-receipt-total strong{font-size:17px!important}

  .receipt-actions-inline{width:100%;display:grid!important;grid-template-columns:repeat(3,1fr);gap:7px!important}
  .receipt-actions-inline a,.receipt-actions-inline button{
    min-height:44px!important;display:grid!important;place-items:center;padding:0 10px!important;
  }

  .staff-card-actions{min-height:44px!important;gap:8px!important;flex-wrap:wrap}
  .staff-card-actions form{display:flex!important;margin:0!important}
  .staff-card-actions a,.staff-card-actions button{
    min-height:44px!important;display:inline-flex!important;align-items:center!important;
    justify-content:center!important;padding:0 13px!important;border-radius:11px!important;
  }
  .permission-check-grid>label{min-height:56px!important;align-items:center!important}
}

/* Phase 1: cashier legibility and reliable touch targets on small phones. */
@media(max-width:760px){
  .premium-product-info .product-copy>strong{
    font-size:13px!important;line-height:1.32!important;
    -webkit-line-clamp:3!important;overflow-wrap:anywhere!important;
  }
  .premium-product-info .product-copy>small{font-size:10px!important;line-height:1.3!important}
  .premium-product-card{min-height:146px!important}
  .category-scroll{scrollbar-width:thin!important;scrollbar-color:#a6c4b6 transparent!important}
  .search-add-button{min-width:89px!important;padding-inline:9px!important;font-size:12px!important}
}
@media(max-width:430px){
  .premium-product-card{min-height:160px!important}
  .premium-product-info .product-copy>strong{font-size:13px!important;line-height:1.29!important}
  .premium-product-info .product-copy>small{font-size:9px!important}
}
@media(max-width:360px){
  .premium-product-grid{grid-template-columns:1fr!important;gap:8px!important}
  .premium-product-card{display:flex!important;min-height:104px!important;gap:13px!important;padding:12px!important}
  .premium-product-image{width:58px!important;height:58px!important;margin-bottom:0!important;flex:0 0 58px!important}
  .premium-product-info{flex:1!important;min-width:0}
  .product-copy{padding-right:24px!important}
  .premium-product-info .product-copy>strong{font-size:14px!important;-webkit-line-clamp:3!important}
  .product-price-row b{font-size:13px!important}
  .stock-badge{font-size:10px!important}
}
