/* The translated assistant is enabled only for the two legacy robot assets. */
.cz-hero-assistant {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(7rem, 32vw, 11.25rem);
    align-items: center;
    column-gap: clamp(.875rem, 2vw, 1.5rem);
    inline-size: min(35rem, calc(100% - var(--cz-site-gutter, 20px) - var(--cz-site-gutter, 20px)));
    max-inline-size: 100%;
    margin-block: 0;
    margin-inline-start: auto;
    margin-inline-end: var(--cz-site-gutter, 20px);
    position: relative;
    z-index: 10;
    text-align: start;
    isolation: isolate;
}

.cz-hero-assistant__bubble {
    position: relative;
    min-inline-size: 0;
    padding: clamp(.875rem, 2vw, 1.25rem);
    border: 1px solid #DAC6F4;
    border-block-start: 3px solid #E22861;
    border-radius: 1.25rem;
    background: #fff;
    color: #141414;
    box-shadow: 0 12px 32px rgba(20, 20, 20, .14);
    overflow-wrap: anywhere;
    hyphens: auto;
}

.cz-hero-assistant__bubble::after {
    content: "";
    position: absolute;
    inset-inline-end: -13px;
    inset-block-start: 42%;
    inline-size: 14px;
    block-size: 24px;
    background: #fff;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.cz-hero-assistant[dir="rtl"] .cz-hero-assistant__bubble::after {
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.cz-hero-assistant__title {
    margin: 0;
    color: #763CD4;
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    font-weight: 700;
    line-height: 1.4;
}

.cz-hero-assistant__text {
    margin: .5rem 0 0;
    color: #141414;
    font-size: clamp(.875rem, 1.1vw, .95rem);
    line-height: 1.55;
}

.cz-hero-assistant__robot {
    display: block;
    inline-size: 100%;
    aspect-ratio: 3 / 4;
    transform-origin: center;
    pointer-events: none;
}

.cz-hero-assistant__robot img {
    display: block;
    inline-size: 100%;
    block-size: auto;
    max-inline-size: 100%;
    object-fit: contain;
}

.cz-hero-assistant--floating .cz-hero-assistant__robot {
    animation: cz-assistant-float 6s ease-in-out infinite;
}

@keyframes cz-assistant-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Preserve custom artwork and the original hero geometry at its breakpoint. */
@media (max-width: 1023px) {
    .bg-top.cz-hero-with-assistant.cz-hero-assistant-on-mobile:not(.cz-hero-compact) {
        height: auto;
        min-height: 54rem;
        padding-block: clamp(4rem, 8vw, 6rem) 2.25rem;
        row-gap: 1.75rem;
    }

    .bg-top.cz-hero-with-assistant.cz-hero-assistant-on-mobile:not(.cz-hero-compact) > .content {
        margin-top: 0;
    }

    .cz-hero-assistant--desktop-only {
        display: none;
    }
}

@media (min-width: 1024px) {
    .bg-top.cz-hero-with-assistant.cz-hero-assistant-on-desktop:not(.cz-hero-compact) {
        height: auto;
        min-height: 54rem;
        padding-block: 5rem 2.5rem;
        row-gap: 2rem;
    }

    .bg-top.cz-hero-with-assistant.cz-hero-assistant-on-desktop:not(.cz-hero-compact) > .content {
        margin-top: 0;
    }

    .cz-hero-assistant--mobile-only {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cz-hero-assistant--floating .cz-hero-assistant__robot {
        animation: none;
        transform: none;
    }
}
