:root {
    --ai-store-helper--text: black;
    --ai-store-helper--subdued-text: #444444;
    --ai-store-helper--user-text: #fafafa;
    --ai-store-helper--background: #fafafa;
    --ai-store-helper--background-transparent: rgba(250, 250, 250, 0);
    --ai-store-helper--scroll-thumb: #bbb;
    --ai-store-helper--content-background: #ececec;
    --ai-store-helper--input-background: white;
    --ai-store-helper--button-background: #fafafa;
    --ai-store-helper--button-background-hover: #ececec;
    --ai-store-helper--send-button-background: rgba(255, 255, 255, 0.75);
    --ai-store-helper--subdued: #606060;
    --ai-store-helper--dot: #8d8c91;
    --ai-store-helper--online: #3AC351;
    --ai-store-helper--plus: #1aab87;
    --ai-store-helper--error-text: black;
    --ai-store-helper--error-background: #ffd082;
    --ai-store-helper--scroll-background: var(--ai-store-helper--content-background);

    --ai-store-helper--dark--text: #ececec;
    --ai-store-helper--dark--subdued-text: #bbbbbb;
    --ai-store-helper--dark--user-text: #ececec;
    --ai-store-helper--dark--background: #202020;
    --ai-store-helper--dark--background-transparent: rgba(32, 32, 32, 0);
    --ai-store-helper--dark--scroll-thumb: #606060;
    --ai-store-helper--dark--content-background: #404040;
    --ai-store-helper--dark--input-background: #606060;
    --ai-store-helper--dark--button-background: #202020;
    --ai-store-helper--dark--button-background-hover: #303030;
    --ai-store-helper--dark--send-button-background: rgba(96, 96, 96, 0.75);
    --ai-store-helper--dark--subdued: #a0a0a0;
    --ai-store-helper--dark--dot: #8d8c91;
    --ai-store-helper--dark--error-text: #ececec;
    --ai-store-helper--dark--error-background: #902d1d;

    --ai-store-helper--x: 24px;
    --ai-store-helper--y: 24px;

    --ai-store-helper--animation-time: 0.25s;
    --ai-store-helper--animation-curve: cubic-bezier(0.23, 1.03, 0.78, 0.84);
}

.ai-store-helper__app-block {
    all: initial;
}

#ai-store-helper__chatbot-button {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 11;
    border: none;
    outline: none;
    cursor: pointer;
    box-shadow: 0 9px 11px 0 rgba(0, 0, 0, 0.1);
    padding: 8px;
}

#ai-store-helper__chatbot-chatbox {
    position: fixed;
    border-radius: 12px;
    box-shadow: 0 9px 11px 0 rgba(0, 0, 0, 0.1);
    max-width: 350px;
    width: 96vw;
    width: 96svw;
    display: flex;
    flex-direction: column;
    height: 75vh;
    /* If you're changing this, you should also change the value in #chatbot-chatbox-closed */
    max-height: 600px;
    background-color: var(--ai-store-helper--background);
    color: var(--ai-store-helper--text);
    z-index: 11;
    transition:
        bottom var(--ai-store-helper--animation-time) var(--ai-store-helper--animation-curve),
        top var(--ai-store-helper--animation-time) var(--ai-store-helper--animation-curve),
        left var(--ai-store-helper--animation-time) var(--ai-store-helper--animation-curve),
        right var(--ai-store-helper--animation-time) var(--ai-store-helper--animation-curve),
        visibility var(--ai-store-helper--animation-time) var(--ai-store-helper--animation-curve);
    visibility: visible;
    font-size: 16px;
}

.ai-store-helper__top-left {
    top: var(--ai-store-helper--y);
    left: var(--ai-store-helper--x);
}

.ai-store-helper__top-right {
    top: var(--ai-store-helper--y);
    right: var(--ai-store-helper--x);
}

.ai-store-helper__bottom-left {
    bottom: var(--ai-store-helper--y);
    left: var(--ai-store-helper--x);
}

.ai-store-helper__bottom-right {
    bottom: var(--ai-store-helper--y);
    right: var(--ai-store-helper--x);
}

.ai-store-helper__top-left #ai-store-helper__chatbot-chatbox-header-close-button,
.ai-store-helper__top-right #ai-store-helper__chatbot-chatbox-header-close-button {
    transform: rotate(180deg);
}

#ai-store-helper__chatbot-chatbox ::selection {
    color: var(--ai-store-helper--user-text);
    background-color: var(--ai-store-helper--primary-color);
}

#ai-store-helper__chatbot-chatbox,
#ai-store-helper__chatbot-chatbox p,
#ai-store-helper__chatbot-chatbox button,
#ai-store-helper__chatbot-chatbox input,
#ai-store-helper__chatbot-chatbox textarea {
    font-family: var(--ai-store-helper--body-font-family);
    font-style: var(--ai-store-helper--body-font-style);
    font-weight: var(--ai-store-helper--body-font-weight);
}

