
/* =========== Footer ========== */

:root {
    --footer-height: 76px;
}

footer.footer {
    color: #f1f1f1;
    font-size: 16px;
}

/* Footer Background */
footer.footer.bg-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    z-index: 1030;

    color: #dedede;
    background: #151819 center center / cover no-repeat;

    border-top: 1px solid #333;

    padding-bottom: env(safe-area-inset-bottom);
}

/* Footer Menu */
.footer-menu {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    width: 100%;
    height: var(--footer-height);
    padding: 0;
    margin: 0;
}

/* Menu Item */
.footer-menu-item {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

/* Menu Link */
.footer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    padding: 8px 4px;
    gap: 4px;

    color: #dedede;
    text-decoration: none;

    transition: color 0.2s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: #febd01;
}

/* Menu Icon */
.footer-link .img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-link .img img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Menu Text */
.footer-link .text {
    width: 100%;
    min-width: 0;
}

.footer-link .small {
    font-size: 12px;
    line-height: 1.3;
}

/* Footer Title */
.footer-block-title-h5 {
    color: #febd01;
    font-size: 17px;
}

/* Prevent content from being hidden */
body {
    padding-bottom: calc(
            var(--footer-height) + env(safe-area-inset-bottom)
    );
}

/* Mobile */
@media (max-width: 575.98px) {
    :root {
        --footer-height: 68px;
    }

    .footer-link {
        padding: 6px 2px;
        gap: 3px;
    }

    .footer-link .img img {
        width: 26px;
        height: 26px;
    }

    .footer-link .small {
        font-size: 11px;
    }
}
