.product-marketplaces {
    width: 100%;
}

.product-marketplaces__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.product-marketplaces__grid > .product-marketplaces__button:only-child,
.product-marketplaces__grid > .product-marketplaces__button:nth-last-child(1):nth-child(odd) {
    grid-column: 1 / -1;
}

.product-marketplaces__button {
    min-height: 46px;
    padding: 9px 12px;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background-color .18s ease, border-color .18s ease;
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

.product-marketplaces__button:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.product-marketplaces__button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

.product-marketplaces__button:focus-visible {
    outline: 2px solid #222;
    outline-offset: 2px;
}

.product-marketplaces__prefix {
    white-space: nowrap;
}

.product-marketplaces__logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    max-width: 92px;
    height: 22px;
}

.product-marketplaces__logo {
    display: block;
    max-width: 92px;
    max-height: 22px;
    object-fit: contain;
}

.product-marketplaces__logo-text {
    display: none;
    white-space: nowrap;
    font-weight: 700;
}

.product-marketplaces__logo-wrap.is-broken .product-marketplaces__logo-text {
    display: inline;
}

/* ===== WB ===== */
.product-marketplaces__button--wb {
    background: linear-gradient(90deg, #7b2ff7 0%, #f107a3 100%);
    color: #fff;
    border-color: rgba(255,255,255,.12);
}

.product-marketplaces__button--wb:hover {
    color: #fff;
    opacity: .96;
}

/* ===== Ozon ===== */
.product-marketplaces__button--ozon {
    background: #005bff;
    color: #fff;
    border-color: #0050e0;
}

.product-marketplaces__button--ozon:hover {
    color: #fff;
    background: #004fe0;
}

/* ===== Yandex Market ===== */
.product-marketplaces__button--yandex-market {
    background: #ffd600;
    color: #111;
    border-color: #f0c800;
}

.product-marketplaces__button--yandex-market:hover {
    color: #111;
    background: #ffcf00;
}

/* ===== ВсеИнструменты ===== */
.product-marketplaces__button--vseinstrumenti {
    background: #e53935;
    color: #fff;
    border-color: #d6302d;
}

.product-marketplaces__button--vseinstrumenti:hover {
    color: #fff;
    background: #d9332f;
}

/* ===== СтройДвор ===== */
.product-marketplaces__button--stroidvor {
    background: #ff8a00;
    color: #fff;
    border-color: #f07f00;
}

.product-marketplaces__button--stroidvor:hover {
    color: #fff;
    background: #f58200;
}

/* ===== Пульс цен ===== */
.product-marketplaces__button--pulscen {
    background: #d32f2f;
    color: #fff;
    border-color: #c62828;
}

.product-marketplaces__button--pulscen:hover {
    color: #fff;
    background: #c92c2c;
}

/* fallback if logo broken */
.product-marketplaces__button--wb .product-marketplaces__logo-text,
.product-marketplaces__button--ozon .product-marketplaces__logo-text,
.product-marketplaces__button--vseinstrumenti .product-marketplaces__logo-text,
.product-marketplaces__button--stroidvor .product-marketplaces__logo-text,
.product-marketplaces__button--pulscen .product-marketplaces__logo-text {
    color: #fff;
}

.product-marketplaces__button--yandex-market .product-marketplaces__logo-text {
    color: #fff;
}

@media (max-width: 480px) {
    .product-marketplaces__grid {
        gap: 7px;
    }

    .product-marketplaces__button {
        min-height: 44px;
        padding: 8px 10px;
        font-size: 12px;
        gap: 6px;
    }

    .product-marketplaces__logo,
    .product-marketplaces__logo-wrap {
        max-width: 78px;
        max-height: 20px;
    }
}

.product-marketplaces__button,
.product-marketplaces__button:hover,
.product-marketplaces__button:focus,
.product-marketplaces__button:active {
    text-decoration: none !important;
}

.product-marketplaces__button * {
    text-decoration: none !important;
}

.product-marketplaces--mobile {
    margin: 0 0 14px;
}

.product-marketplaces--mobile .product-marketplaces__grid {
    width: 100%;
}

@media (max-width: 767px) {
    .product-marketplaces__button,
    .product-marketplaces__button:hover,
    .product-marketplaces__button:focus,
    .product-marketplaces__button:active,
    .product-marketplaces__button *,
    .product-marketplaces__button:hover *,
    .product-marketplaces__button:focus *,
    .product-marketplaces__button:active * {
        text-decoration: none !important;
    }

    .product-marketplaces__button {
        min-height: 42px;
        border-radius: 8px;
    }

    .product-marketplaces__logo {
        max-width: 76px;
        max-height: 20px;
    }

    .product-marketplaces__logo-wrap {
        max-width: 76px;
        height: 20px;
    }
}
/* ===== Лемана ПРО ===== */
.product-marketplaces__button--lemana-pro {
    background: #fdc300;
    color: #fff;
    border-color: #6aaa1d;
}

.product-marketplaces__button--lemana-pro:hover {
    color: #fff;
    background: #e79f26;
}

.product-marketplaces__button--lemana-pro .product-marketplaces__logo-text {
    color: #fff;
}