.getchips-offers-section {
    margin-bottom: 1.25rem;
}

.getchips-offers__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.getchips-offers__warn {
    font-size: 0.875rem;
    color: #8a5a00;
    background: #fff8e6;
    border: 1px solid #f0e0b2;
    padding: 0.65rem 0.75rem;
    border-radius: 4px;
    margin: 0 0 1rem;
}

.getchips-offers__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
    .lvt-supplier-offers__title {
        font-size: 0.95rem;
    }
}

@media (max-width: 991px) {
    .lvt-supplier-offers .getchips-offers__table th:nth-child(n+2),
    .lvt-supplier-offers .getchips-offers__table td:nth-child(n+2) {
        width: auto !important;
        min-width: 0 !important;
    }

    .lvt-supplier-offers .getchips-offers__table {
        min-width: 0 !important;
        table-layout: auto !important;
    }
}

@media (max-width: 767px) {
    .getchips-offers__table {
        min-width: 520px;
    }

    .lvt-supplier-offers .getchips-offers__table,
    .catalog-detail__bottom-info .getchips-offers__table,
    .getchips-offers-section .getchips-offers__table,
    .store-prices-block.lvt-etm-store-offers .getchips-offers__table {
        min-width: 0 !important;
    }
    .getchips-offers-section .btn,
    .getchips-offers-section .button {
        width: 100%;
        max-width: 100%;
    }
}

