.yj24-natural-search-summary {
    --yj24-ai-ink: #101828;
    --yj24-ai-muted: #667085;
    --yj24-ai-line: rgba(37, 99, 235, .14);
    position: relative;
    isolation: isolate;
    clear: both;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: start;
    gap: 22px;
    width: 100%;
    margin: 4px 0 30px;
    padding: 26px 28px;
    overflow: hidden;
    border: 1px solid var(--yj24-ai-line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 0 0, rgba(219, 234, 254, .9), transparent 34%),
        radial-gradient(circle at 100% 100%, rgba(224, 231, 255, .62), transparent 38%),
        rgba(255, 255, 255, .96);
    box-shadow:
        0 18px 48px rgba(15, 23, 42, .08),
        0 1px 0 rgba(255, 255, 255, .9) inset;
    color: var(--yj24-ai-ink);
}

.yj24-natural-search-summary::before {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #6366f1 48%, #14b8a6 100%);
    content: "";
}

.yj24-natural-search-mark {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 20px;
    background: linear-gradient(145deg, #0f172a 0%, #1d4ed8 68%, #4f46e5 100%);
    box-shadow:
        0 14px 28px rgba(37, 99, 235, .24),
        0 0 0 1px rgba(15, 23, 42, .08);
    color: #fff;
}

.yj24-natural-search-mark span {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.yj24-natural-search-content {
    min-width: 0;
}

.yj24-natural-search-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 1px 0 7px;
    color: #3657a7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.yj24-natural-search-kicker > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, .12);
}

.yj24-natural-search-summary h2 {
    margin: 0;
    color: var(--yj24-ai-ink);
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 850;
    line-height: 1.28;
    letter-spacing: -.045em;
}

.yj24-natural-search-description {
    margin: 8px 0 0;
    color: var(--yj24-ai-muted);
    font-size: 14px;
    line-height: 1.65;
    letter-spacing: -.018em;
}

.yj24-natural-search-query {
    display: flex;
    align-items: baseline;
    gap: 9px;
    width: fit-content;
    max-width: 100%;
    margin: 16px 0 0;
    padding: 9px 13px;
    border: 1px solid rgba(99, 102, 241, .12);
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
    color: #344054;
    font-size: 13px;
    line-height: 1.45;
}

.yj24-natural-search-query[hidden] {
    display: none;
}

.yj24-natural-search-query > span {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
}

.yj24-natural-search-query q {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yj24-natural-search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.yj24-natural-search-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 11px 6px 13px;
    border: 1px solid rgba(37, 99, 235, .13);
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 3px 10px rgba(15, 23, 42, .04);
    color: #263b71;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.yj24-natural-search-chip:hover {
    border-color: rgba(37, 99, 235, .32);
    box-shadow: 0 6px 14px rgba(37, 99, 235, .1);
    color: #1746b0;
    transform: translateY(-1px);
}

.yj24-natural-search-chip.is-static {
    cursor: default;
    border-style: dashed;
    color: #64748b;
}

.yj24-natural-search-chip.is-static:hover {
    border-color: rgba(37, 99, 235, .13);
    box-shadow: 0 3px 10px rgba(15, 23, 42, .04);
    color: #64748b;
    transform: none;
}

.yj24-natural-search-chip:focus-visible,
.yj24-natural-search-open-ai:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .28);
    outline-offset: 2px;
}

.yj24-natural-search-chip > span[aria-hidden] {
    color: #8290ad;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}


.yj24-natural-ai-result {
    margin-top: 18px;
    padding: 17px 18px;
    border: 1px solid rgba(37, 99, 235, .12);
    border-radius: 16px;
    background: rgba(248, 250, 252, .88);
    color: #344054;
    font-size: 14px;
    line-height: 1.72;
}

.yj24-natural-ai-result-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #53627d;
    font-weight: 700;
}

