.seller-chat-widget {
    position: fixed;
    right: 20px;
    bottom: 22px;
    z-index: 2147483000;
    color: #172033;
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.seller-chat-widget svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.seller-chat-launcher {
    position: relative;
    isolation: isolate;
    display: flex;
    min-width: 190px;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--seller-chat-color);
    box-shadow: 0 14px 35px rgba(28, 56, 110, .3);
    color: #fff;
    cursor: pointer;
    text-align: left;
    animation: seller-chat-launcher-float 3.2s ease-in-out infinite;
    transition: background-color .22s ease, box-shadow .22s ease, transform .22s ease;
    will-change: transform;
}

.seller-chat-launcher::before,
.seller-chat-launcher::after {
    position: absolute;
    z-index: -1;
    inset: -1px;
    border: 1px solid rgba(37, 99, 235, .42);
    border-radius: inherit;
    box-shadow: 0 0 18px rgba(37, 99, 235, .16);
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: scale(.96);
    animation: seller-chat-launcher-ripple 7.2s ease-out infinite;
    transition: opacity .22s ease, transform .22s ease;
    will-change: transform, opacity;
}

.seller-chat-launcher::after {
    animation-delay: .32s;
}

@keyframes seller-chat-launcher-float {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -2px, 0);
    }
}

@keyframes seller-chat-launcher-ripple {
    0%, 75%, 100% {
        opacity: 0;
        transform: scale(.96);
    }

    78% {
        opacity: .3;
        transform: scale(.96);
    }

    96% {
        opacity: 0;
        transform: scale(1.15);
    }
}

.seller-chat-launcher-unread {
    position: absolute;
    top: -7px;
    right: -5px;
    display: none;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 5px 14px rgba(185, 28, 28, .32);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 19px;
}

.seller-chat-launcher-unread.is-visible {
    display: grid;
}

.seller-chat-launcher-icon {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    font-size: 25px;
    transform-origin: 50% 55%;
    animation: seller-chat-launcher-icon-float 2.45s ease-in-out .38s infinite;
}

@keyframes seller-chat-launcher-icon-float {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -1px, 0);
    }
}

@keyframes seller-chat-launcher-icon-greet {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0);
    }

    32% {
        transform: translate3d(0, -1px, 0) rotate(-6deg);
    }

    68% {
        transform: translate3d(0, -1px, 0) rotate(6deg);
    }
}

.seller-chat-launcher strong,
.seller-chat-launcher small {
    display: block;
}

.seller-chat-launcher small {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 1px;
    opacity: .86;
}

.seller-chat-launcher small::before {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #cbd5e1;
    content: "";
    opacity: .82;
    pointer-events: none;
}

.seller-chat-widget.is-online .seller-chat-launcher small::before {
    background: #42df88;
    animation: seller-chat-online-breathe 2s ease-in-out infinite;
}

.seller-chat-widget.is-offline .seller-chat-launcher small::before {
    background: #cbd5e1;
    box-shadow: none;
}

@keyframes seller-chat-online-breathe {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(66, 223, 136, .12);
        opacity: .58;
        transform: scale(.94);
    }

    50% {
        box-shadow: 0 0 0 3px rgba(66, 223, 136, .2);
        opacity: 1;
        transform: scale(1);
    }
}