#ai-store-helper__chatbot-chatbox p,
#ai-store-helper__chatbot-chatbox button,
#ai-store-helper__chatbot-chatbox input,
#ai-store-helper__chatbot-chatbox textarea {
    color: inherit;
}

#ai-store-helper__chatbot-chatbox h1,
#ai-store-helper__chatbot-chatbox h2,
#ai-store-helper__chatbot-chatbox h3,
#ai-store-helper__chatbot-chatbox h5,
#ai-store-helper__chatbot-chatbox h6 {
    font-family: var(--ai-store-helper--headline-font-family);
    font-style: var(--ai-store-helper--headline-font-style);
    font-weight: var(--ai-store-helper--headline-font-weight);
    color: inherit;
}

#ai-store-helper__chatbot-chatbox button,
#ai-store-helper__chatbot-chatbox input,
#ai-store-helper__chatbot-chatbox label,
#ai-store-helper__chatbot-chatbox a,
.ai-store-helper__chatbot-chatbox-message-product {
    outline-offset: 2px;
    outline-width: 2px;
    outline-color: var(--ai-store-helper--text);
    outline-style: none;
}

#ai-store-helper__chatbot-chatbox label,
#ai-store-helper__chatbot-chatbox legend {
    color: inherit;
}

#ai-store-helper__chatbot-chatbox button:focus-visible,
#ai-store-helper__chatbot-chatbox input:focus-visible,
#ai-store-helper__chatbot-chatbox label:focus-visible,
#ai-store-helper__chatbot-chatbox a:focus-visible,
.ai-store-helper__chatbot-chatbox-message-product:has(.ai-store-helper__chatbot-chatbox-message-product-overlay-link:focus-visible) {
    outline-style: solid;
}

#ai-store-helper__chatbot-chatbox a:focus-visible {
    box-shadow: none;
}

.ai-store-helper__scrollarea {
    scrollbar-color: transparent transparent;
    scrollbar-width: auto;
}

.ai-store-helper__scrollarea:hover,
.ai-store-helper__scrollarea:focus {
    scrollbar-color: var(--ai-store-helper--scroll-thumb) var(--ai-store-helper--scroll-background);
}

.ai-store-helper__scrollarea::-webkit-scrollbar {
    visibility: hidden;
    width: 6px;
    height: 6px;
    background-color: var(--ai-store-helper--scroll-background);
}

.ai-store-helper__scrollarea:hover::-webkit-scrollbar,
.ai-store-helper__scrollarea:focus::-webkit-scrollbar {
    visibility: visible;
}

.ai-store-helper__scrollarea::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 3px;
}

.ai-store-helper__scrollarea:hover::-webkit-scrollbar-thumb,
.ai-store-helper__scrollarea:focus::-webkit-scrollbar-thumb {
    background-color: var(--ai-store-helper--scroll-thumb);
}

@media (max-width: 380px) {
    #ai-store-helper__chatbot-chatbox {
        max-width: none;
        width: auto;
        border-radius: 0;
    }

    #ai-store-helper__chatbot-chatbox-header {
        border-radius: 0;
    }

    :root {
        --ai-store-helper--x: 0;
        --ai-store-helper--y: 0;
    }

    #ai-store-helper__chatbot-chatbox.ai-store-helper__top-left,
    #ai-store-helper__chatbot-chatbox.ai-store-helper__top-right {
        top: 0;
        left: 0;
        right: 0;
    }

    #ai-store-helper__chatbot-chatbox.ai-store-helper__bottom-left,
    #ai-store-helper__chatbot-chatbox.ai-store-helper__bottom-right {
        bottom: 0;
        left: 0;
        right: 0;
    }
}

@media (max-width: 380px) and (max-height: 600px) {
    #ai-store-helper__chatbot-chatbox {
        height: 100vh;
        max-height: 100vh;
    }
}

.ai-store-helper__chatbot-chatbox-closed {
    visibility: hidden !important;
}

.ai-store-helper__chatbot-chatbox-closed.ai-store-helper__bottom-left,
.ai-store-helper__chatbot-chatbox-closed.ai-store-helper__bottom-right {
    /* This value should be slightly above the max-height of #chatbot-chatbox */
    bottom: -700px !important;
}

.ai-store-helper__chatbot-chatbox-closed.ai-store-helper__top-left,
.ai-store-helper__chatbot-chatbox-closed.ai-store-helper__top-right {
    /* This value should be slightly above the max-height of #chatbot-chatbox */
    top: -700px !important;
}

#ai-store-helper__chatbot-chatbox-header {
    width: 100%;
    color: var(--ai-store-helper--text);
    background-color: var(--ai-store-helper--background);
    display: flex;
    flex-direction: row;
    padding: 12px 16px;
    margin: 0;
    font-size: 1em;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    box-sizing: border-box;
}

#ai-store-helper__chatbot-chatbox-header h2 {
    font-size: inherit;
    margin: 0;
    padding: 0;
}