.getchips-offers__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.getchips-offers__table th,
.getchips-offers__table td {
    border: 1px solid var(--stroke_black, #e5e5e5);
    padding: 0.3rem 0.4rem;
    text-align: left;
    vertical-align: middle;
}

.getchips-offers__table th {
    background: var(--card_bg_black, #f7f7f7);
    font-weight: 600;
    font-size: 0.75rem;
}

.getchips-offers__table th:nth-child(1),
.getchips-offers__table td:nth-child(1) {
    width: 60%;
}

.getchips-offers__table th:nth-child(n+2),
.getchips-offers__table td:nth-child(n+2) {
    width: 8%;
}

/* Колонка "Кол-во": не обрезать контрол и кнопку */
.getchips-offers__table th:nth-child(6),
.getchips-offers__table td:nth-child(6) {
    min-width: 190px;
}

.getchips-offers__table th:nth-child(2),
.getchips-offers__table th:nth-child(3),
.getchips-offers__table th:nth-child(4),
.getchips-offers__table th:nth-child(5),
.getchips-offers__table td:nth-child(2),
.getchips-offers__table td:nth-child(3),
.getchips-offers__table td:nth-child(4),
.getchips-offers__table td:nth-child(5) {
    text-align: center;
}

/* Темная тема: контраст заголовков/цен/итогов */
.theme-dark .getchips-offers__title,
.theme-dark .lvt-supplier-offers__title,
.theme-dark .store-prices__title-new {
    color: #e8edf7 !important;
}

@media (prefers-color-scheme: dark) {
    .theme-default .getchips-offers__title,
    .theme-default .lvt-supplier-offers__title,
    .theme-default .store-prices__title-new {
        color: #e8edf7 !important;
    }
}

.theme-dark .getchips-offers__price-cell,
.theme-dark .getchips-offers__price-tier,
.theme-dark .js-tier-price-text {
    color: #f2f6ff !important;
}

.theme-dark .getchips-offers__row-total,
.theme-dark .store-price-bottom-row,
.theme-dark .store-price-bottom-row * {
    color: #f5f8ff !important;
}

.getchips-offers__table th:nth-child(3) .getchips-offers__th-sort {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.getchips-offers__table th:nth-child(3) .getchips-offers__sort-btn {
    font-size: 0.62rem;
    line-height: 1;
    padding: 0 2px;
}

.getchips-price-head {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.getchips-price-head__controls {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.getchips-currency-switch {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.getchips-currency-switch-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
    max-width: 100%;
}

.getchips-currency-switch-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #1a3f6b;
}

.getchips-currency-rate {
    font-size: 0.72rem;
    font-weight: 600;
    color: #234f7b;
    background: #f2f7ff;
    border: 1px solid #bfd4ec;
    border-radius: 5px;
    padding: 2px 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.getchips-currency-alert {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff3cd;
    border: 1px solid #f0c36d;
    color: #8a5a00;
    font-size: 10px;
    font-weight: 700;
    cursor: help;
    line-height: 1;
    flex-shrink: 0;
}

.js-getchips-usd-alert {
    display: none;
}

.js-getchips-rub-alert {
    display: inline-flex;
}

.getchips-currency-alert::after {
    content: attr(data-notice);
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 260px;
    max-width: 360px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #f0c36d;
    background: #fff9e8;
    color: #6a4a00;
    font-size: 0.72rem;
    line-height: 1.35;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 30;
}

.getchips-currency-alert:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.getchips-currency-switch__trigger {
    border: 1px solid #7ea6d1;
    background: #eef5ff;
    border-radius: 5px;
    padding: 2px 6px;
    font-size: 0.7rem;
    line-height: 1.2;
    color: #123e6b;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(18, 62, 107, 0.08);
    white-space: nowrap;
    flex-shrink: 0;
}

.getchips-currency-switch__trigger:hover {
    background: #dfeeff;
    border-color: #5e8fc4;
}

.getchips-currency-switch__caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #8a8a8a;
}

.getchips-currency-switch__menu {
    display: none;
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    min-width: 104px;
    z-index: 40;
    background: #fff;
    border: 1px solid #7ea6d1;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
    padding: 4px;
    flex-direction: column;
}

.getchips-currency-switch.is-open .getchips-currency-switch__menu {
    display: flex;
    flex-direction: column;
}

.getchips-currency-switch__item {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    font-size: 0.7rem;
    padding: 5px 7px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.getchips-currency-switch__rate {
    display: block;
    font-size: 0.64rem;
    font-weight: 600;
    color: #5a7088;
    padding: 4px 7px 3px;
    border-top: 1px solid #e4ecf4;
    margin-top: 2px;
    white-space: nowrap;
}

.getchips-currency-switch__rate-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px 3px;
    border-top: 1px solid #e4ecf4;
    margin-top: 2px;
}

.getchips-currency-switch__rate-row .getchips-currency-switch__rate {
    border-top: 0;
    padding: 0;
    margin-top: 0;
}

.getchips-currency-alert--inline {
    flex-shrink: 0;
}

.lvt-supplier-offers .getchips-offers__table th:nth-child(2),
.lvt-supplier-offers .getchips-offers__table th:nth-child(3),
.lvt-supplier-offers .getchips-offers__table th:nth-child(4),
.lvt-supplier-offers .getchips-offers__table th:nth-child(5),
.lvt-supplier-offers .getchips-offers__table td:nth-child(2),
.lvt-supplier-offers .getchips-offers__table td:nth-child(3),
.lvt-supplier-offers .getchips-offers__table td:nth-child(4),
.lvt-supplier-offers .getchips-offers__table td:nth-child(5) {
    text-align: center;
}

.lvt-supplier-offers .getchips-offers__table th:nth-child(3) .getchips-price-head {
    align-items: center;
}

.lvt-supplier-offers .getchips-offers__table th:nth-child(3) .getchips-price-head__controls {
    justify-content: center;
}

.getchips-currency-switch__item:hover {
    background: #f4f4f4;
}

.getchips-currency-switch__item.is-active {
    background: #dfeeff;
    color: #123e6b;
    font-weight: 600;
}

.getchips-offers__table--collapsible:not(.is-expanded) .getchips-offers__row--extra {
    display: none;
}

.getchips-offers__table--collapsible.is-expanded .getchips-offers__row--extra {
    display: table-row;
    animation: getchips-offers-row-open 0.4s ease-out;
}

@keyframes getchips-offers-row-open {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.getchips-offers__show-all {
    display: inline-block;
    width: auto;
    margin-top: clamp(0.5rem, 1.5vw, 0.75rem);
    padding: 0;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
}

.getchips-offers__show-all:hover {
    background: transparent;
    border-color: transparent;
}

.getchips-offers__table tr:nth-child(even) td {
    background: var(--darkerblack_bg_black, #fafafa);
}

/* ============================================================
   Тёмная тема: таблица «Наличие по складам»
   ============================================================ */
.theme-dark .lvt-supplier-offers .getchips-offers__table th,
.theme-dark .getchips-offers__table th,
.theme-dark .store-offers-table th {
    background: var(--darkgrey_bg_black, #2a2a2a) !important;
    color: var(--white_text_black, #e8edf7) !important;
    border-color: var(--stroke_black, #404040) !important;
}

.theme-dark .lvt-supplier-offers .getchips-offers__table tbody td,
.theme-dark .getchips-offers__table tbody td,
.theme-dark .store-offers-table tbody td {
    background: var(--black_bg_black, #1a1a1a) !important;
    color: var(--basic_text_black, #d8dde6) !important;
    border-color: var(--stroke_black, #404040) !important;
}

.theme-dark .lvt-supplier-offers .getchips-offers__table tr:nth-child(even) td,
.theme-dark .getchips-offers__table tr:nth-child(even) td,
.theme-dark .store-offers-table tr:nth-child(even) td {
    background: var(--darkerblack_bg_black, #242424) !important;
    color: var(--basic_text_black, #d8dde6) !important;
}

.theme-dark .getchips-offers__name-cell,
.theme-dark .getchips-offers__name-cell .getchips-offers__part,
.theme-dark .getchips-offers__brand-name,
.theme-dark .getchips-offers__brand-cell,
.theme-dark .getchips-offers__qty-cell,
.theme-dark .getchips-offers__term-cell {
    color: var(--basic_text_black, #d8dde6) !important;
}

.theme-dark .getchips-offers__name-cell .getchips-offers__supplier {
    color: var(--lite_basic_text_black, #a8b0bc) !important;
}

.theme-dark .getchips-currency-switch-label,
.theme-dark .getchips-currency-rate {
    color: var(--white_text_black, #e8edf7) !important;
}

.theme-dark .getchips-currency-rate {
    background: var(--darkgrey_bg_black, #2f3540) !important;
    border-color: var(--stroke_black, #4a5568) !important;
}

.theme-dark .getchips-currency-switch__trigger {
    background: var(--card_bg_black, #2a3140) !important;
    border-color: var(--stroke_black, #4a5568) !important;
    color: var(--white_text_black, #e8edf7) !important;
}

.theme-dark .getchips-offers__qty-input {
    background: var(--card_bg_black, #2a2a2a) !important;
    border-color: var(--stroke_black, #505050) !important;
    color: var(--white_text_black, #e8edf7) !important;
}

@media (prefers-color-scheme: dark) {
    .theme-default .lvt-supplier-offers .getchips-offers__table th,
    .theme-default .getchips-offers__table th,
    .theme-default .store-offers-table th {
        background: var(--darkgrey_bg_black, #2a2a2a) !important;
        color: var(--white_text_black, #e8edf7) !important;
        border-color: var(--stroke_black, #404040) !important;
    }

    .theme-default .lvt-supplier-offers .getchips-offers__table tbody td,
    .theme-default .getchips-offers__table tbody td,
    .theme-default .store-offers-table tbody td {
        background: var(--black_bg_black, #1a1a1a) !important;
        color: var(--basic_text_black, #d8dde6) !important;
        border-color: var(--stroke_black, #404040) !important;
    }

    .theme-default .lvt-supplier-offers .getchips-offers__table tr:nth-child(even) td,
    .theme-default .getchips-offers__table tr:nth-child(even) td,
    .theme-default .store-offers-table tr:nth-child(even) td {
        background: var(--darkerblack_bg_black, #242424) !important;
        color: var(--basic_text_black, #d8dde6) !important;
    }

    .theme-default .getchips-offers__name-cell .getchips-offers__supplier {
        color: var(--lite_basic_text_black, #a8b0bc) !important;
    }
}

.getchips-offers__qty-input-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0;
}

.getchips-offers__qty-input-row .getchips-offers__qty-input:not(.counter__count) {
    margin-bottom: 0;
    flex: 0 1 auto;
    min-width: 3.25rem;
    max-width: 6rem;
}

.getchips-offers__qty-cell .getchips-offers__cart-btn-wrap {
    margin-top: 0;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

.getchips-offers__qty-cell .getchips-offers__cart-btn-wrap .btn {
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0.28rem 0.5rem;
    font-size: 0.72rem;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
}

.getchips-offers__add-basket.btn-sm {
    border-radius: 4px;
}

/* В корзине: зелёная; количество отличается от сохранённого в корзине: синяя */
.getchips-offers__add-basket.btn.getchips-offers__add-basket--in-cart {
    background: #198754;
    border-color: #146c43;
    color: #fff;
}

.getchips-offers__add-basket.btn.getchips-offers__add-basket--in-cart:hover:not(:disabled) {
    background: #157347;
    border-color: #0f5132;
    color: #fff;
}

.getchips-offers__add-basket.btn.getchips-offers__add-basket--qty-changed {
    background: #0d6efd;
    border-color: #0a58ca;
    color: #fff;
}

.getchips-offers__add-basket.btn.getchips-offers__add-basket--qty-changed:hover:not(:disabled) {
    background: #0b5ed7;
    border-color: #084298;
    color: #fff;
}

.getchips-offers__add-basket.getchips-offers__add-basket--in-cart:disabled,
.getchips-offers__add-basket.getchips-offers__add-basket--qty-changed:disabled {
    opacity: 0.88;
}

.getchips-offers__btn {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.2;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.getchips-offers__btn:hover:not(:disabled) {
    border-color: #999;
    background: #f5f5f5;
}

.getchips-offers__btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.getchips-offers__link {
    font-size: 0.8125rem;
}

.getchips-offers__muted {
    color: #999;
    font-size: 0.8125rem;
}

.getchips-offers__th-sort {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem;
}

.getchips-offers__sort-btn {
    padding: 0 0.2rem;
    font-size: 0.75rem;
    line-height: 1.2;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
}

.getchips-offers__sort-btn:hover {
    border-color: #999;
    background: #f5f5f5;
}

.getchips-offers__brand-cell {
    vertical-align: middle;
    min-width: 5.5rem;
}

.getchips-offers__brand-link,
.getchips-offers__brand-fallback {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.getchips-offers__brand-link:hover .getchips-offers__brand-name {
    text-decoration: underline;
}

.getchips-offers__brand-logo-wrap {
    flex-shrink: 0;
}

.getchips-offers__brand-logo {
    display: block;
    max-width: 100%;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Таблица Getchips на карточке (.detail): логотипы брендов, без глобального .detail img */
.detail .getchips-offers-section .getchips-offers__brand-logo {
    max-height: 64px;
}

.getchips-offers__brand-name {
    font-weight: 500;
    font-size: 0.8125rem;
}

.getchips-offers__name-cell .getchips-offers__part {
    font-weight: 700;
    font-size: 0.8125rem;
}

.getchips-offers__name-cell .getchips-offers__supplier {
    font-size: 0.75rem;
    color: #555;
    margin-top: 0.2rem;
}

.getchips-offers__price-cell {
    font-size: 0.75rem;
    line-height: 1.3;
    white-space: nowrap;
}

/* Только ступень, соответствующая введённому количеству (is-active выставляет JS) */
.getchips-offers__price-cell br {
    display: none;
}

.getchips-offers__price-cell .js-getchips-price-tier:not(.is-active) {
    display: none !important;
}

.getchips-offers__price-cell .getchips-offers__rub-hint {
    display: none;
}

.getchips-offers__price-tier.is-active {
    display: inline !important;
    background: rgba(10, 107, 45, 0.12);
    border-radius: 3px;
    padding: 0 0.2em;
    font-weight: 600;
    color: #0a5c28;
}

.getchips-offers__price-tier.is-active strong {
    font-weight: 600;
}

.getchips-offers__qty-cell {
    min-width: 8.5rem;
    vertical-align: middle;
}

.getchips-offers__qty-input {
    width: 76px;
    min-width: 76px;
    max-width: 76px;
    padding: 0.25rem 0.35rem;
    font-size: 0.8125rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 0;
}

/* Скрыть нативные стрелки number — остаются только +/- счётчика Aspro */
.getchips-offers__qty-input[type='number']::-webkit-outer-spin-button,
.getchips-offers__qty-input[type='number']::-webkit-inner-spin-button,
.getchips-offers__qty-input.counter__count::-webkit-outer-spin-button,
.getchips-offers__qty-input.counter__count::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
    display: none;
}

.getchips-offers__qty-input[type='number'],
.getchips-offers__qty-input.counter__count {
    -moz-appearance: textfield;
    appearance: textfield;
}

.getchips-offers__qty-hint {
    min-height: 0;
    font-size: 0.65rem;
    color: #666;
    margin: 0;
    line-height: 1.2;
}

.getchips-offers__qty-hint:empty {
    display: none;
}

.getchips-offers__qty-hint--warn {
    color: #b42318;
}

.getchips-offers__row-total {
    font-weight: 600;
    color: #222;
    margin-top: 0.15rem;
}

.getchips-offers__qty-meta {
    display: flex;
    flex-direction: column;
    font-size: 0.7rem;
    color: #666;
    line-height: 1.25;
    margin-bottom: 0.35rem;
}

/* Модалка предложений (плитка каталога) */
body.getchips-modal-open {
    overflow: hidden;
}

.getchips-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.getchips-modal.is-open {
    display: flex;
}

.getchips-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.getchips-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(1100px, 100vw - 2rem);
    max-height: min(90vh, 900px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.getchips-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid #e5e5e5;
    background: #f7f7f7;
}

.getchips-modal__title {
    font-weight: 600;
    font-size: 1rem;
}

.getchips-modal__close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #444;
    padding: 0 0.25rem;
}

.getchips-modal__close:hover {
    color: #000;
}

.getchips-modal__body {
    padding: 0.75rem 0.85rem 1rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.getchips-modal__body .getchips-offers-section {
    margin-bottom: 0;
}

.getchips-modal__body .getchips-offers__title {
    display: none;
}

.getchips-modal__loading,
.getchips-modal__err {
    padding: 2rem 1rem;
    text-align: center;
    color: #555;
    font-size: 0.9375rem;
}

.getchips-modal__err {
    color: #a33;
}

.getchips-modal__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.getchips-modal__spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: getchips-spin 0.7s linear infinite;
}

@keyframes getchips-spin {
    to {
        transform: rotate(360deg);
    }
}

.js-getchips-load-offers-section.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.72;
    padding-right: 2rem;
}

.js-getchips-load-offers-section.is-loading::after {
    content: '';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    margin-top: -0.5rem;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: getchips-spin 0.7s linear infinite;
}

/* Коллапсируемая таблица — скрытие рядов свыше 5 */
.getchips-offers__table--collapsible tbody tr.js-getchips-offer-row:nth-child(n+6) {
    display: none !important;
}

.getchips-offers__table--collapsible.is-expanded tbody tr.js-getchips-offer-row {
    display: table-row !important;
}

/* Кнопка "Показать все" */
.getchips-offers__show-all-btn {
    display: block;
    margin: 1rem auto 0;
    padding: 0.625rem 1.25rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.getchips-offers__show-all-btn:hover {
    background: #ececec;
    border-color: #999;
}

.getchips-offers__show-all-btn:active {
    background: #e0e0e0;
}

/* ============================================================
   Aspro LiteShop refresh — toolbar, order cell, sticky header
   ============================================================ */

.lvt-supplier-offers-block {
    margin-bottom: 0;
}

.lvt-supplier-offers-block > .switcher-title {
    margin-bottom: 0.75rem;
}

.lvt-supplier-offers .catalog-detail__cell-block,
.lvt-etm-stores-under-desc .catalog-detail__cell-block {
    padding: clamp(0.75rem, 2vw, 1.25rem);
}

.getchips-offers__note {
    margin: 0 0 0.75rem;
}

.getchips-offers__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin-bottom: 0.75rem;
}

.getchips-offers__toolbar-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.getchips-offers__sort-pill {
    appearance: none;
    border: 1px solid var(--stroke_black, #e0e0e0);
    background: var(--card_bg_black, #fff);
    color: var(--white_text_black, #333);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    min-height: 36px;
}

.getchips-offers__sort-pill.is-active {
    background: var(--theme-base-color, #138ae5);
    border-color: var(--theme-base-color, #138ae5);
    color: #fff;
}

.getchips-offers__row--own > td:first-child {
    box-shadow: inset 3px 0 0 var(--theme-base-color, #138ae5);
}

.getchips-offers__order-cell {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.getchips-offers__qty-input-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
}

.getchips-offers__counter {
    flex: 0 0 auto;
    min-width: 96px;
    width: 96px;
}

.getchips-offers__qty-cell .getchips-offers__cart-btn-wrap {
    flex: 0 1 auto;
    min-width: 0;
}

.getchips-offers__qty-cell .getchips-offers__cart-btn-wrap .btn,
.getchips-offers__qty-cell .getchips-offers__cart-btn-wrap .btn-lg {
    min-height: 34px;
    padding: 0.28rem 0.65rem;
    font-size: 0.8125rem;
    line-height: 1.2;
    width: auto;
    white-space: nowrap;
}

.getchips-offers__qty-input.counter__count {
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    border: 0;
    padding: 0;
    font-size: 0.8em;
    background: transparent;
    box-shadow: none;
}

.getchips-offers__qty-hint {
    min-height: 0;
    margin: 0;
    font-size: 0.65rem;
    line-height: 1.2;
}

.getchips-offers__qty-hint:empty {
    display: none;
}

.getchips-offers__qty-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.2rem 0.55rem;
    margin: 0;
    font-size: 0.625rem;
    line-height: 1.2;
}

.getchips-offers__row-total {
    margin-top: 0;
}

@media (min-width: 992px) {
    .getchips-offers__table th,
    .getchips-offers__table td {
        padding: 0.28rem 0.38rem;
    }

    .getchips-offers__table th:nth-child(6),
    .getchips-offers__table td:nth-child(6) {
        min-width: 210px;
        max-width: 270px;
    }

    .getchips-offers__counter.counter--basket .counter__action {
        flex-basis: 30px;
        height: 30px;
    }
}

.getchips-offers__price-tier.is-active {
    background: color-mix(in srgb, var(--theme-base-color, #138ae5) 12%, transparent);
    color: var(--theme-base-color, #0a5c28);
}

@media (min-width: 992px) {
    .getchips-offers__table-wrap {
        max-height: min(70vh, 640px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .getchips-offers__table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--card_bg_black, #f7f7f7);
        box-shadow: 0 1px 0 var(--stroke_black, #e5e5e5);
    }
}

/* Счётчик количества — автономные стили (не зависят от сжатия flex/grid родителя) */
.getchips-offers__counter.counter,
.getchips-offers__counter.counter--basket {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    height: 32px;
    min-height: 32px;
    overflow: hidden;
    background: var(--darkgrey_bg_black, #f0f2f0);
    border-radius: 6px;
    margin: 0;
}

.getchips-offers__counter .counter__action {
    flex: 0 0 30px;
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.getchips-offers__counter .counter__action::before,
.getchips-offers__counter .counter__action::after {
    content: '';
    position: absolute;
    display: block;
    background-color: #666;
    border-radius: 1px;
    top: 50%;
    left: 50%;
}

.getchips-offers__counter .counter__action--minus::before {
    width: 10px;
    height: 2px;
    margin-left: -5px;
    margin-top: -1px;
}

.getchips-offers__counter .counter__action--plus::before {
    width: 10px;
    height: 2px;
    margin-left: -5px;
    margin-top: -1px;
}

.getchips-offers__counter .counter__action--plus::after {
    width: 2px;
    height: 10px;
    margin-left: -1px;
    margin-top: -5px;
}

.getchips-offers__counter .counter__count,
.getchips-offers__counter .getchips-offers__qty-input.counter__count {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    -moz-appearance: textfield;
    appearance: textfield;
}

.getchips-offers__counter .counter__count::-webkit-outer-spin-button,
.getchips-offers__counter .counter__count::-webkit-inner-spin-button,
.getchips-offers__counter .getchips-offers__qty-input::-webkit-outer-spin-button,
.getchips-offers__counter .getchips-offers__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
    display: none;
}

.getchips-offers__name-cell .getchips-offers__part {
    margin: 0;
}

.getchips-offers__name-cell .getchips-offers__supplier {
    margin-top: 0.1rem;
}
