.capopup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 200ms ease-out;
    padding: 20px;
}

.capopup-overlay.capopup-shown {
    opacity: 1;
}

.capopup-box {
    background: #ffffff;
    color: #1f2937;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    padding: 28px 28px 20px 28px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", Roboto, sans-serif;
    line-height: 1.6;
    transform: translateY(-12px);
    transition: transform 220ms ease-out;
}

.capopup-overlay.capopup-shown .capopup-box {
    transform: translateY(0);
}

.capopup-anim-slide .capopup-box {
    transform: translateY(-40px);
}

.capopup-anim-none .capopup-box,
.capopup-anim-none.capopup-overlay {
    transition: none;
}

.capopup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: 0;
    font-size: 28px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 10px;
}

.capopup-close:hover,
.capopup-close:focus {
    color: #111827;
    outline: none;
}

.capopup-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 14px 0;
    padding-right: 24px;
    color: #111827;
}

.capopup-body {
    font-size: 15px;
    color: #374151;
    word-wrap: break-word;
}

.capopup-body img,
.capopup-body video {
    max-width: 100%;
    height: auto;
}

.capopup-body p:last-child {
    margin-bottom: 0;
}

.capopup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    gap: 12px;
    flex-wrap: wrap;
}

.capopup-dontshow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    margin: 0;
}

.capopup-ok {
    background: #2563eb;
    color: #ffffff;
    border: 0;
    padding: 8px 22px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-left: auto;
}

.capopup-ok:hover {
    background: #1d4ed8;
}

body.capopup-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .capopup-overlay {
        padding: 12px;
    }
    .capopup-box {
        padding: 20px 16px 16px 16px;
        max-height: 92vh;
    }
    .capopup-title {
        font-size: 16px;
    }
    .capopup-body {
        font-size: 14px;
    }
}