.ai-store-helper__chatbot-chatbox-header-title-wrapper {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
    max-height: 4em;
}

.ai-store-helper__chatbot-chatbox-online-icon {
    display: flex !important;
    width: 12px;
    height: 12px;
    background-color: var(--ai-store-helper--online);
    border-radius: 50%;
    margin-left: 8px;
    flex-shrink: 0;
    flex-grow: 0;
}

.ai-store-helper__chatbot-chatbox-header-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.ai-store-helper__chatbot-chatbox-header-button {
    padding: 6px;
    background: none;
    outline: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.1s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-store-helper__chatbot-chatbox-header-button:hover {
    background-color: var(--ai-store-helper--button-background-hover);
}

.ai-store-helper__chatbot-chatbox-header-button:disabled:hover {
    background-color: unset;
}

#ai-store-helper__chatbot-chatbox button:disabled {
    cursor: not-allowed;
    user-select: none;
}

.ai-store-helper__chatbot-chatbox-send {
    position: absolute;
    bottom: 2px;
    right: 6px;
    background-color: var(--ai-store-helper--send-button-background);
}

.ai-store-helper__chatbot-chatbox-send .ai-store-helper__icon {
    height: 2em;
}

#ai-store-helper__chatbot-chatbox-content {
    overflow-y: scroll;
    overscroll-behavior-y: contain;
    background-color: var(--ai-store-helper--content-background);
    min-height: 1px;
    padding: 8px;
    box-sizing: border-box;
    height: 100%;
    position: relative;
}

#ai-store-helper__chatbot-chatbox-content-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#ai-store-helper__chatbot-chatbox-text-input {
    display: block;
    width: 100%;
    padding: 8px 20px;
    margin: 0;
    font-size: 16px;
    line-height: 20px;
    border: none;
    outline: none;
    box-shadow: none !important;
    color: var(--ai-store-helper--text);
    background-color: var(--ai-store-helper--input-background);
    border-top: 1px solid var(--ai-store-helper--content-background);
    resize: none;
    height: auto;
    min-height: 36px;
    max-height: 350px;
    box-sizing: border-box;
}

#ai-store-helper__chatbot-chatbox-text-input {
    --ai-store-helper--scroll-thumb: var(--ai-store-helper--content-background);
    --ai-store-helper--scroll-background: var(--ai-store-helper--input-background);
}

#ai-store-helper__chatbot-chatbox-text-input::placeholder {
    color: var(--ai-store-helper--text);
    opacity: 0.5;
}

#ai-store-helper__chatbot-chatbox-text-input-form {
    width: 100%;
    position: relative;
    background-color: var(--ai-store-helper--input-background);
}

footer.ai-store-helper__chatbot-chatbox-footer {
    text-align: center;
    font-size: 9px;
    margin: 0;
    padding: 8px 0;
    background-color: transparent !important;
}

#ai-store-helper__chatbot-chatbox h1 a,
#ai-store-helper__chatbot-chatbox h2 a,
#ai-store-helper__chatbot-chatbox h3 a,
#ai-store-helper__chatbot-chatbox h4 a,
#ai-store-helper__chatbot-chatbox h5 a,
#ai-store-helper__chatbot-chatbox h6 a,
#ai-store-helper__chatbot-chatbox footer.ai-store-helper__chatbot-chatbox-footer a {
    color: inherit;
    text-decoration: none;
}

#ai-store-helper__chatbot-chatbox footer.ai-store-helper__chatbot-chatbox-footer a:hover,
#ai-store-helper__chatbot-chatbox footer.ai-store-helper__chatbot-chatbox-footer a:active {
    text-decoration: underline;
}

.ai-store-helper__chatbot-hidden {
    display: none !important;
}

.ai-store-helper__chatbot-chatbox-message-root {
    position: relative;
}

.ai-store-helper__chatbot-chatbox-message-root-assistant +
.ai-store-helper__chatbot-chatbox-message-root-assistant,

.ai-store-helper__chatbot-chatbox-message-root-assistant +
.ai-store-helper__chatbot-chatbox-message-root-error,

.ai-store-helper__chatbot-chatbox-message-root-error +
.ai-store-helper__chatbot-chatbox-message-root-error,

.ai-store-helper__chatbot-chatbox-message-root-error +
.ai-store-helper__chatbot-chatbox-message-root-assistant,

.ai-store-helper__chatbot-chatbox-message-root-user +
.ai-store-helper__chatbot-chatbox-message-root-user,

.ai-store-helper__chatbot-chatbox-message-root-error +
.ai-store-helper__chatbot-typing,

.ai-store-helper__chatbot-chatbox-message-root-assistant +
.ai-store-helper__chatbot-typing {
    /* keep timestamps from colliding with message */
    margin-top: 24px;
}

.ai-store-helper__chatbot-chatbox-message {
    display: flex;
    flex-direction: row;
    margin: 8px 0;
}

