/* AUTO-LAPTI · compact stock table · 2026-11-02 */
.product-page-tabs .al-inv-tab-link .fa{margin-right:5px;color:#27817a}
.product-block [data-al-inventory-link="1"]{cursor:pointer!important}
.product-block [data-al-inventory-link="1"]:focus-visible{
  outline:2px solid #237e78;outline-offset:3px;border-radius:6px
}
.product-block .al-purchase-stock-slot[data-al-inventory-link="1"]::after,
.product-block .al-stock-summary--product[data-al-inventory-link="1"]::after{
  content:"Все склады ›";color:#18796f;font-size:11px;font-weight:750;
  margin-left:11px;text-decoration:underline;text-underline-offset:2px;white-space:nowrap
}
.al-inv-tab{min-height:120px;scroll-margin-top:110px}
.al-inv{width:100%;max-width:1220px;padding:2px 0 10px;color:#223e3e}
.al-inv-top{display:flex;justify-content:space-between;align-items:center;gap:12px 20px;margin:3px 0 10px}
.al-inv-top__title{min-width:0}
.al-inv-top__title h3{
  font-size:19px;font-weight:800;line-height:1.28;color:#173e40;margin:0 0 3px
}
.al-inv-top__title p{margin:0;font-size:12px;line-height:1.4;color:#758b89}
.al-inv-top__updated{color:#869795;font-size:11px;white-space:nowrap}
.al-inv-facts{
  display:flex;flex-wrap:wrap;align-items:center;gap:5px 23px;
  padding:0 0 13px;margin:0 0 15px;
  border-bottom:1px solid #e5edeb
}
.al-inv-fact{color:#647e7b;font-size:12px;line-height:1.45}
.al-inv-fact strong{
  color:#176f68;font-weight:800;font-size:15px;
  font-variant-numeric:tabular-nums;margin-left:5px
}
.al-inv-table-wrap{
  width:100%;max-width:100%;overflow:hidden;
  border:1px solid #dfe9e7;border-radius:11px;background:#fff
}
.al-inv-table{
  border-collapse:collapse;border-spacing:0;
  width:100%;table-layout:fixed;margin:0;
  font-size:13px;line-height:1.4;color:#28484a
}
.al-inv-table *{box-sizing:border-box}
.al-inv-table thead{background:#f8faf9}
.al-inv-table thead th{
  padding:10px 14px;border:0;border-bottom:1px solid #dfe9e7;
  color:#708680;font-size:11px;letter-spacing:.015em;font-weight:700;
  text-transform:none;vertical-align:middle;white-space:nowrap
}
.al-inv-table thead th:first-child{width:39%;text-align:left}
.al-inv-table thead th:nth-child(2){width:13%;text-align:right}
.al-inv-table thead th:nth-child(3){width:20%;text-align:right}
.al-inv-table thead th:nth-child(4){width:28%;text-align:left}
.al-inv-group th{
  padding:10px 14px 9px;border:0;
  background:#edf6f3;border-top:1px solid #dcebe6;
  color:#254c4a;font-weight:700
}
.al-inv-tbody:first-of-type .al-inv-group th{border-top:0}
.al-inv-tbody--pickup .al-inv-group th{background:#eff6f7}
.al-inv-tbody--other .al-inv-group th{background:#faf7ef}
.al-inv-tbody--pending .al-inv-group th{background:#fff8e9}
.al-inv-tbody--pending .al-inv-td--quantity{color:#8d6c2b}
.al-inv-fact--future strong{color:#8d6c2b}
.al-inv-group__body{display:flex;align-items:baseline;gap:7px 13px;flex-wrap:wrap;width:100%}
.al-inv-group__title{font-size:13px;font-weight:800;color:#245c56}
.al-inv-group__hint{font-size:11px;font-weight:400;color:#748d88}
.al-inv-group__count{
  font-size:11px;font-weight:700;color:#5d8077;
  white-space:nowrap;margin-left:auto
}
.al-inv-table .al-inv-tr{background:#fff}
.al-inv-table .al-inv-tr:nth-child(odd){background:#fcfdfd}
.al-inv-table .al-inv-tr:hover{background:#f6faf8}
.al-inv-table .al-inv-td{
  padding:9px 14px;border:0;border-top:1px solid #edf1ef;
  vertical-align:middle;overflow-wrap:anywhere
}
.al-inv-td--name{text-align:left;font-weight:650;color:#294a4b}
.al-inv-row__place{display:block}
.al-inv-row__mobile-note{display:none}
.al-inv-td--quantity{
  text-align:right;white-space:nowrap;color:#23766d;
  font-variant-numeric:tabular-nums
}
.al-inv-td--quantity strong{font-size:14px;font-weight:800}
.al-inv-td--quantity span{font-size:11px;font-weight:550}
.al-inv-td--price{
  text-align:right;color:#2c4d4d;font-weight:650;
  font-size:12.5px;font-variant-numeric:tabular-nums
}
.al-inv-td--conditions{color:#718983;font-size:11.5px;line-height:1.45}
.al-inv-tbody--other .al-inv-td--quantity{color:#8e713c}
.al-inv-muted{color:#b0bdb9}
.al-inv-disclaimer{
  padding:0;margin:13px 2px 0;color:#788a87;
  font-size:11px;line-height:1.6
}
.al-inv-disclaimer i{color:#72978b;margin-right:5px}
.al-inv-loading,.al-inv-empty{
  display:flex;align-items:center;gap:10px;
  padding:18px;border:1px solid #e1ebe8;
  background:#f8fbfa;border-radius:10px;
  color:#647a75;font-size:12px;line-height:1.5
}
.al-inv-spinner{
  display:inline-block;width:17px;height:17px;flex:0 0 17px;
  border:2px solid #ccdedb;border-top-color:#27817a;
  border-radius:50%;animation:alinvspin .7s linear infinite
}
@keyframes alinvspin{to{transform:rotate(360deg)}}
.al-inv-retry{border:0;border-radius:7px;padding:7px 11px;background:#267f78;color:#fff;font-weight:750}
@media(max-width:767px){
  .al-inv{padding:0 0 9px}
  .al-inv-top{align-items:flex-start;flex-direction:column;gap:5px;margin:2px 0 10px}
  .al-inv-top__title h3{font-size:17px;margin-bottom:2px}
  .al-inv-top__title p{font-size:11px}
  .al-inv-top__updated{font-size:10px}
  .al-inv-facts{gap:3px 14px;padding-bottom:10px;margin-bottom:12px}
  .al-inv-fact{font-size:11px}
  .al-inv-fact strong{font-size:13px;margin-left:3px}
  .al-inv-table-wrap{border-radius:9px}
  .al-inv-table{font-size:12px;table-layout:fixed}
  .al-inv-table thead th{padding:9px 7px;font-size:10px}
  .al-inv-table thead th:first-child{width:48%}
  .al-inv-table thead th:nth-child(2){width:16%}
  .al-inv-table thead th:nth-child(3){width:36%}
  .al-inv-table thead th:nth-child(4),.al-inv-td--conditions{display:none}
  .al-inv-group th{padding:9px 9px}
  .al-inv-group__body{gap:4px 7px;align-items:center}
  .al-inv-group__title{font-size:12px}
  .al-inv-group__hint{display:none}
  .al-inv-group__count{font-size:10px}
  .al-inv-table .al-inv-td{padding:9px 7px}
  .al-inv-td--name{font-size:12px;line-height:1.4}
  .al-inv-row__mobile-note{
    display:block;font-size:10px;line-height:1.35;color:#899894;
    font-weight:450;margin-top:3px;overflow-wrap:anywhere
  }
  .al-inv-td--quantity strong{font-size:13px}
  .al-inv-td--quantity span{display:none}
  .al-inv-td--price{font-size:11px;line-height:1.45}
  .al-inv-disclaimer{font-size:10px;margin:11px 1px 0}
  .product-block .al-purchase-stock-slot[data-al-inventory-link="1"]::after,
  .product-block .al-stock-summary--product[data-al-inventory-link="1"]::after{
    font-size:10px;margin-left:6px
  }
}
@media(max-width:370px){
  .al-inv-table thead th:first-child{width:45%}
  .al-inv-table thead th:nth-child(2){width:17%}
  .al-inv-table thead th:nth-child(3){width:38%}
}
@media(prefers-reduced-motion:reduce){.al-inv-spinner{animation:none}}

/* Progressive inventory verification: never label a database preview as live. */
.al-inv-top__meta{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.al-inv-top__state{display:inline-flex;align-items:center;font-size:10.5px;
  line-height:1.4;font-weight:650;white-space:nowrap}
.al-inv-top__state--checking{color:#8a743f}
.al-inv-top__state--verified{color:#21786c}
.al-inv-top__state--unverified{color:#9d7134;white-space:normal;text-align:right}
.al-inv-top__meta .al-inv-retry{font-size:10px;padding:5px 9px;margin-top:2px}
@media(max-width:767px){
  .al-inv-top__meta{align-items:flex-start;gap:2px}
  .al-inv-top__state{white-space:normal;font-size:10px;text-align:left}
}

/* Mobile purchase metadata: prevent the "All warehouses" hint and bonus
   badge from expanding the viewport beyond the device width. The badge
   remains fully visible; horizontal scrolling is not artificially hidden. */
@media (max-width:469px) {
  #product-product .product-block .al-purchase-stock-slot[data-al-inventory-link="1"]::after,
  #product-product .product-block .al-stock-summary--product[data-al-inventory-link="1"]::after {
    content:"›"!important;
    font-size:15px!important;
    font-weight:800!important;
    line-height:1!important;
    margin-left:5px!important;
    text-decoration:none!important;
  }
}
@media (max-width:389px) {
  #product-product .product-block .al-purchase-meta {
    grid-template-columns:minmax(0,1fr)!important;
    row-gap:4px!important;
    justify-content:stretch!important;
  }
  #product-product .product-block .al-purchase-bonus-slot {
    width:max-content!important;
    min-width:0!important;
    max-width:100%!important;
  }
}

/* Allow the network total and the single-warehouse limit to wrap on narrow cards. */
#product-product .product-block .al-purchase-meta {
  grid-template-columns:minmax(0,max-content) max-content!important;
}
#product-product .product-block .al-purchase-stock-slot[data-al-inventory-link] {
  height:auto!important; max-width:100%; white-space:normal!important;
}
.product-block .al-purchase-stock-slot[data-al-inventory-link]::after {white-space:nowrap}
@media(max-width:599px) {
  #product-product .product-block .al-purchase-meta {
    display:flex!important; flex-wrap:wrap!important; row-gap:4px!important;
  }
}
