﻿/* Altezza adattiva e supporto notch */
:root {
    --footer-h: clamp(64px, 7vh, 86px);
}

.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%;
    }
}
body:has(.tv-waiting-room) {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

body:has(.tv-waiting-room) > .page {
    flex: 1 1 auto;
    min-height: 0;
}

.page:has(.tv-waiting-room) > main,
.page:has(.tv-waiting-room) .reserved-area-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
}

.page:has(.tv-waiting-room) .reserved-area-content {
    padding: 0 !important;
    max-width: none !important;
}

.page:has(.tv-waiting-room) .tv-waiting-room {
    flex: 1 1 auto;
    width: 100%;
}
@media (min-width: 768px) {
.min-vh-100:has(.tv-page-in-call) {
    height: 100dvh;
    min-height: 0 !important;
    overflow: hidden;
}

.min-vh-100:has(.tv-page-in-call) .page,
.min-vh-100:has(.tv-page-in-call) main,
.min-vh-100:has(.tv-page-in-call) article,
.min-vh-100:has(.tv-page-in-call) .rz-layout,
.min-vh-100:has(.tv-page-in-call) .rz-body,
.min-vh-100:has(.tv-page-in-call) .page-content-with-save-footer {
    min-height: 0;
}

.min-vh-100:has(.tv-page-in-call) .page-content-with-save-footer {
    padding-bottom: 0 !important;
}
}
