.bim-chat,
.bim-chat * {
    box-sizing: border-box;
}

.bim-chat {
    --bim-chat-primary: #4384e6;
    --bim-chat-bg: #e4edf8;
    --bim-chat-ink: #111317;
    --bim-chat-muted: #656b73;
    color: var(--bim-chat-ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.35;
    position: relative;
    z-index: 2147480000;
}

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

.bim-chat button,
.bim-chat textarea,
.bim-chat input {
    font: inherit;
}

.bim-chat button {
    cursor: pointer;
}

.bim-chat button:disabled {
    cursor: default;
    opacity: 0.56;
}

.bim-chat button:focus-visible {
    outline: 0;
    outline-offset: 0;
    box-shadow: none;
    filter: brightness(0.92);
}

.bim-chat .bim-chat__panel input:focus-visible,
.bim-chat .bim-chat__panel textarea:focus-visible {
    background-color: #f7f9fc;
    box-shadow: none;
    outline: 0;
}

.bim-chat__launcher {
    align-items: center;
    background: var(--bim-chat-primary);
    border: 0;
    border-radius: 12px 12px 0 0;
    bottom: 0;
    box-shadow: 0 12px 34px rgba(20, 36, 58, 0.22);
    color: #fff;
    display: flex;
    font-size: 15px;
    font-weight: 700;
    height: 48px;
    justify-content: space-between;
    min-width: 255px;
    padding: 0 16px;
    position: fixed;
    right: 17px;
    text-align: left;
    z-index: 2;
}

.bim-chat__launcher.is-returning {
    animation: bim-chat-launcher-in 180ms ease-out both;
}

.bim-chat__launcher .dashicons {
    font-size: 23px;
    height: 23px;
    width: 23px;
}

.bim-chat__unread {
    align-items: center;
    background: #cf2f2f;
    border: 2px solid #fff;
    border-radius: 999px;
    display: flex;
    font-size: 11px;
    height: 22px;
    justify-content: center;
    min-width: 22px;
    padding: 0 5px;
    position: absolute;
    right: -7px;
    top: -8px;
}

.bim-chat__panel {
    background: var(--bim-chat-bg);
    border: 1px solid rgba(23, 40, 64, 0.06);
    border-radius: 23px;
    bottom: 14px;
    box-shadow: 0 16px 42px rgba(21, 34, 50, 0.22);
    height: min(682px, calc(100dvh - 28px));
    max-height: 682px;
    min-height: min(520px, calc(100dvh - 28px));
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    right: 16px;
    transform: translateY(15px) scale(0.965);
    transform-origin: right bottom;
    width: 360px;
    z-index: 3;
}

.bim-chat__panel.is-open {
    animation: bim-chat-panel-in 190ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
    pointer-events: auto;
}

.bim-chat__panel.is-closing {
    animation: bim-chat-panel-out 170ms ease-in both;
    pointer-events: none;
}

.bim-chat__topbar {
    align-items: center;
    display: flex;
    height: 44px;
    justify-content: space-between;
    left: 10px;
    position: absolute;
    right: 10px;
    top: 9px;
    z-index: 20;
}

.bim-chat__topbar-left,
.bim-chat__topbar-actions {
    display: flex;
    gap: 6px;
}

.bim-chat__topbar-actions {
    margin-left: auto;
}

.bim-chat__icon-button {
    align-items: center;
    background: #d5d9df;
    border: 0;
    border-radius: 50%;
    color: #121416;
    display: flex;
    height: 38px;
    justify-content: center;
    padding: 0;
    width: 38px;
}

.bim-chat__icon-button:hover {
    background: #c9ced5;
}

.bim-chat__icon-button .dashicons {
    font-size: 24px;
    height: 24px;
    width: 24px;
}

.bim-chat__minimize .dashicons {
    font-size: 28px;
    line-height: 17px;
}

.bim-chat__home,
.bim-chat__conversation:not([hidden]) {
    animation: bim-chat-content-in 220ms 45ms ease-out both;
}

.bim-chat__home {
    height: 100%;
    overflow-y: auto;
    padding: 68px 24px 132px;
}

.bim-chat__brand-avatar,
.bim-chat__agent-avatar {
    align-items: center;
    background: #fff;
    border-radius: 50%;
    color: #34383e;
    display: flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    overflow: visible;
    position: relative;
}

.bim-chat__brand-avatar {
    height: 50px;
    margin: 0 0 19px;
    width: 50px;
}

.bim-chat__brand-avatar img,
.bim-chat__agent-avatar img {
    border-radius: 50%;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.bim-chat__brand-avatar img,
.bim-chat__agent-avatar--brand img {
    object-position: left center;
}

.bim-chat__home h2 {
    color: var(--bim-chat-ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 38px;
    font-weight: 750;
    letter-spacing: -1.2px;
    line-height: 1.08;
    margin: 0;
    max-width: 270px;
}

.bim-chat__welcome-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(41, 56, 75, 0.05);
    margin: 25px -8px 0;
    padding: 24px 16px 16px;
}

.bim-chat__welcome-row {
    align-items: flex-start;
    display: flex;
    gap: 13px;
    min-height: 91px;
}

.bim-chat__welcome-row .bim-chat__agent-avatar {
    height: 42px;
    margin-top: 13px;
    width: 42px;
}

.bim-chat__agent-avatar i {
    background: #278d51;
    border: 2px solid #fff;
    border-radius: 50%;
    height: 11px;
    left: -1px;
    position: absolute;
    top: 1px;
    width: 11px;
}

.bim-chat__agent-line {
    color: var(--bim-chat-muted);
    font-size: 14px;
    margin: 0 0 5px;
}

.bim-chat__welcome-copy {
    color: var(--bim-chat-ink);
    font-size: 16px;
    line-height: 1.35;
    margin: 0;
}

.bim-chat__primary-button {
    align-items: center;
    background: var(--bim-chat-primary);
    border: 0;
    border-radius: 11px;
    color: #111317;
    display: flex;
    font-weight: 700;
    height: 48px;
    justify-content: center;
    margin-top: 15px;
    padding: 0 20px;
    width: 100%;
}

.bim-chat__primary-button:hover:not(:disabled) {
    filter: brightness(0.97);
}

.bim-chat__primary-button .dashicons {
    font-size: 27px;
    height: 27px;
    margin-left: 4px;
    width: 27px;
}

.bim-chat__tabs {
    align-items: stretch;
    background: #fff;
    border: 1px solid #e3e5e8;
    border-radius: 24px;
    bottom: 39px;
    box-shadow: 0 8px 23px rgba(28, 39, 54, 0.13);
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 72px;
    left: 22px;
    overflow: hidden;
    position: absolute;
    right: 22px;
    z-index: 7;
}

.bim-chat__tabs button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #707276;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    gap: 4px;
    justify-content: center;
    padding: 4px 10px;
}

.bim-chat__tabs button.is-active {
    color: #111317;
}

.bim-chat__tabs .dashicons {
    font-size: 26px;
    height: 26px;
    width: 26px;
}

.bim-chat__conversation {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 99px 14px 14px;
    position: relative;
}

.bim-chat__agent-pill {
    align-items: center;
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 999px;
    box-shadow: 0 7px 18px rgba(35, 47, 63, 0.14);
    color: #15171a;
    display: flex;
    gap: 9px;
    left: 50%;
    max-width: 238px;
    min-height: 57px;
    padding: 7px 14px 7px 8px;
    position: absolute;
    text-align: left;
    top: 30px;
    transform: translateX(-50%);
    width: max-content;
    z-index: 12;
}

.bim-chat__agent-pill .bim-chat__agent-avatar {
    height: 42px;
    width: 42px;
}

.bim-chat__agent-pill strong,
.bim-chat__agent-pill span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bim-chat__agent-pill strong {
    font-size: 15px;
}

.bim-chat__agent-pill > div:last-child > span {
    color: var(--bim-chat-muted);
    font-size: 14px;
}

.bim-chat__agent-rating {
    align-items: center;
    animation: bim-chat-centered-popover-in 130ms ease-out both;
    background: #fff;
    border: 1px solid #e0e2e5;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(35, 47, 63, 0.16);
    display: flex;
    gap: 5px;
    left: 50%;
    padding: 7px 9px;
    position: absolute;
    top: 88px;
    transform: translateX(-50%);
    z-index: 14;
}

.bim-chat__agent-rating > span {
    color: var(--bim-chat-muted);
    font-size: 12px;
    margin-right: 3px;
    white-space: nowrap;
}

.bim-chat__agent-rating button {
    align-items: center;
    background: #eef0f3;
    border: 0;
    border-radius: 7px;
    display: flex;
    height: 31px;
    justify-content: center;
    padding: 0;
    width: 34px;
}

.bim-chat__agent-rating button.is-selected {
    background: var(--bim-chat-primary);
}

.bim-chat__stage {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.bim-chat__messages {
    align-content: flex-start;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    min-height: 82px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 5px 6px 14px;
    scroll-behavior: smooth;
}

.bim-chat__message {
    display: flex;
    flex: 0 0 auto;
    max-width: 90%;
}

.bim-chat__message--agent {
    align-self: flex-start;
}

.bim-chat__message--visitor {
    align-self: flex-end;
}

.bim-chat__message-avatar {
    border-radius: 50%;
    flex: 0 0 auto;
    height: 27px;
    margin: 4px 8px 0 0;
    object-fit: cover;
    width: 27px;
}

.bim-chat__message-bubble {
    background: #fff;
    border-radius: 12px;
    color: #414851;
    font-size: 15px;
    line-height: 1.4;
    padding: 11px 13px 8px;
    white-space: pre-wrap;
    word-break: break-word;
}

.bim-chat__message--visitor .bim-chat__message-bubble {
    background: var(--bim-chat-primary);
    color: #fff;
}

.bim-chat__message-time {
    color: #7b7e83;
    display: block;
    font-size: 10px;
    margin-top: 4px;
    text-align: right;
}

.bim-chat__message--visitor .bim-chat__message-time {
    color: rgba(255, 255, 255, 0.82);
}

.bim-chat__prechat {
    background: #fff;
    border: 1px solid #dde0e4;
    border-radius: 20px;
    flex: 0 1 auto;
    margin: 4px 6px 7px 38px;
    max-height: calc(100% - 90px);
    overflow-y: auto;
    padding: 23px 24px 20px;
}

.bim-chat__prechat p {
    color: #272b30;
    font-size: 15px;
    line-height: 1.35;
    margin: 0 0 17px;
}

.bim-chat__prechat p:last-of-type {
    margin: 14px 0 0;
}

.bim-chat__prechat label,
.bim-chat__feedback-card > label {
    color: #202327;
    display: block;
    font-size: 14px;
    margin: 0 0 5px;
}

.bim-chat__prechat input,
.bim-chat__modal-card input,
.bim-chat__feedback-card textarea {
    appearance: none;
    background: #fff;
    border: 1px solid #777d84;
    border-radius: 7px;
    color: #1d2125;
    display: block;
    min-height: 42px;
    padding: 8px 10px;
    width: 100%;
}

.bim-chat__prechat input + label {
    margin-top: 13px;
}

.bim-chat__prechat .bim-chat__primary-button {
    margin-top: 20px;
}

.bim-chat__status {
    color: #626870;
    flex: 0 0 auto;
    font-size: 12px;
    margin: 3px 0 6px;
    min-height: 16px;
    text-align: center;
}

.bim-chat__status.is-error,
.bim-chat__feedback-result.is-error,
.bim-chat__modal-card p.is-error {
    color: #bb2f2f;
}

.bim-chat__composer-wrap {
    flex: 0 0 auto;
    position: relative;
}

.bim-chat__composer {
    align-items: flex-end;
    background: #fff;
    border: 1px solid #c8cdd3;
    border-radius: 22px;
    display: flex;
    gap: 5px;
    min-height: 54px;
    padding: 6px;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.bim-chat__composer:focus-within {
    border-color: #c8cdd3;
    background: #f7f9fc;
    box-shadow: none;
}

.bim-chat .bim-chat__composer textarea,
.bim-chat .bim-chat__composer textarea:focus,
.bim-chat .bim-chat__composer textarea:focus-visible {
    appearance: none;
    background: transparent;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    color: #22262b;
    flex: 1 1 auto;
    line-height: 1.35;
    margin: 0;
    max-height: 92px;
    min-height: 40px;
    outline: 0 !important;
    overflow-y: auto;
    padding: 10px 4px 7px;
    resize: none;
    width: auto;
}

.bim-chat__composer-action,
.bim-chat__send {
    align-items: center;
    border: 0;
    border-radius: 50%;
    display: flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
    margin: 1px 0;
    padding: 0;
}

.bim-chat__composer-action {
    background: #eceef1;
    color: #171a1e;
}

.bim-chat__send {
    background: var(--bim-chat-primary);
    color: #111317;
}

.bim-chat__composer-action .dashicons,
.bim-chat__send .dashicons {
    font-size: 24px;
    height: 24px;
    width: 24px;
}

.bim-chat__quick-replies,
.bim-chat__emoji-picker {
    animation: bim-chat-popover-in 130ms ease-out both;
    background: #fff;
    border: 1px solid #dfe2e6;
    border-radius: 12px;
    bottom: 62px;
    box-shadow: 0 9px 24px rgba(24, 35, 48, 0.18);
    position: absolute;
    z-index: 16;
}

.bim-chat__quick-replies {
    left: 0;
    max-height: 260px;
    overflow-y: auto;
    padding: 12px;
    width: min(290px, calc(100vw - 58px));
}

.bim-chat__quick-replies strong {
    display: block;
    font-size: 13px;
    margin: 0 3px 8px;
}

.bim-chat__quick-replies [data-bim-chat-quick-list] {
    display: grid;
    gap: 6px;
}

.bim-chat__quick-replies button {
    background: #f2f4f7;
    border: 0;
    border-radius: 8px;
    color: #25292e;
    font-size: 13px;
    line-height: 1.3;
    padding: 9px 10px;
    text-align: left;
}

.bim-chat__quick-replies button:hover {
    background: #e5eaf0;
}

.bim-chat__emoji-picker {
    display: grid;
    grid-template-columns: repeat(5, 36px);
    padding: 8px;
    right: 0;
}

.bim-chat__emoji-picker button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    display: flex;
    font-size: 21px;
    height: 36px;
    justify-content: center;
    padding: 0;
    width: 36px;
}

.bim-chat__emoji-picker button:hover {
    background: #eef0f3;
}

.bim-chat__closed {
    flex: 0 1 auto;
    max-height: calc(100% - 76px);
    overflow-y: auto;
    padding: 0 6px 3px 38px;
}

.bim-chat__closed-copy {
    color: #4d535b;
    margin: 3px 0 15px;
    text-align: center;
}

.bim-chat__feedback-card {
    background: #fff;
    border: 1px solid #dce0e5;
    border-radius: 19px;
    padding: 20px;
}

.bim-chat__feedback-card fieldset {
    border: 0;
    margin: 0 0 15px;
    padding: 0;
}

.bim-chat__feedback-card legend {
    color: #24282d;
    font-size: 14px;
    line-height: 1.3;
    margin: 0 0 7px;
    padding: 0;
}

.bim-chat__feedback-card fieldset:not(.bim-chat__rating-field) label {
    display: block;
    font-size: 14px;
    margin: 4px 0;
}

.bim-chat__rating-field {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.bim-chat__rating-field legend {
    flex: 0 0 100%;
}

.bim-chat__rating-field legend span {
    color: #c8372d;
}

.bim-chat__rating-field label {
    display: block;
    height: 44px;
    position: relative;
    width: 48px;
}

.bim-chat__rating-field input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.bim-chat__rating-field .dashicons {
    align-items: center;
    background: #eef0f3;
    border: 1px solid transparent;
    border-radius: 7px;
    display: flex;
    font-size: 25px;
    height: 44px;
    justify-content: center;
    width: 48px;
}

.bim-chat__rating-field input:checked + .dashicons {
    background: #c7c9cc;
    border-color: #888d94;
}

.bim-chat__rating-field input:focus-visible + .dashicons {
    outline: 0;
    background: #dfe3e8;
    box-shadow: none;
}

.bim-chat__feedback-card textarea {
    margin-top: 7px;
    min-height: 66px;
    resize: vertical;
}

.bim-chat__feedback-result {
    color: #247344;
    font-size: 12px;
    margin: 8px 0 0;
    min-height: 16px;
}

.bim-chat__feedback-card.is-submitted > *:not(.bim-chat__feedback-result) {
    opacity: 0.56;
}

.bim-chat__new-button {
    background: #fff;
    border: 1px solid var(--bim-chat-primary);
    border-radius: 11px;
    color: #22262b;
    font-weight: 700;
    margin-top: 10px;
    min-height: 46px;
    width: 100%;
}

.bim-chat__menu {
    animation: bim-chat-popover-in 130ms ease-out both;
    background: #fff;
    border: 1px solid #dedfe2;
    border-radius: 9px;
    box-shadow: 0 7px 19px rgba(26, 35, 46, 0.18);
    left: 44px;
    overflow: hidden;
    position: absolute;
    top: 48px;
    width: 178px;
    z-index: 24;
}

.bim-chat__menu button,
.bim-chat__menu label {
    align-items: center;
    background: #fff;
    border: 0;
    color: #1d2024;
    display: flex;
    gap: 11px;
    height: 50px;
    margin: 0;
    padding: 0 12px;
    text-align: left;
    width: 100%;
}

.bim-chat__menu button:hover:not(:disabled) {
    background: #444;
    color: #fff;
}

.bim-chat__menu button:disabled {
    background: #e2e2e2;
    color: #616367;
}

.bim-chat__menu .dashicons {
    font-size: 24px;
    height: 24px;
    width: 24px;
}

.bim-chat__menu label {
    cursor: pointer;
}

.bim-chat__menu label > span:nth-child(2) {
    flex: 1 1 auto;
}

.bim-chat__menu input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.bim-chat__toggle {
    background: #96999d;
    border-radius: 999px;
    display: block;
    height: 24px;
    padding: 3px;
    position: relative;
    transition: background 160ms ease;
    width: 44px;
}

.bim-chat__toggle::after {
    background: #fff;
    border-radius: 50%;
    content: "";
    display: block;
    height: 18px;
    transform: translateX(0);
    transition: transform 160ms ease;
    width: 18px;
}

.bim-chat__menu input:checked + .bim-chat__toggle {
    background: #278d51;
}

.bim-chat__menu input:checked + .bim-chat__toggle::after {
    transform: translateX(20px);
}

.bim-chat__menu input:focus-visible + .bim-chat__toggle {
    outline: 0;
    box-shadow: none;
    filter: brightness(0.9);
}

.bim-chat__modal {
    align-items: flex-start;
    animation: bim-chat-overlay-in 150ms ease-out both;
    background: rgba(19, 23, 29, 0.56);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: absolute;
    z-index: 40;
}

.bim-chat__modal-card {
    animation: bim-chat-modal-in 170ms ease-out both;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(17, 23, 31, 0.25);
    margin-top: 0;
    padding: 36px 18px 18px;
    position: relative;
    text-align: center;
    width: 100%;
}

.bim-chat__modal-close {
    align-items: center;
    background: transparent;
    border: 0;
    display: flex;
    height: 38px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 8px;
    top: 8px;
    width: 38px;
}

.bim-chat__modal-close .dashicons {
    font-size: 27px;
    height: 27px;
    width: 27px;
}

.bim-chat__modal-icon {
    align-items: center;
    background: #e2e4e7;
    border-radius: 50%;
    display: flex;
    font-size: 28px;
    height: 62px;
    justify-content: center;
    margin: 0 auto 16px;
    width: 62px;
}

.bim-chat__modal-card h3 {
    color: #25292e;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
    margin: 0 auto 15px;
    max-width: 245px;
}

.bim-chat__modal-card p {
    color: #247344;
    font-size: 12px;
    margin: 7px 0 0;
    min-height: 16px;
}

.bim-chat__modal-card .bim-chat__primary-button {
    margin-top: 10px;
}

.bim-chat__confirm-card {
    margin-top: 132px;
    padding-top: 28px;
}

.bim-chat__confirm-card .bim-chat__modal-icon {
    margin-bottom: 13px;
}

.bim-chat__confirm-card p {
    color: #555b63;
    font-size: 14px;
    line-height: 1.4;
    margin: 0 auto;
    max-width: 270px;
}

.bim-chat__confirm-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1.25fr;
    margin-top: 22px;
}

.bim-chat__secondary-button,
.bim-chat__danger-button {
    border-radius: 10px;
    font-weight: 700;
    min-height: 46px;
    padding: 0 12px;
}

.bim-chat__secondary-button {
    background: #fff;
    border: 1px solid #aeb3ba;
    color: #24282d;
}

.bim-chat__danger-button {
    background: #bd2c2c;
    border: 1px solid #bd2c2c;
    color: #fff;
}

.bim-chat__danger-button:hover:not(:disabled) {
    background: #a82424;
}

.bim-chat .screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

@keyframes bim-chat-panel-in {
    from { opacity: 0; transform: translateY(15px) scale(0.965); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bim-chat-panel-out {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(13px) scale(0.975); }
}

@keyframes bim-chat-content-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bim-chat-popover-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bim-chat-centered-popover-in {
    from { opacity: 0; transform: translate(-50%, 5px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes bim-chat-overlay-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bim-chat-modal-in {
    from { opacity: 0; transform: translateY(-7px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bim-chat-launcher-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .bim-chat__launcher {
        border-radius: 12px;
        bottom: 10px;
        left: 10px;
        margin-left: auto;
        margin-right: auto;
        max-width: 255px;
        min-width: 0;
        right: 10px;
        width: auto;
    }

    .bim-chat__panel {
        bottom: 10px;
        height: min(682px, calc(100dvh - 20px));
        left: 10px;
        margin-left: auto;
        margin-right: auto;
        max-height: 682px;
        max-width: 360px;
        min-height: min(500px, calc(100dvh - 20px));
        right: 10px;
        width: auto;
    }
}

@media (max-width: 370px) {
    .bim-chat__home {
        padding-left: 22px;
        padding-right: 22px;
    }

    .bim-chat__home h2 {
        font-size: 35px;
    }

    .bim-chat__welcome-card {
        margin-left: -6px;
        margin-right: -6px;
        padding-left: 13px;
        padding-right: 13px;
    }

    .bim-chat__conversation {
        padding-left: 10px;
        padding-right: 10px;
    }

    .bim-chat__prechat,
    .bim-chat__closed {
        margin-left: 30px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-height: 650px) {
    .bim-chat__home {
        padding-top: 58px;
    }

    .bim-chat__brand-avatar {
        margin-bottom: 9px;
    }

    .bim-chat__home h2 {
        font-size: 32px;
    }

    .bim-chat__welcome-card {
        margin-top: 13px;
    }

    .bim-chat__conversation {
        padding-top: 91px;
    }

    .bim-chat__agent-pill {
        top: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bim-chat *,
    .bim-chat *::before,
    .bim-chat *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
