/* Container for the FAB */
.custom-fab-container {
    position: fixed;
    z-index: 999;
}

/* Base fixed button styles */
.fixed-button {
    position: fixed;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16);
    z-index: 999;
    transition: bottom 0.3s ease, right 0.3s ease;
}

/* Email button (request callback) */
.email-button {
    bottom: 24px;
    right: 97px;
    height: 48px;
    width: 48px;
    background-color: #B704F6;
}

/* Call button (WhatsApp) */
.call-button {
    bottom: 87px;
    right: 76px;
    height: 48px;
    width: 48px;
    background-color: #B704F6;
}

/* WhatsApp button (Phone) */
.whatsapp-button {
    bottom: 108px;
    right: 15px;
    height: 48px;
    width: 48px;
    background-color: #B704F6;
}

/* Main toggle button */
.toggle-button {
    bottom: 20px;
    right: 20px;
    background-color: #B704F6;
}

.toggle-button.open {
    background-color: #D6D6D6;
}

/* When cart is visible, move ALL buttons up */
.custom-fab-container.cart-visible .toggle-button {
    bottom: 60px; /* 48px cart height + 40px spacing */
}

.custom-fab-container.cart-visible .email-button {
    bottom: 60px; /* Move up by same amount */
}

.custom-fab-container.cart-visible .call-button {
    bottom: 124px; /* 85px + 68px */
    right: 82px;
}

.custom-fab-container.cart-visible .whatsapp-button {
    bottom: 136px; /* 110px + 68px */
}

/* Action item image */
.action-item-img {
    width: 24px;
    height: 24px;
}

/* Margin utility */
.margin-top-20 {
    margin-top: 20px;
}

/* Dialog styles */
.dialog-callback {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.2rem;
    width: 100%;
    box-sizing: border-box;
}

.dialog-callback-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.dialog-callback-header-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: start;
}

.dialog-callback-header-title {
    font-size: 1.2rem;
    line-height: 0.8rem;
    text-align: start;
}

.dialog-callback-header-subtitle {
    color: #6D6D6D;
    font-size: 0.9rem;
    text-align: start;
}

.dialog-callback-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.dialog-callback-button button {
    font-family: 'PlusJakartaSans';
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    border: 0px;
    border-radius: 10px;
    cursor: pointer;
    background-color: #B704F6;
    align-items: center;
    color: #EEFDFD;
    font-size: 1rem;
    line-height: 1.6rem;
    font-weight: 400;
    gap: 1rem;
}

/* Location dialog */
.location-dialog {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.location-item {
    padding: 12px;
    cursor: pointer;
    border-radius: 8px;
}

.location-item:hover {
    background-color: #F3F4F6;
}

.location-item.selected {
    background-color: #F3F4F6;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .fixed-button {
        width: 56px;
        height: 56px;
    }

    .toggle-button {
        bottom: 60px;
        right: 16px;
        width: 56px;
        height: 56px;
    }

    /* Move buttons up on mobile when cart is visible */
    .custom-fab-container.cart-visible .toggle-button {
        bottom: 135px; /* 44px cart height + 30px spacing */
    }

    .custom-fab-container.cart-visible .email-button {
        bottom: 135px;
        right: 90px;
    }

    .custom-fab-container.cart-visible .call-button {
        bottom: 187px; /* 85px + 54px */
        right: 75px;
    }

    .custom-fab-container.cart-visible .whatsapp-button {
        bottom: 200px;
        right: 20px;/* 110px + 54px */
    }

    .email-button{
        width: 44px;
        height: 44px;
        bottom: 65px;
        right: 87px;
    }

    .call-button{
        width: 44px;
        height: 44px;
        bottom: 118px;
        right: 76px;
    }

    .whatsapp-button {
        width: 44px;
        height: 44px;
        bottom: 124px;
        right: 18px;
    }

    .action-item-img {
        width: 20px;
        height: 20px;
    }
}

