.mtk-fsh {
    --mtk-fsh-bottom: 24px;
    --mtk-fsh-accent: #0e8e88;
    --mtk-fsh-text: #17202a;
    --mtk-fsh-muted: #74808c;
    --mtk-fsh-border: #e8edf1;
    position: fixed;
    bottom: var(--mtk-fsh-bottom);
    z-index: 99990;
    direction: rtl;
    font-family: inherit;
}

.mtk-fsh--right {
    right: max(18px, env(safe-area-inset-right));
}

.mtk-fsh--left {
    left: max(18px, env(safe-area-inset-left));
}

.mtk-fsh__launcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 7px 8px 7px 15px;
    border: 1px solid rgba(8, 95, 91, .15);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(25, 43, 52, .18);
    color: var(--mtk-fsh-text);
    cursor: pointer;
    font: inherit;
    line-height: 1.25;
    transition: transform .18s ease, box-shadow .18s ease;
}

.mtk-fsh__launcher:hover,
.mtk-fsh__launcher:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(25, 43, 52, .24);
    outline: none;
}

.mtk-fsh__launcher-icon,
.mtk-fsh__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: linear-gradient(145deg, #16a39c, #087c77);
    color: #fff;
}

.mtk-fsh__launcher-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(14, 142, 136, .28);
}

.mtk-fsh__launcher-icon svg,
.mtk-fsh__avatar svg,
.mtk-fsh__item-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.mtk-fsh__launcher-label {
    display: grid;
    gap: 1px;
    text-align: right;
    white-space: nowrap;
}

.mtk-fsh__launcher-label small {
    color: var(--mtk-fsh-muted);
    font-size: 10px;
}

.mtk-fsh__launcher-label strong {
    font-size: 12px;
    font-weight: 800;
}

.mtk-fsh__status-dot {
    position: absolute;
    top: 4px;
    right: 40px;
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #23c06f;
    box-shadow: 0 0 0 3px rgba(35, 192, 111, .14);
}

.mtk-fsh--left .mtk-fsh__status-dot {
    right: auto;
    left: 40px;
}

.mtk-fsh__panel {
    position: absolute;
    bottom: calc(100% + 12px);
    width: min(360px, calc(100vw - 30px));
    overflow: hidden;
    border: 1px solid var(--mtk-fsh-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(18, 34, 44, .24);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(.98);
    transform-origin: bottom center;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.mtk-fsh--right .mtk-fsh__panel {
    right: 0;
}

.mtk-fsh--left .mtk-fsh__panel {
    left: 0;
}

.mtk-fsh.is-open .mtk-fsh__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.mtk-fsh__panel-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 18px 18px 17px 44px;
    background: linear-gradient(135deg, #0b8f88, #08746f);
    color: #fff;
}

.mtk-fsh__avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.mtk-fsh__head-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.mtk-fsh__head-copy .mtk-fsh__eyebrow {
    font-size: 11px;
    opacity: .82;
}

.mtk-fsh__head-copy strong {
    font-size: 15px;
    font-weight: 850;
}

.mtk-fsh__head-copy small {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.65;
    opacity: .84;
}

.mtk-fsh__close {
    position: absolute;
    top: 13px;
    left: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    font: 700 22px/1 sans-serif;
}

.mtk-fsh__close:hover,
.mtk-fsh__close:focus-visible {
    background: rgba(255, 255, 255, .22);
    outline: none;
}

.mtk-fsh__list {
    display: grid;
    gap: 8px;
    max-height: min(460px, 58vh);
    overflow-y: auto;
    padding: 12px;
    scrollbar-width: thin;
}

.mtk-fsh__item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px;
    border: 1px solid var(--mtk-fsh-border);
    border-radius: 14px;
    background: #fff;
    color: var(--mtk-fsh-text);
    text-decoration: none !important;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.mtk-fsh__item:hover,
.mtk-fsh__item:focus-visible {
    border-color: #cfdadd;
    box-shadow: 0 8px 22px rgba(28, 47, 56, .08);
    transform: translateY(-1px);
    color: var(--mtk-fsh-text);
    outline: none;
}

.mtk-fsh__item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border-radius: 12px;
    background: #edf3f4;
    color: #516069;
}

.mtk-fsh__item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mtk-fsh__item--whatsapp .mtk-fsh__item-icon {
    background: #e7f8ee;
    color: #1caa59;
}

.mtk-fsh__item--telegram .mtk-fsh__item-icon {
    background: #e8f5fb;
    color: #2397cf;
}

.mtk-fsh__item--instagram .mtk-fsh__item-icon {
    background: #f9e9f2;
    color: #c13584;
}

.mtk-fsh__item--bale .mtk-fsh__item-icon {
    background: #e9f8f2;
    color: #16a36e;
}

.mtk-fsh__item--rubika .mtk-fsh__item-icon {
    background: #f3eafa;
    color: #8148c8;
}

.mtk-fsh__item--phone .mtk-fsh__item-icon,
.mtk-fsh__item--email .mtk-fsh__item-icon,
.mtk-fsh__item--custom .mtk-fsh__item-icon {
    background: #eef2f6;
    color: #496477;
}

.mtk-fsh__item-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 2px;
    text-align: right;
}

.mtk-fsh__item-copy strong {
    overflow: hidden;
    color: var(--mtk-fsh-text);
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mtk-fsh__item-copy small {
    color: var(--mtk-fsh-muted);
    font-size: 10.5px;
}

.mtk-fsh__item-arrow {
    flex: 0 0 auto;
    color: #a7b1b8;
    font-size: 17px;
    transition: transform .16s ease;
}

.mtk-fsh__item:hover .mtk-fsh__item-arrow {
    transform: translateX(-2px);
}

@media (max-width: 480px) {
    .mtk-fsh {
        bottom: max(var(--mtk-fsh-bottom), env(safe-area-inset-bottom));
    }

    .mtk-fsh--right {
        right: 12px;
    }

    .mtk-fsh--left {
        left: 12px;
    }

    .mtk-fsh__launcher {
        min-height: 52px;
        padding: 6px 7px 6px 12px;
    }

    .mtk-fsh__launcher-icon {
        width: 40px;
        height: 40px;
    }

    .mtk-fsh__panel {
        position: fixed;
        right: 12px !important;
        left: 12px !important;
        bottom: calc(max(var(--mtk-fsh-bottom), env(safe-area-inset-bottom)) + 66px);
        width: auto;
        max-height: calc(100vh - 110px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mtk-fsh__launcher,
    .mtk-fsh__panel,
    .mtk-fsh__item,
    .mtk-fsh__item-arrow {
        transition: none;
    }
}