.ai-store-helper__chatbot-chatbox-message-content {
    max-width: 75%;
    padding: 12px;
    flex-grow: 0;
}

.ai-store-helper__chatbot-chatbox-message-padding {
    flex-shrink: 0;
    flex-grow: 1;
    min-width: 25%;
}

#ai-store-helper__chatbot-chatbox a {
    color: var(--ai-store-helper--link);
    text-decoration: underline;
}

.ai-store-helper__chatbot-chatbox-message-content,
.ai-store-helper__chatbot-chatbox-message-product {
    font-size: 14px;
    line-height: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    word-break: break-word;
}

.ai-store-helper__chatbot-chatbox-message-products {
    overflow: auto;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    list-style: none;
    padding: 8px;
    margin: 0 -8px 8px -8px;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

#ai-store-helper__chatbot-chatbox-hover-wrapper {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 0;
    overflow: visible;
}

.ai-store-helper__chatbot-chatbox-message-product {
    margin: 0;
    padding: 0;
    flex: none;
    width: 150px;
    min-height: 412px;
    height: 412px;
    overflow: hidden;
    display: inline-block;
    vertical-align: top;
    background-color: var(--ai-store-helper--background);
    position: relative;
}

.ai-store-helper__chatbot-chatbox-message-product-loading {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.ai-store-helper__chatbot-chatbox-message-product-overlay-link {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.ai-store-helper__chatbot-chatbox-message-product-overlay-link:empty {
    display: block;
}

.ai-store-helper__chatbot-chatbox-message-product:last-child {
    margin-right: 0;
}

.ai-store-helper__chatbot-chatbox-message-product-title,
h3.ai-store-helper__chatbot-chatbox-message-product-title {
    margin: 8px 0;
    font-size: 1.1em;
    color: var(--ai-store-helper--text);
}

.ai-store-helper__chatbot-chatbox-message-product-title a {
    color: inherit;
    font-weight: inherit;
    text-decoration: inherit;
}

.ai-store-helper__chatbot-chatbox-message-product-image {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: none;
}

.ai-store-helper__chatbot-chatbox-message-product-image-placeholder {
    background-color: var(--ai-store-helper--content-background);
}

.ai-store-helper__chatbot-chatbox-message-product-image-placeholder:empty {
    display: block;
}

.ai-store-helper__chatbot-chatbox-message-product-content {
    padding: 0 12px 12px 12px;
    min-height: 200px;
    height: 200px;
    position: relative;
    overflow: hidden;
    background-color: var(--ai-store-helper--background);
}

.ai-store-helper__chatbot-chatbox-hover-product .ai-store-helper__chatbot-chatbox-message-product-content {
    height: auto;
}

.ai-store-helper__chatbot-chatbox-message-product-truncated .ai-store-helper__chatbot-chatbox-message-product-content::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 170px;
    height: 30px;
    pointer-events: none;
    background: linear-gradient(
        var(--ai-store-helper--background-transparent),
        var(--ai-store-helper--background));
}

.ai-store-helper__chatbot-chatbox-message-product.ai-store-helper__chatbot-chatbox-hover-product {
    position: absolute;
    height: auto;
    box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
    padding-top: 200px;
    background: transparent;
}

#ai-store-helper__chatbot-chatbox button.ai-store-helper__chatbot-overlay-button {
    cursor: pointer;
    appearance: none;
    border: none;
    line-height: 1;
}

#ai-store-helper__chatbot-chatbox a.ai-store-helper__chatbot-overlay-button,
#ai-store-helper__chatbot-chatbox button.ai-store-helper__chatbot-overlay-button {
    position: absolute;
    top: 160px;
    transition: opacity 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67),
                box-shadow 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    font-size: 24px;
}

#ai-store-helper__chatbot-chatbox .ai-store-helper__chatbot-overlay-button.ai-store-helper__chatbot-add-to-cart-button {
    right: 6px;
    opacity: 0.6;
}

#ai-store-helper__chatbot-chatbox button.ai-store-helper__chatbot-show-similar-button {
    left: 6px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 18px;
    box-sizing: content-box;
}

#ai-store-helper__chatbot-chatbox .ai-store-helper__chatbot-show-similar-button {
    opacity: 0;
}

#ai-store-helper__chatbot-chatbox .ai-store-helper__chatbot-chatbox-message-product:hover .ai-store-helper__chatbot-show-similar-button,
#ai-store-helper__chatbot-chatbox .ai-store-helper__chatbot-chatbox-message-product:active .ai-store-helper__chatbot-show-similar-button,
#ai-store-helper__chatbot-chatbox .ai-store-helper__chatbot-chatbox-message-product:focus-visible .ai-store-helper__chatbot-show-similar-button {
    opacity: 0.6;
}

#ai-store-helper__chatbot-chatbox .ai-store-helper__chatbot-product-variant-selector-buttons button.ai-store-helper__chatbot-add-to-cart-button {
    cursor: pointer;
    border: none;
    padding: 4px 8px;
    font-size: 1.1em;
    border-radius: 1em;
}

