.sahly-floating-container {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    z-index: 9999;
    pointer-events: none; /* Let clicks pass through empty space */
}

.sahly-float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-primary, #1e3a8a);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    pointer-events: auto;
    position: fixed;
    bottom: 30px;
}

.sahly-float-btn:hover {
    background: var(--color-secondary, #cda45e);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.sahly-float-btn.position-right {
    right: 30px;
}

.sahly-float-btn.position-left {
    left: 30px;
}

/* Scroll to Top Specifics */
#sahly-scroll-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

#sahly-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#sahly-scroll-top:hover {
    transform: translateY(-5px);
}

/* Contact Wrapper */
.sahly-float-wrapper {
    position: fixed;
    bottom: 30px;
    pointer-events: auto;
    z-index: 10000;
}

/* Fix: Button inside wrapper should not be fixed */
.sahly-float-wrapper .sahly-float-btn {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
}

.sahly-float-wrapper.position-right {
    right: 30px;
}

.sahly-float-wrapper.position-left {
    left: 30px;
}

/* Popup Styling */
.sahly-contact-popup {
    position: absolute;
    bottom: 70px;
    width: 300px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom center;
}

.sahly-float-wrapper.position-right .sahly-contact-popup {
    right: 0;
}

.sahly-float-wrapper.position-left .sahly-contact-popup {
    left: 0;
}

.sahly-float-wrapper.active .sahly-contact-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.popup-header {
    background: var(--color-primary, #1e3a8a);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.close-popup {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    transition: color 0.3s;
}

.close-popup:hover {
    color: #fff;
}

.popup-body {
    padding: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.contact-item i {
    color: var(--color-secondary, #cda45e);
    font-size: 18px;
    margin-top: 3px;
}

.item-content span {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.item-content p {
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    font-weight: 600;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.action-btn.whatsapp {
    background: #25D366;
    color: #fff;
}

.action-btn.whatsapp:hover {
    background: #128C7E;
}

.action-btn.phone {
    background: var(--color-primary, #1e3a8a);
    color: #fff;
}

.action-btn.phone:hover {
    background: #152c6e;
}

.action-btn.email {
    background: #f1f1f1;
    color: #333;
}

.action-btn.email:hover {
    background: #e1e1e1;
}

/* RTL Adjustments */
body.rtl .sahly-float-wrapper.position-right .sahly-contact-popup {
    right: 0;
    left: auto;
}
body.rtl .sahly-float-wrapper.position-left .sahly-contact-popup {
    left: 0;
    right: auto;
}