#aj-store-chat {
    --aj-olive: #34492c;
    --aj-paper: #f7f5ef;
    position: fixed;
    z-index: 1000;
    right: max(1rem, env(safe-area-inset-right));
    bottom: calc(5.25rem + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: .6rem;
    width: min(24rem, calc(100vw - 2rem));
    color: #243023;
    pointer-events: none;
    font: 400 .95rem/1.45 system-ui, sans-serif;
}

#aj-store-chat *, #aj-store-chat *::before, #aj-store-chat *::after { box-sizing: border-box; }
#aj-store-chat [hidden] { display: none !important; }
#aj-store-chat button { cursor: pointer; font: inherit; text-transform: none; letter-spacing: normal; }
#aj-store-chat button:disabled { opacity: .55; cursor: default; }
#aj-store-chat .aj-launcher, #aj-store-chat .aj-form button {
    padding: .6rem 1rem;
    min-height: 44px;
    color: white;
    background: var(--aj-olive);
    border: 1px solid white;
    border-radius: .8rem;
}
#aj-store-chat .aj-launcher { pointer-events: auto; border-radius: 2rem; box-shadow: 0 .15rem .8rem #1b261742; }
#aj-store-chat .aj-panel {
    order: -1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: calc(100dvh - 10rem);
    background: white;
    border: 1px solid #d7d9cf;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 .6rem 2rem #1b26173b;
    pointer-events: auto;
}
#aj-store-chat .aj-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .4rem .6rem .4rem .9rem;
    background: var(--aj-olive);
    color: white;
}
#aj-store-chat .aj-close {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    color: white;
    background: transparent;
    font-size: 1.5rem;
}
#aj-store-chat .aj-current { margin: 0; padding: .45rem .9rem; background: var(--aj-paper); font-size: .85rem; }
#aj-store-chat .aj-log { overflow: auto; overscroll-behavior: contain; min-height: 3rem; max-height: 16rem; padding: .7rem .8rem; }
#aj-store-chat .aj-message { margin: 0 0 .55rem; padding: .55rem .65rem; border-radius: .6rem; overflow-wrap: anywhere; }
#aj-store-chat .aj-reply { background: var(--aj-paper); }
#aj-store-chat .aj-question { margin-left: 1.3rem; background: #e5eddf; }
#aj-store-chat .aj-message a { color: #34492c; text-decoration: underline; display: block; margin-top: .3rem; }
#aj-store-chat .aj-suggestions { padding: 0 .8rem .4rem; display: flex; flex-wrap: wrap; gap: .35rem; }
#aj-store-chat .aj-suggestions button, #aj-store-chat .aj-choices button {
    padding: .35rem .6rem;
    border: 1px solid #78876e;
    border-radius: .55rem;
    color: #34492c;
    background: white;
    font-size: .82rem;
}
#aj-store-chat .aj-choices { display: grid; gap: .3rem; }
#aj-store-chat .aj-form { display: flex; align-items: center; gap: .35rem; margin: 0; padding: .25rem .75rem .65rem; }
#aj-store-chat .aj-form input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: .5rem;
    border: 1px solid #78876e;
    border-radius: .55rem;
    font: 1rem system-ui, sans-serif;
}
#aj-store-chat :focus-visible { outline: 2px solid #7a5c11; outline-offset: 2px; }
#aj-store-chat .aj-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
