.jiwoo-wechat-dialog:not([open]) { display: none; }
.jiwoo-wechat-dialog {
    box-sizing: border-box;
    width: min(560px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: #302432;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
    overflow: hidden;
    overscroll-behavior: contain;
    text-align: center;
}
.jiwoo-wechat-dialog[open] { display: flex; flex-direction: column; }
.jiwoo-wechat-dialog::backdrop { background: rgba(20, 13, 22, .65); }
.jiwoo-wechat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 12px 14px 12px 24px;
    border-bottom: 1px solid #eae4eb;
    text-align: left;
}
.jiwoo-wechat-header h2 { flex: 1; margin: 0; font-size: 20px; font-weight: 700; line-height: 1.5; }
.jiwoo-wechat-close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f3eff4;
    color: #3f0f40;
    font: 30px/1 sans-serif;
    cursor: pointer;
}
.jiwoo-wechat-content { min-height: 0; padding: 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.jiwoo-wechat-content p { margin: 0; font-size: 16px; line-height: 1.7; }
.jiwoo-wechat-image { display: block; width: 100%; height: auto; margin: 24px auto; object-fit: contain; background: #fff; }
.jiwoo-wechat-content .jiwoo-wechat-mobile-hint { color: #685e6c; font-size: 14px; }
.jiwoo-wechat-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.jiwoo-wechat-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 1px solid #d9cddd; border-radius: 24px; color: #3f0f40; font-size: 14px; font-weight: 700; text-decoration: none; }
.jiwoo-wechat-actions a:first-child { background: #3f0f40; border-color: #3f0f40; color: #fff; }
.jiwoo-wechat-dialog :focus-visible { outline: 3px solid #92659b; outline-offset: 3px; }
html.jiwoo-wechat-open, html.jiwoo-wechat-open body { overflow: hidden; }
@media (max-width: 480px) {
    .jiwoo-wechat-header { padding-left: 16px; }
    .jiwoo-wechat-header h2 { font-size: 17px; }
    .jiwoo-wechat-content { padding: 20px 16px; }
    .jiwoo-wechat-actions { gap: 8px; }
    .jiwoo-wechat-actions a { padding: 0 16px; }
}