@media (hover: hover) and (pointer: fine) {
    .seller-chat-launcher:hover,
    .seller-chat-launcher:focus-visible {
        animation: none;
        background: color-mix(in srgb, var(--seller-chat-color) 94%, #fff 6%);
        box-shadow: 0 18px 42px rgba(37, 99, 235, .34);
        transform: translateY(-2px);
    }

    .seller-chat-launcher:hover::before,
    .seller-chat-launcher:focus-visible::before {
        animation: none;
        opacity: .2;
        transform: scale(1.08);
    }

    .seller-chat-launcher:hover::after,
    .seller-chat-launcher:focus-visible::after {
        animation: none;
        opacity: 0;
    }

    .seller-chat-launcher:hover .seller-chat-launcher-icon,
    .seller-chat-launcher:focus-visible .seller-chat-launcher-icon {
        animation: seller-chat-launcher-icon-greet .38s ease-out both;
    }
}

.seller-chat-launcher:focus-visible {
    outline: 3px solid rgba(147, 197, 253, .72);
    outline-offset: 3px;
}

.seller-chat-launcher:active {
    animation: none;
    box-shadow: 0 8px 22px rgba(37, 99, 235, .28);
    transform: translateY(0) scale(.97);
    transition-duration: .12s;
}

.seller-chat-panel {
    position: absolute;
    right: 0;
    bottom: 66px;
    display: none;
    width: min(400px, calc(100vw - 24px));
    height: min(680px, calc(100vh - 96px));
    overflow: hidden;
    border: 1px solid rgba(34, 52, 84, .1);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(28, 44, 76, .25);
}

.seller-chat-widget.is-open .seller-chat-panel {
    display: flex;
    flex-direction: column;
}

.seller-chat-header {
    display: flex;
    min-height: 68px;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--seller-chat-color);
    color: #fff;
}

.seller-chat-header-identity {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 10px;
}

.seller-chat-header-identity > div {
    min-width: 0;
}

.seller-chat-header strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seller-chat-service-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 13px;
    background: rgba(255, 255, 255, .16);
    font-size: 23px;
    overflow: hidden;
}

.seller-chat-service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-chat-service-icon.has-custom {
    border-color: rgba(255, 255, 255, .48);
    background: #fff;
}

.seller-chat-service-icon.has-custom svg {
    display: none;
}

.seller-chat-presence {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-size: 12px;
    opacity: .9;
}

.seller-chat-presence i {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: #f59e0b;
}

.seller-chat-presence b {
    overflow: hidden;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seller-chat-widget.is-online .seller-chat-presence i {
    background: #42df88;
    box-shadow: 0 0 0 3px rgba(66, 223, 136, .18);
}

.seller-chat-widget.is-offline .seller-chat-presence i {
    background: #cbd5e1;
}

.seller-chat-back,
.seller-chat-close {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.seller-chat-back {
    display: none;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    gap: 3px;
    padding: 0 6px;
    border-radius: 10px;
}

.seller-chat-back span {
    font-size: 30px;
    line-height: 1;
}

.seller-chat-back b {
    font-size: 13px;
    white-space: nowrap;
}

.seller-chat-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 28px;
    line-height: 36px;
}

.seller-chat-back:hover,
.seller-chat-close:hover {
    background: rgba(255, 255, 255, .14);
}

.seller-chat-messages {
    flex: 1;
    min-height: 0;
    padding: 14px 8px;
    overflow: auto;
    background: #f4f7fb;
    overscroll-behavior: contain;
}

.seller-chat-loading {
    padding: 30px 12px;
    color: #7a879a;
    text-align: center;
}

.seller-chat-scroll-date {
    position: sticky;
    z-index: 8;
    top: 0;
    display: flex;
    height: 28px;
    margin-bottom: -28px;
    padding-top: 4px;
    box-sizing: border-box;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .16s ease, transform .16s ease;
}

.seller-chat-scroll-date.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.seller-chat-scroll-date span {
    display: inline-flex;
    min-height: 24px;
    padding: 2px 10px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(141, 157, 180, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 4px 14px rgba(31, 47, 75, .12);
    color: #68768a;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.seller-chat-floating-agent {
    position: sticky;
    z-index: 7;
    top: 8px;
    display: flex;
    width: 27px;
    height: 27px;
    margin-bottom: -27px;
    align-items: flex-start;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-3px);
    transition: opacity .15s ease, transform .15s ease;
}

.seller-chat-floating-agent.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.seller-chat-floating-agent .seller-chat-avatar {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
    border: 1px solid rgba(255, 255, 255, .92);
    box-shadow: 0 4px 12px rgba(31, 47, 75, .16);
}

.seller-chat-floating-agent img[hidden] {
    display: none;
}

.seller-chat-date {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 17px 8px 13px;
    color: #8a96a8;
    font-size: 11px;
}

.seller-chat-date::before,
.seller-chat-date::after {
    width: auto;
    height: 1px;
    flex: 1;
    background: #dde4ee;
    content: "";
}

.seller-chat-unread-divider {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 18px 5px 15px;
    color: var(--seller-chat-color);
    font-size: 11px;
    font-weight: 700;
}

.seller-chat-unread-divider::before,
.seller-chat-unread-divider::after {
    height: 1px;
    flex: 1;
    background: currentColor;
    content: "";
    opacity: .34;
}

.seller-chat-unread-divider span {
    display: inline-flex;
    min-height: 24px;
    padding: 3px 10px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(31, 47, 75, .08);
    line-height: 1.2;
    white-space: nowrap;
}

.seller-chat-message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0 0 13px;
}

