.nexora-chatbot-header {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 74px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(100, 116, 139, .14);
    background: var(--nexora-headerBgColor, #fff);
}

.nexora-chatbot-identity {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 11px;
}

.nexora-chatbot-logo {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(100, 116, 139, .09);
    color: var(--nexora-controlTextColor, #64748b);
    font-size: 0;
}

.nexora-chatbot-logo:empty::after {
    content: '✦';
    font-size: 24px;
    line-height: 1;
}

.nexora-chatbot-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nexora-chatbot-logo.circle { border-radius: 50%; }
.nexora-chatbot-logo.oval-horizontal { width: 58px; flex-basis: 58px; border-radius: 18px; }
.nexora-chatbot-logo.oval-vertical { width: 36px; flex-basis: 36px; border-radius: 15px; }
.nexora-chatbot-logo.square { border-radius: 5px; }
.nexora-chatbot-logo.rounded-square { border-radius: 13px; }

.nexora-chatbot-heading {
    min-width: 0;
}

.nexora-chatbot-heading h2 {
    overflow: hidden;
    margin: 0;
    color: var(--nexora-headerTextColor, #172033);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nexora-chatbot-heading p {
    margin: 4px 0 0;
    color: var(--nexora-headerSubtitleTextColor, #687385);
    font-size: 13px;
    line-height: 1.2;
}

.nexora-chatbot-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nexora-chatbot-status::before {
    display: none;
    content: none;
}

.nexora-chatbot-close {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(100, 116, 139, .16);
    border-radius: 50%;
    background: transparent;
    color: var(--nexora-controlTextColor, #64748b);
    cursor: pointer;
    transition: background-color 140ms ease-out, transform 140ms cubic-bezier(.23, 1, .32, 1);
}

.nexora-chatbot-close svg {
    display: block;
    width: 18px;
    height: 18px;
}

.nexora-chatbot-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.nexora-chat-widget .nexora-chatbot-close:hover,
.nexora-chat-widget .nexora-chatbot-close:focus,
.nexora-chat-widget .nexora-chatbot-close:active {
    border-color: rgba(100, 116, 139, .16) !important;
    background: rgba(100, 116, 139, .08) !important;
    color: var(--nexora-controlTextColor, #64748b) !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.nexora-chatbot-close:active {
    transform: scale(.96);
}

@media (hover: hover) and (pointer: fine) {
    .nexora-chatbot-close:hover {
        background: rgba(100, 116, 139, .08);
    }
}

@media (max-width: 380px) {
    .nexora-chatbot-header { padding-right: 12px; padding-left: 12px; }
    .nexora-chatbot-identity { gap: 9px; }
    .nexora-chatbot-logo { width: 40px; height: 40px; flex-basis: 40px; }
}
