.chat-widget {
    display: none;
}

.chat-backdrop {
    display: none;
}

.chat-widget__panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--surface-800);
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 55px;
    padding: 0 1rem;
    box-sizing: border-box;
    background: var(--surface-800);
    border-bottom: 1px solid var(--surface-700);
    flex-shrink: 0;
}

.chat-header__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-on-dark, #f1f5f9);
    line-height: 1.2;
    letter-spacing: -0.02em;
    min-width: 0;
}

.chat-header__actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.chat-header__online {
    flex-shrink: 0;
    padding: 0.28rem 0.55rem;
    border-radius: 6px;
    background: var(--brand-red);
    color: var(--text-light);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.chat-header__close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--surface-600);
    border-radius: 8px;
    background: var(--surface-700);
    color: var(--text-on-dark, #e2e8f0);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.chat-header__close i {
    font-size: 1.05rem;
    line-height: 1;
}

.chat-header__close:hover,
.chat-header__close:active {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: var(--text-light, #fff);
}

.chat-announcement {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid var(--surface-700);
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.14), rgba(15, 23, 42, 0.55));
}

.chat-announcement[hidden] {
    display: none !important;
}

.chat-announcement__image {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-announcement__body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.chat-announcement__title {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--text-primary, #f8fafc);
    line-height: 1.25;
}

.chat-announcement__subtitle {
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--text-gray);
    line-height: 1.3;
}

.chat-announcement__btn {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 0.2rem;
    padding: 0.22rem 0.5rem;
    border-radius: 5px;
    background: var(--brand-red);
    color: var(--text-light, #fff);
    font-size: 0.62rem;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.2;
    transition: filter 0.15s ease;
}

.chat-announcement__btn:hover {
    filter: brightness(1.08);
    color: var(--text-light, #fff);
}

.chat-pinned {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.45rem 0.55rem 0.4rem;
    border-bottom: 1px solid var(--surface-700);
    background: rgba(255, 255, 255, 0.02);
    max-height: 30%;
    overflow: hidden;
}

.chat-pinned[hidden] {
    display: none !important;
}

.chat-pinned__slot {
    position: relative;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
}

.chat-pinned__slot .chat-message {
    margin: 0;
    animation: chat-pin-fade 0.35s ease;
}

.chat-pinned__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    padding-top: 0.1rem;
}

.chat-pinned__dots[hidden] {
    display: none !important;
}

.chat-pinned__dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.chat-pinned__dot.is-active {
    background: var(--brand-red);
    transform: scale(1.15);
}

@keyframes chat-pin-fade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .chat-pinned__slot .chat-message {
        animation: none;
    }
}

.chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    height: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 0.55rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: var(--surface-800);
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--surface-700);
    border-radius: 4px;
}

.chat-message {
    --chat-accent: hsl(200, 70%, 55%);
    --chat-glow: hsla(200, 70%, 55%, 0.28);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.38rem 0.45rem 0.38rem 0.4rem;
    border-radius: 8px;
    background: var(--primary);
    border: none;
    overflow: visible;
    flex-shrink: 0;
}

.chat-message::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(
        ellipse 95% 80% at 0% 0%,
        var(--chat-glow, rgba(255, 255, 255, 0.05)) 0%,
        transparent 62%
    );
}

.chat-message--pinned {
    outline: 1px solid color-mix(in srgb, var(--chat-accent) 35%, transparent);
}

.chat-message--announcement {
    display: block;
    padding: 0;
    background: transparent;
    border: none;
    overflow: visible;
}

.chat-message--announcement::before {
    display: none;
}

.chat-announce-card {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.6rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.16), rgba(15, 23, 42, 0.72));
    border: 1px solid rgba(255, 59, 59, 0.28);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.chat-announce-card__image {
    width: 54px;
    height: 54px;
    border-radius: 9px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--surface-700);
}

.chat-announce-card__content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.chat-announce-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.chat-announce-card__top-right {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
}

.chat-announce-card__kind {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}

