/* Rozan Quick Contact Styles */
#rozan-quick-contact {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 340;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.94);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0.35s;
    font-family: var(--wd-font-secondary, Vazirmatn, IRANSans, Tahoma, sans-serif);
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}

#rozan-quick-contact.rozan-qc-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.rozan-qc-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.rozan-qc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 18px 10px 14px;
    border-radius: 50px;
    text-decoration: none !important;
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    border: none;
    outline: none;
}

.rozan-qc-btn:hover {
    transform: translateY(-2.5px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    color: #ffffff !important;
}

.rozan-qc-btn:active {
    transform: translateY(0) scale(0.98);
}

.rozan-qc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.rozan-qc-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.rozan-qc-text {
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* WhatsApp Button */
.rozan-qc-wa {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.rozan-qc-wa:hover {
    background: linear-gradient(135deg, #2ae06d 0%, #159b8b 100%);
}

/* Phone Call Button */
.rozan-qc-tel {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.rozan-qc-tel:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

/* Gentle pulse ring on WhatsApp button to catch attention without annoying */
@keyframes rozan-qc-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5), 0 4px 15px rgba(0, 0, 0, 0.16);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0), 0 4px 15px rgba(0, 0, 0, 0.16);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 4px 15px rgba(0, 0, 0, 0.16);
    }
}

.rozan-qc-wa {
    animation: rozan-qc-pulse 2.8s infinite;
}

.rozan-qc-wa:hover {
    animation: none;
}

/* ==========================================================================
   Responsive & Non-intrusive Layouts
   ========================================================================== */

/* Tablet & Mobile: Avoid WoodMart Sticky Bottom Toolbar (height: 55px) */
@media (max-width: 1024px) {
    #rozan-quick-contact {
        bottom: 72px;
        right: 16px;
    }
}

/* Small Smartphone: Collapse into elegant circular buttons */
@media (max-width: 576px) {
    #rozan-quick-contact {
        bottom: 70px;
        right: 14px;
    }
    
    .rozan-qc-buttons {
        gap: 8px;
    }

    .rozan-qc-btn {
        width: 46px;
        height: 46px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }

    .rozan-qc-text {
        display: none;
    }

    .rozan-qc-icon {
        width: 24px;
        height: 24px;
    }
}

/* Hide when WoodMart side drawer, cart, or search overlay is opened to avoid overlaps */
body.wd-side-opened #rozan-quick-contact,
body.wd-search-opened #rozan-quick-contact,
.admin-bar #rozan-quick-contact.rozan-qc-admin-preview {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Hide in print view */
@media print {
    #rozan-quick-contact {
        display: none !important;
    }
}
