#luna-store-chat {
    --lsc-ink: #17202a;
    --lsc-accent: #174944;
    position: fixed;
    z-index: 1100;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    display: grid;
    justify-items: end;
    gap: 10px;
    color: var(--lsc-ink);
    font: 15px/1.45 system-ui, sans-serif;
}
#luna-store-chat *, #luna-store-chat *::before, #luna-store-chat *::after {
    box-sizing: border-box;
}
#luna-store-chat button {
    font: inherit;
    cursor: pointer;
}
#luna-store-chat :focus-visible {
    outline: 2px solid #168179;
    outline-offset: 2px;
}
#luna-store-chat .lsc-launcher,
#luna-store-chat .lsc-send {
    border: 0;
    background: var(--lsc-accent);
    color: #fff;
    font-weight: 650;
    min-height: 44px;
    padding: 8px 13px;
}
#luna-store-chat .lsc-launcher {
    border-radius: 999px;
    box-shadow: 0 5px 18px #17202a30;
}
#luna-store-chat .lsc-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(365px, calc(100vw - 40px));
    height: min(480px, calc(100vh - 85px));
    height: min(480px, calc(100dvh - 85px));
    max-width: 100%;
    border: 1px solid #dce3e2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 36px #17202a26;
}
#luna-store-chat .lsc-panel[hidden] {
    display: none;
}
#luna-store-chat .lsc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e9e8;
    padding: 3px 12px 3px 16px;
}
#luna-store-chat .lsc-close {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--lsc-ink);
    font-size: 26px;
}
#luna-store-chat .lsc-log {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 13px;
}
#luna-store-chat .lsc-bubble {
    width: fit-content;
    max-width: 95%;
    margin: 0 0 9px;
    padding: 8px 11px;
    border-radius: 11px;
    background: #edf4f3;
    color: var(--lsc-ink);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
#luna-store-chat .lsc-user {
    margin-left: auto;
    background: var(--lsc-accent);
    color: #fff;
}
#luna-store-chat .lsc-footer {
    border-top: 1px solid #e2e9e8;
    padding: 11px 12px 12px;
}
#luna-store-chat .lsc-form {
    display: flex;
    gap: 7px;
    margin: 0;
}
#luna-store-chat .lsc-field {
    flex: 1;
    min-width: 0;
    border: 1px solid #a1aaa9;
    border-radius: 8px;
    padding: 7px;
    background: #fff;
    color: var(--lsc-ink);
    font: 16px system-ui, sans-serif;
}
#luna-store-chat .lsc-send {
    border-radius: 8px;
}
#luna-store-chat .lsc-send:disabled {
    opacity: .6;
    cursor: wait;
}
#luna-store-chat .lsc-privacy {
    margin: 7px 0 2px;
    color: #47545a;
    font-size: 12px;
}
#luna-store-chat .lsc-contact {
    color: var(--lsc-accent);
    font-weight: 600;
    text-decoration: underline;
}
