/* Support Widget Styles */

.support-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(24,54,99,0.07);
    padding: 22px 26px 22px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 220px;
    min-height: 110px;
    max-width: 90vw;
    max-height: 180px;
    cursor: pointer;
    z-index: 1000;
    transition: box-shadow 0.2s;
    aspect-ratio: 1/1.1;
    box-sizing: border-box;
    pointer-events: auto;
}

.support-widget:hover {
    box-shadow: 0 8px 32px rgba(24,54,99,0.16);
}

.support-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
    width: 100%;
}

.support-avatar {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.support-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0;
}

.support-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.support-info .support-name {
    font-weight: 600;
    color: #888;
    font-size: 15px;
    margin-bottom: 0;
}

.support-info .support-message {
    font-size: 16px;
    color: #222;
    margin-top: 8px;
    line-height: 1.3;
    padding: 0 2px 0 2px;
}

.support-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: #bbb;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
    font-weight: bold;
}

.support-close:hover {
    color: #E97491;
}

/* Свернутое состояние виджета */
.support-widget.collapsed {
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.support-widget.collapsed .support-info {
    display: none;
}

.support-widget.collapsed .support-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
}

.support-widget.collapsed .support-header .support-info {
    display: none;
}

.support-widget.collapsed .support-avatar {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-widget.collapsed .support-avatar img {
    width: 60px;
    height: 60px;
    margin: 0;
    object-fit: cover;
}

/* Скрываем кнопку в свернутом состоянии */
.support-widget.collapsed .support-close {
    display: none;
}

/* Адаптивность для свернутого состояния */
@media (max-width: 600px) {
    .support-widget.collapsed {
        min-width: 50px;
        min-height: 50px;
        max-width: 50px;
        max-height: 50px;
        padding: 0;
    }
    
    .support-widget.collapsed .support-avatar img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 600px) {
    .support-widget {
        right: 8px;
        bottom: 16px;
        padding: 8px 8px 8px 8px;
        min-width: 140px;
        min-height: 70px;
        border-radius: 12px;
        max-height: 100px;
        aspect-ratio: 1/1.1;
        box-shadow: 0 2px 12px rgba(24,54,99,0.10);
    }
    .support-header {
        gap: 5px;
        margin-bottom: 4px;
    }
    .support-avatar img {
        width: 26px;
        height: 26px;
    }
    .support-info .support-name {
        font-size: 13px;
    }
    .support-info .support-message {
        font-size: 12px;
        margin-top: 4px;
        padding: 0 0 0 0;
    }
    .support-close {
        top: 2px;
        right: 2px;
        font-size: 20px;
        padding: 4px;
        font-weight: bold;
    }
}
