/* -------------------------------------- */
/* 1. Widget Container (Fixed Position)   */
/* -------------------------------------- */
.fab-phone-widget {
    /* Fixed positioning relative to the viewport */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999; /* Ensure it stays above Elementor elements and headers */
    /* Only visible on mobile devices. WordPress wp_is_mobile handles the loading,
       but this acts as a final safeguard. */
}

/* -------------------------------------- */
/* 2. Floating Action Button (FAB)        */
/* -------------------------------------- */
.fab-toggle {
    /* Design */
    background-color: #C00000; /* Primary color: Red */
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    /* Centering content */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Subtle, noticeable shadow */
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.fab-toggle:hover,
.fab-toggle:focus {
    background-color: #990000; /* Darker hover state */
    outline: none; /* Remove default focus outline */
}

/* Styling for the icon, now assumed to be an <img> tag */
.fab-toggle .phone-icon {
    width: 24px;
    height: 24px;
    display: block; /* Ensures the image is correctly centered */
    /* Rotation logic removed as it's generally unsuitable for custom SVG images */
}


.fab-toggle[aria-expanded="true"] {
    background-color: #333; /* Change button color when open */
}


/* -------------------------------------- */
/* 3. Phone List Popup                    */
/* -------------------------------------- */
.phone-list-container {
    position: absolute;
    bottom: 80px; /* Position above the FAB button (60px height + 20px spacing) */
    right: 0;
    width: 280px;
    max-width: calc(100vw - 40px); /* Ensures it doesn't overflow mobile screen */
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    padding: 10px 0;
    
    /* Animation settings (hidden by default) */
    transform: translateY(10px); 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                visibility 0.3s;
}

/* State when the list is visible */
.phone-list-container.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header Text */
.phone-list-container .list-header {
    margin: 0;
    padding: 0 15px 10px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 1px solid #eee;
    text-align: center;
}

/* Individual Phone Links */
.phone-list-container .phone-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 15px;
    color: #333;
    transition: background-color 0.15s ease;
}

.phone-list-container .phone-item:hover,
.phone-list-container .phone-item:focus {
    background-color: #fcebeb; /* Very light red background on hover */
}

.phone-list-container .phone-item span {
    font-weight: 700;
    color: #C00000; /* Highlight the number in red */
    margin-left: 15px;
}