.ai-store-helper__chatbot-add-to-cart-button-inner {
    position: relative;
    display: inline-block;
    padding: 0 0.1em;
}

#ai-store-helper__chatbot-chatbox a.ai-store-helper__chatbot-overlay-button,
#ai-store-helper__chatbot-chatbox button.ai-store-helper__chatbot-overlay-button {
    border-radius: 17px;
    padding: 4px;
    outline-color: var(--ai-store-helper--button-background);
}

#ai-store-helper__chatbot-chatbox .ai-store-helper__chatbot-product-variant-selector-buttons button.ai-store-helper__chatbot-add-to-cart-button,
#ai-store-helper__chatbot-chatbox a.ai-store-helper__chatbot-overlay-button,
#ai-store-helper__chatbot-chatbox button.ai-store-helper__chatbot-overlay-button {
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.25);
    display: inline-block;
    background-color: var(--ai-store-helper--button-background);
    color: var(--ai-store-helper--text);
    text-decoration: none;
}

#ai-store-helper__chatbot-chatbox a.ai-store-helper__chatbot-overlay-button:hover,
#ai-store-helper__chatbot-chatbox a.ai-store-helper__chatbot-overlay-button:active,
#ai-store-helper__chatbot-chatbox a.ai-store-helper__chatbot-overlay-button:focus-visible,
#ai-store-helper__chatbot-chatbox button.ai-store-helper__chatbot-overlay-button:hover,
#ai-store-helper__chatbot-chatbox button.ai-store-helper__chatbot-overlay-button:active,
#ai-store-helper__chatbot-chatbox button.ai-store-helper__chatbot-overlay-button:focus-visible,

#ai-store-helper__chatbot-chatbox .ai-store-helper__chatbot-chatbox-message-product:hover a.ai-store-helper__chatbot-overlay-button:hover,
#ai-store-helper__chatbot-chatbox .ai-store-helper__chatbot-chatbox-message-product:hover a.ai-store-helper__chatbot-overlay-button:active,
#ai-store-helper__chatbot-chatbox .ai-store-helper__chatbot-chatbox-message-product:hover a.ai-store-helper__chatbot-overlay-button:focus-visible,
#ai-store-helper__chatbot-chatbox .ai-store-helper__chatbot-chatbox-message-product:hover button.ai-store-helper__chatbot-overlay-button:hover,
#ai-store-helper__chatbot-chatbox .ai-store-helper__chatbot-chatbox-message-product:hover button.ai-store-helper__chatbot-overlay-button:active,
#ai-store-helper__chatbot-chatbox .ai-store-helper__chatbot-chatbox-message-product:hover button.ai-store-helper__chatbot-overlay-button:focus-visible  {
    opacity: 1;
}

#ai-store-helper__chatbot-chatbox .ai-store-helper__chatbot-product-variant-selector-buttons button.ai-store-helper__chatbot-add-to-cart-button,
#ai-store-helper__chatbot-chatbox a.ai-store-helper__chatbot-overlay-button:hover,
#ai-store-helper__chatbot-chatbox a.ai-store-helper__chatbot-overlay-button:active,
#ai-store-helper__chatbot-chatbox a.ai-store-helper__chatbot-overlay-button:focus-visible,
#ai-store-helper__chatbot-chatbox button.ai-store-helper__chatbot-overlay-button:hover,
#ai-store-helper__chatbot-chatbox button.ai-store-helper__chatbot-overlay-button:active,
#ai-store-helper__chatbot-chatbox button.ai-store-helper__chatbot-overlay-button:focus-visible {
    background-color: var(--ai-store-helper--button-background);
}

#ai-store-helper__chatbot-chatbox button.ai-store-helper__chatbot-add-to-cart-button:active,
#ai-store-helper__chatbot-chatbox button.ai-store-helper__chatbot-overlay-button:active,
#ai-store-helper__chatbot-chatbox a.ai-store-helper__chatbot-overlay-button:active {
    box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.1) inset;
}

.ai-store-helper__chatbot-product-variant-selector button.ai-store-helper__chatbot-product-message-close-button {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
}

label.ai-store-helper__chatbot-product-option {
    border-radius: 2em;
    padding: 0.5em 1em;
    background: transparent;
    border: 1px solid currentColor;
    cursor: pointer;
    display: inline-block;
    margin: 0 0.15em 0.25em 0;
    position: relative;
}

#ai-store-helper__chatbot-chatbox label.ai-store-helper__chatbot-product-option input[type=radio],
#ai-store-helper__chatbot-chatbox label.ai-store-helper__chatbot-product-option input[type=radio]:focus-visible {
    position: absolute;
    /* opacity: 0; */
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    appearance: none;
    outline-color: transparent;
    outline: none;
    border: none;
    background: transparent;
    color: transparent;
    box-shadow: none;
    display: initial;
}

