
/* 1. Превращаем обычную текстовую ссылку в кнопку */
.t-store__prod-popup__text a, 
.t-store__prod-popup__descr a {
    display: inline-flex !important; /* Обязательно для работы отступов и иконки */
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 20px 10px 16px !important; /* Отступы как у кнопки */
    border-radius: 6px !important;
    text-decoration: none !important; /* Убираем подчеркивание ссылки */
    margin-right: 8px !important;
    margin-bottom: 10px !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important; /* Запрещаем перенос текста внутри кнопки */
    border: none !important;
}

/* 2. Настраиваем иконку внутри ссылки */
.t-store__prod-popup__text a:before,
.t-store__prod-popup__descr a:before {
    content: '' !important;
    display: inline-block !important;
    width: 24px !important;
    height: 24px !important;
    background-size: contain !important; /* contain не обрезает логотипы */
    background-repeat: no-repeat !important;
    background-position: center !important;
    margin-right: 8px !important;
    flex-shrink: 0 !important; /* Запрещаем иконке сжиматься */
    vertical-align: middle !important;
}

/* 3. Стили для конкретных маркетплейсов (все свойства с !important) */

/* Wildberries */
.t-store__prod-popup__text a[href*="wildberries"]:before,
.t-store__prod-popup__descr a[href*="wildberries"]:before {
    background-image: url('https://static.tildacdn.com/tild3566-3134-4337-a639-363266613230/logo_wb.svg') !important;
}
.t-store__prod-popup__text a[href*="wildberries"],
.t-store__prod-popup__descr a[href*="wildberries"] {
    background-color: #A73AFD !important;
    color: #ffffff !important;
}
.t-store__prod-popup__text a[href*="wildberries"]:hover,
.t-store__prod-popup__descr a[href*="wildberries"]:hover {
    background-color: #8D16EB !important;
}

/* OZON */
.t-store__prod-popup__text a[href*="ozon"]:before,
.t-store__prod-popup__descr a[href*="ozon"]:before {
    background-image: url('https://static.tildacdn.com/tild3264-3064-4638-a637-373637333437/logo_oz.svg') !important;
}
.t-store__prod-popup__text a[href*="ozon"],
.t-store__prod-popup__descr a[href*="ozon"] {
    background-color: #005BFF !important;
    color: #ffffff !important;
}
.t-store__prod-popup__text a[href*="ozon"]:hover,
.t-store__prod-popup__descr a[href*="ozon"]:hover {
    background-color: #004EDB !important;
}

/* Золотое Яблоко */
.t-store__prod-popup__text a[href*="goldapple"]:before,
.t-store__prod-popup__descr a[href*="goldapple"]:before {
    background-image: url('https://static.tildacdn.com/tild3237-3763-4631-b930-613436386430/logo_ga.svg') !important;
}
.t-store__prod-popup__text a[href*="goldapple"],
.t-store__prod-popup__descr a[href*="goldapple"] {
    background-color: #D1FF1A !important;
    color: #000000 !important;
}
.t-store__prod-popup__text a[href*="goldapple"]:hover,
.t-store__prod-popup__descr a[href*="goldapple"]:hover {
    background-color: #C2F00E !important;
}

/* Lamoda */
.t-store__prod-popup__text a[href*="lamoda"]:before,
.t-store__prod-popup__descr a[href*="lamoda"]:before {
    background-image: url('https://static.tildacdn.com/tild6165-3933-4434-b030-303630633166/logo_la.svg') !important;
}
.t-store__prod-popup__text a[href*="lamoda"],
.t-store__prod-popup__descr a[href*="lamoda"] {
    background-color: #000000 !important;
    color: #ffffff !important;
}
.t-store__prod-popup__text a[href*="lamoda"]:hover,
.t-store__prod-popup__descr a[href*="lamoda"]:hover {
    background-color: #262626 !important;
}