.chat-announce-card__kind--event {
    color: var(--brand-red-pale, #fecaca);
    background: rgba(255, 59, 59, 0.22);
    border: 1px solid rgba(255, 59, 59, 0.35);
}

.chat-announce-card__kind--ticket {
    color: #fde68a;
    background: rgba(var(--primary), 0.18);
    border: 1px solid rgba(var(--primary), 0.35);
}

.chat-announce-card__time {
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--text-gray);
    line-height: 1.2;
}

.chat-announce-card__title {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-primary, #f8fafc);
    line-height: 1.25;
    word-break: break-word;
}

.chat-announce-card__subtitle {
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--text-gray);
    line-height: 1.3;
    word-break: break-word;
}

.chat-announce-card__btn {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 0.28rem;
    padding: 0.28rem 0.55rem;
    border-radius: 6px;
    background: var(--brand-red);
    color: var(--text-light, #fff);
    font-size: 0.64rem;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.2;
    transition: filter 0.15s ease;
}

.chat-announce-card__btn:hover {
    filter: brightness(1.08);
    color: var(--text-light, #fff);
}

.chat-message__head-right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.chat-message__actions {
    display: flex;
    gap: 0.15rem;
    margin: 0;
    flex-shrink: 0;
}

.chat-message__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.chat-message__action:hover {
    color: var(--text-on-dark, #f1f5f9);
    background: rgba(255, 255, 255, 0.06);
}

.chat-message__action--danger:hover {
    color: #f87171;
}

.chat-message__action i {
    font-size: 0.78rem;
    line-height: 1;
}

.chat-messages__empty {
    margin: auto;
    padding: 1.25rem 0.75rem;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
}

.chat-messages__empty[hidden] {
    display: none;
}

.chat-message__avatar {
    position: relative;
    z-index: 1;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--chat-accent);
    box-sizing: border-box;
}

.chat-message__body {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.chat-message__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.15rem;
}

.chat-message__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    min-width: 0;
}

.chat-message__name {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--chat-accent);
    line-height: 1.2;
}

.chat-message__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    padding: 0.1rem 0.32rem;
    border-radius: 3px;
    background: color-mix(in srgb, var(--chat-accent) 22%, var(--text-on-accent, #0f172a));
    color: var(--chat-accent);
    border: 1px solid color-mix(in srgb, var(--chat-accent) 45%, transparent);
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-transform: uppercase;
}

.chat-message__badge i {
    font-size: 0.62rem;
    line-height: 1;
}

.chat-message__time {
    flex-shrink: 0;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-gray);
    line-height: 1.2;
}

.chat-message__text {
    margin: 0;
    font-size: 0.719rem;
    font-weight: 500;
    color: var(--text-secondary, #dce4ea);
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.chat-message__text a {
    color: var(--brand-red-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.chat-message__text a:hover {
    color: var(--brand-red-soft, #fcd34d);
}

.chat-emote {
    display: inline-block;
    width: 22px;
    height: 22px;
    margin: 0 1px;
    vertical-align: -5px;
    object-fit: contain;
    border-radius: 2px;
}

.chat-input {
    flex-shrink: 0;
    padding: 0.65rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: var(--surface-800);
    border-top: 1px solid var(--surface-700);
}

.chat-input__status {
    margin: 0 0 0.45rem;
    padding: 0 0.15rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-gray);
    line-height: 1.3;
}

.chat-input__status.is-error {
    color: #f87171;
}

.chat-input__status[hidden] {
    display: none;
}

.chat-input__field:disabled,
.chat-input__send:disabled,
.chat-input__emoji:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.chat-input__form {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 56px;
    max-height: 56px;
    padding: 0 0.35rem 0 0.65rem;
    border: 1px solid var(--surface-600);
    border-radius: 10px;
    background: var(--surface-800);
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.chat-input__form:focus-within {
    border-color: var(--brand-red);
}

.chat-input__field {
    flex: 1;
    min-width: 0;
    height: 54px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-on-dark, #f1f5f9);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 54px;
    outline: none;
}

.chat-input__field::placeholder {
    color: var(--text-gray);
    font-weight: 700;
}

.chat-input__emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text-gray);
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.chat-input__emoji-wrap {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.chat-input__emoji:hover,
.chat-input__emoji.is-open {
    color: var(--text-secondary);
}

.chat-input__emoji i {
    font-size: 1.35rem;
    line-height: 1;
}

.chat-emote-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    z-index: 40;
    width: min(260px, calc(100vw - 48px));
    max-height: 220px;
    padding: 0.55rem;
    border: 1px solid var(--surface-600);
    border-radius: 12px;
    background: var(--surface-800);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.chat-emote-panel[hidden] {
    display: none;
}

.chat-emote-panel__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.35rem;
}

.chat-emote-panel__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    padding: 0.2rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.chat-emote-panel__item:hover,
.chat-emote-panel__item:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--surface-600);
    outline: none;
}

.chat-emote-panel__item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    pointer-events: none;
}

.chat-emote-panel__empty {
    margin: 0.35rem 0.15rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-gray);
    text-align: center;
}