#ai-store-helper__chatbot-chatbox label.ai-store-helper__chatbot-product-option:has(:focus-visible) {
    outline-style: solid;
}

#ai-store-helper__chatbot-chatbox label.ai-store-helper__chatbot-product-option:has(:checked) {
    color: var(--ai-store-helper--background);
    background: var(--ai-store-helper--text);
    border-color: var(--ai-store-helper--text);
}

#ai-store-helper__chatbot-chatbox label.ai-store-helper__not-available {
    text-decoration: line-through;
    opacity: 0.8;
}

.ai-store-helper__chatbot-product-variant-selector fieldset {
    padding: 0;
    line-height: 1;
    margin: 0 0 0.5em 0;
    border: none;
    display: block;
}

#ai-store-helper__chatbot-chatbox .ai-store-helper__chatbot-product-variant-selector fieldset legend {
    font-size: 0.85em;
    /* text-transform: capitalize; */
    margin: 0 0 0.5em 0;
    color: var(--ai-store-helper--subdued-text);
}

.ai-store-helper__chatbot-chatbox-message.ai-store-helper__chatbot-chatbox-message-error {
    display: flex;
    flex-direction: row;
    gap: 0.25em;
}

.ai-store-helper__chatbot-chatbox-message.ai-store-helper__chatbot-chatbox-message-error .ai-store-helper__chatbot-chatbox-message-content {
    background-color: var(--ai-store-helper--error-background);
    color: var(--ai-store-helper--error-text);
}

.ai-store-helper__chatbot-chatbox-message-error .ai-store-helper__icon-alert {
    flex-shrink: 0;
    flex-grow: 0;
}

.ai-store-helper__chatbot-add-to-cart-button .ai-store-helper__icon-cart {
    height: 1em;
    vertical-align: middle;
}

.ai-store-helper__chatbot-show-similar-button .ai-store-helper__icon-search {
    height: 1em;
    vertical-align: middle;
}

.ai-store-helper__chatbot-add-to-cart-button .ai-store-helper__icon-add {
    position: absolute;
    bottom: 0;
    right: 0;
    color: var(--ai-store-helper--plus);
    font-weight: bold;
    font-size: 0.8em;
    text-shadow: -1px -1px 0 var(--ai-store-helper--button-background),
                  1px -1px 0 var(--ai-store-helper--button-background),
                 -1px  1px 0 var(--ai-store-helper--button-background),
                  1px  1px 0 var(--ai-store-helper--button-background);
    line-height: 1;
    height: 1em;
}

#ai-store-helper__chatbot-chatbox .ai-store-helper__chatbot-add-to-cart-button::selection,
#ai-store-helper__chatbot-chatbox .ai-store-helper__chatbot-add-to-cart-button ::selection,
#ai-store-helper__chatbot-chatbox .ai-store-helper__chatbot-overlay-button::selection,
#ai-store-helper__chatbot-chatbox .ai-store-helper__chatbot-overlay-button ::selection {
    color: var(--ai-store-helper--plus);
    background-color: transparent;
}

.ai-store-helper__chatbot-chatbox-message-product-price {
    font-size: 1em;
}

.ai-store-helper__chatbot-chatbox-message-product-description {
    overflow: hidden;
}

.ai-store-helper__chatbot-chatbox-message-product-options,
.ai-store-helper__chatbot-chatbox-message-product-description {
    margin-top: 8px;
    font-size: 0.9em;
    color: var(--ai-store-helper--subdued);
}

.ai-store-helper__chatbot-chatbox-message .ai-store-helper__icon {
    height: 1.5em;
    vertical-align: bottom;
}

.ai-store-helper__chatbot-chatbox-message p,
.ai-store-helper__chatbot-chatbox-message ol,
.ai-store-helper__chatbot-chatbox-message ul,
.ai-store-helper__chatbot-chatbox-message li {
    margin: 0 0 1em 0;
}

.ai-store-helper__chatbot-chatbox-message p:last-child,
.ai-store-helper__chatbot-chatbox-message ol:last-child,
.ai-store-helper__chatbot-chatbox-message ul:last-child,
.ai-store-helper__chatbot-chatbox-message li:last-child {
    margin-bottom: 0;
}

.ai-store-helper__chatbot-chatbox-message ul {
    list-style: disc;
}

.ai-store-helper__chatbot-chatbox-message ol {
    list-style: decimal;
}

.ai-store-helper__chatbot-chatbox-message-user .ai-store-helper__chatbot-chatbox-message-content {
    color: var(--ai-store-helper--user-text);
    background-color: var(--ai-store-helper--primary-color);
    white-space: pre-wrap;
    white-space: break-spaces;
}

#ai-store-helper__chatbot-chatbox svg {
    width: auto;
}

#ai-store-helper__chatbot-chatbox .ai-store-helper__chatbot-chatbox-message-user::selection,
#ai-store-helper__chatbot-chatbox .ai-store-helper__chatbot-chatbox-message-user ::selection {
    background-color: var(--ai-store-helper--background);
    color: var(--ai-store-helper--text);
}

