.isa-drawer-header {
    position: relative;
    display: block;
    padding: 14px 14px 13px;
}

.isa-drawer-identity {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 12px;
    padding-right: 70px;
}

.isa-drawer-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    padding: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.isa-drawer-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}

.isa-drawer-header-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.isa-drawer-header-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.isa-drawer-new-conversation,
.isa-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 0;
    border-radius: 50%;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.isa-drawer-new-conversation {
    font-size: 13px;
}

.isa-drawer-close {
    flex: 0 0 30px;
    font-size: 17px;
}

.isa-drawer-new-conversation span {
    display: none;
}

.isa-drawer-new-conversation:hover,
.isa-drawer-new-conversation:focus,
.isa-drawer-close:hover,
.isa-drawer-close:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.28);
    outline: 0;
}

.isa-drawer-new-conversation:hover,
.isa-drawer-close:hover {
    transform: translateY(-1px);
}

.isa-drawer-eyebrow {
    padding-right: 4px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.isa-drawer-title {
    margin-top: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
}

.isa-drawer-subtitle {
    display: block;
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .isa-drawer-header {
        padding-top: calc(12px + env(safe-area-inset-top));
        padding-right: 10px;
        padding-left: 10px;
    }

    .isa-drawer-identity {
        gap: 9px;
        padding-right: 64px;
    }

    .isa-drawer-avatar {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        padding: 2px;
    }

    .isa-drawer-header-actions {
        top: calc(8px + env(safe-area-inset-top));
        right: 8px;
    }

    .isa-drawer-new-conversation,
    .isa-drawer-close {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }

    .isa-drawer-close {
        flex-basis: 28px;
        font-size: 16px;
    }

    .isa-drawer-title {
        font-size: 16px;
        line-height: 1.2;
    }

    .isa-drawer-subtitle {
        font-size: 12px;
    }
}
