.market-chat-launcher {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1035;
    width: min(380px, calc(100vw - 2rem));
}

.market-chat-launcher summary {
    list-style: none;
}

.market-chat-launcher summary::-webkit-details-marker {
    display: none;
}

.market-chat-launcher-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    max-width: 58px;
    min-height: 56px;
    margin-left: auto;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    border: 0;
    cursor: pointer;
    user-select: none;
    animation: market-chat-launcher-float 3s ease-in-out infinite;
}

.market-chat-launcher-badge {
    position: absolute;
    top: -.28rem;
    right: -.2rem;
    min-width: 22px;
    height: 22px;
    padding: 0 .32rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #dc2626;
    border: 2px solid #fff;
    font-size: .68rem;
    font-weight: 900;
    line-height: 1;
}

.market-chat-launcher-toggle:hover,
.market-chat-launcher-toggle:focus {
    color: #fff;
    text-decoration: none;
    outline: none;
}

.market-chat-launcher-icon {
    width: 56px;
    height: 56px;
    min-height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #16a34a;
    box-shadow: 0 18px 42px rgba(22, 163, 74, .38);
    font-size: 1.28rem;
    position: relative;
    overflow: hidden;
}

.market-chat-launcher-icon::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    border: 2px solid rgba(34, 197, 94, .42);
    animation: market-chat-icon-pulse 2.2s ease-out infinite;
}

.market-chat-launcher-toggle:hover .market-chat-launcher-icon,
.market-chat-launcher-toggle:focus .market-chat-launcher-icon {
    background: #15803d;
    box-shadow: 0 20px 46px rgba(22, 163, 74, .48);
}

.market-chat-launcher-copy {
    position: absolute;
    right: calc(100% + .6rem);
    top: 50%;
    display: inline-flex;
    min-width: 0;
    align-items: center;
    min-height: 36px;
    padding: .45rem .7rem;
    border-radius: 999px;
    color: #14532d;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .2);
    font-size: .88rem;
    line-height: 1.1;
    white-space: nowrap;
    transform: translateY(-50%) translateX(8px);
    opacity: 0;
    pointer-events: none;
    animation: market-chat-copy-peek 5.2s ease-in-out infinite;
}

.market-chat-launcher-copy::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: translateY(-50%) rotate(45deg);
}

.market-chat-launcher[open] .market-chat-launcher-copy {
    animation: none;
    opacity: 0;
}

.market-chat-launcher-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + .65rem);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: calc(100vh - 6rem);
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(203, 213, 225, .9);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
    overflow: hidden;
}

@keyframes market-chat-launcher-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes market-chat-icon-pulse {
    0% {
        opacity: .65;
        transform: scale(.82);
    }
    80%,
    100% {
        opacity: 0;
        transform: scale(1.28);
    }
}

@keyframes market-chat-copy-peek {
    0%,
    22%,
    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(8px);
    }
    32%,
    68% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    78% {
        opacity: 0;
        transform: translateY(-50%) translateX(8px);
    }
}

.market-chat-panel-header,
.market-chat-conversation-header {
    display: flex;
    align-items: center;
    gap: .7rem;
    background: #075e54;
    color: #fff;
}

.market-chat-panel-header {
    min-height: 56px;
    padding: .75rem .85rem;
}

.market-chat-panel-title,
.market-chat-conversation-title {
    min-width: 0;
    flex: 1 1 auto;
    line-height: 1.12;
}

.market-chat-panel-title strong,
.market-chat-conversation-title strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-chat-panel-title small,
.market-chat-conversation-title small {
    display: block;
    color: rgba(236, 253, 245, .82);
    font-size: .74rem;
    margin-top: .18rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-chat-conversation-title small {
    white-space: normal;
    line-height: 1.25;
}

.market-chat-panel-close,
.market-chat-back-button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255,255,255,.14);
}

