#webluxe-contact, #webluxe-contact * { font-family: inherit !important; }

/* متغیرهای موقعیت پایه */
.sc-contact {
    --sc-y: var(--sc-y-desk, 24px);
    --sc-x: var(--sc-x-desk, 24px);
    position: fixed;
    bottom: var(--sc-y);
    z-index: var(--sc-z, 999999);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), bottom 0.3s ease, left 0.4s ease, right 0.4s ease;
}

@media (max-width: 768px) {
    .sc-contact {
        --sc-y: var(--sc-y-mob, 16px);
        --sc-x: var(--sc-x-mob, 16px);
    }
}

.sc-contact.sc-pos-right { right: var(--sc-x); }
.sc-contact.sc-pos-left { left: var(--sc-x); }


/* ======= حالت کشویی (چسبیده به دیواره) ======= */
.sc-contact.sc-type-sticky:not(.sc-is-open).sc-pos-right { right: 0 !important; }
.sc-contact.sc-type-sticky:not(.sc-is-open).sc-pos-left { left: 0 !important; }

/* صاف کردن لبه‌های چسبیده به دیواره */
.sc-contact.sc-type-sticky:not(.sc-is-open).sc-pos-right .sc-trigger,
.sc-contact.sc-type-sticky:not(.sc-is-open).sc-pos-right .sc-icon-circle {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.sc-contact.sc-type-sticky:not(.sc-is-open).sc-pos-left .sc-trigger,
.sc-contact.sc-type-sticky:not(.sc-is-open).sc-pos-left .sc-icon-circle {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* مخفی کردن متن و فشرده کردن دکمه در زمان بسته بودن حالت کشویی */
.sc-contact.sc-type-sticky:not(.sc-is-open) .sc-label { display: none !important; }
.sc-contact.sc-type-sticky:not(.sc-is-open) .sc-trigger { padding: 0 !important; justify-content: center; }
.sc-contact.sc-type-sticky:not(.sc-is-open).sc-size-large .sc-trigger { width: 64px; }
.sc-contact.sc-type-sticky:not(.sc-is-open).sc-size-medium .sc-trigger { width: 56px; }
.sc-contact.sc-type-sticky:not(.sc-is-open).sc-size-small .sc-trigger { width: 48px; }

.sc-contact.sc-type-sticky:not(.sc-is-open) .sc-icon-circle {
    margin: 0 !important; 
    box-shadow: none !important; 
}
/* ============================================= */


/* استایل کلی دکمه */
.sc-trigger {
    display: flex;
    align-items: center;
    background-color: var(--sc-bg, #1463ff);
    color: var(--sc-text-color, #ffffff);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    direction: rtl;
    outline: none;
}

.sc-contact:not(.sc-no-glow) .sc-trigger { box-shadow: 0 0 20px var(--sc-glow, #1463ff); }
.sc-contact:not(.sc-no-glow) .sc-trigger:hover { box-shadow: 0 0 30px var(--sc-glow, #1463ff); }
.sc-trigger:hover { transform: scale(1.05); }

.sc-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--sc-bg, #1463ff);
    color: var(--sc-icon, #ffffff);
    box-shadow: -2px 0 10px rgba(0,0,0,0.15);
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sc-contact.sc-shape-circle .sc-icon-circle { border-radius: 50%; }
.sc-contact.sc-shape-square .sc-icon-circle, .sc-contact.sc-shape-square .sc-trigger { border-radius: 15px; }

/* سایزهای دکمه و آیکون (برای زمان‌های عادی و باز شده) */
.sc-contact.sc-size-small .sc-trigger { padding: 0 12px 0 0; height: 48px; }
.sc-contact.sc-size-small .sc-icon-circle { width: 48px; height: 48px; margin-right: -12px; }
.sc-contact.sc-size-small .sc-icon-circle svg { width: 22px; height: 22px; }
.sc-contact.sc-size-small .sc-label { font-size: 13px; padding-left: 12px; }

.sc-contact.sc-size-medium .sc-trigger { padding: 0 16px 0 0; height: 56px; }
.sc-contact.sc-size-medium .sc-icon-circle { width: 56px; height: 56px; margin-right: -16px; }
.sc-contact.sc-size-medium .sc-icon-circle svg { width: 26px; height: 26px; }
.sc-contact.sc-size-medium .sc-label { font-size: 15px; padding-left: 16px; }

.sc-contact.sc-size-large .sc-trigger { padding: 0 20px 0 0; height: 64px; }
.sc-contact.sc-size-large .sc-icon-circle { width: 64px; height: 64px; margin-right: -20px; }
.sc-contact.sc-size-large .sc-icon-circle svg { width: 28px; height: 28px; }
.sc-contact.sc-size-large .sc-label { font-size: 16px; padding-left: 20px; }

.sc-icon-close { display: none; }
.sc-contact.sc-is-open .sc-icon-phone { display: none; }
.sc-contact.sc-is-open .sc-icon-close { display: block; }
.sc-label { font-weight: bold; transition: all 0.3s ease; }


/* --- مدیریت نمایش/مخفی کردن متن (جدا از حالت کشویی) --- */
@media (min-width: 769px) {
    .sc-contact.sc-text-desk-hide .sc-label { display: none !important; }
    .sc-contact.sc-text-desk-hide .sc-trigger { padding: 0 !important; justify-content: center; }
    .sc-contact.sc-text-desk-hide.sc-size-large .sc-trigger { width: 64px; }
    .sc-contact.sc-text-desk-hide.sc-size-medium .sc-trigger { width: 56px; }
    .sc-contact.sc-text-desk-hide.sc-size-small .sc-trigger { width: 48px; }
    .sc-contact.sc-text-desk-hide .sc-icon-circle { margin-right: 0 !important; box-shadow: none !important; }
}

@media (max-width: 768px) {
    .sc-contact.sc-text-mob-hide .sc-label { display: none !important; }
    .sc-contact.sc-text-mob-hide .sc-trigger { padding: 0 !important; justify-content: center; }
    .sc-contact.sc-text-mob-hide.sc-size-large .sc-trigger { width: 64px; }
    .sc-contact.sc-text-mob-hide.sc-size-medium .sc-trigger { width: 56px; }
    .sc-contact.sc-text-mob-hide.sc-size-small .sc-trigger { width: 48px; }
    .sc-contact.sc-text-mob-hide .sc-icon-circle { margin-right: 0 !important; box-shadow: none !important; }
}


/* --- پنجره راه‌های ارتباطی --- */
.sc-panel {
    position: absolute;
    bottom: calc(100% + 20px);
    width: 300px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 20px;
    direction: rtl;
}

.sc-contact.sc-pos-right .sc-panel { right: 0; }
.sc-contact.sc-pos-left .sc-panel { left: 0; }
.sc-contact.sc-is-open .sc-panel { opacity: 1; visibility: visible; transform: translateY(0); }

.sc-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f1f5f9; }
.sc-panel-head strong { font-size: 16px; color: #0f172a; }
.sc-close { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: #64748b; transition: color 0.2s; }
.sc-close:hover { color: #ef4444; }

.sc-list { display: flex; flex-direction: column; gap: 10px; max-height: 350px; overflow-y: auto; padding-left: 5px; }
.sc-list::-webkit-scrollbar { width: 5px; }
.sc-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 5px; }

.sc-item { display: flex; align-items: center; padding: 10px 15px; background-color: #f8fafc; border-radius: 12px; text-decoration: none; color: #334155; font-weight: 500; font-size: 14px; transition: background-color 0.2s, transform 0.2s; }
.sc-item:hover { background-color: #f1f5f9; transform: translateX(-5px); }
.sc-item-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; margin-left: 15px; }
.sc-item-icon img { width: 22px; height: 22px; object-fit: contain; }