.nbtgc-store-insights,
.nbtgc-store-sort,
.nbtgc-store-search-note {
    font-family: inherit;
    color: inherit;
}

.nbtgc-store-insights {
    margin-block: 12px;
    padding: 0 12px;
    border: 1px solid var(--border-light, var(--pink-100, currentColor));
    border-radius: var(--radius-md, 12px);
    background: var(--bg-surface, transparent);
    text-align: start;
}

.nbtgc-store-insights summary {
    padding-block: 9px;
    cursor: pointer;
    font-weight: 700;
    font-size: .875rem;
}

.nbtgc-store-insights summary::marker,
.nbtgc-store-sort a[aria-current="true"] {
    color: var(--pink-600, currentColor);
}

.nbx .nbtgc-store-sort {
    box-sizing: border-box;
    inline-size: min(100%, 1200px);
    margin-inline: auto;
    padding-inline: 20px;
}

.nbtgc-store-insights dl {
    margin: 0;
    font-size: .8125rem;
    line-height: 1.85;
}

.nbtgc-store-insights dt { font-weight: 700; }
.nbtgc-store-insights dd { margin: 0 0 8px; }
.nbtgc-store-insights-status,
.nbtgc-store-search-note,
.nbtgc-store-search-status { font-size: .8125rem; }

.nbtgc-store-sort {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-block: 6px;
    max-inline-size: 100%;
    min-inline-size: 0;
    font-size: .8125rem;
}

.nbtgc-store-sort[hidden],
.nbtgc-store-insights[hidden] { display: none; }

.nbtgc-store-sort a {
    flex: 0 0 auto;
    padding: 4px 10px;
    border: 1px solid var(--border-light, var(--pink-100, currentColor));
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}

.nbtgc-store-sort a[aria-current="true"] {
    background: var(--pink-50, transparent);
    border-color: var(--pink-500, currentColor);
}

.nbtgc-store-sort a:focus-visible,
.nbtgc-store-insights summary:focus-visible {
    outline: 2px solid var(--pink-500, currentColor);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .nbtgc-store-sort {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 3px;
    }

    .nbx .nbtgc-store-sort { padding-inline: 14px; }
    .nbtgc-store-insights { margin-block: 8px; }
}

/* Store AI uses the rose palette and loading rhythm from the storefront concept. */
.nbtgc-store-insights, .nbtgc-store-sort, .nbtgc-store-search-status, .nbtgc-store-search-note {
    --store-berry: #a52b60;
    --store-pink: #ff6fa8;
    --store-blush: #fff2f7;
    --store-border: #f5dce7;
    --store-shimmer: #ffe6f0;
}

[data-theme="dark"] :is(.nbtgc-store-insights, .nbtgc-store-sort, .nbtgc-store-search-status, .nbtgc-store-search-note) {
    --store-berry: #ff9ec7;
    --store-blush: #362332;
    --store-border: #5d334e;
    --store-shimmer: #4e2e43;
}

.nbtgc-store-insights {
    border-color: var(--store-border);
    background: var(--store-blush);
}

.nbtgc-store-insights summary {
    display: flex;
    align-items: center;
    gap: 9px;
    list-style: none;
    color: var(--store-berry);
}

.nbtgc-store-insights summary::-webkit-details-marker { display: none; }
.nbtgc-store-insights summary::after {
    content: "";
    margin-inline-start: auto;
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
}
.nbtgc-store-insights[open] summary::after { transform: rotate(225deg); }
.nbtgc-store-search-note { color: var(--store-berry); }
.nbtgc-store-sort a { border-color: var(--store-border); }
.nbtgc-store-sort a[aria-current="true"] {
    color: var(--store-berry);
    border-color: var(--store-pink);
    background: var(--store-blush);
}

