/* RDM marketing popup. Built on the Bootstrap 5 .modal already used by the site (online queue),
   theme tokens from base.css (--pbmit-*) and the site's .pbmit-btn button. */

.rdm-mpopup .rdm-mpopup__dialog {
    max-width: 520px;
}

.rdm-mpopup .rdm-mpopup__dialog--media {
    max-width: 780px;
}

.rdm-mpopup .rdm-mpopup__content {
    position: relative;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: var(--pbmit-white-color, #fff);
    box-shadow: 0 18px 50px rgba(3, 27, 78, .18);
}

.rdm-mpopup .rdm-mpopup__media {
    flex: 0 0 44%;
    max-width: 44%;
    background: var(--pbmit-light-color, #f0f7fd);
}

.rdm-mpopup .rdm-mpopup__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.rdm-mpopup .rdm-mpopup__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 36px 36px;
}

.rdm-mpopup .rdm-mpopup__badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(35, 172, 180, .12);
    color: var(--pbmit-global-color, #23acb4);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.rdm-mpopup .rdm-mpopup__title {
    margin: 0 0 12px;
    color: var(--pbmit-heading-color, #031b4e);
    font-family: var(--pbmit-heading-typography-font-family, inherit);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.rdm-mpopup .rdm-mpopup__text {
    margin: 0 0 22px;
    color: var(--pbmit-body-typography-color, #6e778c);
    font-size: 16px;
    line-height: 1.6;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.rdm-mpopup .rdm-mpopup__cta {
    display: inline-block;
    max-width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
}

.rdm-mpopup .rdm-mpopup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--pbmit-heading-color, #031b4e);
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(3, 27, 78, .15);
    cursor: pointer;
}

.rdm-mpopup .rdm-mpopup__close:hover,
.rdm-mpopup .rdm-mpopup__close:focus-visible {
    color: var(--pbmit-global-color, #23acb4);
    outline: 2px solid var(--pbmit-global-color, #23acb4);
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .rdm-mpopup .rdm-mpopup__dialog,
    .rdm-mpopup .rdm-mpopup__dialog--media {
        max-width: none;
        margin: 16px;
        min-height: calc(100% - 32px);
    }

    .rdm-mpopup .rdm-mpopup__content {
        flex-direction: column;
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        overflow-y: auto;
    }

    .rdm-mpopup .rdm-mpopup__media {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .rdm-mpopup .rdm-mpopup__media img {
        min-height: 0;
        height: auto;
        max-height: 32vh;
    }

    .rdm-mpopup .rdm-mpopup__body {
        padding: 22px 20px 22px;
    }

    .rdm-mpopup .rdm-mpopup__title {
        font-size: 21px;
        padding-right: 28px;
    }

    .rdm-mpopup .rdm-mpopup__dialog--media .rdm-mpopup__title {
        padding-right: 0;
    }

    .rdm-mpopup .rdm-mpopup__text {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .rdm-mpopup .rdm-mpopup__cta {
        width: 100%;
    }

    .rdm-mpopup .rdm-mpopup__close {
        position: sticky;
        top: 10px;
        margin: 10px 10px -46px auto;
        flex: 0 0 auto;
    }
}
