/* GustaPro AI assistant */
.gusta-ai-assistant,
.gusta-ai-assistant * {
    box-sizing: border-box;
}

.gusta-ai-assistant {
    bottom: 20px;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-style: normal;
    font-weight: 400;
    position: fixed;
    right: 20px;
    z-index: 10030;
}

.gusta-ai-assistant [hidden] {
    display: none !important;
}

.gusta-ai-assistant__launcher {
    align-items: center;
    background: #202020;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .24);
    color: #fff;
    cursor: pointer;
    display: flex;
    gap: 12px;
    min-width: 285px;
    padding: 12px 16px;
    text-align: left;
}

.gusta-ai-assistant__launcher:hover,
.gusta-ai-assistant__launcher:focus {
    background: #2b2b2b;
    outline: none;
}

.gusta-ai-assistant__avatar {
    align-items: center;
    background: #f08301;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 46px;
    height: 46px;
    justify-content: center;
    position: relative;
    width: 46px;
}

.gusta-ai-assistant__status-dot {
    background: #40d17d;
    border: 2px solid #fff;
    border-radius: 50%;
    bottom: 1px;
    height: 11px;
    position: absolute;
    right: 1px;
    width: 11px;
}

.gusta-ai-assistant__launcher-copy,
.gusta-ai-assistant__identity {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.gusta-ai-assistant__launcher-copy strong,
.gusta-ai-assistant__identity strong {
    font-size: 14px;
    line-height: 1.3;
}

.gusta-ai-assistant__launcher-copy small,
.gusta-ai-assistant__identity small {
    color: #d0d0d0;
    font-size: 11px;
    line-height: 1.4;
    margin-top: 2px;
}

.gusta-ai-assistant__mobile-label {
    display: none;
}

.gusta-ai-assistant__launcher-arrow {
    color: #f08301;
    font-size: 18px;
    font-weight: 700;
}

.gusta-ai-assistant__panel {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 16px;
    box-shadow: 0 12px 42px rgba(0, 0, 0, .22);
    display: flex;
    flex-direction: column;
    height: min(660px, calc(100vh - 40px));
    overflow: hidden;
    position: static;
    width: 430px;
}

.gusta-ai-assistant__header {
    align-items: center;
    background: #202020;
    color: #fff;
    display: flex;
    flex: 0 0 auto;
    gap: 11px;
    left: auto;
    min-height: 72px;
    padding: 12px 14px;
    position: static;
    right: auto;
    top: auto;
    width: auto;
    z-index: auto;
}

.gusta-ai-assistant__header .gusta-ai-assistant__avatar {
    flex-basis: 42px;
    height: 42px;
    width: 42px;
}

.gusta-ai-assistant__minimize {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 25px;
    font-weight: 300;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 3px;
    width: 34px;
}

.gusta-ai-assistant__messages {
    -webkit-overflow-scrolling: touch;
    background: #f7f7f7;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px;
}

.gusta-ai-assistant__message {
    background: #fff;
    border-radius: 12px 12px 12px 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .07);
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    max-width: 88%;
    padding: 10px 12px;
    text-align: left;
    white-space: pre-wrap;
}

.gusta-ai-assistant__message.is-user {
    align-self: flex-end;
    background: #f08301;
    border-radius: 12px 12px 3px 12px;
    color: #fff;
}

.gusta-ai-assistant__message.is-loading {
    color: #777;
    font-style: italic;
}

.gusta-ai-assistant__message a {
    color: #c96b00;
    text-decoration: underline;
}

