.ch-widget,
.ch-widget * {
    box-sizing: border-box;
}

.ch-widget [hidden],
.ch-widget[hidden] {
    display: none !important;
}

.ch-widget {
    position: fixed;
    right: 20px;
    z-index: 1000100;
    color: #f7fbff;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

.ch-chat {
    bottom: 20px;
}

.ch-broadcast-mini {
    bottom: 20px;
}

.ch-chat + .ch-broadcast-mini {
    bottom: 96px;
}

.ch-widget__bubble {
    position: relative;
    min-width: 82px;
    min-height: 58px;
    display: grid;
    gap: 2px;
    place-items: center;
    padding: 10px 16px;
    border: 1px solid rgba(125, 247, 255, 0.38);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(9, 15, 26, 0.96), rgba(18, 34, 45, 0.94));
    color: #f7fbff;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
    cursor: pointer;
}

.ch-widget__bubble span {
    color: #7df7ff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.ch-widget__bubble strong {
    max-width: 120px;
    overflow: hidden;
    color: #f7fbff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ch-chat__badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    padding: 0 6px;
    border: 2px solid #05070b;
    border-radius: 999px;
    background: #ff314f;
    color: #ffffff;
    box-shadow: 0 0 18px rgba(255, 49, 79, 0.48);
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
}

.ch-widget__bubble:hover,
.ch-widget__bubble:focus-visible {
    border-color: rgba(255, 216, 107, 0.8);
    outline: none;
    transform: translateY(-1px);
}

.ch-widget__panel {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: min(390px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(6, 10, 17, 0.96);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
}

.ch-widget__header {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(14, 23, 35, 0.88);
}

.ch-widget__header span {
    display: block;
    color: #8fc7d8;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.ch-widget__header strong {
    display: block;
    margin-top: 3px;
    color: #f7fbff;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.1;
}

.ch-widget__close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #f7fbff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.ch-chat__panel {
    height: min(620px, calc(100vh - 116px));
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.ch-chat__status {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #b5c9d2;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.ch-chat__status strong,
.ch-chat__status p {
    display: block;
    margin: 0 0 5px;
}

.ch-chat__status a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    margin-top: 8px;
    padding: 0 12px;
    border-radius: 8px;
    background: #ffd86b;
    color: #10141d;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
}

.ch-chat__messages {
    min-height: 0;
    overflow: auto;
    padding: 12px;
}

.ch-chat__message {
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.ch-chat__message + .ch-chat__message {
    margin-top: 8px;
}

.ch-chat__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.ch-chat__identity {
    min-width: 0;
}

.ch-chat__meta strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #7df7ff;
    font-size: 12px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ch-chat__meta span {
    display: block;
    color: #8a9ca6;
    font-size: 11px;
    font-weight: 800;
}

.ch-chat__moderate {
    min-height: 26px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 216, 107, 0.3);
    border-radius: 8px;
    background: rgba(255, 216, 107, 0.09);
    color: #ffd86b;
    cursor: pointer;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    padding: 0 9px;
}

.ch-chat__moderate:hover,
.ch-chat__moderate:focus-visible {
    border-color: rgba(255, 216, 107, 0.75);
    outline: none;
}

.ch-chat__message p {
    margin: 6px 0 0;
    overflow-wrap: anywhere;
    color: #f7fbff;
    font-size: 14px;
    line-height: 1.36;
}

.ch-chat__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(14, 23, 35, 0.82);
}

.ch-widget .ch-chat__form input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(125, 247, 255, 0.28) !important;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f7fbff !important;
    caret-color: #7df7ff;
    -webkit-text-fill-color: #f7fbff !important;
    font: inherit;
    font-size: 14px;
    outline: none;
    padding: 0 12px;
}

.ch-widget .ch-chat__form input::placeholder {
    color: rgba(247, 251, 255, 0.58) !important;
}

.ch-widget .ch-chat__form input:focus {
    border-color: rgba(125, 247, 255, 0.78) !important;
    box-shadow: 0 0 0 3px rgba(125, 247, 255, 0.16) !important;
    color: #f7fbff !important;
    -webkit-text-fill-color: #f7fbff !important;
}

.ch-chat__form button,
.ch-broadcast-mini__cta {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: #7df7ff;
    color: #071018;
    font-size: 13px;
    font-weight: 950;
    padding: 0 14px;
    text-decoration: none;
}

.ch-chat__form button {
    cursor: pointer;
}

.ch-chat__form button:disabled,
.ch-chat__form input:disabled {
    opacity: 0.62;
}

.ch-broadcast-mini.is-live .ch-widget__bubble {
    border-color: rgba(255, 216, 107, 0.78);
}

.ch-broadcast-mini__body {
    padding: 16px;
}

.ch-broadcast-mini__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8fc7d8;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.ch-broadcast-mini__status i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #7df7ff;
    box-shadow: 0 0 16px rgba(125, 247, 255, 0.8);
}

.ch-broadcast-mini.is-live .ch-broadcast-mini__status i {
    background: #ffd86b;
    box-shadow: 0 0 16px rgba(255, 216, 107, 0.82);
}

.ch-broadcast-mini__body h2 {
    margin: 10px 0 14px;
    overflow-wrap: anywhere;
    color: #f7fbff;
    font-size: 22px;
    line-height: 1.1;
}

.ch-broadcast-mini__body dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.ch-broadcast-mini__body dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.ch-broadcast-mini__body dt,
.ch-broadcast-mini__body dd {
    margin: 0;
}

.ch-broadcast-mini__body dt {
    color: #8fc7d8;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.ch-broadcast-mini__body dd {
    min-width: 0;
    overflow: hidden;
    color: #f7fbff;
    font-size: 14px;
    font-weight: 900;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ch-broadcast-mini__cta {
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    background: #ffd86b;
    color: #10141d;
}

@media (max-width: 640px) {
    .ch-widget {
        right: 12px;
        bottom: 12px;
    }

    .ch-chat + .ch-broadcast-mini {
        bottom: 84px;
    }

    .ch-widget__bubble {
        min-width: 70px;
        min-height: 54px;
        padding: 9px 12px;
    }

    .ch-widget__panel {
        position: fixed;
        right: 10px;
        bottom: 78px;
        left: 10px;
        width: auto;
        max-height: calc(100vh - 98px);
    }

    .ch-chat__panel {
        height: min(74vh, 620px);
    }
}
