/* استایل فرانت‌اند ویجت */
.fsw-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.fsw-items {
    display: none;
    flex-direction: column-reverse;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-end;
}

.fsw-items.active {
    display: flex;
}

.fsw-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 10px 14px;
    border-radius: 14px;
    text-decoration: none;
    color: #222;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    direction: rtl;
}

.fsw-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
    color: #000;
}

.fsw-item img,
.fsw-item svg {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

.fsw-item span {
    white-space: nowrap;
}

/* کانتینر اصلی (دکمه + لیبل) */
.fsw-trigger {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 0;
    direction: rtl;
}

/* دکمه اصلی - کاملاً دایره */
.fsw-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50% !important;
    background: #2d8cff !important;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(45, 140, 255, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}


@media (max-width: 768px) {
    .fsw-btn {
        margin-bottom: 100%;
    }
}

.fsw-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 30px rgba(45, 140, 255, .35);
}

.fsw-btn:active {
    transform: scale(0.95);
}

/* تصویر داخل دکمه */
.fsw-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

/* آیکن SVG داخل دکمه */
.fsw-btn>svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
    flex-shrink: 0;
}

/* لیبل سمت راست دکمه */
.fsw-label {
    background: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-left: 0;
    margin-right: 12px;
    white-space: nowrap;
    cursor: default;
    user-select: none;
}

/* آیکن SVG برای آیتم‌ها */
.fsw-item .fsw-default-icon {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #2d8cff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* انیمیشن پالس */
@keyframes fsw-pulse {
    0% {
        box-shadow: 0 10px 25px rgba(45, 140, 255, .25);
    }

    50% {
        box-shadow: 0 10px 40px rgba(45, 140, 255, .6);
    }

    100% {
        box-shadow: 0 10px 25px rgba(45, 140, 255, .25);
    }
}

.fsw-btn.pulse {
    animation: fsw-pulse 2s infinite;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .fsw-widget {
        right: 15px;
        bottom: 20px;
    }

    .fsw-label {
        font-size: 13px;
        padding: 10px 14px;
        margin-right: 10px;
    }

    .fsw-btn {
        width: 54px;
        height: 54px;
    }

    .fsw-btn img,
    .fsw-btn>svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .fsw-widget {
        right: 10px;
        bottom: 15px;
    }

    .fsw-label {
        display: none;
    }

    .fsw-btn {
        width: 50px;
        height: 50px;
    }
}