.nbtgc-store-loading-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--store-berry);
    font-size: .8125rem;
}
.nbtgc-store-search-status {
    display: block;
    margin: 6px 10px;
    padding: 9px;
    border: 1px solid var(--store-border);
    border-radius: 12px;
    background: var(--store-blush);
}
.nbtgc-store-insights-status:not([hidden]) { padding-block-end: 9px; }
.nbtgc-store-sort-status { flex-basis: 100%; min-inline-size: 155px; }

.nbtgc-store-skeleton {
    display: grid;
    gap: 5px;
    padding-block-start: 8px;
}
.nbtgc-store-skeleton i {
    display: block;
    block-size: 7px;
    inline-size: 85%;
    border-radius: 999px;
    background: linear-gradient(100deg, var(--store-shimmer) 20%, var(--store-blush) 45%, var(--store-shimmer) 70%);
    background-size: 220% 100%;
    animation: nbtgc-store-shimmer 1.45s linear infinite;
}
.nbtgc-store-skeleton i:nth-child(2) { inline-size: 58%; }
.nbtgc-store-skeleton--sort { display: flex; }
.nbtgc-store-skeleton--sort i:nth-child(n) { inline-size: 44px; block-size: 15px; }
@keyframes nbtgc-store-shimmer { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) {
    .nbtgc-store-skeleton i { animation: none; }
}

.nbtgc-store-robot {
    inline-size: 38px;
    block-size: 38px;
    border: 0;
    border-radius: 0;
    margin: 0;
    background: transparent url("store-guide-robot.svg") center / contain no-repeat;
}
.nbtgc-store-robot::before, .nbtgc-store-robot::after { content: none; }
.nbtgc-store-loading-row .nbtgc-store-robot { animation: nbtgc-store-hover 1.4s ease-in-out infinite; }
@keyframes nbtgc-store-hover {
    0%, 100% { transform: translateY(1px); }
    50% { transform: translateY(-3px); }
}

