.catalog-chat {
    --assistant-accent: #a71949;
    --assistant-line: #e8dee6;
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 1040;
    color: #17273e;
}
.catalog-chat [hidden] { display: none !important; }
.catalog-chat button { cursor: pointer; font-family: inherit; }
.catalog-chat :focus-visible { outline: 2px solid var(--assistant-accent); outline-offset: 2px; }
.catalog-chat-launch {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-left: auto;
    color: #fff;
    background: linear-gradient(145deg, #d23261, #981237);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(87, 10, 33, .28);
}
.catalog-chat-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 26px;
    height: 22px;
    border: 2px solid currentColor;
    border-radius: 8px;
    font-size: 12px;
    letter-spacing: 1px;
}
.catalog-chat-icon::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 5px;
    width: 6px;
    height: 6px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    background: #b21c47;
    transform: skewY(-38deg);
}
.catalog-chat-panel {
    display: flex;
    flex-direction: column;
    width: min(380px, calc(100vw - 40px));
    max-height: min(490px, calc(100vh - 105px));
    max-height: min(490px, calc(100dvh - 105px - env(safe-area-inset-bottom, 0px)));
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--assistant-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(23, 39, 62, .22);
}
.catalog-chat-header, .catalog-chat-footer {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
}
.catalog-chat-header { background: linear-gradient(115deg, #861035, #bd1c50 68%, #d93965); color: #fff; }
.catalog-chat-header h2 { flex: 1; margin: 0; color: inherit; font-size: 15px; font-weight: 700; line-height: 1.3; }
.catalog-chat-mark {
    flex: 0 0 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 11px;
}
.catalog-chat-close {
    min-width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 9px;
    background: rgba(40, 0, 17, .22);
    color: inherit;
    font-size: 23px;
}
.catalog-chat-close:hover { background: rgba(40, 0, 17, .38); }
.catalog-chat-close:focus-visible { outline-color: #fff; }
.catalog-chat-steps {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 10px 14px;
    border-bottom: 1px solid var(--assistant-line);
    list-style: none;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
}
.catalog-chat-steps li { color: #535f73; padding: 4px 2px; border-bottom: 2px solid #e6e8ef; border-radius: 6px; }
.catalog-chat-steps li[aria-current="step"] { color: #93153f; background: #fcebf1; border-color: var(--assistant-accent); }
.catalog-chat-body {
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c1a9b7 transparent;
    background: #f8f8fc;
    padding: 14px;
}
.catalog-chat-body p { margin: 0 0 10px; color: inherit; }
.catalog-chat-body .catalog-chat-path { color: #56647a; font-size: 12px; overflow-wrap: anywhere; }
.catalog-chat-prompt { font-size: 17px; font-weight: 700; }
.catalog-chat-options { display: grid; gap: 7px; }
.catalog-chat-options-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.catalog-chat-options > *, .catalog-chat-footer button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 46px;
    padding: 8px 10px;
    color: #24324a;
    background: #fff;
    border: 1px solid #e0e3ed;
    border-radius: 10px;
    text-align: left;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.35;
}
.catalog-chat-options > :hover, .catalog-chat-footer button:hover { background: #fff0f5; color: #831330; border-color: #db9bb2; }
.catalog-chat-options-grid > *::after {
    content: "";
    flex: 0 0 6px;
    height: 6px;
    margin-right: 2px;
    border: solid var(--assistant-accent);
    border-width: 1.5px 1.5px 0 0;
    transform: rotate(45deg);
}
.catalog-chat-options > .catalog-chat-view-all {
    grid-column: 1 / -1;
    background: #fcebf1;
    color: #831330;
    font-weight: 600;
}
.catalog-chat-footer { border-top: 1px solid var(--assistant-line); }
.catalog-chat-footer button { font-weight: 600; }
@media (max-width: 575px) {
    .catalog-chat { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
    .catalog-chat-panel { width: min(380px, calc(100vw - 24px)); }
}