.seller-chat-message.visitor {
    align-items: flex-end;
}

.seller-chat-message.is-grouped {
    margin-bottom: 5px;
}

.seller-chat-message-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 5px;
    color: #7d899a;
    font-size: 11px;
}

.seller-chat-avatar {
    position: relative;
    display: flex;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: #dce6f6;
    color: #54647a;
    font-size: 11px;
    font-weight: 700;
}

.seller-chat-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    object-fit: cover;
}

.seller-chat-author {
    max-width: 190px;
    overflow: hidden;
    color: #66758a;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seller-chat-message-time {
    display: block;
    color: #97a2b2;
    font-size: 10px;
    line-height: 1.25;
}

.seller-chat-stack {
    display: flex;
    max-width: 78%;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.seller-chat-message.visitor .seller-chat-stack {
    align-items: flex-end;
}

.seller-chat-message.agent .seller-chat-stack {
    margin-left: 31px;
}

.seller-chat-bubble {
    max-width: 100%;
    overflow: hidden;
    border: 1px solid #d8e1ed;
    border-radius: 6px 15px 15px 15px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(28, 44, 76, .07);
    word-break: break-word;
}

.seller-chat-message.visitor .seller-chat-bubble {
    border-color: var(--seller-chat-color);
    border-radius: 15px 6px 15px 15px;
    background: var(--seller-chat-color);
    color: #fff;
}

.seller-chat-content {
    padding: 8px 10px;
    white-space: pre-wrap;
}

.seller-chat-content.has-media {
    padding: 0;
}

.seller-chat-media {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 5px;
    background: #eef3f8;
}

.seller-chat-image-preview {
    cursor: zoom-in;
    outline: none;
}

.seller-chat-media img,
.seller-chat-media video {
    display: block;
    width: auto;
    max-width: 200px;
    max-height: 220px;
    border-radius: 9px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(124, 142, 168, .18);
    object-fit: contain;
}

.seller-chat-image-preview img {
    transition: filter .18s ease, transform .18s ease;
}

.seller-chat-media-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(10, 18, 32, .44);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.seller-chat-media-hint svg {
    width: 23px;
    height: 23px;
    stroke-width: 2.2;
}

.seller-chat-media-hint b {
    font-size: 12px;
    font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
    .seller-chat-image-preview:hover img {
        filter: brightness(.68);
        transform: scale(1.015);
    }

    .seller-chat-image-preview:hover .seller-chat-media-hint,
    .seller-chat-image-preview:focus-visible .seller-chat-media-hint {
        opacity: 1;
    }
}

.seller-chat-caption {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(128, 145, 170, .17);
    background: #fff;
    color: #26364d;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    white-space: pre-wrap;
}

.seller-chat-message.visitor .seller-chat-caption {
    border-color: rgba(255, 255, 255, .2);
    background: var(--seller-chat-color);
    color: #fff;
}

.seller-chat-content.media-only .seller-chat-caption {
    display: none;
}

html.seller-chat-lightbox-open,
body.seller-chat-lightbox-open {
    overflow: hidden !important;
}

.seller-chat-lightbox {
    position: fixed;
    z-index: 2147483640;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 62px 24px 72px;
    background: rgba(4, 10, 22, .88);
    color: #fff;
}

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

.seller-chat-lightbox-content {
    display: grid;
    max-width: min(92vw, 1280px);
    max-height: calc(100vh - 150px);
    place-items: center;
}

.seller-chat-lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 150px);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
    object-fit: contain;
}