.yj24-natural-ai-result-loading[hidden],
.yj24-natural-ai-result-answer[hidden],
.yj24-natural-ai-result-error[hidden] {
    display: none !important;
}

.yj24-natural-ai-spinner {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    border: 2px solid rgba(37, 99, 235, .16);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: yj24-natural-ai-spin .8s linear infinite;
}

.yj24-natural-ai-result-answer {
    white-space: pre-line;
    word-break: keep-all;
    overflow-wrap: anywhere;
    color: #24324a;
}

.yj24-natural-ai-result-error {
    color: #8a5a0a;
}

@keyframes yj24-natural-ai-spin {
    to { transform: rotate(360deg); }
}

.yj24-natural-search-actions {
    display: flex;
    min-width: 174px;
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
    padding-top: 4px;
}

.yj24-natural-search-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
    padding: 7px 11px;
    border: 1px solid rgba(16, 185, 129, .16);
    border-radius: 999px;
    background: rgba(236, 253, 245, .82);
    color: #087f5b;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.yj24-natural-search-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .12);
}

.yj24-natural-search-status[data-state="working"] {
    border-color: rgba(37, 99, 235, .14);
    background: rgba(239, 246, 255, .86);
    color: #2457b8;
}

.yj24-natural-search-status[data-state="working"] .yj24-natural-search-status-dot {
    background: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
    animation: yj24-natural-ai-pulse 1.35s ease-in-out infinite;
}

.yj24-natural-search-status[data-state="unavailable"] {
    border-color: rgba(245, 158, 11, .18);
    background: rgba(255, 251, 235, .88);
    color: #9a5b08;
}

.yj24-natural-search-status[data-state="unavailable"] .yj24-natural-search-status-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .12);
    animation: none;
}

.yj24-natural-search-open-ai {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 10px 16px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    box-shadow: 0 10px 24px rgba(30, 64, 175, .2);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: box-shadow .18s ease, transform .18s ease, opacity .18s ease;
}

.yj24-natural-search-open-ai:hover:not(:disabled) {
    box-shadow: 0 14px 30px rgba(30, 64, 175, .28);
    transform: translateY(-1px);
}

.yj24-natural-search-open-ai:disabled {
    cursor: wait;
    opacity: .62;
}

.yj24-natural-search-open-ai > span:last-child {
    font-size: 15px;
}

