/* WeChat lives beside the existing WhatsApp control; no changes to page/card layouts. */
.wa-slot{display:flex;align-items:stretch;gap:8px;width:auto;max-width:calc(100vw - 20px);height:52px;pointer-events:none}
.wa-slot .wa,.wa-slot .wechat-open{width:auto;min-width:128px;height:100%;box-sizing:border-box;white-space:nowrap;flex:none}
.wa-slot .wechat-open{pointer-events:auto;display:inline-flex;align-items:center;justify-content:center;background:#15803d;color:#fff;border:0;border-radius:50px;padding:14px 20px;font-family:inherit;font-size:15px;font-weight:700;line-height:1.2;cursor:pointer;box-shadow:0 4px 16px rgba(0,0,0,.2)}
.wechat-open:focus-visible,.wechat-close:focus-visible{outline:3px solid #1769aa;outline-offset:4px}
.wechat-dialog{border:0;border-radius:18px;padding:0;width:420px;max-width:calc(100vw - 28px);max-height:calc(100vh - 28px);max-height:calc(100dvh - 28px);overflow:auto;box-sizing:border-box;box-shadow:0 20px 75px rgba(0,0,0,.3);color:#0b1f3a;background:#fff}
.wechat-dialog::backdrop{background:rgba(11,31,58,.58)}
.wechat-panel{position:relative;padding:28px 26px 24px;text-align:center}
.wechat-panel h2{font-size:23px;line-height:1.3;margin:4px 30px 16px}
.wechat-close{position:absolute;right:10px;top:8px;width:38px;height:38px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:#f1f5f9;color:#0b1f3a;font:28px/1 Arial,sans-serif;cursor:pointer}
.wechat-qr{display:block;width:100%;max-width:320px;height:auto;margin:0 auto;object-fit:contain;background:#fff;border:0}
.wechat-panel p{font-size:14px;line-height:1.65;color:#475467;margin:14px 0 0}
@media(max-width:700px){.wa-slot{height:46px;right:10px;bottom:10px}.wa-slot .wa,.wa-slot .wechat-open{min-width:112px;padding:10px 15px;font-size:14px}.wechat-panel{padding:24px 18px 20px}.wechat-panel h2{font-size:21px}.wechat-qr{max-width:300px}}
@media(max-width:300px){.wa-slot .wa,.wa-slot .wechat-open{min-width:96px;padding:9px 12px;font-size:12px}}
.wechat-dialog:not([open]){display:none}
.wechat-dialog[open]{display:block;position:fixed;top:50%;left:50%;margin:0;transform:translate(-50%,-50%);z-index:1000}
