/* ── Praxis Banner – Frontend Popup ── */

/* Overlay */
#praxis-banner-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(173, 216, 230, 0.50);
    backdrop-filter: blur(2px);
    animation: pbFadeIn 0.35s ease;
}

/* Popup card */
#praxis-banner-popup {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: 90%;
    max-width: 620px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(30, 58, 95, 0.22);
    border-left: 6px solid #1e3a5f;
    animation: pbPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    padding: 36px 36px 32px 32px;
    box-sizing: border-box;
}

@keyframes pbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pbPopIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.88); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Inner layout */
.pb-inner {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

/* Logo column */
.pb-logo-col {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 20px;
    border-right: 1px solid #e8eef4;
}

.pb-logo-col img {
    max-width: 110px;
    max-height: 90px;
    object-fit: contain;
    display: block;
}

.pb-logo-col.pb-no-logo {
    display: none;
}

/* Text column */
.pb-text-col {
    flex: 1;
    min-width: 0;
}

.pb-text-col h2 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    line-height: 1.3;
    font-family: inherit;
}

.pb-text-col p {
    margin: 0;
    font-size: 16px;
    color: #4a5568;
    line-height: 1.65;
    font-family: inherit;
}

/* Close button */
#praxis-banner-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f0f4f8;
    cursor: pointer;
    font-size: 18px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
    padding: 0;
}

#praxis-banner-close:hover {
    background: #1e3a5f;
    color: #fff;
}

/* ── MOBILE ─────────────────────────────────────── */
@media (max-width: 600px) {
    #praxis-banner-popup {
        width: 92%;
        padding: 28px 20px 24px 18px;
        border-left-width: 5px;
    }

    .pb-inner {
        flex-direction: column;
        gap: 16px;
    }

    .pb-logo-col {
        border-right: none;
        border-bottom: 1px solid #e8eef4;
        padding-right: 0;
        padding-bottom: 14px;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .pb-logo-col img {
        max-width: 90px;
        max-height: 70px;
    }

    .pb-text-col {
        text-align: center;
    }

    .pb-text-col h2 {
        font-size: 18px;
    }

    .pb-text-col p {
        font-size: 14px;
    }

    #praxis-banner-close {
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}
