/* === ОКНО ЧАТА === */
.simplesupport-chat-window {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #f8f9fa;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    padding: 15px;
}

/* === ПУЗЫРИ (фикс ширины) === */
.simplesupport-chat-window .card {
    border-radius: 18px !important;
    max-width: 80% !important;
    width: auto !important;
}

/* === ТЕКСТ ВНУТРИ === */
.simplesupport-chat-window .card-body p {
    margin-bottom: 0 !important;
    word-break: break-word;
    line-height: 1.5;
}

/* === ФОРМА ОТВЕТА === */
.simplesupport-reply-form .input-group {
    width: 100%;
}
.simplesupport-reply-form textarea {
    resize: none;
    border-radius: 25px 0 0 25px !important;
    border-right: 0 !important;
}
.simplesupport-reply-form .btn {
    border-radius: 0 25px 25px 0 !important;
    padding: 0 25px !important;
    font-weight: 600;
}

.simplesupport-reply-form {
    max-width: 80%;
    margin-left: auto;
    margin-right: 0;
}

.justify-content-end + .simplesupport-reply-form {
    margin-left: auto;
    margin-right: 0;
}

.justify-content-start + .simplesupport-reply-form {
    margin-left: 0;
    margin-right: auto;
}

/* === БЕЙДЖИ СТАТУСОВ === */
.ss-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff !important;
    text-decoration: none;
}
.ss-badge-open { background-color: #f39c12; }
.ss-badge-closed { background-color: #2e9e5b; }
.ss-badge-other { background-color: #6c757d; }

/* === БЕЙДЖ «НОВЫЙ ОТВЕТ» В СПИСКЕ ТИКЕТОВ КЛИЕНТА === */
.ss-badge-new {
    background-color: #d9534f;
    margin-left: 8px;
    animation: ss-pulse 1.5s ease-in-out infinite;
}

@keyframes ss-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* === ПОДСВЕТКА СТРОКИ С НЕПРОЧИТАННЫМ ТИКЕТОМ === */
.ss-tickets-table .ss-row-unread {
    background-color: #fff7e6 !important;
    border-left: 4px solid #f39c12;
}
.ss-tickets-table .ss-row-unread td:first-child {
    border-left: 4px solid #f39c12;
}
.ss-tickets-table .ss-row-unread td {
    font-weight: 600;
}
.ss-tickets-table .ss-row-unread a {
    font-weight: 700;
}

/* === СЧЁТЧИК НЕПРОЧИТАННЫХ В МЕНЮ ЛИЧНОГО КАБИНЕТА === */
.ss-unread-badge {
    display: inline-block;
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 10px;
    background-color: #d9534f;
    color: #fff !important;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    margin-left: 5px;
}

/* === ПЛАВАЮЩЕЕ УВЕДОМЛЕНИЕ КЛИЕНТА О НОВОМ ОТВЕТЕ === */
#ss-front-notify {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 10000;
    min-width: 260px;
    max-width: 320px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-left: 4px solid #d9534f;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    padding: 14px 18px;
    font-size: 13px;
    animation: ss-slide-in 0.3s ease-out;
}

#ss-front-notify .ss-notify-title {
    font-weight: 700;
    margin-bottom: 6px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

#ss-front-notify .ss-notify-item {
    margin: 3px 0;
    color: #555;
}

#ss-front-notify .ss-notify-item strong {
    color: #d9534f;
    font-size: 15px;
}

#ss-front-notify .ss-notify-close {
    position: absolute;
    top: 6px;
    right: 10px;
    cursor: pointer;
    color: #999;
    font-size: 18px;
    line-height: 1;
}

#ss-front-notify .ss-notify-close:hover {
    color: #333;
}

#ss-front-notify .ss-notify-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    color: #0d6efd;
}

@keyframes ss-slide-in {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    #ss-front-notify {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: 0;
    }
    .simplesupport-chat-window {
        padding: 10px;
    }
    .simplesupport-chat-window .card {
        max-width: 95% !important;
    }
    .simplesupport-reply-form {
        max-width: 95% !important;
    }
}