.market-chat-panel-close:hover,
.market-chat-panel-close:focus,
.market-chat-back-button:hover,
.market-chat-back-button:focus {
    color: #fff;
    background: rgba(255,255,255,.22);
    outline: none;
}

.market-chat-lookup-view {
    padding: .9rem;
}

.market-chat-lookup-form {
    margin: 0;
}

.market-chat-lookup-phone .market-form-label {
    margin-bottom: .42rem;
    color: #0f172a;
    font-size: .84rem;
    font-weight: 800;
}

.market-chat-lookup-phone .phone-group-modern {
    min-height: 46px;
    border-radius: 15px;
    background: #fff;
    border-color: #cbd5e1;
    box-shadow: none;
}

.market-chat-lookup-phone .phone-flag {
    width: 2rem;
    height: 2rem;
}

.market-chat-lookup-phone .phone-code-wrap {
    min-height: 38px;
}

.market-chat-lookup-phone .phone-local {
    min-height: 38px;
    font-weight: 800;
}

.market-chat-lookup-phone .market-field-note {
    margin-top: .38rem;
    font-size: .76rem;
}

.market-chat-lookup-row {
    display: flex;
    justify-content: flex-end;
}

.market-chat-lookup-input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: .6rem .9rem;
    color: #0f172a;
    font-weight: 700;
    outline: none;
}

.market-chat-lookup-input:focus {
    border-color: #128c7e;
    box-shadow: 0 0 0 .16rem rgba(18, 140, 126, .14);
}

.market-chat-lookup-button,
.market-chat-message-button {
    border: 0;
    color: #fff;
    background: #128c7e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.market-chat-lookup-button {
    width: auto;
    min-width: 124px;
    height: 42px;
    border-radius: 999px;
    gap: .45rem;
    padding: 0 .9rem;
    font-weight: 800;
}

.market-chat-lookup-button:disabled,
.market-chat-message-button:disabled,
.market-chat-voice-button:disabled {
    opacity: .68;
}

.market-chat-lookup-result {
    margin-top: .7rem;
}

.market-chat-lookup-note,
.market-chat-lookup-error,
.market-chat-lookup-success,
.market-chat-empty {
    border-radius: 13px;
    padding: .7rem;
    font-size: .84rem;
    font-weight: 700;
}

.market-chat-lookup-note {
    color: #475569;
    background: #f8fafc;
}

.market-chat-lookup-error {
    color: #991b1b;
    background: #fee2e2;
}

.market-chat-lookup-success {
    color: #14532d;
    background: #dcfce7;
}

.market-chat-customer-chip {
    margin-bottom: .45rem;
    color: #166534;
    font-size: .78rem;
}

.market-chat-vendor-card {
    width: 100%;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 16px;
    align-items: center;
    gap: .62rem;
    margin-top: .48rem;
    padding: .5rem;
    border: 0;
    border-radius: 13px;
    color: #0f172a;
    background: rgba(255,255,255,.92);
    text-align: left;
}

.market-chat-vendor-card:hover,
.market-chat-vendor-card:focus {
    background: #fff;
    outline: 2px solid rgba(18, 140, 126, .16);
}

.market-chat-vendor-card img {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
}

.market-chat-vendor-card strong,
.market-chat-vendor-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-chat-vendor-card small {
    color: #64748b;
    font-size: .72rem;
    margin-top: .08rem;
}

.market-chat-conversation {
    height: min(70vh, 560px);
    max-height: calc(100vh - 6.5rem);
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #eef2f0;
}

.market-chat-conversation-header {
    min-height: 60px;
    padding: .55rem .68rem;
    flex: 0 0 auto;
}

.market-chat-conversation-photo {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
    background: rgba(255,255,255,.16);
    flex: 0 0 auto;
}

.market-chat-thread {
    flex: 1 1 auto;
    min-height: 0;
    padding: .82rem .72rem;
    overflow-y: auto;
    background: #e7eee9;
}

.market-chat-empty {
    color: #475569;
    background: rgba(255,255,255,.82);
}