@keyframes yj24-natural-ai-pulse {
    0%, 100% {
        opacity: .56;
        transform: scale(.88);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@media (max-width: 900px) {
    .yj24-natural-search-summary {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 16px;
        padding: 23px;
    }

    .yj24-natural-search-mark {
        width: 54px;
        height: 54px;
        border-radius: 17px;
    }

    
.yj24-natural-ai-result {
    margin-top: 18px;
    padding: 17px 18px;
    border: 1px solid rgba(37, 99, 235, .12);
    border-radius: 16px;
    background: rgba(248, 250, 252, .88);
    color: #344054;
    font-size: 14px;
    line-height: 1.72;
}

.yj24-natural-ai-result-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #53627d;
    font-weight: 700;
}

.yj24-natural-ai-result-loading[hidden],
.yj24-natural-ai-result-answer[hidden],
.yj24-natural-ai-result-error[hidden] {
    display: none !important;
}

.yj24-natural-ai-spinner {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    border: 2px solid rgba(37, 99, 235, .16);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: yj24-natural-ai-spin .8s linear infinite;
}

.yj24-natural-ai-result-answer {
    white-space: pre-line;
    word-break: keep-all;
    overflow-wrap: anywhere;
    color: #24324a;
}

.yj24-natural-ai-result-error {
    color: #8a5a0a;
}

@keyframes yj24-natural-ai-spin {
    to { transform: rotate(360deg); }
}

.yj24-natural-search-actions {
        grid-column: 2;
        min-width: 0;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding-top: 0;
    }

    .yj24-natural-search-open-ai {
        min-width: 160px;
    }
}

@media (max-width: 600px) {
    .yj24-natural-search-summary {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 13px;
        margin-bottom: 22px;
        padding: 19px 17px;
        border-radius: 20px;
    }

    .yj24-natural-search-mark {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .yj24-natural-search-mark span {
        font-size: 16px;
    }

    .yj24-natural-search-kicker {
        margin-top: 0;
        font-size: 9px;
    }

    .yj24-natural-search-summary h2 {
        font-size: 19px;
    }

    .yj24-natural-search-description {
        font-size: 13px;
        line-height: 1.55;
    }

    .yj24-natural-search-query {
        display: block;
        margin-top: 13px;
    }

    .yj24-natural-search-query > span {
        display: block;
        margin-bottom: 3px;
    }

    .yj24-natural-search-query q {
        display: block;
        white-space: normal;
    }

    
.yj24-natural-ai-result {
    margin-top: 18px;
    padding: 17px 18px;
    border: 1px solid rgba(37, 99, 235, .12);
    border-radius: 16px;
    background: rgba(248, 250, 252, .88);
    color: #344054;
    font-size: 14px;
    line-height: 1.72;
}

.yj24-natural-ai-result-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #53627d;
    font-weight: 700;
}

.yj24-natural-ai-result-loading[hidden],
.yj24-natural-ai-result-answer[hidden],
.yj24-natural-ai-result-error[hidden] {
    display: none !important;
}

.yj24-natural-ai-spinner {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    border: 2px solid rgba(37, 99, 235, .16);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: yj24-natural-ai-spin .8s linear infinite;
}

.yj24-natural-ai-result-answer {
    white-space: pre-line;
    word-break: keep-all;
    overflow-wrap: anywhere;
    color: #24324a;
}

.yj24-natural-ai-result-error {
    color: #8a5a0a;
}

@keyframes yj24-natural-ai-spin {
    to { transform: rotate(360deg); }
}

.yj24-natural-search-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .yj24-natural-search-status,
    .yj24-natural-search-open-ai {
        min-width: 0;
        min-height: 42px;
        font-size: 11px;
    }

    .yj24-natural-search-summary.is-catalog-search 
.yj24-natural-ai-result {
    margin-top: 18px;
    padding: 17px 18px;
    border: 1px solid rgba(37, 99, 235, .12);
    border-radius: 16px;
    background: rgba(248, 250, 252, .88);
    color: #344054;
    font-size: 14px;
    line-height: 1.72;
}

.yj24-natural-ai-result-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #53627d;
    font-weight: 700;
}

.yj24-natural-ai-result-loading[hidden],
.yj24-natural-ai-result-answer[hidden],
.yj24-natural-ai-result-error[hidden] {
    display: none !important;
}

.yj24-natural-ai-spinner {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    border: 2px solid rgba(37, 99, 235, .16);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: yj24-natural-ai-spin .8s linear infinite;
}

.yj24-natural-ai-result-answer {
    white-space: pre-line;
    word-break: keep-all;
    overflow-wrap: anywhere;
    color: #24324a;
}

.yj24-natural-ai-result-error {
    color: #8a5a0a;
}

@keyframes yj24-natural-ai-spin {
    to { transform: rotate(360deg); }
}

.yj24-natural-search-actions {
        display: flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yj24-natural-search-status-dot,
    .yj24-natural-ai-spinner,
    .yj24-natural-search-chip,
    .yj24-natural-search-open-ai {
        animation: none !important;
        transition: none !important;
    }
}

/* v0.4.2: AI search result product URLs are real, touch-friendly links. */
.yj24-natural-ai-result-answer .yj24-natural-ai-result-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.yj24-natural-ai-result-answer .yj24-natural-ai-result-link:hover,
.yj24-natural-ai-result-answer .yj24-natural-ai-result-link:focus-visible {
    color: #1d4ed8;
}

