/*
 * Pied de page commun aux pages du plugin (site public, auth, tableau de bord).
 */

body.weavy-has-plugin-footer {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.weavy-has-plugin-footer #weavy-page-content,
body.weavy-has-plugin-footer .wls-main {
    flex: 1 0 auto;
    width: 100%;
}

.weavy-plugin-footer {
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
    box-sizing: border-box;
    background: #1a1a1a;
    color: #efefef;
    font-size: 16px;
    line-height: 1.5;
}

.weavy-plugin-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    min-height: 65px;
    padding: 16px 8%;
    box-sizing: border-box;
}

.weavy-plugin-footer .weavy-plugin-footer__copy {
    margin: 0;
    color: #efefef;
    font-size: 16px;
    line-height: 1.5;
}

.weavy-plugin-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: right;
}

.weavy-plugin-footer .weavy-plugin-footer__links a,
.weavy-plugin-footer .weavy-plugin-footer__links span,
.wls-body .weavy-plugin-footer .weavy-plugin-footer__links a,
.wls-body .weavy-plugin-footer .weavy-plugin-footer__links span {
    color: #efefef;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
}

.weavy-plugin-footer .weavy-plugin-footer__links a:hover,
.weavy-plugin-footer .weavy-plugin-footer__links a:focus,
.wls-body .weavy-plugin-footer .weavy-plugin-footer__links a:hover,
.wls-body .weavy-plugin-footer .weavy-plugin-footer__links a:focus {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 767px) {
    .weavy-plugin-footer__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 18px 8%;
    }

    .weavy-plugin-footer .weavy-plugin-footer__copy {
        text-align: left;
    }

    .weavy-plugin-footer__links {
        justify-content: flex-end;
        width: 100%;
    }
}