.market-chat-message-row {
    display: flex;
    margin-bottom: .48rem;
}

.market-chat-message-row.is-own {
    justify-content: flex-end;
}

.market-chat-message-row.is-system {
    justify-content: center;
}

.market-chat-message-bubble {
    max-width: 82%;
    padding: .48rem .6rem .32rem;
    border-radius: 14px 14px 14px 3px;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 1px 1px rgba(15, 23, 42, .08);
}

.market-chat-message-bubble.is-own {
    border-radius: 14px 14px 3px 14px;
    background: #d9fdd3;
}

.market-chat-message-bubble.is-system {
    max-width: 92%;
    border-radius: 999px;
    color: #075e54;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    box-shadow: none;
    text-align: center;
    font-weight: 800;
}

.market-chat-message-text {
    font-size: .9rem;
    line-height: 1.35;
    word-break: break-word;
}

.market-chat-message-sender {
    margin-bottom: .2rem;
    color: #075e54;
    font-size: .72rem;
    font-weight: 900;
}

.market-chat-message-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .25rem;
    margin-top: .18rem;
    color: #64748b;
    font-size: .68rem;
}

.market-chat-message-meta i {
    color: #34b7f1;
    font-size: .66rem;
}

.market-chat-voice-note {
    display: grid;
    grid-template-columns: 22px minmax(120px, 1fr) auto;
    align-items: center;
    gap: .42rem;
}

.market-chat-voice-note audio {
    width: 180px;
    max-width: 100%;
    height: 34px;
}

.market-chat-voice-note span,
.market-chat-voice-missing {
    color: #64748b;
    font-size: .74rem;
}

.market-chat-location-card {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: .48rem;
    align-items: center;
    min-width: min(220px, 68vw);
    max-width: 100%;
}

.market-chat-location-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #128c7e;
}

.market-chat-location-copy strong,
.market-chat-location-copy small {
    display: block;
}

.market-chat-location-copy strong {
    font-size: .86rem;
}

.market-chat-location-copy small {
    color: #64748b;
    font-size: .7rem;
    margin-top: .08rem;
}

.market-chat-location-link {
    grid-column: 1 / -1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: .32rem;
    margin-top: .12rem;
    padding: .28rem .5rem;
    border-radius: 999px;
    background: rgba(18, 140, 126, .10);
    color: #075e54;
    font-size: .74rem;
    font-weight: 800;
    text-decoration: none !important;
}

.market-chat-location-link:hover,
.market-chat-location-link:focus {
    color: #064e3b;
    background: rgba(18, 140, 126, .16);
}

.market-chat-location-map,
.market-chat-tracking-map {
    grid-column: 1 / -1;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #dbeafe;
    border: 1px solid rgba(15, 23, 42, .08);
}

.market-chat-location-map {
    height: 150px;
    margin-top: .32rem;
}

.market-chat-tracking-map {
    height: 134px;
    margin-top: .5rem;
}

.market-chat-location-map .maplibregl-ctrl-top-right,
.market-chat-tracking-map .maplibregl-ctrl-top-right {
    display: none;
}