.nbtgc-store-guide {
    margin-block: 0 14px;
    --store-berry: #a52b60;
    --store-border: #f5dce7;
}
.nbtgc-store-guide-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 13px 5px 16px;
    border: 1px solid var(--store-border);
    border-radius: 16px;
    background: linear-gradient(110deg, #fff0f6, #fffafd);
    color: var(--store-berry);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.nbtgc-store-guide-button[hidden] { display: none; }
.nbtgc-store-guide-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
.nbtgc-store-guide-button[aria-expanded="true"] {
    border-color: #e687ae;
}
.nbtgc-store-guide-button .nbtgc-store-robot { animation: nbtgc-store-hover 3s ease-in-out 2; }
.nbtgc-store-guide .nbtgc-store-sort {
    flex-wrap: wrap;
    padding: 12px;
    border: 1px solid var(--store-border);
    border-radius: 15px;
    background: var(--store-blush);
}
.nbtgc-store-guide-copy { flex: 0 0 100%; margin: 0 0 3px; }
.nbtgc-store-smart-results {
    border: 1px solid var(--store-border, #f5dce7);
    border-radius: 15px;
    margin: 6px;
    padding: 5px;
    background: var(--store-blush, #fff2f7);
}
.nbtgc-store-smart-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 7px;
    color: #a52b60;
    font-size: .82rem;
    font-weight: 800;
}
.nbtgc-store-smart-results .nb-search-list { background: var(--bg-surface, #fff); border-radius: 10px; }
.nbtgc-store-retry {
    margin-inline-start: 8px;
    padding: 4px 8px;
    border: 1px solid currentColor;
    border-radius: 8px;
    color: var(--store-berry);
    background: transparent;
    font: inherit;
    cursor: pointer;
}
[data-theme="dark"] .nbtgc-store-smart-results { --store-blush: #362332; --store-border: #5d334e; }
[data-theme="dark"] :is(.nbtgc-store-smart-heading,.nbtgc-store-guide-button) { color: #ffafd1; }
[data-theme="dark"] .nbtgc-store-guide-button { background: #362332; border-color: #5d334e; }

@media (prefers-reduced-motion: reduce) {
    .nbtgc-store-guide-button .nbtgc-store-robot { animation: none; }
}

.nbtgc-store-guide-panel[hidden], .nbtgc-store-quiz[hidden] { display: none; }
.nbtgc-store-guide-panel {
    margin-block-start: 9px;
    border: 1px solid #f2d7e4;
    border-radius: 20px;
    background: #fffbfd;
    color: #35212e;
    padding: 12px;
}
.nbtgc-store-quiz { padding: 5px 6px 10px; }
.nbtgc-store-quiz h3 { font: inherit; font-weight: 850; font-size: 1.03rem; margin: 4px 0 5px; }
.nbtgc-store-quiz-step { color: #a52b60; font-size: .75rem; font-weight: 750; }
.nbtgc-store-quiz-help { font-size: .8rem; color: #735668; margin-block: 0 10px; }
.nbtgc-store-quiz-options { display: flex; flex-wrap: wrap; gap: 8px; }
.nbtgc-store-quiz-options button, .nbtgc-store-quiz-back {
    font: inherit;
    font-size: .81rem;
    cursor: pointer;
    border: 1px solid #ebc5d7;
    border-radius: 11px;
    padding: 7px 11px;
    min-block-size: 40px;
    background: #fff;
    color: #813151;
}
.nbtgc-store-quiz-options button:hover, .nbtgc-store-quiz-options button:focus-visible { background: #ffedf5; }
.nbtgc-store-quiz-back { margin-block-start: 10px; }
.nbtgc-store-guide-results { display: grid; gap: 7px; }
.nbtgc-store-guide-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px;
    border: 1px solid #f2d7e4;
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}
.nbtgc-store-guide-card img { border-radius: 8px; object-fit: cover; }
.nbtgc-store-guide-card :is(strong,small,b) { display: block; }
.nbtgc-store-guide-card b { color: #a52b60; }
[data-theme="dark"] .nbtgc-store-guide-panel { color: #fae4ee; background: #2d2029; border-color: #5d334e; }
[data-theme="dark"] .nbtgc-store-quiz-help { color: #deb9ca; }
[data-theme="dark"] .nbtgc-store-guide-panel :is(.nbtgc-store-guide-card,button) { background: #362332; border-color: #5d334e; color: #fae4ee; }

.nbtgc-store-quiz-need { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 10px; }
.nbtgc-store-quiz-need input {
    min-inline-size: min(100%, 180px);
    flex: 1;
    border: 1px solid #ebc5d7;
    border-radius: 11px;
    padding-inline: 9px;
    font: inherit;
    color: inherit;
    background: transparent;
}
.nbtgc-store-quiz-need .nbtgc-store-quiz-back { margin: 0; }

.nbtgc-store-insights[aria-busy="true"] summary .nbtgc-store-robot { animation: nbtgc-store-hover 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
    .nbtgc-store-insights[aria-busy="true"] summary .nbtgc-store-robot { animation: none; }
}

.nbtgc-store-insights {
    --insight-card: #fffdfd;
    --insight-ink: #34202c;
    --insight-muted: #674c5c;
    --insight-icon-bg: #fbeaf2;
    --insight-line: #f1d7e5;
    box-sizing: border-box;
    margin-block: 12px;
    padding: 0 14px;
    border: 1px solid var(--insight-line);
    border-radius: 19px;
    background: var(--store-blush);
}
.nbtgc-store-insights > summary {
    min-block-size: 60px;
    padding: 9px 2px;
    gap: 10px;
    color: var(--insight-ink);
}
.nbtgc-store-insights > summary::after {
    flex: none;
    margin-inline: auto 5px;
    color: var(--store-berry);
    inline-size: 7px;
    block-size: 7px;
}
.nbtgc-store-insight-mark {
    display: grid;
    place-items: center;
    flex: none;
    inline-size: 41px;
    block-size: 41px;
    border: 1px solid var(--insight-line);
    border-radius: 13px;
    background: var(--insight-card);
}
.nbtgc-store-insight-mark .nbtgc-store-robot { inline-size: 31px; block-size: 31px; }
.nbtgc-store-insight-heading { display: grid; gap: 2px; min-inline-size: 0; }
.nbtgc-store-insight-heading strong { font-size: .94rem; line-height: 1.55; font-weight: 800; }
.nbtgc-store-insight-heading small { font-size: .72rem; line-height: 1.55; font-weight: 500; color: var(--insight-muted); }
.nbtgc-store-insights > dl {
    display: grid;
    gap: 8px;
    padding-block: 2px 14px;
}
.nbtgc-store-insights > dl:empty { display: none; }
.nbtgc-store-insight-card {
    padding: 9px 11px;
    border: 1px solid var(--insight-line);
    border-radius: 13px;
    background: var(--insight-card);
    color: var(--insight-ink);
}
.nbtgc-store-insight-card dt { display: flex; align-items: center; gap: 8px; font-size: .83rem; }
.nbtgc-store-insight-card dd {
    margin: 2px 36px 0 0;
    color: var(--insight-muted);
    font-size: .79rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}
.nbtgc-store-insight-icon {
    display: grid;
    place-items: center;
    flex: none;
    inline-size: 28px;
    block-size: 28px;
    border-radius: 8px;
    background: var(--insight-icon-bg);
    color: var(--store-berry);
}
.nbtgc-store-insight-icon svg { inline-size: 16px; block-size: 16px; }
[data-theme="dark"] .nbtgc-store-insights {
    --insight-card: #2e222c;
    --insight-ink: #fbeaf3;
    --insight-muted: #e6c5d7;
    --insight-icon-bg: #503047;
    --insight-line: #654058;
}
@media (max-width: 420px) {
    .nbtgc-store-insights { padding-inline: 9px; }
    .nbtgc-store-insight-card { padding-inline: 8px; }
    .nbtgc-store-insight-card dd { margin-inline-start: 0; margin-block-start: 4px; }
}

.nbtgc-store-quiz-options .nbtgc-store-skin-test {
    background: #f5e8fc;
    border-color: #b98acb;
    color: #683080;
    font-weight: 750;
}
.nbtgc-store-quiz-options .nbtgc-store-skin-test:hover,
.nbtgc-store-quiz-options .nbtgc-store-skin-test:focus-visible { background: #eddbf7; }
[data-theme="dark"] .nbtgc-store-quiz-options .nbtgc-store-skin-test {
    background: #472950;
    border-color: #a477b4;
    color: #f6ddff;
}
.nbtgc-store-guide > a.nbtgc-store-guide-button { text-decoration: none; }
.nbtgc-store-guide > a.nbtgc-store-guide-button + p { margin-block-start: 6px; font-size: .8rem; }

.nbtgc-store-insight-card--unsuitable .nbtgc-store-insight-icon {
    color: #925017;
    background: #fff0de;
}
[data-theme="dark"] .nbtgc-store-insight-card--unsuitable .nbtgc-store-insight-icon {
    color: #ffd5a2;
    background: #573a28;
}

.nbtgc-store-insights > dl[hidden] { display: none; }
.nbtgc-store-insights-ready { font-size: .72rem; margin: 0 0 10px; color: var(--insight-muted); }
.nbtgc-store-insights[data-nbtgc-product][open]:has(.nbtgc-store-insights-status:not([hidden]) .nbtgc-store-skeleton) summary .nbtgc-store-robot {
    animation: nbtgc-store-hover 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .nbtgc-store-insights[data-nbtgc-product][open]:has(.nbtgc-store-insights-status:not([hidden]) .nbtgc-store-skeleton) summary .nbtgc-store-robot { animation: none; }
}

.nbtgc-store-search-correction {
    margin: 5px 8px 7px;
    padding: 6px 9px;
    border-radius: 9px;
    background: #fff0f6;
    color: #6f2f4e;
    font-size: .82rem;
}
.nbtgc-store-search-correction a { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .nbtgc-store-search-correction { background: #482638; color: #ffd2e8; }
