/* Sticky CTA Button Styles */
.sticky-cta-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: inherit;
}

.sticky-cta-button.rtl {
    right: auto;
    left: 20px;
}

.sticky-cta-main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color, #dc3545);
    color: #fff;
    border: none;
    cursor: default;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.sticky-cta-main-btn:hover {
    background: var(--dark-color, #212529);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.sticky-cta-main-btn:focus {
    outline: 2px solid var(--primary-color, #dc3545);
    outline-offset: 2px;
}

.sticky-cta-options {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.3s ease;
    pointer-events: all;
}

.sticky-cta-button.rtl .sticky-cta-options {
    right: auto;
    left: 0;
}

.sticky-cta-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
}

.sticky-cta-option:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #333;
}

.sticky-cta-button.rtl .sticky-cta-option:hover {
    transform: translateX(5px);
}

.sticky-cta-option i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.sticky-cta-phone {
    color: #28a745;
}

.sticky-cta-phone:hover {
    background: #28a745;
    color: #fff;
}

.sticky-cta-whatsapp {
    color: #25d366;
}

.sticky-cta-whatsapp:hover {
    background: #25d366;
    color: #fff;
}

.sticky-cta-email {
    color: var(--primary-color, #dc3545);
}

.sticky-cta-email:hover {
    background: var(--primary-color, #dc3545);
    color: #fff;
}

.sticky-cta-contact {
    color: var(--primary-color, #dc3545);
}

.sticky-cta-contact:hover {
    background: var(--primary-color, #dc3545);
    color: #fff;
}

.sticky-cta-label {
    display: inline-block;
}

/* RTL Specific Adjustments */
[dir="rtl"] .sticky-cta-option {
    flex-direction: row-reverse;
}

[dir="rtl"] .sticky-cta-option i {
    margin-left: 0;
    margin-right: 0;
}

/* Responsive - Mobile Bottom Navigation Bar */
@media (max-width: 768px) {
    /* Add padding to body to prevent content from being hidden behind bottom nav */
    body {
        padding-bottom: 70px;
    }
    
    .sticky-cta-button {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 9999;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: 0;
        margin: 0;
    }
    
    .sticky-cta-button.rtl {
        left: 0;
        right: 0;
    }
    
    /* Hide main button on mobile */
    .sticky-cta-main-btn {
        display: none !important;
    }
    
    /* Make options a horizontal bottom nav bar */
    .sticky-cta-options {
        position: static;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        padding: 8px 0;
        gap: 0;
        bottom: auto;
        right: auto;
        left: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
    }
    
    .sticky-cta-button.rtl .sticky-cta-options {
        right: auto;
        left: auto;
    }
    
    /* Style each option as a nav item */
    .sticky-cta-option {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 4px;
        background: transparent;
        border-radius: 8px;
        box-shadow: none;
        flex: 1;
        min-width: 0;
        gap: 4px;
        font-size: 11px;
        font-weight: 500;
        color: var(--primary-color, #dc3545);
        transition: all 0.2s ease;
    }
    
    .sticky-cta-option:hover,
    .sticky-cta-option:active {
        transform: none;
        box-shadow: none;
        background: rgba(220, 53, 69, 0.15);
        color: var(--primary-color, #dc3545);
    }
    
    .sticky-cta-option i {
        font-size: 20px;
        width: auto;
        margin-bottom: 2px;
        color: var(--primary-color, #dc3545);
    }
    
    .sticky-cta-label {
        font-size: 10px;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
        word-break: break-word;
        color: var(--primary-color, #dc3545);
    }
    
    /* All options use theme red color */
    .sticky-cta-phone,
    .sticky-cta-whatsapp,
    .sticky-cta-email,
    .sticky-cta-contact {
        color: var(--primary-color, #dc3545);
    }
    
    .sticky-cta-phone i,
    .sticky-cta-whatsapp i,
    .sticky-cta-email i,
    .sticky-cta-contact i {
        color: var(--primary-color, #dc3545);
    }
    
    .sticky-cta-phone:hover,
    .sticky-cta-phone:active,
    .sticky-cta-whatsapp:hover,
    .sticky-cta-whatsapp:active,
    .sticky-cta-email:hover,
    .sticky-cta-email:active,
    .sticky-cta-contact:hover,
    .sticky-cta-contact:active {
        color: var(--primary-color, #dc3545);
        background: rgba(220, 53, 69, 0.15);
    }
    
    .sticky-cta-phone:hover i,
    .sticky-cta-phone:active i,
    .sticky-cta-whatsapp:hover i,
    .sticky-cta-whatsapp:active i,
    .sticky-cta-email:hover i,
    .sticky-cta-email:active i,
    .sticky-cta-contact:hover i,
    .sticky-cta-contact:active i {
        color: var(--primary-color, #dc3545);
    }
    
    /* RTL adjustments for mobile */
    [dir="rtl"] .sticky-cta-option {
        flex-direction: column;
    }
    
    /* Add safe area padding for devices with notches */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .sticky-cta-button {
            padding-bottom: env(safe-area-inset-bottom);
        }
    }
}

/* Animation for main button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.sticky-cta-main-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
