/* Голосовой помощник: модалка и пункт меню.
   Отдельный файл, как custom-css/one.css, чтобы не лезть в сгенерированный
   style.css. Базовые классы (popup, modal, btn) берутся оттуда, здесь только
   то, чего там нет.

   Типографика выровнена под остальной сайт: шрифт Inter, размеры в em,
   основной текст #c8c8c8 (как body), заголовки и акценты #fff/600 (как h3 и
   .modal__title), второстепенный текст #8f8f8f, красные кнопки — через .btn /
   .btn_danger (#c4364e). */

/* ---------------------------------------- пункт меню с бейджем NEW */
.header__link_voice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header__link_voice svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.header__link_voice img {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.header__badge-new {
    font-size: 0.5625em;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 5px;
    border-radius: 4px;
    background: #c4364e;
    color: #fff;
}

/* ----------------------------------------------------- модалка */
.voice-agent__modal {
    max-width: 440px;
    padding: 30px;
    border-radius: 16px;
}

.voice-agent__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.voice-agent__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    background: #252628;
}

.voice-agent__head-text {
    flex: 1 1 auto;
    min-width: 0;
}

/* заголовок — как у остальных окон (.modal__title наследует h3: 1.375em/600/#fff) */
.voice-agent__title {
    margin: 0;
    text-align: left;
}

.voice-agent__status {
    font-size: 0.8125em;
    color: #8f8f8f;
    margin-top: 3px;
}

.voice-agent__status_live {
    color: #4caf50;
}

.voice-agent__timer {
    font-size: 1.125em;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    color: #8f8f8f;
    flex: 0 0 auto;
}

.voice-agent__timer_live {
    color: #4caf50;
}

.voice-agent__desc {
    font-size: 0.9375em;
    line-height: 1.5;
    color: #c8c8c8;
    margin-bottom: 18px;
}

/* --------------------------------------------- характеристики */
.voice-agent__traits {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.voice-agent__trait {
    padding: 11px 14px;
    border-radius: 10px;
    background: #252628;
}

.voice-agent__trait b {
    display: block;
    margin-bottom: 3px;
    font-size: 0.9375em;
    font-weight: 600;
    color: #fff;
}

.voice-agent__trait span {
    font-size: 0.875em;
    line-height: 1.4;
    color: #a7a7a7;
}

/* ------------------------------------------------- кнопки звонка */
.voice-agent__controls {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

/* .btn уже даёт радиус 10px; здесь — размер под две кнопки в ряд и иконку */
.voice-agent__btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border: 0;
    font-size: 1.0625em;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.voice-agent__btn_call {
    background: #4caf50;
    color: #fff;
}

.voice-agent__btn_call:hover {
    background: #57b85b;
}

.voice-agent__btn[disabled] {
    opacity: .4;
    cursor: default;
}

.voice-agent__ico {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex: 0 0 auto;
}

.voice-agent__left {
    font-size: 0.8125em;
    color: #8f8f8f;
    margin-bottom: 6px;
}

.voice-agent__message {
    font-size: 0.8125em;
    min-height: 18px;
    margin-bottom: 16px;
    color: #e9b956;
}

.voice-agent__message_ok {
    color: #4caf50;
}

/* ------------------------------------------------- покупка минут */
.voice-agent__buy {
    padding: 16px;
    border-radius: 12px;
    background: #252628;
}

.voice-agent__buy-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.voice-agent__buy-title {
    font-weight: 600;
    font-size: 0.9375em;
    color: #fff;
}

.voice-agent__price {
    font-size: 0.8125em;
    color: #8f8f8f;
    white-space: nowrap;
}

.voice-agent__range {
    width: 100%;
    margin: 0 0 12px;
    accent-color: #c4364e;
}

.voice-agent__buy-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}

.voice-agent__pick {
    font-size: 0.9375em;
    font-weight: 400;
    color: #fff;
}

.voice-agent__cost {
    font-size: 0.9375em;
    color: #c8c8c8;
    white-space: nowrap;
}

.voice-agent__buy-btn {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.voice-agent__buy-hint {
    margin-top: 10px;
    font-size: 0.8125em;
    color: #e9b956;
    text-align: center;
}

.voice-agent__buy-hint:empty {
    display: none;
}

.voice-agent__balance {
    margin-top: 12px;
    font-size: 0.8125em;
    color: #8f8f8f;
    text-align: center;
}

/* --------------------------------------------------- ограничения */
.voice-agent__limits {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.voice-agent__limits-title {
    font-size: 0.875em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.voice-agent__limits-list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.8125em;
    line-height: 1.5;
    color: #a7a7a7;
}

@media (max-width: 480px) {
    .voice-agent__modal {
        padding: 22px;
    }

    .voice-agent__controls {
        flex-direction: column;
    }
}

/* --------------------------------------- мобильная кнопка-звонок
   На телефоне бывшая кнопка чата (.chat-open-btn, круг 43px, position:fixed)
   стала кнопкой звонка. Трубку делаем белой (в style.css иконка серая) и
   вешаем над ней бейдж «new!». Размер шрифта бейджа — 13px, как у
   «0 участников» (.roulette__accardion-count). Кнопка fixed, поэтому бейдж
   absolute позиционируется относительно неё. */
.chat-open-btn_call svg {
    fill: #fff;
}

.chat-open-btn_call .voice-call-new {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    background: #c4364e;
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
}
