﻿/* Altezza adattiva e supporto notch */
:root {
    --footer-h: clamp(48px, 5vh, 64px);
}

.save-footer-fixed {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--footer-h);
    padding-bottom: env(safe-area-inset-bottom, 0);
    /*z-index: 1040;*/
    display: flex;
    align-items: center;
}

.page-content-with-save-footer {
    padding-bottom: calc(var(--footer-h) + env(safe-area-inset-bottom, 0) + 12px);
}-footer

/* Layout interno del footer */
.save-footer-fixed .container-fluid {
    display: flex;
    gap: .5rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Mobile */
@media (max-width: 576px) {
    .save-footer-fixed .container-fluid {
        justify-content: stretch;
    }

    .save-footer-fixed .ms-auto {
        margin-left: 0 !important;
    }

    .save-footer-fixed .d-flex {
        width: 100%;
    }

        .save-footer-fixed .d-flex > * {
            flex: 1 1 0;
        }

    .save-footer-fixed .rz-button {
        width: 100%;
    }
}