.seller-chat-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    cursor: pointer;
    font-size: 27px;
    line-height: 1;
}

.seller-chat-lightbox-original {
    position: absolute;
    bottom: 22px;
    padding: 8px 13px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    text-decoration: none;
}

.seller-chat-lightbox-error {
    display: none;
    padding: 22px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.seller-chat-lightbox.is-error img {
    display: none;
}

.seller-chat-lightbox.is-error .seller-chat-lightbox-error {
    display: block;
}

.seller-chat-file {
    display: flex;
    min-width: 190px;
    align-items: center;
    gap: 8px;
    padding: 11px;
    color: inherit;
    text-decoration: none;
}

.seller-chat-file-icon {
    font-size: 22px;
}

.seller-chat-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seller-chat-meta {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    padding: 3px 3px 0;
    box-sizing: border-box;
    color: #8995a6;
    font-size: 10px;
    line-height: 16px;
}

.seller-chat-message.visitor .seller-chat-meta {
    min-width: 96px;
    justify-content: space-between;
}

.seller-chat-receipt.is-read {
    color: var(--seller-chat-color);
    font-weight: 600;
}

.seller-chat-receipt.is-failed,
.seller-chat-retry {
    color: #e5484d;
}

.seller-chat-retry {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.seller-chat-composer {
    position: relative;
    flex: 0 0 auto;
    padding: 10px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.seller-chat-scroll-bottom {
    position: absolute;
    z-index: 12;
    top: -52px;
    right: 16px;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(98, 116, 148, .22);
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 24px rgba(34, 52, 84, .2);
    color: var(--seller-chat-color);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(.94);
    transition: opacity .16s ease, transform .16s ease, box-shadow .16s ease;
}

.seller-chat-scroll-bottom.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.seller-chat-scroll-bottom:hover {
    box-shadow: 0 10px 28px rgba(34, 52, 84, .28);
}

.seller-chat-scroll-bottom:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--seller-chat-color) 24%, transparent);
    outline-offset: 2px;
}

.seller-chat-scroll-bottom svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.2;
}

