/* wechat-order-panel v2 */
.tokyo-sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-self: start;
}

@media (min-width: 1025px) {
    .tokyo-sidebar-stack {
        position: sticky;
        top: 104px;
    }

    .tokyo-sidebar-stack > .tokyo-sidebar-panel {
        position: static;
    }

    .tokyo-sidebar-stack .tokyo-category-tree {
        max-height: min(280px, calc(100vh - 560px));
    }
}

.tokyo-wechat-panel {
    overflow: hidden;
}

.tokyo-wechat-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 10px 20px;
    gap: 8px;
}

.tokyo-wechat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.tokyo-wechat-title {
    margin: 0;
    color: var(--tokyo-black);
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.tokyo-wechat-copy {
    margin: 0;
    max-width: 16em;
    color: var(--tokyo-muted-strong);
    font-size: 0.86rem;
    line-height: 1.55;
}

.tokyo-wechat-qr-wrap {
    width: 100%;
    max-width: none;
    margin: 6px 0 2px;
    padding: 6px;
    border: 1px solid var(--tokyo-border);
    border-radius: 18px;
    background: #fff;
    box-sizing: border-box;
}

.tokyo-wechat-qr {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.tokyo-wechat-hint {
    margin: 0;
    color: var(--tokyo-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.tokyo-wechat-tg,
.tokyo-wechat-qq {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 240px;
    min-height: 42px;
    margin-top: 4px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--tokyo-radius-pill);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.tokyo-wechat-tg {
    background: #0088cc;
    color: #fff;
}

.tokyo-wechat-tg:hover {
    color: #fff;
    opacity: 0.92;
}

.tokyo-wechat-qq {
    background: var(--tokyo-black, #111);
    color: #fff;
}

.tokyo-wechat-qq:hover {
    opacity: 0.92;
}

@media (max-width: 1024px) {
    .tokyo-sidebar-stack {
        position: static;
        gap: 14px;
    }
}

@media (max-width: 767px) {
    .tokyo-wechat-inner {
        padding: 16px 10px 18px;
    }

    .tokyo-wechat-qr-wrap {
        width: 100%;
        padding: 6px;
    }
}

.pay-list .tokyo-wechat-order-pay {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #b7e0c2;
    border-radius: var(--tokyo-radius-pill);
    background: #e8f5e9;
    color: #1b5e20;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.pay-list .tokyo-wechat-order-pay:hover {
    color: #1b5e20;
    background: #dff3e3;
}

.pay-list .tokyo-wechat-order-pay-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border-radius: 50%;
    background: #07c160;
}

.tokyo-wechat-order-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 22px 24px;
    gap: 8px;
}

.tokyo-wechat-order-modal h3 {
    margin: 0;
    color: var(--tokyo-black, #111);
    font-size: 1.2rem;
    font-weight: 700;
}

.tokyo-wechat-order-modal p {
    margin: 0;
    color: var(--tokyo-muted-strong, #555);
    font-size: 0.88rem;
    line-height: 1.5;
}

.tokyo-wechat-order-modal .tokyo-wechat-qr-wrap {
    width: min(100%, 280px);
    max-width: none;
    aspect-ratio: 1 / 1;
}

.tokyo-wechat-order-modal .tokyo-wechat-qr {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tokyo-wechat-order-layer {
    height: auto !important;
    overflow: visible !important;
}

.tokyo-wechat-order-layer .layui-layer-content {
    height: auto !important;
    overflow: visible !important;
    border-radius: 18px;
}

.tokyo-wechat-overlay {
    position: fixed;
    inset: 0;
    z-index: 19891020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(18, 22, 28, 0.42);
}
.tokyo-wechat-overlay[hidden] {
    display: none !important;
}
.tokyo-wechat-dialog {
    position: relative;
    width: min(360px, 100%);
    max-height: calc(100vh - 32px);
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--tokyo-surface, #fff);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.18);
}
.tokyo-wechat-dialog-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 18, 22, 0.08);
    color: #222;
    font-size: 20px;
    line-height: 28px;
    cursor: pointer;
}
.tokyo-wechat-dialog .tokyo-wechat-order-modal {
    padding: 36px 22px 24px;
}
.tokyo-wechat-dialog .tokyo-wechat-qr-wrap {
    width: min(100%, 280px);
    aspect-ratio: 1 / 1;
}
.tokyo-wechat-dialog .tokyo-wechat-qr {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
body.tokyo-wechat-modal-open {
    overflow: hidden;
}

.tokyo-notice-popup-inner img {
    display: block !important;
    margin: 8px auto !important;
}

.tokyo-description-body img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
