﻿/* ویجت */
.yalda-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: none;
    z-index: 1000;
}

/* نمایش فقط در دسکتاپ */
@media (min-width: 768px) {
    .yalda-widget.show {
        display: block;
        animation: slideUp 0.5s ease-out;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.widget-container {
    position: relative;
}

.close-btn {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

    .close-btn:hover {
        background: rgba(255, 0, 0, 0.8);
    }

    .close-btn::before,
    .close-btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 14px;
        height: 2px;
        background: white;
    }

    .close-btn::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .close-btn::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

.widget-link {
    display: block;
    width: 100%;
}

    .widget-link img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 10px;
        transition: transform 0.3s;
    }

