/*
 * Substitui os dois handlers/modalidades concorrentes de termos do frontend.
 * Arquivo: wp-content/plugins/alfaprint-suite/assets/css/terms-shadowbox-v4106.css
 */
html.apcsu-terms-shadowbox-open,
body.apcsu-terms-shadowbox-open {
    overflow: hidden !important;
}

.apcsu-terms-shadowbox-v4106 {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    box-sizing: border-box;
}

.apcsu-terms-shadowbox-v4106.is-open {
    display: flex;
}

.apcsu-terms-shadowbox-v4106__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .62);
    backdrop-filter: blur(5px);
}

.apcsu-terms-shadowbox-v4106__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(920px, calc(100vw - 44px));
    height: min(760px, calc(100dvh - 44px));
    max-width: 920px;
    max-height: 760px;
    margin: auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .3);
    box-sizing: border-box;
}

.apcsu-terms-shadowbox-v4106__head {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 15px 16px 15px 18px;
    border-bottom: 1px solid #e8edf4;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.apcsu-terms-shadowbox-v4106__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #eaf3ff;
    color: #0b4dcc;
    font-size: 17px;
}

.apcsu-terms-shadowbox-v4106__title {
    min-width: 0;
    margin: 0;
    color: #071b45;
    font-family: inherit;
    font-size: 19px;
    font-weight: 850;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.apcsu-terms-shadowbox-v4106__close {
    display: inline-grid !important;
    place-items: center !important;
    align-content: center !important;
    justify-content: center !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #dce5f1 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #071b45 !important;
    box-shadow: none !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.apcsu-terms-shadowbox-v4106__close :is(i, svg, span) {
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    transform: none !important;
}

.apcsu-terms-shadowbox-v4106__close:is(:hover, :focus-visible) {
    border-color: #9eb2d0 !important;
    background: #eef3ff !important;
    color: #2a4fcc !important;
    outline: none !important;
}

.apcsu-terms-shadowbox-v4106__frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: #fff;
}

@media (max-width: 720px) {
    .apcsu-terms-shadowbox-v4106 {
        padding: 10px;
    }

    .apcsu-terms-shadowbox-v4106__dialog {
        width: calc(100vw - 20px);
        height: calc(100dvh - 20px);
        max-height: none;
        border-radius: 18px;
    }

    .apcsu-terms-shadowbox-v4106__head {
        grid-template-columns: 34px minmax(0, 1fr) 36px;
        gap: 9px;
        padding: 13px 12px 13px 14px;
    }

    .apcsu-terms-shadowbox-v4106__icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 15px;
    }

    .apcsu-terms-shadowbox-v4106__title {
        font-size: 16px;
    }

    .apcsu-terms-shadowbox-v4106__close {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
    }
}
