/* Homepage WeChat contact QR, isolated for reliable CDN cache versioning. */
.wechat-contact-trigger {
    margin: 0;
    padding: 0;
    color: #365f7d;
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 720;
    line-height: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: pointer;
}

.wechat-contact-trigger:hover {
    color: #244b68;
}

.wechat-contact-trigger:focus-visible {
    outline: 3px solid rgba(53, 105, 150, .22);
    outline-offset: 3px;
    border-radius: 3px;
}

.shop-notice-wechat {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin: 12px 0 0;
    padding: 14px;
    overflow: hidden;
    background: #f7f9fa;
    border-radius: 9px;
}

.shop-notice-wechat img,
.wechat-contact-body img {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    background: #ffffff;
}

.shop-notice-wechat img {
    border: 1px solid #e2e7ea;
    border-radius: 8px;
}

.shop-notice-wechat figcaption {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.shop-notice-wechat figcaption strong {
    color: #26343e;
    font-size: .95rem;
}

.shop-notice-wechat figcaption span {
    color: #68747d;
    font-size: .84rem;
    line-height: 1.65;
}

.shop-notice-modal.wechat-contact-modal .modal-dialog {
    width: min(440px, calc(100% - 32px));
    max-width: 440px;
}

.wechat-contact-body {
    padding: 18px 22px 22px;
    text-align: center;
}

.wechat-contact-body img {
    max-width: 360px;
    margin: 0 auto;
    border: 1px solid #e2e7ea;
    border-radius: 10px;
}

.wechat-contact-body p {
    margin: 14px 0 2px;
    color: #46515a;
    font-size: .9rem;
}

.wechat-contact-body p strong {
    color: #365f7d;
}

.wechat-contact-body > span {
    color: #7a848c;
    font-size: .8rem;
}

@media (max-width: 575.98px) {
    .shop-notice-wechat {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .shop-notice-wechat img {
        width: min(100%, 280px);
        margin: 0 auto;
    }

    .shop-notice-wechat figcaption {
        text-align: center;
    }

    .shop-notice-modal.wechat-contact-modal .modal-dialog {
        width: calc(100% - 20px);
        margin: 10px auto;
    }

    .wechat-contact-body {
        padding: 14px 14px 18px;
    }

    .wechat-contact-body img {
        width: min(100%, 330px);
    }
}
