/* Wheels marketplace cart — detail bar, feed icon, header badge */

.wm-cart-add-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    margin: 0 0 10px;
    padding: 0 16px;
    box-sizing: border-box;
    border: 0;
    border-radius: 10px;
    background: #e23737;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    transition: background .15s ease, transform .12s ease;
}
.wm-cart-add-bar:hover {
    background: #c92f2f;
}
.wm-cart-add-bar:active {
    transform: translateY(1px);
}
.wm-cart-add-bar:disabled {
    opacity: .65;
    cursor: wait;
}
.wm-cart-add-bar__icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    display: inline-flex;
}
.wm-cart-add-bar__icon svg path,
.wm-cart-add-bar__icon svg circle {
    fill: none !important;
    stroke: #fff !important;
}
.wm-cart-add-bar__label {
    flex: 1 1 auto;
    text-align: center;
    color: #fff !important;
}

.wm-card-cart-btn {
    /* Containing block = .mp-ads-listing-card (position:relative), НЕ фото.
     * Раньше кнопка жила внутри .__photo { overflow:hidden; height:148px } —
     * bottom считался от фото, а всё ниже обрезалось overflow. */
    position: absolute;
    top: auto;
    bottom: 5px;
    right: 5px;
    z-index: 6;
    width: 36px;
    height: 36px;
    border: 1.5px solid #16a34a;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: #16a34a;
}
.wm-card-cart-btn:hover {
    background: #fff;
    border-color: #15803d;
    color: #15803d;
}
.wm-card-cart-btn svg {
    width: 18px;
    height: 18px;
    color: inherit;
}
.wm-card-cart-btn svg path,
.wm-card-cart-btn svg circle {
    fill: none !important;
    stroke: currentColor !important;
}
/* Уже в корзине: заливка только у иконки (как сердце в избранном), круг кнопки белый */
.wm-card-cart-btn.active {
    background: #fff;
    border-color: #16a34a;
    color: #16a34a;
}
.wm-card-cart-btn.active svg path,
.wm-card-cart-btn.active svg circle {
    fill: #16a34a !important;
    stroke: #16a34a !important;
}
.mp-ads-listing-card__photo {
    position: relative;
}
/* Плашка продавца-юрлица на фото. */
.wm-seller-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    height: 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 6px;
    background: rgba(232, 232, 232, 0.72);
    pointer-events: none;
}
.wm-seller-bar--with-cart {
    /* корзина теперь внизу карточки, не на фото */
    padding-right: 6px;
}
.wm-seller-bar__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 400;
    line-height: 12px;
    color: #464646;
    text-decoration: none;
    pointer-events: auto;
}
a.wm-seller-bar__name:hover {
    text-decoration: underline;
    color: #353433;
}
/* height:auto — иначе height:100% растягивает фото на всю карточку и
   выталкивает .catalog__items-block за overflow:hidden (пустые карточки запчастей). */
.mp-ads-listing-card__photo-link {
    display: block;
    width: 100%;
    height: auto;
    flex: 0 0 auto;
}

.wm-page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin: 0 0 12px;
    width: 100%;
    box-sizing: border-box;
}
.wm-page-title-row .ap-home-page-h1 {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}
.wm-page-title-row--crumb {
    margin-bottom: 10px;
}
.wm-page-title-row--crumb .breadcrumb-wrap {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}
.wm-cart-slot {
    flex: 0 0 auto;
    display: none; /* слот в заголовке оставлен для совместимости; кнопка — fixed FAB */
    min-width: 0;
    min-height: 0;
}

/* Fixed-кнопка корзины (не ездит со скроллом) — всегда под header справа */
.wm-cart-fab {
    position: fixed;
    top: 88px;
    right: 18px;
    z-index: 10040;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 720px) {
    .wm-cart-fab {
        top: calc(var(--mp-sf-sticky-top, 50px) + 10px);
        right: 8px;
        bottom: auto;
    }
}
.wm-cart-link--has-items {
    animation: wm-cart-fab-pulse 1.6s ease-in-out infinite;
}
@keyframes wm-cart-fab-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35); transform: scale(1); }
    50% { box-shadow: 0 6px 20px rgba(22, 163, 74, 0.55); transform: scale(1.06); }
}