.market-chat-map-fallback {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .7rem;
    color: #075e54;
    background: linear-gradient(135deg, #dcfce7, #eff6ff);
    font-size: .76rem;
    font-weight: 800;
    text-align: center;
}

.market-chat-typing {
    padding: .18rem .82rem;
    color: #64748b;
    background: #eef2f0;
    font-size: .76rem;
    font-style: italic;
}

.market-chat-conversation-status {
    min-height: 18px;
    padding: 0 .82rem;
    color: #64748b;
    background: #eef2f0;
    font-size: .72rem;
}

.market-chat-conversation-status.is-error {
    color: #991b1b;
}

.market-chat-tracking-strip {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: .52rem;
    align-items: start;
    flex: 0 0 auto;
    max-height: min(42vh, 330px);
    overflow-y: auto;
    padding: .62rem .75rem;
    color: #075e54;
    background: #dcfce7;
    border-bottom: 1px solid #bbf7d0;
    font-size: .76rem;
    font-weight: 800;
}

.market-chat-tracking-strip.is-muted {
    color: #475569;
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
}

.market-chat-tracking-strip > i {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #128c7e;
}

.market-chat-tracking-strip.is-muted > i {
    background: #64748b;
}

.market-chat-tracking-strip strong,
.market-chat-tracking-strip small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-chat-tracking-strip small {
    color: inherit;
    opacity: .84;
    font-size: .7rem;
    margin-top: .05rem;
}

.market-chat-tracking-link {
    grid-column: 2;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: .32rem;
    margin-top: .15rem;
    padding: .28rem .5rem;
    border-radius: 999px;
    color: #075e54;
    background: #fff;
    border: 1px solid #86efac;
    text-decoration: none !important;
    font-size: .72rem;
    font-weight: 900;
}

.market-chat-tracking-link:hover,
.market-chat-tracking-link:focus {
    color: #064e3b;
    border-color: #22c55e;
}

.market-chat-route-shell {
    display: grid;
    gap: .42rem;
    min-width: 0;
}

.market-chat-route-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem;
    align-items: center;
}

.market-chat-route-summary-copy {
    min-width: 0;
}

.market-chat-route-summary-copy strong,
.market-chat-route-summary-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-chat-route-toggle {
    min-height: 32px;
    border: 1px solid rgba(18, 140, 126, .22);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .32rem;
    padding: 0 .58rem;
    color: #075e54;
    background: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
    font-size: .68rem;
    font-family: inherit;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
}

.market-chat-route-toggle:hover,
.market-chat-route-toggle:focus {
    color: #064e3b;
    border-color: rgba(18, 140, 126, .42);
    outline: none;
}

.market-chat-route-card {
    display: grid;
    gap: .48rem;
    padding: .5rem;
    border-radius: 18px;
    color: #0f172a;
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    border: 1px solid rgba(96, 165, 250, .32);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
}

.market-chat-route-card.is-locked {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-color: rgba(148, 163, 184, .32);
    box-shadow: none;
}

.market-chat-route-card[hidden] {
    display: none !important;
}

.market-chat-route-guidance {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: .5rem;
    align-items: center;
    padding: .18rem .12rem;
}

.market-chat-route-guidance-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #2563eb;
    box-shadow: 0 9px 18px rgba(37, 99, 235, .24);
}

.market-chat-route-guidance strong,
.market-chat-route-guidance small {
    display: block;
}

.market-chat-route-guidance strong {
    color: #0f172a;
    font-size: .78rem;
}

.market-chat-route-guidance small {
    color: #475569;
    font-size: .68rem;
    line-height: 1.3;
    margin-top: .05rem;
    white-space: normal;
}

.market-chat-route-map {
    position: relative;
    display: block;
    height: clamp(142px, 22vh, 170px);
    min-height: 142px;
    overflow: hidden;
    border-radius: 14px;
    background:
        linear-gradient(rgba(15, 23, 42, .18), rgba(15, 23, 42, .18)),
        linear-gradient(135deg, #dbeafe, #dcfce7);
    border: 1px solid rgba(15, 23, 42, .08);
}

.market-chat-route-map .maplibregl-map,
.market-chat-route-map .maplibregl-canvas-container,
.market-chat-route-map .maplibregl-canvas {
    border-radius: 14px;
}

.market-chat-route-map .maplibregl-ctrl-top-right {
    top: .42rem;
    right: .42rem;
}

.market-chat-route-map .maplibregl-ctrl-group {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .22);
}

.market-chat-route-map .maplibregl-ctrl button {
    width: 30px;
    height: 30px;
}

.market-chat-route-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .8rem;
    color: #075e54;
    font-size: .74rem;
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
}

.market-chat-route-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .38rem;
}

