.ui-widget-overlay.ui-front {
    background: rgba(81, 88, 97, 0.60);
    backdrop-filter: blur(7px);
}

.external-link-popup.external-link-popup-id-default.ui-dialog,
.external-link-popup.external-link-popup-id-modal-home_splash.ui-dialog {

    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 60px;
    border-radius: 16px;
    max-width: 893px;
    background-color: #FFF;
    border-radius: 16px;
    z-index: 1025;

    @media (max-width: 991px) {
        left: 50% !important;
        transform: translateX(-50%);
        padding: 40px 24px;
        gap: 40px;
        max-width: none;

        /* CHR-9 (DONI-663). The `!important` is load-bearing for the REAL
         * external_link_popup dialogs: those are jQuery UI widgets and the
         * widget writes an inline `style="width: …"` that nothing else can
         * beat. It is left exactly as it was for them.
         *
         * The theme's own confirmation gate reuses these classes only to
         * borrow this file's look (see js/hcp-modal.js), and its markup is
         * static — there is no inline width to beat, so it does not need the
         * `!important` and could not override it either. Excluding
         * `.hcp-modal-dialog` here is what lets the gate's measured mobile
         * width (343 at 375) live in css/components/hcp-modal.css without an
         * `!important` arms race. No non-gate dialog changes. */
        &:not(.hcp-modal-dialog) {
            width: 90% !important;
        }
    }

    .ui-dialog-titlebar {
        display: none;
    }

    .external-link-popup-content.ui-dialog-content.ui-widget-content {
        border-radius: 20px;

        @media (max-width: 991px) {
            padding: 0px;
        }

        .external-link-popup-body {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            gap: 24px;

            h3 {
                color: var(--STEEL, #515861);
                text-align: center;
                font-family: var(--Font-H3, var(--font-tilt-neon));
                font-size: 32px;
                font-style: normal;
                font-weight: 400;
                line-height: normal;
                margin: 0;

                @media (max-width: 991px) {
                    font-size: 26px;
                }
            }

            p {
                color: var(--STEEL, #515861);
                text-align: center;
                font-family: var(--Font-Body, Agenda);
                font-size: 20px;
                font-style: normal;
                font-weight: 400;
                line-height: normal;
                margin: 0;
                letter-spacing: 0.02px;
            }
        }
    }

    .ui-dialog-buttonpane.ui-widget-content.ui-helper-clearfix {
        background: white;
        margin-top: 0;
        border: 0;
        border-radius: 20px;
        padding: 0;

        .ui-dialog-buttonset {
            display: flex;
            justify-content: center;
            width: 100%;
            gap: 16px;

            @media (max-width:991px) {
                flex-direction: column;
            }

            .button {
                display: flex;
                height: 48px;
                padding: 13px 16px 11px 24px;
                justify-content: center;
                align-items: center;
                gap: 8px;
                border-radius: 999px;
                font-style: normal;
                font-weight: 700;
                position: relative;
                font-size: 20px;
                margin: 0px;

                @media (max-width: 991px) {
                    gap: 5px;
                    max-width: 100%;
                }
            }

            .button:nth-child(1) {
                background: var(--White, #FFF);
                border: 3px solid var(--color-primary, var(--color-nav-active));
                color: var(--color-primary, var(--color-nav-active));
            }

            .button:nth-child(1)::after {
                content: '';
                width: 24px;
                height: 24px;
                background-repeat: no-repeat;
                background-position: center;
                background-size: contain;
                display: inline-block;
                background: url("../../images/icons/arrow-coral-right.svg");

            }

            .button:nth-child(2) {
                background: var(--color-primary, var(--color-nav-active));
                color: var(--color-white, #ffffff);
            }

            .button:nth-child(2)::after {
                content: '';
                width: 24px;
                height: 24px;
                background-repeat: no-repeat;
                background-position: center;
                background-size: contain;
                display: inline-block;
                background: url("../../images/icons/chevron-right.svg");
            }

        }
    }
}

/* Swap button styles for Home Splash Screen */
.external-link-popup.external-link-popup-id-modal-home_splash.ui-dialog {
    .ui-dialog-buttonpane.ui-widget-content.ui-helper-clearfix {
        .ui-dialog-buttonset {
            .button:nth-child(2) {
                background: var(--Coral, var(--color-nav-active));
                color: white;
            }
            .button:nth-child(2)::after {
                content: '';
                width: 24px;
                height: 24px;
                background-repeat: no-repeat;
                background-position: center;
                background-size: contain;
                display: inline-block;
                background: url("../../images/icons/chevron-right.svg");
            }
            .button:nth-child(1) {
                background: var(--White, #FFF);
                border: 3px solid var(--Coral, var(--color-nav-active));
                color: var(--color-nav-active);
            }
            .button:nth-child(1)::after {
                content: '';
                width: 24px;
                height: 24px;
                background-repeat: no-repeat;
                background-position: center;
                background-size: contain;
                display: inline-block;
                background: url("../../images/icons/arrow-coral-right.svg");
            }
        }
    }
}
