/* Custom layout only. Legacy template styles remain unchanged. */
:where(.tpl-footer, .tpl-footer *, .tpl-footer *::before, .tpl-footer *::after) {
    box-sizing: border-box;
}

.tpl-dark-bg:where(.tpl-footer) {
    background-color: #021d36;
}

.tpl-footer {
    font: 1rem 'Segoe UI', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.8;
    color: #f2f9ff;
    padding: 4rem 0;
}

.tpl-footer a {
    color: inherit;
    text-decoration: underline;
}
.tpl-footer a:hover {
    text-decoration: none;
}

.tpl-footer .tpl-logo__title {
    font-size: 12px;
    font-weight: 300;
    margin: 0;
    font-family: inherit;
    line-height: 1.8;
}

.tpl-footer .tpl-footer__top {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(242, 249, 255, 0.5);
}

.tpl-footer .footer_text {
    font-size: 1rem;
    line-height: 1.8;
    font-family: inherit;
    color: inherit;
}

.tpl-footer .footer_text p,
.tpl-footer .footer_text div,
.tpl-footer .footer_text br + br {
    margin-bottom: 1.25rem;
}

.tpl-footer .footer_text p {
    margin: 0 0 1.25rem 0;
}

/* The warning rendered immediately before this template footer. */
:where(.warning-sing:has(+ .tpl-footer), .warning-sing:has(+ .tpl-footer) *) {
    box-sizing: border-box;
}

.warning-sing:where(:has(+ .tpl-footer)) {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    border: 1px solid #C6C6C6!important;
    background: #FFF;
    box-shadow: 0 12px 28px 0 rgba(0, 0, 0, 0.04);
    padding: 36px 0 !important;
    margin-bottom: 32px !important;
}

:where(.warning-sing:has(+ .tpl-footer)) .warning-icon {
    margin-right: 16px !important;
    padding-top: 5px !important;
    margin-bottom: 0 !important;
}

:where(.warning-sing:has(+ .tpl-footer)) .warning-text {
    color: #4A4A4A;
    font-size: 32px !important;
    font-weight: 500 !important;
}

@media only screen and (max-width: 1024px) {
    :where(.warning-sing:has(+ .tpl-footer)) .warning-text {
        font-size: 25px !important;
    }
}
@media only screen and (max-width: 800px) {
    :where(.warning-sing:has(+ .tpl-footer)) .warning-text {
        font-size: 22px !important;
    }
}
@media only screen and (max-width: 768px) {
    .warning-sing:where(:has(+ .tpl-footer)) {
        padding: 24px 0 !important;
    }
    :where(.warning-sing:has(+ .tpl-footer)) .warning-text {
        font-size: 18px !important;
    }
}
@media only screen and (max-width: 650px) {
    :where(.warning-sing:has(+ .tpl-footer)) .warning-text {
        font-size: 16px !important;
    }
}

@media only screen and (max-width: 550px) {
    :where(.warning-sing:has(+ .tpl-footer)) .warning-icon svg{
        margin-left: 25px !important;
        width: 32px!important;
        height: 32px!important;
    }
    :where(.warning-sing:has(+ .tpl-footer)) .warning-text {
        font-weight: 600 !important;
    }
}

@media only screen and (max-width: 320px) {
    :where(.warning-sing:has(+ .tpl-footer)) .warning-text {
        font-size: 14px !important;
    }
    :where(.warning-sing:has(+ .tpl-footer)) .warning-icon svg {
        margin-left: 15px !important;
    }
}
