/* AI_GLOBAL_DRAWER_V1 */

.ai-global-drawer-host,
.ai-global-drawer-host *,
.ai-global-drawer-host *::before,
.ai-global-drawer-host *::after {
    box-sizing: border-box;
}

.ai-global-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 12000;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    min-height: 46px;
    padding: 7px 15px 7px 8px;

    border: 0;
    border-radius: 24px;

    background: #087eb6;
    color: #fff;

    font: inherit;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, .18);

    cursor: pointer;

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.ai-global-launcher:hover {
    transform: translateY(-2px);

    box-shadow:
        0 9px 24px rgba(0, 0, 0, .22);
}

.ai-global-launcher:focus-visible {
    outline: 3px solid rgba(8, 126, 182, .28);
    outline-offset: 3px;
}

.ai-global-launcher-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .18);

    font-size: 12px;
    letter-spacing: .04em;
}

.ai-global-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 12010;

    background: rgba(0, 0, 0, .22);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .2s ease,
        visibility 0s linear .2s;
}

.ai-global-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 12020;

    width: min(470px, calc(100vw - 32px));
    height: 100vh;
    height: 100dvh;

    display: flex;
    flex-direction: column;

    border: 0;
    background: #fff;

    box-shadow:
        -12px 0 36px rgba(0, 0, 0, .20);

    transform: translateX(104%);
    visibility: hidden;

    transition:
        transform .22s ease,
        visibility 0s linear .22s;
}

.ai-global-drawer-host.is-open
.ai-global-drawer-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transition-delay: 0s;
}

.ai-global-drawer-host.is-open
.ai-global-drawer-panel {
    transform: translateX(0);
    visibility: visible;

    transition-delay: 0s;
}

body.ai-global-drawer-open {
    overflow: hidden;
}

.ai-global-drawer-header {
    flex: 0 0 auto;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;

    padding: 20px 20px 17px;

    border-bottom: 1px solid #e4e4e4;
}

.ai-global-drawer-title {
    color: #087eb6;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 700;
}

.ai-global-drawer-subtitle {
    margin-top: 5px;

    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.ai-global-drawer-close {
    flex: 0 0 auto;

    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 50%;

    background: #f1f1f1;
    color: #333;

    font: inherit;
    font-size: 26px;
    line-height: 32px;

    cursor: pointer;

    transition:
        transform .15s ease,
        background .15s ease;
}

.ai-global-drawer-close:hover {
    background: #e6e6e6;
    transform: rotate(4deg);
}

.ai-global-drawer-body {
    flex: 1 1 auto;
    min-height: 0;

    overflow-y: auto;
    overscroll-behavior: contain;

    padding: 20px;
}

.ai-catalog-assistant--drawer {
    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;
}

.ai-catalog-assistant--drawer
.ai-catalog-assistant-query {
    min-height: 88px;
}

.ai-catalog-assistant--drawer
.ai-catalog-assistant-option {
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        border-color .16s ease;
}

.ai-catalog-assistant--drawer
.ai-catalog-assistant-option:hover {
    transform: translateY(-2px);

    border-color: #c8c8c8;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, .07);
}

.ai-global-drawer-examples {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;

    margin-top: 11px;

    color: #777;
    font-size: 12px;
    line-height: 1.35;
}

.ai-global-drawer-examples button {
    padding: 4px 7px;

    border: 1px solid #d7d7d7;
    border-radius: 12px;

    background: #fff;
    color: #555;

    font: inherit;

    cursor: pointer;

    transition:
        border-color .14s ease,
        background .14s ease,
        color .14s ease;
}

.ai-global-drawer-examples button:hover {
    border-color: #9fcddd;
    background: #f3fbfe;
    color: #087eb6;
}

.ai-global-drawer-full-search {
    margin-top: 22px;
    padding-top: 14px;

    border-top: 1px solid #e8e8e8;

    font-size: 13px;
}

.ai-global-drawer-full-search a {
    color: #087eb6;
    text-decoration: none;
}

.ai-global-drawer-full-search a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .ai-global-launcher {
        right: 12px;
        bottom: 12px;

        min-height: 44px;
        padding-right: 13px;
    }

    .ai-global-drawer-panel {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;

        width: 100%;
        height: min(86vh, 760px);
        height: min(86dvh, 760px);

        border-radius: 16px 16px 0 0;

        transform: translateY(104%);

        box-shadow:
            0 -12px 36px rgba(0, 0, 0, .20);
    }

    .ai-global-drawer-host.is-open
    .ai-global-drawer-panel {
        transform: translateY(0);
    }

    .ai-global-drawer-header {
        padding: 16px 15px 13px;
    }

    .ai-global-drawer-title {
        font-size: 19px;
    }

    .ai-global-drawer-body {
        padding: 15px;
    }

    .ai-catalog-assistant--drawer
    .ai-catalog-assistant-form {
        display: block;
    }

    .ai-catalog-assistant--drawer
    .ai-catalog-assistant-submit {
        width: 100%;
        min-height: 42px;
        margin-top: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai-global-launcher,
    .ai-global-drawer-backdrop,
    .ai-global-drawer-panel,
    .ai-global-drawer-close,
    .ai-global-drawer-examples button,
    .ai-catalog-assistant--drawer
    .ai-catalog-assistant-option {
        transition: none !important;
    }

    .ai-global-launcher:hover,
    .ai-global-drawer-close:hover,
    .ai-catalog-assistant--drawer
    .ai-catalog-assistant-option:hover {
        transform: none !important;
    }
}


/* AI_PRODUCT_CONTEXT_V1 */

.ai-global-product-context {
    margin: 0 0 16px;
    padding: 12px 13px;

    border: 1px solid #d7e8ef;
    border-radius: 7px;

    background: #f7fbfd;
}

.ai-global-product-context[hidden] {
    display: none !important;
}

.ai-global-product-context-label {
    margin-bottom: 4px;

    color: #087eb6;

    font-size: 11px;
    line-height: 1.25;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .035em;
}

.ai-global-product-context-name {
    color: #333;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.ai-global-product-context-meta {
    margin-top: 3px;

    color: #777;

    font-size: 12px;
    line-height: 1.35;
}

.ai-global-product-context-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 10px;
}

.ai-global-product-context-actions button {
    padding: 6px 9px;

    border: 1px solid #bcd8e4;
    border-radius: 14px;

    background: #fff;
    color: #087eb6;

    font: inherit;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .14s ease,
        border-color .14s ease,
        transform .14s ease;
}

.ai-global-product-context-actions button:hover {
    border-color: #87bfd4;
    background: #edf8fc;

    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .ai-global-product-context-actions button {
        transition: none !important;
    }

    .ai-global-product-context-actions button:hover {
        transform: none !important;
    }
}