.seller-chat-input-box {
    position: relative;
    border: 1px solid #d9e1ec;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 2px 9px rgba(38, 56, 88, .04);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.seller-chat-input-box:focus-within {
    border-color: color-mix(in srgb, var(--seller-chat-color) 55%, #d9e1ec);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--seller-chat-color) 10%, transparent);
}

.seller-chat-composer textarea {
    display: block;
    width: 100%;
    height: 58px;
    max-height: 118px;
    padding: 11px 12px 4px;
    border: 0;
    outline: none;
    resize: none;
    border-radius: 15px 15px 0 0;
    background: transparent;
    font: inherit;
    line-height: 1.5;
}

.seller-chat-tools {
    display: flex;
    min-height: 43px;
    align-items: center;
    gap: 7px;
    padding: 4px 6px 6px 7px;
    color: #657287;
}

.seller-chat-tool-buttons {
    display: flex;
    align-items: center;
    gap: 2px;
}

.seller-chat-tool {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 20px;
}

.seller-chat-tool:hover,
.seller-chat-tool.is-active {
    background: #f0f4fa;
    color: var(--seller-chat-color);
}

.seller-chat-tool input {
    display: none;
}

.seller-chat-file-name {
    min-width: 0;
    flex: 1;
    color: #66758a;
    font-size: 11px;
}

.seller-chat-tools button[type="submit"] {
    min-width: 67px;
    padding: 8px 14px;
    border: 0;
    border-radius: 10px;
    background: var(--seller-chat-color);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.seller-chat-tools button[type="submit"]:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.seller-chat-emoji-panel {
    position: absolute;
    bottom: 48px;
    left: 7px;
    z-index: 3;
    display: grid;
    width: 244px;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    padding: 8px;
    border: 1px solid #dfe6ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(32, 48, 76, .18);
}

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

.seller-chat-emoji-panel button {
    display: grid;
    width: 27px;
    height: 29px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
}

.seller-chat-emoji-panel button:hover {
    background: #f0f4fa;
}

.seller-chat-overlay {
    display: none;
}

html.seller-chat-open,
body.seller-chat-open {
    overscroll-behavior: none;
}

@media (max-width: 600px) {
    html.seller-chat-open,
    body.seller-chat-open {
        overflow: hidden !important;
    }

    .seller-chat-widget {
        right: 12px;
        bottom: 76px;
    }

    .seller-chat-launcher {
        width: 54px;
        height: 54px;
        min-width: 0;
        justify-content: center;
        padding: 0;
        border-radius: 50%;
    }

    .seller-chat-launcher > span:last-child {
        display: none;
    }

    .seller-chat-widget.is-open .seller-chat-launcher {
        display: none;
    }

    .seller-chat-panel {
        position: fixed;
        z-index: 2;
        inset: auto 0 0 0;
        top: var(--seller-chat-mobile-top, 0px);
        width: 100vw;
        height: var(--seller-chat-mobile-height, 100dvh);
        max-height: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .seller-chat-header {
        min-height: 62px;
        padding: calc(7px + env(safe-area-inset-top)) 9px 7px;
    }

    .seller-chat-lightbox {
        padding: 56px 10px 66px;
    }

    .seller-chat-lightbox-content,
    .seller-chat-lightbox-content img {
        max-height: calc(100dvh - 130px);
    }

    .seller-chat-lightbox-close {
        top: calc(10px + env(safe-area-inset-top));
        right: 12px;
    }

    .seller-chat-lightbox-original {
        bottom: calc(14px + env(safe-area-inset-bottom));
    }

    .seller-chat-back {
        display: flex;
    }

    .seller-chat-back b,
    .seller-chat-close {
        display: none;
    }

    .seller-chat-service-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 21px;
    }

    .seller-chat-header-identity {
        justify-content: center;
        padding-right: 44px;
    }

    .seller-chat-header-identity > div {
        max-width: 220px;
    }

    .seller-chat-messages {
        padding: 12px 8px;
    }

    .seller-chat-stack {
        max-width: 82%;
    }

    .seller-chat-media img,
    .seller-chat-media video {
        max-width: min(68vw, 200px);
        max-height: min(32dvh, 220px);
    }

    .seller-chat-composer {
        padding: 8px 9px calc(9px + env(safe-area-inset-bottom));
    }

    .seller-chat-scroll-bottom {
        top: -49px;
        right: 13px;
        width: 38px;
        height: 38px;
    }

    .seller-chat-composer textarea {
        height: 52px;
    }

    .seller-chat-tools button[type="submit"] {
        min-width: 66px;
        min-height: 36px;
    }

    .seller-chat-emoji-panel {
        width: min(244px, calc(100vw - 40px));
    }

    .seller-chat-widget.is-open .seller-chat-overlay {
        position: fixed;
        inset: 0;
        display: block;
        background: transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    .seller-chat-launcher,
    .seller-chat-launcher-icon,
    .seller-chat-widget.is-online .seller-chat-launcher small::before,
    .seller-chat-launcher::before,
    .seller-chat-launcher::after {
        animation: none;
    }

    .seller-chat-launcher::before,
    .seller-chat-launcher::after,
    .seller-chat-launcher:hover::before,
    .seller-chat-launcher:focus-visible::before {
        opacity: 0;
        transform: none;
    }
}
