#botmanWidgetRoot {
    display: none !important;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2147483000;
    font-family: Almarai, "Segoe UI", Tahoma, sans-serif;
}

body:has(.phpdebugbar) #botmanWidgetRoot {
    bottom: 48px;
}

#botmanWidgetRoot .dv-bot-launcher {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f5b400;
    box-shadow: 0 10px 24px rgba(21, 58, 102, 0.28);
    cursor: pointer;
}

#botmanWidgetRoot .dv-bot-launcher img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

#botmanWidgetRoot .dv-bot-panel {
    display: none;
    flex-direction: column;
    width: 380px;
    height: min(540px, calc(100vh - 120px));
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(16, 24, 40, 0.22);
}

#botmanWidgetRoot.is-open .dv-bot-panel {
    display: flex;
}

#botmanWidgetRoot.is-open .dv-bot-launcher {
    display: none;
}

#botmanWidgetRoot .dv-bot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 12px;
    background: #153a66;
    color: #fff;
}

#botmanWidgetRoot .dv-bot-id {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

#botmanWidgetRoot .dv-bot-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    object-fit: cover;
    background: #f5b400;
}

#botmanWidgetRoot .dv-bot-title {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

#botmanWidgetRoot .dv-bot-subtitle,
#botmanWidgetRoot .dv-bot-online {
    margin: 0;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
}

#botmanWidgetRoot .dv-bot-online {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #d7ffe8;
}

#botmanWidgetRoot .dv-bot-online b {
    font-weight: 400;
}

#botmanWidgetRoot .dv-bot-online span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3ddc84;
    box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.18);
}

#botmanWidgetRoot .dv-bot-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
}

#botmanWidgetRoot .dv-bot-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

#botmanWidgetRoot .dv-bot-icon:hover {
    background: rgba(255, 255, 255, 0.12);
}

#botmanWidgetRoot .dv-bot-icon svg {
    width: 16px;
    height: 16px;
}

#botmanWidgetRoot .dv-bot-frame {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: 0;
    background: #fff;
}

@media (max-width: 640px) {
    #botmanWidgetRoot {
        right: 12px;
        bottom: 12px;
    }

    #botmanWidgetRoot .dv-bot-panel {
        width: min(380px, calc(100vw - 24px));
        height: min(640px, calc(100vh - 80px));
    }
}
