/* ── Backdrop ── */
.lp-popup-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.60);
    z-index: 999999;
    box-sizing: border-box;
}
.lp-popup-backdrop.lp-active {
    display: block;
}

/* ── Overlay: centers the box ── */
.lp-popup-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* ── Modal box ── */
.lp-popup-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.25);
    width: var(--lp-width, 500px);
    max-width: 100%;
    height: var(--lp-height, 500px);
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* ── Close button ── */
.lp-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: #6f6f7b;
    padding: 4px;
    border-radius: 6px;
    line-height: 1;
    z-index: 10;
    transition: color 0.15s, background 0.15s;
}
.lp-popup-close:hover {
    color: #17171c;
    background: #f4f4f5;
}

/* ── Header ── */
.lp-popup-header {
    padding: 20px 44px 14px 20px;
    border-bottom: 1px solid #e4e4e7;
    flex-shrink: 0;
}
.lp-popup-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #17171c;
    line-height: 1.4;
}

/* ── Body ── */
.lp-popup-body {
    padding: 18px 20px;
    overflow-y: auto;
    flex: 1;
    font-size: 14px;
    line-height: 1.75;
    color: #3f3f46;
    box-sizing: border-box;
}
.lp-popup-body::-webkit-scrollbar { width: 5px; }
.lp-popup-body::-webkit-scrollbar-track { background: #f4f4f5; }
.lp-popup-body::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 3px; }

/* ── Footer ── */
.lp-popup-footer {
    padding: 14px 20px;
    border-top: 1px solid #e4e4e7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    background: #fff;
    flex-wrap: wrap;
}

/* ── Checkbox row ── */
.lp-popup-footer .lp-agree-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.lp-popup-footer .lp-agree-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #17171c;
    flex-shrink: 0;
}
.lp-popup-footer .lp-agree-row label {
    font-size: 13px;
    color: #6f6f7b;
    cursor: pointer;
    margin: 0;
    line-height: 1.4;
}

/* ── Accept button ── */
.lp-popup-accept {
    background: #17171c;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, opacity 0.15s;
    flex-shrink: 0;
    opacity: 0.4;
    pointer-events: none;
}
.lp-popup-accept.lp-enabled {
    opacity: 1;
    pointer-events: auto;
}
.lp-popup-accept.lp-enabled:hover {
    background: #3f3f46;
}

/* ── Fallback inline content ── */
.lp-inline-content {
    padding: 20px;
}
.lp-inline-content h2 {
    margin-top: 0;
    margin-bottom: 15px;
}