/* Fixed FAB избранного — слева от корзины */
.wm-fav-fab {
    position: fixed;
    top: 88px;
    right: 78px;
    z-index: 10040;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 720px) {
    .wm-fav-fab {
        top: calc(var(--mp-sf-sticky-top, 50px) + 10px);
        right: 50px;
    }
}
.wm-fav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e23737;
    border: 1px solid #ff4040;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
}
.wm-fav-link:hover {
    background: #c92a2a;
    border-color: #e23737;
    color: #fff;
}
.wm-fav-link svg {
    width: 22px;
    height: 22px;
    overflow: visible;
}
.wm-fav-link svg path {
    fill: none !important;
    stroke: #fff !important;
    stroke-width: 2 !important;
}
.wm-fav-link__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #fff;
    color: #e23737;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
}
.wm-fav-link--has-items {
    animation: wm-fav-fab-pulse 1.6s ease-in-out infinite;
}
@keyframes wm-fav-fab-pulse {
    0%, 100% {
        box-shadow: 0 4px 14px rgb(238 71 71 / 35%);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 20px #e9c6c6;
        transform: scale(1.06);
    }
}

.wm-fav-view {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 72px 16px 24px;
    box-sizing: border-box;
}
.wm-fav-view[hidden] { display: none !important; }
.wm-fav-view--embed {
    position: static;
    inset: auto;
    z-index: auto;
    display: block;
    padding: 0;
    pointer-events: auto;
}
.wm-fav-view--embed .wm-fav-view__panel {
    position: static;
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid #EEEDEC;
    padding: 16px;
}
.wm-fav-view--embed .wm-fav-view__close,
.wm-fav-view--embed .wm-fav-view__backdrop,
.wm-fav-view--embed .wm-fav-view__title { display: none !important; }
.wm-fav-view__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}
.wm-fav-view__panel {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: calc(100vh - 96px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    padding: 20px 20px 16px;
}
.wm-fav-view__close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #6b6562;
}
.wm-fav-view__title {
    margin: 0 28px 14px 0;
    font-size: 1.55rem;
    font-family: JetBrainsMono-Bold, sans-serif;
    color: #282627;
}
.wm-fav-view__empty {
    margin: 24px 0;
    text-align: center;
    color: #6b6562;
}
.wm-fav-view__table-wrap { overflow-x: auto; }
.wm-fav-view__table {
    width: 100%;
    border-collapse: collapse;
}
.wm-fav-view__table th,
.wm-fav-view__table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
    font-size: 14px;
}
.wm-fav-view__col-img { width: 72px; }
.wm-fav-view__img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #e8edf2;
}
.wm-fav-view__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.wm-fav-view__img-ph {
    display: block;
    width: 100%;
    height: 100%;
    background: #e8edf2;
}
.wm-fav-view__go {
    color: #db2777;
    font-weight: 600;
    text-decoration: none;
}
.wm-fav-view__go:hover { text-decoration: underline; }
.wm-fav-view__off-label {
    color: #9ca3af;
    font-weight: 600;
}
.wm-fav-view__row--off {
    opacity: 0.55;
    color: #9ca3af;
}
.wm-fav-view__row--off .wm-fav-view__del {
    opacity: 1;
}
.wm-fav-view__del,
.wm-fav-view__btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
}
.wm-fav-view__btn--danger,
.wm-fav-view__del {
    color: #b91c1c;
    border-color: #fecaca;
}
.wm-fav-view__footer {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}
@media (max-width: 640px) {
    .wm-fav-view__table thead { display: none; }
    .wm-fav-view__table tr {
        display: grid;
        grid-template-columns: 64px 1fr;
        gap: 6px 10px;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }
    .wm-fav-view__table td {
        border: 0;
        padding: 0;
    }
    .wm-fav-view__col-img { grid-row: 1 / span 3; }
    .wm-fav-view__col-del { grid-column: 2; }
}

.wm-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #16a34a;
    border: 1px solid #15803d;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}
