/*
 * Floating contact buttons – always expanded, no toggle.
 * Markup: _fab.php.  Desktop: stacked pills bottom-right.  Phones: one bar across the bottom.
 */
.contact-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: bottom .25s ease;
}

.contact-fab__btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 20px 9px 10px;
    border-radius: 999px;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
    transition: transform .2s ease, box-shadow .2s ease;
}

.contact-fab__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .3); }
.contact-fab__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px #0b71e1; }

.contact-fab__btn > i {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    font-size: 20px;
}

.contact-fab__text { display: flex; flex-direction: column; line-height: 1.2; }
.contact-fab__text small { font-size: 12px; opacity: .9; }
.contact-fab__text strong { font-size: 16px; font-weight: 600; white-space: nowrap; }

.contact-fab__btn--tel { background: linear-gradient(135deg, #ff9a1f, #f0640a); }
.contact-fab__btn--line { background: linear-gradient(135deg, #1fd34a, #07a63a); }

/* gentle attention pulse on the phone icon */
.contact-fab__btn--tel > i { animation: contact-fab-pulse 2.4s ease-out infinite; }

@keyframes contact-fab-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
    70%, 100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
}

/* a cookie banner is open: lift the buttons above it */
html.has-consent-banner .contact-fab { bottom: calc(var(--consent-h, 120px) + 14px); }

@media (max-width: 767.98px) {
    .contact-fab {
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: row;
        gap: 0;
        padding-bottom: env(safe-area-inset-bottom);
        background: #fff;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, .18);
    }
    .contact-fab__btn {
        flex: 1 1 0;
        justify-content: center;
        gap: 8px;
        padding: 8px 6px;
        border-radius: 0;
        box-shadow: none;
    }
    .contact-fab__btn:hover { transform: none; box-shadow: none; }
    .contact-fab__btn > i { flex-basis: 34px; width: 34px; height: 34px; font-size: 16px; }
    .contact-fab__text small { font-size: 11px; }
    .contact-fab__text strong { font-size: 14px; }
    body { padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
    .contact-fab, .contact-fab__btn { transition: none; }
    .contact-fab__btn--tel > i { animation: none; }
}