/* Лэтуаль */
.t-store__prod-popup__text a[href*="letu"]:before,
.t-store__prod-popup__descr a[href*="letu"]:before {
    background-image: url('https://static.tildacdn.com/tild3565-3861-4363-b735-633264356265/logo_letu.svg') !important;
}
.t-store__prod-popup__text a[href*="letu"],
.t-store__prod-popup__descr a[href*="letu"] {
    background-color: #0921FF !important;
    color: #ffffff !important;
}
.t-store__prod-popup__text a[href*="letu"]:hover,
.t-store__prod-popup__descr a[href*="letu"]:hover {
    background-color: #071ACC !important;
}

/* Яндекс Маркет */
.t-store__prod-popup__text a[href*="yandex"]:before,
.t-store__prod-popup__descr a[href*="yandex"]:before {
    background-image: url('https://static.tildacdn.com/tild3732-3634-4664-a339-666262663433/logo_yam.svg') !important;
}
.t-store__prod-popup__text a[href*="yandex"],
.t-store__prod-popup__descr a[href*="yandex"] {
    background-color: #FCE000 !important;
    color: #000000 !important;
}
.t-store__prod-popup__text a[href*="yandex"]:hover,
.t-store__prod-popup__descr a[href*="yandex"]:hover {
    background-color: #EBC300 !important;
}

/* Мегамаркет */
.t-store__prod-popup__text a[href*="megamarket"]:before,
.t-store__prod-popup__descr a[href*="megamarket"]:before {
    background-image: url('https://static.tildacdn.com/tild3466-6538-4461-b235-616339353365/logo_mega.svg') !important;
}
.t-store__prod-popup__text a[href*="megamarket"],
.t-store__prod-popup__descr a[href*="megamarket"] {
    background-color: #6933B0 !important;
    color: #ffffff !important;
}
.t-store__prod-popup__text a[href*="megamarket"]:hover,
.t-store__prod-popup__descr a[href*="megamarket"]:hover {
    background-color: #521C99 !important;
}

/* Купер */
.t-store__prod-popup__text a[href*="kuper"]:before,
.t-store__prod-popup__descr a[href*="kuper"]:before {
    background-image: url('https://static.tildacdn.com/tild3937-6533-4363-a265-613535353435/logo_kup.svg') !important;
}
.t-store__prod-popup__text a[href*="kuper"],
.t-store__prod-popup__descr a[href*="kuper"] {
    background-color: #64F77C !important;
    color: #000000 !important;
}
.t-store__prod-popup__text a[href*="kuper"]:hover,
.t-store__prod-popup__descr a[href*="kuper"]:hover {
    background-color: #45E55F !important;
}

/* Telegram */
.t-store__prod-popup__text a[href*="t.me"]:before,
.t-store__prod-popup__descr a[href*="t.me"]:before {
    background-image: url('https://static.tildacdn.com/tild6364-3931-4062-a663-373030663266/logo_tg.svg') !important;
}
.t-store__prod-popup__text a[href*="t.me"],
.t-store__prod-popup__descr a[href*="t.me"] {
    background-color: #039BE5 !important;
    color: #ffffff !important;
}
.t-store__prod-popup__text a[href*="t.me"]:hover,
.t-store__prod-popup__descr a[href*="t.me"]:hover {
    background-color: #0082C2 !important;
}

/* WhatsApp */
.t-store__prod-popup__text a[href*="wa.me"]:before,
.t-store__prod-popup__descr a[href*="wa.me"]:before {
    background-image: url('https://static.tildacdn.com/tild3130-6335-4836-a530-623232313432/logo_wa.svg') !important;
}
.t-store__prod-popup__text a[href*="wa.me"],
.t-store__prod-popup__descr a[href*="wa.me"] {
    background-color: #2CB742 !important;
    color: #ffffff !important;
}
.t-store__prod-popup__text a[href*="wa.me"]:hover,
.t-store__prod-popup__descr a[href*="wa.me"]:hover {
    background-color: #10A328 !important;
}
</style>