.wm-cart-link:hover {
    background: #15803d;
    color: #fff;
}
.wm-cart-link svg {
    width: 22px;
    height: 22px;
    color: #fff;
}
.wm-cart-link svg path,
.wm-cart-link svg circle {
    fill: none !important;
    stroke: #fff !important;
}
.wm-cart-link__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #e23737;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
}
.wm-cart-link__badge:empty,
.wm-cart-link__badge[data-count="0"] {
    display: none;
}

/* Адаптив: 36×36 — ПОСЛЕ базовых .wm-fav-link/.wm-cart-link (48px), иначе каскад их перебивает */
@media (max-width: 900px) {
    .wm-cart-link {
        width: 36px;
        height: 36px;
        box-shadow: 0 3px 10px rgba(22, 163, 74, 0.32);
    }
    .wm-cart-link svg {
        width: 18px;
        height: 18px;
    }
    .wm-cart-link__badge {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        line-height: 16px;
        top: -3px;
        right: -3px;
    }
    .wm-fav-link {
        width: 36px;
        height: 36px;
        box-shadow: 0 3px 10px rgba(226, 55, 55, 0.32);
    }
    .wm-fav-link svg {
        width: 18px;
        height: 18px;
    }
    .wm-fav-link__badge {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        line-height: 16px;
        top: -3px;
        right: -3px;
    }
    .wm-cart-fab {
        top: calc(var(--mp-sf-sticky-top, 50px) + 10px) !important;
        right: 8px !important;
        bottom: auto !important;
    }
    .wm-fav-fab {
        top: calc(var(--mp-sf-sticky-top, 50px) + 10px) !important;
        right: 50px !important;
        bottom: auto !important;
    }
}

/* legacy: старые иконки в header не показываем */
.catalogs-header-container .wm-header-cart,
header .wm-header-cart {
    display: none !important;
}

.wm-cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.wm-cart-overlay[hidden] {
    display: none !important;
}
.wm-cart-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}
.wm-cart-overlay__panel {
    position: relative;
    z-index: 1;
    width: min(360px, 100%);
    background: #fff;
    border-radius: 12px;
    padding: 20px 18px 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
.wm-cart-overlay__close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #aaa6a1;
}
.wm-cart-overlay__title {
    margin: 0 28px 8px 0;
    font-size: 17px;
    font-weight: 700;
    color: #353433;
}
.wm-cart-overlay__stock {
    margin: 0 0 14px;
    font-size: 13px;
    color: #6b7280;
}
.wm-cart-overlay__row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.wm-cart-overlay__row label {
    font-size: 14px;
    color: #353433;
}
.wm-cart-overlay__qty {
    width: 88px;
    height: 40px;
    border: 1px solid #eeedec;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 16px;
    box-sizing: border-box;
}
.wm-cart-overlay__seller {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.35;
}
.wm-cart-overlay__seller[hidden] {
    display: none !important;
}
.wm-cart-overlay__seller-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wm-cart-overlay__contact-link {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #e23737;
    text-decoration: underline;
    cursor: pointer;
}
.wm-cart-overlay__contact-link:hover {
    color: #c92f2f;
}
.wm-cart-overlay__contact {
    margin: 0 0 12px;
}
.wm-cart-overlay__contact[hidden] {
    display: none !important;
}
.wm-cart-overlay__contact-head {
    display: none !important;
}
.wm-cart-overlay__contact-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: stretch;
}
.wm-cart-overlay__chat,
.wm-cart-overlay__phone {
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
}
.wm-cart-overlay__chat {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 6px 8px !important;
    border-radius: 10px !important;
    background: #eeedec !important;
    color: #353433 !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    text-align: center !important;
    cursor: pointer !important;
}
.wm-cart-overlay__chat svg {
    flex: 0 0 auto !important;
    width: 16px !important;
    height: 14px !important;
}
.wm-cart-overlay__phone-btn.btn_form.catalog-item-button,
.wm-cart-overlay__phone-btn {
    width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}
.wm-cart-overlay__phone-btn small {
    font-size: 11px !important;
    line-height: 1.1 !important;
}

