.store-chat {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
    font-family: inherit;
}

.store-chat button {
    cursor: pointer;
}

.store-chat__launcher {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
    padding: 13px 18px;
    border: 0;
    border-radius: 999px;
    background: #2788c7;
    box-shadow: 0 8px 24px rgba(24, 88, 133, .28);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    transition: background .2s ease, transform .2s ease;
}

.store-chat__launcher:hover,
.store-chat__launcher:focus-visible {
    background: #176da6;
    color: #fff;
    transform: translateY(-2px);
}

.store-chat__launcher i {
    font-size: 20px;
}

.store-chat__panel {
    display: flex;
    flex-direction: column;
    width: min(360px, calc(100vw - 32px));
    height: min(470px, calc(100dvh - 110px));
    padding: 0;
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #dce8f1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 44px rgba(28, 55, 80, .23);
}

.store-chat__panel[hidden] {
    display: none;
}

.store-chat__header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
    padding: 17px 18px;
    background: #2788c7;
    color: #fff;
}

.store-chat__brand {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: rgba(255, 255, 255, .19);
    font-size: 19px;
}

.store-chat__heading {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    line-height: 1.4;
}

.store-chat__heading strong {
    font-size: 16px;
}

.store-chat__heading span {
    color: rgba(255, 255, 255, .85);
    font-size: 12px;
}

.store-chat__close {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 16px;
}

.store-chat__close:hover,
.store-chat__close:focus-visible {
    background: rgba(255, 255, 255, .2);
}

.store-chat__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 18px;
    background: #f7fbfe;
}

.store-chat__welcome {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.store-chat__welcome[hidden],
.store-chat__feed[hidden],
.store-chat__older[hidden],
.store-chat__notice[hidden],
.store-chat__attachment-preview[hidden] {
    display: none;
}

.store-chat__welcome-icon {
    display: grid;
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 20px;
    background: #e2f2fc;
    color: #2788c7;
    font-size: 29px;
}

.store-chat__body h2 {
    margin: 0 0 10px;
    color: #273c4c;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.store-chat__body p {
    max-width: 275px;
    margin: 0 0 18px;
    color: #627588;
    font-size: 13px;
    line-height: 1.6;
}

.store-chat__feed {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.store-chat__older {
    display: block;
    margin: 0 auto 15px;
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    background: #e3f1fa;
    color: #2779ad;
    font-size: 12px;
    font-weight: 600;
}

.store-chat__bubble {
    max-width: 86%;
    padding: 10px 12px 7px;
    border-radius: 12px 12px 12px 3px;
    background: #fff;
    box-shadow: 0 1px 5px rgba(28, 55, 80, .08);
    color: #273c4c;
    overflow-wrap: anywhere;
}

.store-chat__bubble--visitor {
    align-self: flex-end;
    border-radius: 12px 12px 3px 12px;
    background: #dff0fb;
}

.store-chat__bubble p {
    margin: 0;
    white-space: pre-wrap;
    font-size: 13px;
    line-height: 1.5;
}

.store-chat__bubble a {
    display: block;
    margin-top: 7px;
}

.store-chat__bubble img {
    display: block;
    max-width: 100%;
    max-height: 230px;
    border-radius: 8px;
    object-fit: contain;
}

.store-chat__bubble time {
    display: block;
    margin-top: 4px;
    color: #73889a;
    font-size: 10px;
    text-align: right;
}

.store-chat__notice {
    padding: 7px 15px;
    background: #fff4e8;
    color: #835020;
    font-size: 12px;
}

.store-chat__attachment-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px 0;
    background: #fff;
}

.store-chat__attachment-preview img {
    width: 42px;
    height: 42px;
    border-radius: 7px;
    object-fit: cover;
}

.store-chat__attachment-preview span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #627588;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-chat__attachment-preview button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 7px;
    background: #edf3f7;
    color: #526b7d;
}

.store-chat__composer {
    display: flex;
    flex-shrink: 0;
    gap: 9px;
    padding: 15px;
    border-top: 1px solid #e6edf2;
    background: #fff;
}

.store-chat__composer input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #e1e8ee;
    border-radius: 10px;
    background: #f6f8fa;
    color: #647588;
    font-size: 13px;
}

.store-chat__composer button {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: #2788c7;
    color: #fff;
}

.store-chat__composer .store-chat__attach {
    flex-basis: 42px;
    background: #e8f3fa;
    color: #287fbd;
}

.store-chat__composer button:disabled {
    cursor: not-allowed;
}

.store-chat__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .store-chat {
        right: 16px;
        bottom: 16px;
    }

    .store-chat__panel {
        height: min(470px, calc(100dvh - 90px));
    }

    .store-chat__launcher {
        padding: 12px 15px;
    }
}