.market-chat-route-checks span {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    min-width: 0;
    padding: .38rem .45rem;
    border-radius: 999px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: .64rem;
    font-weight: 900;
    white-space: nowrap;
}

.market-chat-route-checks span.is-done {
    color: #166534;
    background: #dcfce7;
    border-color: #bbf7d0;
}

.market-chat-route-pin {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    padding: .24rem .42rem;
    border-radius: 999px;
    color: #fff;
    background: #2563eb;
    border: 2px solid #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .24);
    font-size: .68rem;
    font-weight: 900;
    white-space: nowrap;
}

.market-chat-route-pin.is-customer {
    background: #16a34a;
}

.market-chat-message-form.is-location-locked .market-chat-input-shell {
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .32);
}

.market-chat-message-form.is-location-locked .market-chat-message-input {
    color: #cbd5e1;
    cursor: not-allowed;
}

.market-chat-message-form {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    padding: .42rem .58rem .6rem;
    background: #111b21;
}

.market-chat-input-shell {
    position: relative;
    min-width: 0;
    min-height: 52px;
    border-radius: 28px;
    background: #202c33;
}

.market-chat-attachment-menu {
    position: absolute;
    left: .35rem;
    bottom: calc(100% + .48rem);
    z-index: 4;
    width: min(260px, calc(100vw - 3rem));
    padding: .38rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(203, 213, 225, .92);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .24);
}

.market-chat-attachment-menu[hidden] {
    display: none !important;
}

.market-chat-attachment-menu button {
    width: 100%;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: .65rem;
    border: 0;
    border-radius: 12px;
    padding: .58rem;
    color: #0f172a;
    background: transparent;
    text-align: left;
}

.market-chat-attachment-menu button:hover,
.market-chat-attachment-menu button:focus {
    background: #ecfdf5;
    outline: none;
}

.market-chat-attachment-menu i {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #128c7e;
}

.market-chat-attachment-menu strong,
.market-chat-attachment-menu small {
    display: block;
}

.market-chat-attachment-menu strong {
    font-size: .86rem;
}

.market-chat-attachment-menu small {
    color: #64748b;
    font-size: .72rem;
    margin-top: .06rem;
}

.market-chat-message-input {
    width: 100%;
    max-height: 104px;
    min-height: 52px;
    resize: none;
    border: 0;
    border-radius: 28px;
    padding: .9rem 3.65rem .76rem 5.6rem;
    color: #f0f2f5;
    background: transparent;
    outline: none;
    overflow-y: auto;
    line-height: 1.35;
}

.market-chat-message-input::placeholder {
    color: #aebac1;
    opacity: 1;
}

.market-chat-message-input:focus {
    border-color: transparent;
    box-shadow: none;
}

.market-chat-voice-button,
.market-chat-location-button,
.market-chat-emoji-button,
.market-chat-message-button {
    position: absolute;
    bottom: 7px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f0f2f5;
    background: transparent;
}

.market-chat-location-button {
    left: .35rem;
}

.market-chat-emoji-button {
    left: 2.62rem;
}

.market-chat-voice-button,
.market-chat-message-button {
    right: .4rem;
}

.market-chat-message-button {
    color: #111b21;
    background: #25d366;
    display: none;
}

.market-chat-message-form.is-typing .market-chat-message-button {
    display: inline-flex;
}

.market-chat-message-form.is-typing .market-chat-voice-button {
    display: none;
}

.market-chat-voice-button:hover,
.market-chat-voice-button:focus,
.market-chat-location-button:hover,
.market-chat-location-button:focus,
.market-chat-emoji-button:hover,
.market-chat-emoji-button:focus {
    background: rgba(255,255,255,.09);
    outline: none;
}

.market-chat-message-button:hover,
.market-chat-message-button:focus {
    color: #111b21;
    background: #25d366;
    outline: none;
}

.market-chat-voice-button.is-recording,
.market-chat-location-button.is-sharing {
    color: #fff;
    background: #00a884;
}