/* Контакты поверх оверлея «Добавить в корзину» */
.wm-cart-contact {
    position: fixed;
    inset: 0;
    z-index: 10100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.wm-cart-contact[hidden] {
    display: none !important;
}
.wm-cart-contact__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .4);
}
.wm-cart-contact__box {
    position: relative;
    z-index: 1;
    width: min(400px, 100%);
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
    box-sizing: border-box;
}
.wm-cart-contact__x {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #aaa6a1;
}
.wm-cart-contact__body {
    font-size: 15px;
    line-height: 1.45;
    color: #222;
    text-align: center;
}
.wm-cart-contact__body .catalog-popup-contact-title {
    font-weight: 600;
    margin: 0 0 8px;
}
.wm-cart-contact__body .catalog-popup-contact-desc {
    margin: 0 0 8px;
    color: #555;
}
.wm-cart-contact__body .catalog-popup-contact-tel {
    padding: 6px 8px;
    border-radius: 10px;
    background: #f8f8f7;
    width: fit-content;
    margin: 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #222;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}
.wm-cart-contact__body .catalog-popup-contact-call-btn-wrap {
    display: flex;
    justify-content: center;
    margin: 12px 0 8px;
}
.wm-cart-contact__body .catalog-popup-contact-call-btn {
    display: inline-flex;
    min-width: 160px;
    justify-content: center;
}
.wm-cart-contact__body .catalog-popup-contact-qr {
    display: flex;
    justify-content: center;
    margin: 12px 0 8px;
}
.wm-cart-contact__body .catalog-popup-contact-qr img {
    display: block;
    width: 200px;
    height: 200px;
}
.wm-cart-contact__body .catalog-popup-contact-info--qr-hint {
    margin: 0;
    text-align: center;
    color: #888;
    font-size: 13px;
    line-height: 1.35;
}
.wm-cart-overlay__msg {
    margin: 0 0 10px;
    font-size: 13px;
    color: #c0392b;
    min-height: 1.2em;
}
.wm-cart-overlay__msg:empty {
    display: none;
}
.wm-cart-overlay__submit {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: #e23737;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}
.wm-cart-overlay__submit:disabled {
    opacity: .65;
    cursor: wait;
}
.wm-cart-overlay__success {
    display: none;
    margin: 28px 0 20px;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: #16a34a;
    line-height: 1.35;
}
.wm-cart-overlay__panel--success > *:not(.wm-cart-overlay__close):not(.wm-cart-overlay__success) {
    display: none !important;
}
.wm-cart-overlay__panel--success .wm-cart-overlay__success {
    display: block !important;
}
.wm-cart-overlay__panel--success .wm-cart-overlay__close {
    display: none !important;
}

/* Просмотр корзины */
.wm-cart-view {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
    overflow-y: auto;
}
.wm-cart-view[hidden] {
    display: none !important;
}
.wm-cart-view__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}
.wm-cart-view__panel {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    margin: auto;
    background: #fff;
    border-radius: 12px;
    padding: 20px 20px 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
    box-sizing: border-box;
}
.wm-cart-view__close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #aaa6a1;
}
.wm-cart-view__title {
    margin: 0 28px 10px 0;
    font-size: 18px;
    font-weight: 700;
    color: #353433;
}
.wm-cart-view__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 28px 10px 0;
    flex-wrap: wrap;
}
.wm-cart-view__head .wm-cart-view__title {
    margin: 0;
}
.wm-cart-view__history-link {
    border: 0;
    background: transparent;
    color: #e23737;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}
.wm-cart-view__history-link:hover {
    color: #c62828;
}
.wm-cart-view__empty-hint {
    margin: 0 0 8px;
    text-align: center;
    color: #6b6562;
    font-size: 13px;
}
.wm-cart-view--empty .wm-cart-view__panel {
    min-height: min(360px, 70vh);
    display: flex;
    flex-direction: column;
}
.wm-cart-view--empty .wm-cart-view__body {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}
.wm-cart-view__empty-history {
    border: 0;
    background: transparent;
    color: #e23737;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    padding: 8px 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.wm-cart-view__empty-history:hover {
    color: #c62828;
}
.wm-cart-view__notice {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 13px;
    line-height: 1.45;
}
.wm-cart-view__empty {
    margin: 12px 0 8px;
    text-align: center;
    color: #6b6562;
    font-size: 14px;
}
.wm-cart-view__seller {
    border: 1px solid #e6e3e0;
    border-radius: 12px;
    padding: 12px 12px 10px;
    margin: 0 0 12px;
    box-sizing: border-box;
}
.wm-cart-view__seller-name {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #353433;
    line-height: 1.3;
}
.wm-cart-view__table-wrap {
    width: 100%;
    overflow-x: visible;
    margin: 0 0 10px;
}
.wm-cart-view__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}
.wm-cart-view__table th {
    padding: 0 8px 8px 0;
    font-size: 11px;
    font-weight: 600;
    color: #8a847f;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: left;
    border-bottom: 1px solid #eeebe8;
    white-space: nowrap;
}
.wm-cart-view__table td {
    padding: 10px 8px 10px 0;
    vertical-align: middle;
    border-top: 1px solid #f0eeec;
    font-size: 13px;
    color: #353433;
}
.wm-cart-view__col-title {
    width: auto;
    min-width: 0;
}
.wm-cart-view__col-price {
    width: 1%;
    white-space: nowrap;
    padding-right: 12px;
}
.wm-cart-view__col-qty {
    width: 1%;
    white-space: nowrap;
    padding-right: 12px;
}
.wm-cart-view__col-sum {
    width: 1%;
    white-space: nowrap;
    font-weight: 700;
    padding-right: 12px;
}
.wm-cart-view__col-del {
    width: 1%;
    text-align: right;
    padding-right: 0;
    white-space: nowrap;
}
.wm-cart-view__item--off .wm-cart-view__item-title {
    color: #999;
}
.wm-cart-view__item-title {
    color: #353433;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    display: inline-block;
}
.wm-cart-view__item-title:hover {
    color: #e23737;
}
.wm-cart-view__qty {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #d9d5d1;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.wm-cart-view__qty-btn {
    width: 32px;
    height: 32px;
    border: 0;
    background: #f8f8f7;
    color: #353433;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.wm-cart-view__qty-btn:hover {
    background: #eeedec;
}
.wm-cart-view__qty-btn:disabled {
    opacity: 0.45;
    cursor: default;
}
.wm-cart-view__qty-input {
    width: 44px;
    height: 32px;
    border: 0;
    border-left: 1px solid #e6e3e0;
    border-right: 1px solid #e6e3e0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #353433;
    box-sizing: border-box;
    -moz-appearance: textfield;
}
.wm-cart-view__qty-input::-webkit-outer-spin-button,
.wm-cart-view__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.wm-cart-view__price {
    color: #353433;
    font-weight: 600;
    white-space: nowrap;
}
.wm-cart-view__sum {
    color: #16a34a;
    font-weight: 700;
    white-space: nowrap;
}
.wm-cart-view__seller-total {
    margin: 0 0 10px;
    text-align: right;
    font-size: 14px;
    color: #353433;
}
.wm-cart-view__seller-total strong {
    color: #16a34a;
    font-weight: 700;
}
.wm-cart-view__comment {
    margin: 0 0 12px;
}
.wm-cart-view__comment-label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #353433;
    line-height: 1.35;
}
.wm-cart-view__comment-input {
    display: block;
    width: 100%;
    min-height: 72px;
    resize: vertical;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d9d5d1;
    border-radius: 10px;
    background: #fff;
    color: #353433;
    font-size: 14px;
    line-height: 1.4;
    font-family: inherit;
}
.wm-cart-view__comment-input:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
.wm-cart-view__comment-meta {
    margin-top: 4px;
    text-align: right;
}
.wm-cart-view__comment-count {
    font-size: 12px;
    color: #8a847f;
}
.wm-cart-view__badge {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    color: #c0392b;
    font-weight: 600;
}
.wm-cart-view__kind {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    color: #6b6562;
    font-weight: 500;
}
.wm-cart-view__contact-hint {
    margin: 0 0 10px;
    font-size: 13px;
    color: #6b6562;
    line-height: 1.35;
}
.wm-cart-view__item--off .wm-cart-view__qty-btn:disabled,
.wm-cart-view__item--off .wm-cart-view__qty-input:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.wm-cart-view__item-del {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #e23737;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 0 0;
    text-decoration: underline;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .wm-cart-view__table,
    .wm-cart-view__table thead,
    .wm-cart-view__table tbody,
    .wm-cart-view__table th,
    .wm-cart-view__table td,
    .wm-cart-view__table tr {
        display: block;
        width: 100%;
    }
    .wm-cart-view__table thead {
        display: none;
    }
    .wm-cart-view__table tr {
        padding: 10px 0;
        border-top: 1px solid #f0eeec;
    }
    .wm-cart-view__table tr:first-child {
        border-top: 0;
        padding-top: 0;
    }
    .wm-cart-view__table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 4px 0;
        border: 0;
    }
    .wm-cart-view__table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: #8a847f;
        font-size: 12px;
        font-weight: 600;
    }
    .wm-cart-view__col-title {
        display: block;
        margin-bottom: 4px;
    }
    .wm-cart-view__col-title::before {
        display: none;
    }
    .wm-cart-view__col-del {
        justify-content: flex-end;
    }
    .wm-cart-view__col-del::before {
        display: none;
    }
    .wm-cart-view__seller-total {
        text-align: left;
    }
}
.wm-cart-view__seller-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.wm-cart-view__btn {
    border: 1px solid #d9d5d1;
    background: #f8f8f7;
    color: #353433;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
}
.wm-cart-view__btn:hover {
    background: #eeedec;
}
.wm-cart-view__btn--primary {
    border-color: #e23737;
    background: #e23737;
    color: #fff;
}
.wm-cart-view__btn--primary:hover {
    background: #c92f2f;
}
.wm-cart-view__btn--danger {
    border-color: #f0d0d0;
    background: #fff;
    color: #e23737;
}
.wm-cart-view__footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    padding-top: 4px;
}
.wm-cart-view__footer .wm-cart-view__btn {
    width: 100%;
    min-height: 42px;
}

