/* =========================================================
   FAB BUTTONS – FULL CSS REPLACEMENT
   One single pill frame, icon left, text right on hover
========================================================= */

#fab-wrap,
.fab-wrap{
    position: fixed !important;
    z-index: 2147483647 !important;
    overflow: visible !important;
    pointer-events: none !important;
    background: transparent !important;
}

.fab--right{
    right: 0px;
}

.fab--left{
    left: 20px;
}

/* -------------------------
   DESKTOP STACK
------------------------- */

.fab-desktop{
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible !important;
}

/* Left position should expand outward to the right */
.fab--left .fab-desktop{
    align-items: flex-start;
}

/* -------------------------
   SINGLE BUTTON (collapsed)
------------------------- */

.fab-item{
    display: inline-flex !important;
    flex-direction: row-reverse !important; /* icon on left, text on right */
    align-items: center !important;
    justify-content: flex-end !important;
    width: 46px;
    height: 46px;
    padding: 0px 5px !important;
    border-radius: 999px !important;
    background: #fff;
	border: none !important;
    box-shadow: 0 6px 20px rgba(0,0,0,.18) !important;
    text-decoration: none;
    overflow: hidden !important;
    pointer-events: auto !important;
    position: relative !important;
	font-family: "Satoshi", Sans-serif !important;
    z-index: 1;
    transition:
        width .28s ease,
        transform .28s ease,
        box-shadow .28s ease;
}

/* Keep the anchor aligned to the side */
.fab--right .fab-item{
    margin-left: auto;
}

.fab--left .fab-item{
    margin-right: auto;
}

/* -------------------------
   ICON
------------------------- */

.fab-icon{
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--fab-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

.fab-icon svg{
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* -------------------------
   LABEL
------------------------- */

.fab-label{
    display: block;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    padding: 0;
    margin: 0;

    transition:
        max-width .28s ease,
        opacity .18s ease,
        padding .28s ease;
}

/* When open, the label appears in the SAME pill */
.fab-item:hover,
.fab-item:focus-visible{
    width: 155px;
    cursor: pointer;
    z-index: 999999;
	background-color: #fff !important;
}

/* Right side: pill expands to the left */
.fab--right .fab-item:hover,
.fab--right .fab-item:focus-visible{
    transform: translateX(-2px);
}

/* Left side: pill expands to the right */
.fab--left .fab-item:hover,
.fab--left .fab-item:focus-visible{
    transform: translateX(2px);
}

.fab-item:hover .fab-label,
.fab-item:focus-visible .fab-label{
    max-width: 140px;
    opacity: 1;
    padding: 0 14px 0 12px;
}

/* Make the whole anchor feel like one frame */
.fab-item:hover .fab-icon,
.fab-item:focus-visible .fab-icon{
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.fab-wrap [type=button], button, .fab-wrap [type=button]:focus, .fab-wrap [type=button]:hover{
	background: #fff;
}

/* =========================================================
   Tablet
========================================================= */

/* @media (max-width: 1024px) and (min-width: 768px){
	.fab-icon{
		width: 26px;
		height: 26px;
		min-width: 26px;
	}
	
	.fab-item{
		width: 36px;
		height: 36px;
	}
} */


/* -------------------------
   MOBILE BAR
------------------------- */

.fab-mobile{
    display: none;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px){
	.fab-mobile{
    display: none !important;
}

    .fab-desktop{
        display: none;
    }

    .fab-mobile{
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;

        display: flex;
        justify-content: space-around;
        align-items: center;

        background: #fff;
        padding: 10px 5px;

        z-index: 2147483647 !important;
        box-shadow: 0 -2px 12px rgba(0,0,0,.1);

        pointer-events: auto !important;
        overflow: visible !important;
    }

    .fab-mobile-item{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        text-decoration: none;
        color: #333;
        font-size: 12px;
        flex: 1;

        pointer-events: auto !important;
        overflow: visible !important;
    }

    .fab-mobile-icon{
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: var(--fab-color);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        margin-bottom: 4px;
        position: relative;
        z-index: 2;
    }

    .fab-mobile-icon svg{
        width: 22px;
        height: 22px;
        fill: currentColor;
    }

    .fab-more-drawer{
        position: fixed;
        bottom: 80px;
        left: 20px;
        right: 20px;
        background: #fff;
        border-radius: 16px;
        padding: 12px;
        box-shadow: 0 6px 30px rgba(0,0,0,.15);
        display: none;
        z-index: 2147483647 !important;
    }
.fab-item{
    .fab-drawer-item{
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px;
        text-decoration: none;
        color: #333;
    }

    .fab-drawer-icon{
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: var(--fab-color);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
    }

    .fab-drawer-icon svg{
        width: 20px;
        height: 20px;
        fill: currentColor;
    }
}
/* Popup trigger button – inherit FAB link styling */
button.fab-item,
button.fab-mobile-item,
button.fab-drawer-item {
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
}

