/* Compact public footer; preserve every navigation and legal link. */
body .footer { padding: 28px 20px 20px !important; }
body .footer .footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr 1fr; gap: 24px; padding: 0; margin: 0 auto; }
body .footer .footer-col { min-width: 0; }
body .footer .footer-brand { margin-bottom: 8px; }
body .footer .footer-text { margin: 0; font-size: 13px; line-height: 1.5; }
body .footer h4 { margin: 0 0 8px; font-size: 14px; }
body .footer ul { margin: 0; padding: 0; list-style: none; }
body .footer li { margin: 0; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
body .footer li a { display: flex; align-items: center; min-height: 36px; padding: 4px 0; box-sizing: border-box; }
body .footer .footer-bottom { margin: 18px auto 0; padding: 12px 0 0; gap: 6px 16px; font-size: 12px; }
@media(max-width:600px) {
 body .footer .footer-inner { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px 16px; }
 body .footer .footer-col:first-child { grid-column: 1 / -1; }
 body .footer .footer-col:nth-child(3) { grid-column: 2; grid-row: 2 / span 2; }
 body .footer .footer-col:nth-child(4) { grid-column: 1; }
 body .footer li a { min-height: 44px; }
 body .footer .footer-bottom { flex-direction: row; flex-wrap: wrap; justify-content: space-between; text-align: left; }
}
/* Mobile viewport safety for floating actions and install prompts. */
.floating-actions {
    box-sizing: border-box;
    width: min(calc(100vw - 24px), 720px) !important;
    max-width: calc(100vw - 24px) !important;
    left: 50% !important;
    right: auto !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
}

.floating-actions .floating-action {
    box-sizing: border-box;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.install-banner {
    box-sizing: border-box;
    width: min(calc(100vw - 24px), 720px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-order-form .floating-actions,
.page-order-form .install-banner {
    display: none !important;
}

@media (max-width: 760px) {
    body,
    body.has-floating-actions {
        padding-bottom: 0 !important;
    }

    body.has-floating-actions .footer::after {
        content: "";
        display: block;
        height: calc(72px + env(safe-area-inset-bottom));
        background: inherit;
    }
}

@media (max-width: 420px) {
    .floating-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr) !important;
        gap: 8px !important;
    }

    .floating-actions .floating-action {
        padding: 11px 8px !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    .page-order-form .floating-actions {
        display: none !important;
    }
}