#ai-store-helper__chatbot-chatbox img::selection,
#ai-store-helper__chatbot-chatbox svg::selection,
#ai-store-helper__chatbot-chatbox svg ::selection,
#ai-store-helper__chatbot-chatbox button::selection,
#ai-store-helper__chatbot-chatbox button ::selection {
    background-color: transparent;
}

.ai-store-helper__chatbot-chatbox-message-assistant .ai-store-helper__chatbot-chatbox-message-content {
    background-color: var(--ai-store-helper--background);
    color: var(--ai-store-helper--text);
}

.ai-store-helper__chatbot-typing,
.ai-store-helper__chatbot-loading {
    width: 68px;
    padding: 10px;
    display: flex;
    flex-direction: row;
}

.ai-store-helper__chatbot-typing {
    background-color: var(--ai-store-helper--background);
    border-radius: 16px;
    box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.1);
}

.ai-store-helper__chatbot-button-activity {
    display: flex;
    flex-direction: row;
}

.ai-store-helper__chatbot-activity-dot {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background-color: var(--ai-store-helper--dot);
    border-radius: 50%;
    opacity: 0;
    animation: loadingFade 1s infinite;
    display: flex !important;
}

.ai-store-helper__chatbot-activity-dot:nth-child(1) {
    animation-delay: 0s;
}

.ai-store-helper__chatbot-activity-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-store-helper__chatbot-activity-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingFade {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
    }
}

.ai-store-helper__chatbot-chatbox-suggestion-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}

.ai-store-helper__chatbot-chatbox-suggestion-button {
    background-color: var(--ai-store-helper--button-background);
    color: var(--ai-store-helper--text);
    border-width: 2px;
    border-style: solid;
    border-radius: 16px;
    padding: 4px 16px;
    margin: 6px 0;
    line-height: 20px;
    box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.1);
    transition: background-color 0.1s ease-out;
    cursor: pointer;
    border-color: var(--ai-store-helper--primary-color);
}

.ai-store-helper__chatbot-chatbox-suggestion-button:hover {
    background-color: var(--ai-store-helper--button-background-hover);
}

.ai-store-helper__chatbot-chatbox-message-time-container {
    position: absolute;
    top: 100%;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    user-select: none;
}

.ai-store-helper__chatbot-chatbox-message-time-container-assistant,
.ai-store-helper__chatbot-chatbox-message-time-container-error {
    left: 0px;
}

.ai-store-helper__chatbot-chatbox-message-time-container-user {
    right: 0px;
}

.ai-store-helper__chatbot-chatbox-message-time-container:hover,
.ai-store-helper__chatbot-chatbox-message:hover ~ .ai-store-helper__chatbot-chatbox-message-time-container,
.ai-store-helper__chatbot-chatbox-message-products:hover ~ .ai-store-helper__chatbot-chatbox-message-time-container {
    opacity: 1;
}

.ai-store-helper__chatbot-chatbox-message-date-separator {
    display: block;
    text-align: center;
    color: var(--ai-store-helper--subdued);
    font-size: 14px;
}

.ai-store-helper__chatbot-product-message-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    transition: opacity 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67),
        visibility 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.ai-store-helper__chatbot-product-message {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.1);
    color: var(--ai-store-helper--dark--text);
    padding: 0.5em;
    margin: 60px 0.5em 0.5em 0.5em;
    display: flex;
    flex-direction: row;
    gap: 0.25em;
}

.ai-store-helper__hidden {
    opacity: 0;
}

.ai-store-helper__visible {
    opacity: 1;
}

.ai-store-helper__chatbot-product-variant-selector {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    line-height: 1.25;
    z-index: 2;
}

.ai-store-helper__chatbot-product-variant-selector-inner {
    position: absolute;
    top: 1em;
    bottom: 1em;
    left: 1em;
    right: 1em;
    background-color: var(--ai-store-helper--background);
    background-color: rgb(from var(--ai-store-helper--background) r g b / 0.9);
    color: var(--ai-store-helper--text);
    border-radius: 12px;
    box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.6);
}

.ai-store-helper__chatbot-product-variant-selector form {
    display: flex !important;
    flex-direction: column;
    box-sizing: border-box;
    height: 100%;
}

.ai-store-helper__chatbot-product-variant-selector-main {
    overflow: auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    flex: 1;
    padding: 1em 1em 0 1em;
}

.ai-store-helper__chatbot-product-variant-selector-buttons {
    flex-grow: 0;
    flex-shrink: 0;
    padding: 0.5em 1em;
    display: flex;
    flex-direction: row;
    gap: 0.5em;
}

.ai-store-helper__chatbot-product-variant-selector-buttons .ai-store-helper__chatbot-product-link {
    flex: 1;
    border-radius: 1em;
}

