﻿/* ==========================================================
   MHG FOOTER COPYRIGHT WIDGET
   ========================================================== */

.mhg-footer-copyright-widget,
.mhg-footer-copyright-widget *,
.mhg-footer-copyright-widget *::before,
.mhg-footer-copyright-widget *::after {
    box-sizing: border-box;
}

.mhg-footer-copyright {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 2rem;
    width: 100% !important;
    margin: 0 !important;
    padding: 2.25rem 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Left side: social icons, copyright and reCAPTCHA attribution */

.mhg-footer-copyright__left {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.mhg-footer-copyright__left-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 1.75rem;
    margin: 0 !important;
    padding: 0 !important;
}

.mhg-footer-copyright__socials {
    display: flex !important;
    flex: 0 0 auto;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 1rem;
    margin: 0 !important;
    padding: 0 !important;
}

    .mhg-footer-copyright__socials a,
    .mhg-footer-copyright__socials a:link,
    .mhg-footer-copyright__socials a:visited {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 1rem !important;
        height: 1rem !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        color: #ffffff !important;
        background: transparent !important;
        font-size: 1rem !important;
        line-height: 1 !important;
        text-decoration: none !important;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .mhg-footer-copyright__socials em,
    .mhg-footer-copyright__socials i {
        display: inline-block !important;
        margin: 0 !important;
        padding: 0 !important;
        color: inherit !important;
        font-size: inherit !important;
        line-height: 1 !important;
    }

    .mhg-footer-copyright__socials a:hover,
    .mhg-footer-copyright__socials a:focus-visible {
        color: #ffffff !important;
        text-decoration: none !important;
        transform: translateY(-1px);
    }

.mhg-footer-copyright__text {
    display: block !important;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font: inherit;
    line-height: 1.5 !important;
    white-space: nowrap !important;
}

/* Google reCAPTCHA attribution */

.mhg-recaptcha-attribution {
    display: block;
    max-width: 48rem;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-size: 0.75rem;
    line-height: 1.5;
    text-align: left;
}

    .mhg-recaptcha-attribution a,
    .mhg-recaptcha-attribution a:link,
    .mhg-recaptcha-attribution a:visited {
        color: #ffffff !important;
        text-decoration: underline !important;
    }

        .mhg-recaptcha-attribution a:hover,
        .mhg-recaptcha-attribution a:focus-visible {
            color: #ffffff !important;
            text-decoration: none !important;
        }

/* Right-side legal links */

.mhg-footer-copyright__legal {
    display: flex !important;
    flex: 0 0 auto;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 1.75rem;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

    .mhg-footer-copyright__legal a,
    .mhg-footer-copyright__legal a:link,
    .mhg-footer-copyright__legal a:visited {
        display: inline-block !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #ffffff !important;
        background: transparent !important;
        font-size: inherit !important;
        line-height: 1.5 !important;
        white-space: nowrap !important;
        text-decoration: none !important;
        transition: color 0.2s ease;
    }

        .mhg-footer-copyright__legal a:hover,
        .mhg-footer-copyright__legal a:focus-visible {
            color: #ffffff !important;
            text-decoration: underline !important;
        }

        .mhg-footer-copyright__socials a:focus-visible,
        .mhg-footer-copyright__legal a:focus-visible,
        .mhg-recaptcha-attribution a:focus-visible {
            outline: 2px solid #ffffff;
            outline-offset: 4px;
        }

/* Google permits hiding its badge when attribution is displayed. */

.grecaptcha-badge {
    visibility: hidden !important;
}

/* Tablets and phones */

@media (max-width: 991.98px) {
    .mhg-footer-copyright {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 1.5rem;
    }

    .mhg-footer-copyright__left {
        width: 100%;
    }

    .mhg-footer-copyright__left-row {
        flex-wrap: wrap !important;
        gap: 1rem 1.5rem;
    }

    .mhg-footer-copyright__text {
        white-space: normal !important;
    }

    .mhg-footer-copyright__legal {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        gap: 1rem 1.5rem;
        margin-left: 0 !important;
        white-space: normal !important;
    }
}

/* Small phones */

@media (max-width: 575.98px) {
    .mhg-footer-copyright {
        padding: 1.75rem 0 !important;
    }

    .mhg-footer-copyright__left-row {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .mhg-footer-copyright__legal {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .mhg-recaptcha-attribution {
        max-width: 100%;
    }
}
