.social-max {
    --wd-social-brand-color: #471aff;
}

.wd-social-icons .social-max > .wd-icon::before,
.market-icon-max::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: url("assets/max-monochrome.svg") center / contain no-repeat;
    mask: url("assets/max-monochrome.svg") center / contain no-repeat;
    vertical-align: -0.08em;
}

.market-max-button .vc_btn3.vc_btn3-style-outline {
    color: #471aff;
    border-color: #471aff;
}

.market-max-button .vc_btn3.vc_btn3-style-outline:hover,
.market-max-button .vc_btn3.vc_btn3-style-outline:focus-visible {
    color: #fff;
    background-color: #471aff;
    border-color: #471aff;
}

.market-messenger-qr img {
    image-rendering: auto;
}

/* Match the rounded header icons while keeping the floating links separate. */
.wd-social-icons.wd-sticky-social {
    --wd-social-radius: 5px;
    gap: 6px !important;
}

/* Hide wishlist entry points on every viewport, including AJAX product cards. */
.wd-header-wishlist,
.wd-wishlist-btn,
.menu-item-wishlist,
.woocommerce-MyAccount-navigation-link--wishlist,
li:has(> a[href*="/wishlist/"]),
a[href*="/wishlist/"],
a[href$="/wishlist"] {
    display: none !important;
}

/* Keep the added messenger and the existing account button visible together. */
.wd-toolbar:has(> :nth-child(6)):not(:has(> :nth-child(7))) > :is(a, div) {
    flex: 1 1 0;
    min-width: 0;
}

.wd-toolbar:has(> :nth-child(6)):not(:has(> :nth-child(7))) .wd-toolbar-label {
    inset-inline: 3px;
}

.market-footer-qr-row {
    padding-block: 36px 24px;
}

.market-footer-chat-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0 24px;
    max-width: 248px;
}

.market-footer-chat-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #c8c8c8;
    border-radius: 6px;
    background: #fff;
    color: #171717;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .2s, color .2s, border-color .2s;
}

.market-footer-chat-link:hover,
.market-footer-chat-link:focus-visible {
    border-color: #171717;
    background: #171717;
    color: #fff;
    text-decoration: none;
}

.market-footer-chat-link:focus-visible {
    outline: 2px solid #171717;
    outline-offset: 3px;
}

.market-footer-chat-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask: var(--market-chat-icon) center / contain no-repeat;
    mask: var(--market-chat-icon) center / contain no-repeat;
}

.market-footer-chat-icon-max {
    --market-chat-icon: url("assets/max-monochrome.svg");
}

.market-footer-chat-icon-telegram {
    --market-chat-icon: url("assets/telegram-monochrome.svg");
}
