/* MiniOrange PDProtect - Frontend Privacy Popup */

.mopdp-popup-wrap {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mopdp-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.mopdp-popup-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 12px;
    padding: 0 0 1.75rem;
    max-width: 1100px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    animation: mopdp-popup-in 0.3s ease;
}

@keyframes mopdp-popup-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Header ── */
.mopdp-popup-header {
    background: #e8f1fb !important;
    padding: 28px 32px 24px;
    text-align: center;
    flex-shrink: 0;
    position: relative;
}

.mopdp-popup-icon {
    color: rgb(25, 121, 195);
    margin-bottom: 0.85rem;
    display: flex;
    justify-content: center;
}

.mopdp-popup-title {
    font-size: 28px;
    font-weight: 700;
    color: #1979c3;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.01em;
}

/* ── Body ── */
.mopdp-popup-body {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin: 0;
    padding: 24px 32px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-y: auto;
    text-align: left;
    flex: 1;
    min-height: 0;
}

.mopdp-popup-body strong {
    display: block;
    margin-top: 24px;
    margin-bottom: 6px;
    font-size: 20px;
    color: black;
}

.mopdp-popup-body strong:first-child {
    margin-top: 0;
}

/* thin blue scrollbar */
.mopdp-popup-body::-webkit-scrollbar {
    width: 4px;
}

.mopdp-popup-body::-webkit-scrollbar-track {
    background: #f2f2f2;
    border-radius: 2px;
}

.mopdp-popup-body::-webkit-scrollbar-thumb {
    background: rgb(192, 201, 207);
    border-radius: 2px;
}

.mopdp-popup-link {
    color: rgb(25, 121, 195);
    text-decoration: underline;
}

.mopdp-popup-link:hover {
    color: rgb(18, 95, 155);
}

/* ── Actions (sticky footer) ── */
.mopdp-popup-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-shrink: 0;
    padding: 16px 32px;
    border-top: 2px solid #ebebeb;
    background: #fff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}

.mopdp-popup-btn {
    padding: 0.75rem 2.75rem;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mopdp-popup-btn:active {
    transform: scale(0.97);
}

.mopdp-popup-btn-accept {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    padding: 0.75rem 1rem;
    border: 1.5px solid #1979c3;
    border-radius: 8px;
    background: #1979c3;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    box-sizing: border-box;
    text-align: center;
}

.mopdp-popup-btn-accept:hover {
    background: #006bb4;
    border-color: #006bb4;
    color: #fff;
}

/* ── Close button (sits inside dark header) ── */
.mopdp-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(25, 121, 195, 0.08);
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #1979c3;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.mopdp-popup-close:hover {
    color: #1979c3;
    background: rgba(25, 121, 195, 0.18);
}