.gusta-ai-assistant__products {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.gusta-ai-assistant__products-title {
    color: #5c5c5c;
    font-size: 11px;
    letter-spacing: .03em;
    padding: 2px 2px 0;
    text-transform: uppercase;
}

.gusta-ai-assistant__product {
    align-items: center;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: none;
    color: inherit;
    display: flex;
    font-family: inherit;
    font-style: normal;
    gap: 10px;
    margin: 0;
    max-width: none;
    min-height: 94px;
    overflow: hidden;
    padding: 9px;
}

.gusta-ai-assistant__product-image {
    align-items: center;
    align-self: stretch;
    background: #f6f6f6;
    border-radius: 8px;
    display: flex;
    flex: 0 0 76px;
    justify-content: center;
    overflow: hidden;
}

.gusta-ai-assistant__product-image img {
    height: 76px;
    object-fit: contain;
    width: 76px;
}

.gusta-ai-assistant__product-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.gusta-ai-assistant__product-name {
    color: #292929;
    display: -webkit-box;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gusta-ai-assistant__product-name:hover,
.gusta-ai-assistant__product-name:focus {
    color: #c96b00;
}

.gusta-ai-assistant__product-price {
    color: #8f4213;
    font-size: 12px;
    margin-top: 4px;
}

.gusta-ai-assistant__product-meta {
    color: #6f6f6f;
    display: flex;
    flex-wrap: wrap;
    font-size: 10px;
    gap: 3px 8px;
    line-height: 1.3;
    margin-top: 3px;
}

.gusta-ai-assistant__product-meta span:first-child {
    color: #138f2e;
    font-weight: 700;
}

.gusta-ai-assistant__product-actions {
    display: flex;
    gap: 6px;
    margin-top: 7px;
}

.gusta-ai-assistant__product-actions a,
.gusta-ai-assistant__product-actions button {
    align-items: center;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 28px;
    padding: 5px 8px;
    text-align: center;
    text-decoration: none;
}

.gusta-ai-assistant__product-view {
    background: #fff;
    border: 1px solid #f08301;
    color: #c96b00;
}

.gusta-ai-assistant__product-add {
    background: #f08301;
    border: 1px solid #f08301;
    color: #fff;
}

.gusta-ai-assistant__product-add:disabled {
    cursor: default;
    opacity: .7;
}

.gusta-ai-assistant__suggestions {
    -webkit-overflow-scrolling: touch;
    background: #fff;
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 12px 2px;
}

.gusta-ai-assistant__suggestions button {
    background: #fff8ef;
    border: 1px solid #f2c38b;
    border-radius: 18px;
    color: #9a5200;
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 11px;
    min-height: 32px;
    padding: 7px 10px;
    white-space: nowrap;
}

.gusta-ai-assistant__suggestions button:hover,
.gusta-ai-assistant__suggestions button:focus {
    background: #ffefd9;
    border-color: #f08301;
    outline: none;
}

.gusta-ai-assistant__feedback {
    align-items: center;
    align-self: flex-start;
    color: #777;
    display: flex;
    font-size: 10px;
    gap: 5px;
    padding: 0 2px;
}

.gusta-ai-assistant__feedback button {
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    color: #555;
    cursor: pointer;
    font-family: inherit;
    font-size: 10px;
    min-height: 24px;
    padding: 3px 8px;
}

.gusta-ai-assistant__feedback button.is-selected {
    background: #fff4e6;
    border-color: #f08301;
    color: #9a5200;
}

.gusta-ai-assistant__feedback.is-complete button:not(.is-selected) {
    opacity: .5;
}

.gusta-ai-assistant__form {
    align-items: flex-end;
    background: #fff;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    padding: 10px 12px 8px;
}

.gusta-ai-assistant__form .sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.gusta-ai-assistant__form textarea {
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    box-shadow: none;
    flex: 1 1 auto;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.35;
    margin: 0;
    max-height: 90px;
    min-height: 44px;
    padding: 10px 12px;
    resize: none;
    width: auto;
}

.gusta-ai-assistant__form textarea:focus {
    border-color: #f08301;
    outline: none;
}

.gusta-ai-assistant__form button {
    align-items: center;
    background: #f08301;
    border: 0;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
}

.gusta-ai-assistant__form button:disabled {
    cursor: wait;
    opacity: .55;
}

.gusta-ai-assistant__disclaimer {
    background: #fff;
    color: #858585;
    font-size: 9px;
    flex: 0 0 auto;
    line-height: 1.35;
    margin: 0;
    padding: 0 12px 10px;
    text-align: center;
}

@media (max-width: 959px) {
    html.gusta-ai-assistant-is-open,
    html.gusta-ai-assistant-is-open body {
        overflow: hidden;
    }

    .header-content .main-row > .container {
        position: relative;
    }

    .header-content .gusta-ai-assistant {
        bottom: auto;
        left: 52px;
        position: absolute;
        right: auto;
        top: 1px;
        z-index: 10030;
    }

    .header-content .gusta-ai-assistant__launcher {
        align-items: center;
        background: transparent;
        border-radius: 8px;
        box-shadow: none;
        color: #ca7005;
        flex-direction: column;
        gap: 1px;
        height: 54px;
        justify-content: center;
        min-height: 0;
        min-width: 0;
        padding: 0;
        width: 52px;
    }

    .header-content .gusta-ai-assistant__launcher:hover,
    .header-content .gusta-ai-assistant__launcher:focus {
        background: #fff8ef;
    }

    .header-content .gusta-ai-assistant__launcher .gusta-ai-assistant__avatar {
        background: #f08300;
        border-radius: 8px;
        box-shadow: 0 2px 7px rgba(240, 131, 0, .22);
        flex-basis: 34px;
        height: 34px;
        width: 36px;
    }

    .header-content .gusta-ai-assistant__launcher .gusta-ai-assistant__avatar svg {
        height: 21px;
        width: 21px;
    }

    .header-content .gusta-ai-assistant__launcher .gusta-ai-assistant__status-dot {
        border-width: 1px;
        bottom: -1px;
        height: 9px;
        right: -1px;
        width: 9px;
    }

    .header-content .gusta-ai-assistant__launcher-copy,
    .header-content .gusta-ai-assistant__launcher-arrow {
        display: none;
    }

    .header-content .gusta-ai-assistant__mobile-label {
        color: #ca7005;
        display: block;
        font-family: PT Sans, sans-serif;
        font-size: 8px;
        font-weight: 700;
        line-height: 9px;
        max-width: 50px;
        text-align: center;
        white-space: normal;
    }

    .header-content .gusta-ai-assistant__panel {
        border: 0;
        border-radius: 0;
        bottom: 0;
        height: auto;
        left: 0;
        max-height: none;
        padding-bottom: env(safe-area-inset-bottom);
        position: fixed;
        right: 0;
        top: var(--gusta-ai-mobile-top, 0px);
        width: 100%;
        z-index: 10031;
    }

    .gusta-ai-assistant__header {
        min-height: 68px;
        padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
    }

    .gusta-ai-assistant__identity strong {
        font-size: 16px;
    }

    .gusta-ai-assistant__identity small {
        font-size: 11px;
    }

    .gusta-ai-assistant__minimize {
        flex-basis: 44px;
        height: 44px;
        width: 44px;
    }

    .gusta-ai-assistant__messages {
        padding: 14px;
    }

    .gusta-ai-assistant__message {
        font-size: 14px;
        max-width: 90%;
        padding: 11px 13px;
    }

    .gusta-ai-assistant__product {
        min-height: 102px;
    }

    .gusta-ai-assistant__product-actions a,
    .gusta-ai-assistant__product-actions button {
        font-size: 11px;
        min-height: 34px;
    }

    .gusta-ai-assistant__suggestions {
        gap: 8px;
        padding: 10px 12px 4px;
    }

    .gusta-ai-assistant__suggestions button {
        font-size: 13px;
        min-height: 38px;
        padding: 8px 12px;
    }

    .gusta-ai-assistant__form {
        padding: 10px 12px 8px;
    }

    .gusta-ai-assistant__form textarea {
        font-size: 16px;
        min-height: 48px;
    }

    .gusta-ai-assistant__form button {
        flex-basis: 48px;
        height: 48px;
    }

    .gusta-ai-assistant__disclaimer {
        font-size: 10px;
        padding: 0 14px 9px;
    }

}

@media (max-width: 420px) {
    .header-content .gusta-ai-assistant {
        left: 49px;
    }

    .header-content .gusta-ai-assistant__launcher {
        width: 48px;
    }

}

@media (max-width: 350px) {
    .header-content .gusta-ai-assistant {
        left: 43px;
    }

    .header-content .gusta-ai-assistant__mobile-label {
        font-size: 7px;
    }
}