/* История заказов */
.wm-cart-history {
    position: fixed;
    inset: 0;
    z-index: 10070;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
    overflow-y: auto;
}
.wm-cart-history[hidden] {
    display: none !important;
}
.wm-cart-history__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}
.wm-cart-history__panel {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    margin: auto;
    background: #fff;
    border-radius: 12px;
    padding: 20px 20px 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
    box-sizing: border-box;
}
.wm-cart-history__close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #aaa6a1;
}
.wm-cart-history__title {
    margin: 0 28px 14px 0;
    font-size: 18px;
    font-weight: 700;
    color: #353433;
}
.wm-cart-history__block {
    margin-bottom: 12px;
}
.wm-cart-history__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 8px;
}
.wm-cart-history__when {
    font-size: 13px;
    color: #6b6562;
    font-weight: 600;
}
.wm-cart-history__status {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f0eeec;
    color: #6b6562;
}
.wm-cart-history__status--ok {
    background: #dcfce7;
    color: #166534;
}
.wm-cart-history__status--err {
    background: #fee2e2;
    color: #991b1b;
}
.wm-cart-history__contacts {
    margin: 0 0 10px;
}
.wm-cart-history__email {
    margin: -4px 0 8px;
    font-size: 12px;
    color: #8a847f;
}
.wm-cart-history__contacts + .wm-cart-history__email {
    margin-top: 0;
}
.wm-cart-history__comment {
    margin: 0 0 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8f8f7;
    font-size: 13px;
    line-height: 1.4;
    color: #353433;
}
.wm-cart-history__comment-label {
    font-weight: 600;
    color: #6b6562;
}
.wm-cart-history__err {
    margin: 0;
    font-size: 12px;
    color: #c0392b;
}
.wm-cart-history__table .wm-cart-view__col-qty {
    white-space: nowrap;
}