.market-chat-voice-button.is-recording {
    background: #dc2626;
}

.market-chat-vendor-dashboard-link {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: .72rem;
    padding: .95rem;
    color: #0f172a;
    text-decoration: none !important;
}

.market-chat-vendor-live {
    background: #f8fafc;
}

.market-chat-vendor-status {
    padding: .72rem .86rem;
    color: #475569;
    background: #ecfdf5;
    border-bottom: 1px solid #d1fae5;
    font-size: .8rem;
    font-weight: 800;
}

.market-chat-vendor-status.has-unread {
    color: #14532d;
    background: #dcfce7;
}

.market-chat-vendor-list {
    max-height: min(56vh, 420px);
    overflow-y: auto;
    padding: .7rem;
}

.market-chat-vendor-request {
    padding: .68rem;
    margin-bottom: .58rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.market-chat-vendor-request.has-unread {
    border-color: rgba(37, 211, 102, .55);
    box-shadow: 0 10px 24px rgba(22, 163, 74, .12);
}

.market-chat-vendor-request-head {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: .55rem;
}

.market-chat-vendor-request-head img {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    object-fit: cover;
}

.market-chat-vendor-request-head strong,
.market-chat-vendor-request-head small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-chat-vendor-request-head strong {
    color: #0f172a;
    font-size: .9rem;
}

.market-chat-vendor-request-head small {
    color: #64748b;
    font-size: .72rem;
    margin-top: .08rem;
}

.market-chat-vendor-request-head b {
    min-width: 24px;
    height: 24px;
    padding: 0 .34rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #16a34a;
    font-size: .72rem;
}

.market-chat-vendor-request p {
    margin: .55rem 0 .45rem;
    color: #334155;
    font-size: .82rem;
    line-height: 1.35;
}

.market-chat-vendor-location {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: .35rem;
    align-items: start;
    color: #075e54;
    font-size: .76rem;
    font-weight: 800;
}

.market-chat-vendor-location span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-chat-vendor-location.is-muted {
    color: #64748b;
    font-weight: 700;
}

.market-chat-vendor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .42rem;
    margin-top: .62rem;
}

.market-chat-vendor-actions a,
.market-chat-vendor-actions button,
.market-chat-vendor-all-link {
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    color: #075e54;
    background: #ecfdf5;
    text-decoration: none !important;
    font-size: .78rem;
    font-family: inherit;
    font-weight: 900;
    cursor: pointer;
}

.market-chat-vendor-actions a,
.market-chat-vendor-actions button {
    padding: 0 .62rem;
}

.market-chat-vendor-actions a:first-child,
.market-chat-vendor-actions button:first-child {
    color: #fff;
    background: #128c7e;
}

.market-chat-vendor-all-link {
    margin: 0 .7rem .75rem;
    padding: 0 .8rem;
    border: 1px solid #d1fae5;
}

.market-chat-vendor-dashboard-link span {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #075e54;
    background: #dcfce7;
}

.market-chat-vendor-dashboard-link strong,
.market-chat-vendor-dashboard-link small {
    display: block;
}

.market-chat-vendor-dashboard-link small {
    color: #64748b;
    margin-top: .12rem;
}

.market-chat-launcher .is-hidden {
    display: none !important;
}

@media (max-width: 576px) {
    .market-chat-launcher {
        right: .5rem;
        bottom: .5rem;
        width: min(390px, calc(100vw - 1rem));
    }

    .market-chat-launcher-panel {
        border-radius: 15px;
    }

    .market-chat-conversation {
        height: min(76vh, 590px);
        max-height: calc(100vh - 5.7rem);
    }

    .market-chat-message-bubble {
        max-width: 88%;
    }

    .market-chat-voice-note audio {
        width: 150px;
    }

    .market-chat-route-checks {
        grid-template-columns: 1fr;
    }

    .market-chat-route-map {
        height: 150px;
        min-height: 140px;
    }
}