.chat-emote-panel__empty[hidden] {
    display: none;
}

.chat-input__send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--brand-red-dark, #b45309);
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.chat-input__send:hover {
    color: var(--brand-red);
    transform: scale(1.06);
}

.chat-input__send i {
    font-size: 1.2rem;
    line-height: 1;
}

@media (min-width: 1025px) {
    .chat-widget {
        --chat-width: 378px;
        --chat-toggle-size: 56px;
        --chat-toggle-gap: 10px;
        --chat-offset-x: 24px;
        --chat-offset-bottom: 24px;
        --chat-z: 1100;
        --chat-fade-duration: 0.32s;
        --chat-fade-ease: cubic-bezier(0.22, 1, 0.36, 1);
        position: fixed;
        inset: 0;
        z-index: var(--chat-z);
        display: block;
        font-family: var(--font-main);
        pointer-events: none;
    }

    /* Wrapper inset:0 — açıkken de none kalsın; tıklamalar panel/toggle'da */
    .chat-widget.is-open {
        pointer-events: none;
    }

    .chat-backdrop {
        display: none !important;
    }

    .chat-widget__toggle {
        position: fixed;
        right: var(--chat-offset-x);
        bottom: var(--chat-offset-bottom);
        z-index: calc(var(--chat-z) + 1);
        display: flex;
        align-items: center;
        justify-content: center;
        width: var(--chat-toggle-size);
        height: var(--chat-toggle-size);
        padding: 0;
        border: 1px solid var(--surface-700);
        border-radius: 50%;
        background: var(--surface-800);
        color: var(--text-on-dark, #f1f5f9);
        cursor: pointer;
        pointer-events: auto;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
        transition:
            background var(--chat-fade-duration) var(--chat-fade-ease),
            border-color var(--chat-fade-duration) var(--chat-fade-ease),
            color var(--chat-fade-duration) var(--chat-fade-ease),
            transform 0.2s ease;
    }

    .chat-widget__toggle-icon {
        line-height: 1;
        font-size: 1.5rem;
        transition: opacity 0.22s ease, transform 0.22s ease;
    }

    .chat-widget__toggle-icon--close {
        position: absolute;
        opacity: 0;
        transform: scale(0.85);
        pointer-events: none;
    }

    .chat-widget.is-open .chat-widget__toggle {
        background: var(--brand-red);
        border-color: var(--brand-red);
        color: var(--text-light);
    }

    .chat-widget.is-open .chat-widget__toggle-icon--open {
        opacity: 0;
        transform: scale(0.85);
    }

    .chat-widget.is-open .chat-widget__toggle-icon--close {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    .chat-widget__toggle:hover {
        transform: scale(1.05);
    }

    .chat-widget:not(.is-open) .chat-widget__toggle:hover {
        background: var(--card-bg);
        border-color: var(--surface-600);
    }

    .chat-widget.is-open .chat-widget__toggle:hover {
        background: var(--brand-red-hover);
        border-color: var(--brand-red-hover);
    }

    .chat-widget__panel {
        position: fixed;
        right: var(--chat-offset-x);
        bottom: calc(var(--chat-offset-bottom) + var(--chat-toggle-size) + var(--chat-toggle-gap));
        top: 65px;
        width: var(--chat-width);
        max-width: calc(100vw - var(--chat-offset-x) * 2);
        border: 1px solid var(--surface-700);
        border-radius: 12px;
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
        z-index: var(--chat-z);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(0, 14px, 0);
        will-change: opacity, transform;
    }

    .chat-widget__panel.is-active {
        visibility: visible;
        pointer-events: auto;
        animation: chat-panel-in var(--chat-fade-duration) var(--chat-fade-ease) forwards;
    }

    .chat-widget__panel.is-closing {
        visibility: visible;
        pointer-events: none;
        animation: chat-panel-out var(--chat-fade-duration) var(--chat-fade-ease) forwards;
    }

    @keyframes chat-panel-in {
        from {
            opacity: 0;
            transform: translate3d(0, 14px, 0);
        }

        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }

    @keyframes chat-panel-out {
        from {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }

        to {
            opacity: 0;
            transform: translate3d(0, 14px, 0);
        }
    }

    .chat-input {
        padding-bottom: 0.75rem;
    }

    @media (prefers-reduced-motion: reduce) {
        .chat-widget__panel.is-active,
        .chat-widget__panel.is-closing {
            animation: none;
            opacity: 1;
            transform: none;
        }

        .chat-widget__panel:not(.is-active) {
            opacity: 0;
        }

        .chat-widget__toggle,
        .chat-widget__toggle-icon {
            transition: none;
        }
    }
}

@media (max-width: 1024px) {
    .chat-header__close {
        display: inline-flex;
    }

    .chat-widget {
        position: fixed;
        inset: 0;
        z-index: 1100;
        display: block;
        font-family: var(--font-main);
        pointer-events: none;
    }

    .chat-widget.is-open {
        pointer-events: none;
    }

    .chat-widget.is-open .chat-backdrop.is-visible,
    .chat-widget.is-open .chat-widget__panel.is-open {
        pointer-events: auto;
    }

    .chat-widget__toggle {
        display: none !important;
    }

    .chat-backdrop {
        position: fixed;
        top: var(--topbar-main-height);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.65);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        border: none;
        padding: 0;
        margin: 0;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }

    .chat-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .chat-backdrop.is-active {
        display: block;
    }

    .chat-widget__panel {
        position: fixed;
        top: var(--topbar-main-height);
        right: 0;
        bottom: 0;
        left: auto;
        z-index: 2;
        width: min(85vw, 380px);
        max-width: none;
        border: none;
        border-left: 1px solid var(--surface-700);
        border-radius: 0;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.35);
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        visibility: hidden;
        pointer-events: none;
    }

    .chat-widget__panel.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    body.chat-open {
        /* Arka plan scroll serbest; chat paneli kendi overflow'unu kullanır */
        overscroll-behavior: contain;
    }

    body.chat-open .chat-widget__panel,
    body.chat-open .chat-widget__panel * {
        overscroll-behavior: contain;
    }

    body.chat-open:not(.sidebar-open) .topbar-wrapper {
        z-index: 1000;
    }

    body.chat-open .topbar-main {
        position: relative;
        z-index: 2;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    }

    body.chat-open .topbar-sub {
        position: relative;
        z-index: 1;
    }

    body.chat-open .chat-widget {
        z-index: 1100;
    }

    body.chat-open .topbar-main::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 14px;
        transform: translateY(100%);
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.15) 45%,
            transparent 100%
        );
        pointer-events: none;
        z-index: 4;
    }

    body.chat-open:not(.sidebar-open) .topbar-sub {
        border-top-color: transparent;
    }

    body.sidebar-open.chat-open .chat-widget {
        z-index: 1100;
    }

    body.sidebar-open.chat-open .chat-backdrop {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

}

@media (min-width: 1025px) {
    .chat-backdrop {
        display: none !important;
    }
}