.ai-store-helper__chatbot-product-variant-selector-buttons .ai-store-helper__chatbot-add-to-cart-button {
    flex-grow: 0;
}

.ai-store-helper__chatbot-product-variant-selector h3 {
    margin: 0 0 0.5em 0;
    font-size: 1.25em;
    line-height: inherit;
}

.ai-store-helper__chatbot-product-variant-selector p {
    margin: 0.5em 0 1em 0;
    line-height: inherit;
}

button.ai-store-helper__chatbot-product-message-close-button {
    appearance: none;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    padding: 0;
    margin: 0;
    color: inherit;
    font-size: 1.2em;
    cursor: pointer;
    flex-shrink: 0;
    flex-grow: 0;
    width: 1em;
    height: 1em;
    text-align: center;
}

#ai-store-helper__chatbot-chatbox button.ai-store-helper__chatbot-product-message-close-button:hover {
    color: black;
    background-color: rgba(236, 236, 236, 0.6);
}

#ai-store-helper__chatbot-chatbox button.ai-store-helper__chatbot-product-message-close-button:active {
    color: black;
    background-color: var(--ai-store-helper--dark--text);
}

button.ai-store-helper__chatbot-product-message-close-button .ai-store-helper__icon {
    height: 1em;
    vertical-align: initial;
}

.ai-store-helper__chatbot-product-message-content .ai-store-helper__icon {
    height: 1.5em;
    vertical-align: bottom;
    display: inline-block;
}

.ai-store-helper__chatbot-chatbox-dark {
    --ai-store-helper--text:                     var(--ai-store-helper--dark--text);
    --ai-store-helper--user-text:                var(--ai-store-helper--dark--user-text);
    --ai-store-helper--background:               var(--ai-store-helper--dark--background);
    --ai-store-helper--background-transparent:   var(--ai-store-helper--dark--background-transparent);
    --ai-store-helper--scroll-thumb:             var(--ai-store-helper--dark--scroll-thumb);
    --ai-store-helper--content-background:       var(--ai-store-helper--dark--content-background);
    --ai-store-helper--input-background:         var(--ai-store-helper--dark--input-background);
    --ai-store-helper--button-background:        var(--ai-store-helper--dark--button-background);
    --ai-store-helper--button-background-hover:  var(--ai-store-helper--dark--button-background-hover);
    --ai-store-helper--send-button-background:   var(--ai-store-helper--dark--send-button-background);
    --ai-store-helper--subdued:                  var(--ai-store-helper--dark--subdued);
    --ai-store-helper--dot:                      var(--ai-store-helper--dark--dot);
    --ai-store-helper--link:                     var(--ai-store-helper--dark--link);
    --ai-store-helper--error-text:               var(--ai-store-helper--dark--error-text);
    --ai-store-helper--error-background:         var(--ai-store-helper--dark--error-background);
    --ai-store-helper--scroll-background:        var(--ai-store-helper--dark--content-background);
    --ai-store-helper--subdued-text:             var(--ai-store-helper--dark--subdued-text);
}

.ai-store-helper__chatbot-chatbox-light {
    --ai-store-helper--link: var(--ai-store-helper--light--link);
}

@media (prefers-color-scheme: dark) {
    .ai-store-helper__chatbot-chatbox-auto {
        --ai-store-helper--text:                     var(--ai-store-helper--dark--text);
        --ai-store-helper--user-text:                var(--ai-store-helper--dark--user-text);
        --ai-store-helper--background:               var(--ai-store-helper--dark--background);
        --ai-store-helper--background-transparent:   var(--ai-store-helper--dark--background-transparent);
        --ai-store-helper--scroll-thumb:             var(--ai-store-helper--dark--scroll-thumb);
        --ai-store-helper--content-background:       var(--ai-store-helper--dark--content-background);
        --ai-store-helper--input-background:         var(--ai-store-helper--dark--input-background);
        --ai-store-helper--button-background:        var(--ai-store-helper--dark--button-background);
        --ai-store-helper--button-background-hover:  var(--ai-store-helper--dark--button-background-hover);
        --ai-store-helper--send-button-background:   var(--ai-store-helper--dark--send-button-background);
        --ai-store-helper--subdued:                  var(--ai-store-helper--dark--subdued);
        --ai-store-helper--dot:                      var(--ai-store-helper--dark--dot);
        --ai-store-helper--link:                     var(--ai-store-helper--dark--link);
        --ai-store-helper--error-text:               var(--ai-store-helper--dark--error-text);
        --ai-store-helper--error-background:         var(--ai-store-helper--dark--error-background);
        --ai-store-helper--scroll-background:        var(--ai-store-helper--dark--content-background);
        --ai-store-helper--subdued-text:             var(--ai-store-helper--dark--subdued-text);
    }
}

@media not (prefers-color-scheme: dark) {
    .ai-store-helper__chatbot-chatbox-auto {
        --ai-store-helper--link: var(--ai-store-helper--light--link);
    }
}
