/**
 * Homepage floating action buttons (Views/Home/_FloatingActions.cshtml).
 *
 * A fixed stack in the bottom end corner: WhatsApp (green), customer care
 * (brand red), scroll-to-top (white, hidden until the page is scrolled -
 * js/apps/home/floating-actions.js toggles .is-visible). Labels slide out
 * beside the first two on hover/focus. z-index 35 sits above page content
 * (the search widget is 30) but under the sticky header (40).
 */

.fab-stack {
    position: fixed;
    inset-inline-end: 16px;
    inset-block-end: 16px;
    z-index: 35;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.fab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: none;
    border-radius: 999px;
    color: #FFFFFF;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease;
}

.fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -8px rgba(0, 0, 0, 0.5);
}

.fab:focus-visible {
    outline: 3px solid rgba(139, 34, 37, 0.45);
    outline-offset: 3px;
}

.fab .material-symbols-outlined {
    font-size: 26px;
    line-height: 1;
}

.fab-svg {
    width: 28px;
    height: 28px;
}

.fab-whatsapp {
    background: #25D366;
}

.fab-care {
    background: #8B2225;
}

.fab-top {
    border: 1px solid #E5DDD6;
    background: #FFFFFF;
    color: #8B2225;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.fab-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.fab-top.is-visible:hover {
    transform: translateY(-2px);
}

/* Label pill that slides out to the start side on hover/focus (wide screens). */
.fab-tip {
    position: absolute;
    inset-inline-end: calc(100% + 10px);
    top: 50%;
    padding: 6px 12px;
    border-radius: 999px;
    background: #1F1A17;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(6px, -50%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

[dir="rtl"] .fab-tip {
    transform: translate(-6px, -50%);
}

@media (hover: hover) {
    .fab:hover .fab-tip,
    .fab:focus-visible .fab-tip {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

@media (min-width: 900px) {
    .fab-stack {
        inset-inline-end: 24px;
        inset-block-end: 24px;
    }

    .fab {
        width: 56px;
        height: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fab,
    .fab-top,
    .fab-tip {
        transition: none;
    }
}
