/* Sprint R-C ("search_page_v2"; R-C-SEARCH-PLAN.md, r9 mockups): the search page and its bar over
   the results. Loaded only on /search while the switch is on. Everything is scoped to .rc or
   body.tw-search-v2, so no other page changes. */

/* The page's own bar replaces the header; no chat button, floating cart or bottom nav here. */
body.tw-search-v2 .notice-ticker,
body.tw-search-v2 .site-header,
body.tw-search-v2 .oc-row,
body.tw-search-v2 .b5-trust,
body.tw-search-v2 .features-bar,
body.tw-search-v2 .mobile-bottom-nav,
body.tw-search-v2 .sbn,
body.tw-search-v2 .tw-fcart,
body.tw-search-v2 #gcc-widget,
body.tw-search-v2 #twpp,
body.tw-search-v2 #snx-popup {
    display: none !important;
}
/* White to the bottom of the screen, also when the page is shorter than it. */
html:has(body.tw-search-v2),
body.tw-search-v2 {
    background: #fff !important;
}
body.tw-search-v2 .rc:not(.rc-bar) {
    min-height: 100vh;
}
body.tw-search-v2.tw-bottom-nav {
    --tw-nav-h: 0px;
    padding-bottom: 0 !important;
}
/* No footer on the phone search page (as in the mockups). Two classes on body: tweaks.css shows the
   footer with body.tw-mobile-footer .site-footer and loads after this file. */
@media (max-width: 991px) {
    body.tw-search-v2.tw-search-page .site-footer,
    body.tw-search-v2.tw-search-page .footer-bottom {
        display: none !important;
    }
}

.rc {
    --rc-pink: #E0004A;
    --rc-pink-text: #CB1350;
    --rc-pink-soft: #FFF0F5;
    --rc-pink-line: #F9C9D8;
    --rc-ink: #17191E;
    --rc-ink-2: #3B3F4C;
    --rc-muted: #6B7080;
    --rc-faint: #9AA0AE;
    --rc-line: #EEF0F4;
    --rc-line-2: #E2E3EA;
    --rc-tile: #F6F6F8;
    color: var(--rc-ink);
    background: #fff;
    font-family: "Hind Siliguri", Inter, sans-serif;
}
.rc svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}
.rc button {
    font: inherit;
    cursor: pointer;
}
.rc [hidden] {
    display: none !important;
}

/* ---------- the bar ---------- */
.rc-top {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid var(--rc-line);
}
.rc-logo {
    display: none;
}
.rc-back {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--rc-ink);
    flex: none;
}
.rc-back svg {
    width: 24px;
    height: 24px;
}
.rc-field {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    height: 46px;
    margin: 0;
    padding: 0 5px 0 16px;
    border: 1.5px solid var(--rc-line-2);
    border-radius: 999px;
    background: #fff;
}
.rc-field:focus-within {
    border-color: var(--rc-pink);
    box-shadow: 0 0 0 4px #FFE3EC;
}
.rc-field input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--rc-ink);
    font-family: Inter, "Hind Siliguri", sans-serif;
    -webkit-appearance: none;
    appearance: none;
}
.rc-field input::placeholder {
    color: var(--rc-faint);
    font-weight: 400;
    font-family: "Hind Siliguri", Inter, sans-serif;
}
.rc-field input::-webkit-search-cancel-button {
    display: none;
}
.rc-fi {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--rc-muted);
    flex: none;
}
.rc-fi.rc-ai {
    color: var(--rc-pink);
}
.rc-fi.rc-ai[aria-pressed="true"] {
    background: var(--rc-pink);
    color: #fff;
}
.rc-go {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--rc-pink);
    color: #fff;
    flex: none;
}
.rc-go svg {
    width: 22px;
    height: 22px;
}
.rc :focus-visible {
    outline: 2px solid var(--rc-pink);
    outline-offset: 2px;
}

/* ---------- body and blocks ---------- */
.rc-body {
    padding: 4px 16px 32px;
}
.rc[data-mode="find"] [data-show="ai"],
.rc[data-mode="ai"] [data-show="find"],
.rc.is-typing [data-show],
.rc.is-flow [data-show] {
    display: none;
}
.rc-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 18px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #F0F1F5;
}
.rc-h h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--rc-pink);
}
.rc-h-act {
    border: 0;
    background: none;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--rc-muted);
}
.rc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.rc-chips.rc-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px 2px;
}
.rc-chips.rc-scroll::-webkit-scrollbar {
    display: none;
}
.rc-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--rc-line-2);
    border-radius: 999px;
    background: #fff;
    color: var(--rc-ink);
    font-size: 14.5px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
}
.rc-chip svg {
    width: 16px;
    height: 16px;
}
.rc-chip.is-soft {
    background: #F7F7FA;
    border-color: #F0F1F5;
}
.rc-chip.is-on {
    background: var(--rc-pink-soft);
    border-color: var(--rc-pink-line);
    color: var(--rc-pink-text);
    font-weight: 700;
}
.rc-brands {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px;
}
.rc-brands::-webkit-scrollbar {
    display: none;
}
.rc-brand {
    flex: none;
    width: 76px;
    text-align: center;
    text-decoration: none;
    color: var(--rc-ink-2);
}
.rc-brand-logo {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 6px;
    padding: 8px;
    overflow: hidden;
    border: 1px solid #ECECF2;
    border-radius: 50%;
    background: #FAFAFC;
}
.rc-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.rc-brand-logo b {
    font: 800 12px/1.1 Inter, sans-serif;
    color: var(--rc-ink);
    overflow-wrap: anywhere;
}
.rc-brand-name {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rc-cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 10px;
}
.rc-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    text-align: center;
    text-decoration: none;
    color: var(--rc-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}
.rc-cat-im {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 1px solid var(--rc-pink-line);
    border-radius: 18px;
    background: var(--rc-pink-soft);
}
.rc-cat-im img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rc-cat-name {
    max-width: 100%;
    overflow-wrap: anywhere;
}
.rc-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #F3F4F7;
    text-decoration: none;
    color: var(--rc-ink);
}
.rc-mini img {
    width: 56px;
    height: 56px;
    flex: none;
    border: 1px solid #EFEFF3;
    border-radius: 12px;
    background: var(--rc-tile);
    object-fit: contain;
}
.rc-mini-b {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.rc-mini-n {
    font: 500 14px/1.3 Inter, "Hind Siliguri", sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rc-mini-p {
    margin-top: 3px;
    font: 700 14px Inter, sans-serif;
    color: var(--rc-pink);
}
.rc-side .rc-mini:nth-of-type(n + 4) {
    display: none;
}

/* ---------- typing: suggestions are part of the page ---------- */
.rc-sug {
    padding: 4px 16px 20px;
    background: #fff;
}
.rc-bar {
    position: relative;
}
.rc-bar .rc-sug {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 29;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    border-bottom: 1px solid var(--rc-line);
    box-shadow: 0 18px 40px rgba(23, 25, 30, .12);
}
.rc-lab {
    margin: 16px 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--rc-muted);
}
.rc-sug-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 2px;
    border-bottom: 1px solid #F3F4F7;
    font-size: 15px;
    color: var(--rc-ink);
    text-decoration: none;
}
.rc-sug-row svg {
    width: 17px;
    height: 17px;
    color: var(--rc-faint);
}
.rc-sug-row small {
    color: var(--rc-muted);
}
.rc-sug-row .rc-up {
    margin-left: auto;
    color: #C2C6D0;
    transform: rotate(-45deg);
}
.rc-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    padding: 0 12px;
    border: 0;
    border-radius: 14px;
    background: var(--rc-pink-soft);
    color: var(--rc-pink-text);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
.rc-all svg {
    width: 17px;
    height: 17px;
}

/* ---------- AI mode ---------- */
.rc-mode {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 16px 0 10px;
}
.rc-mode h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
}
.rc-only-desk {
    display: none;
}
.rc-tog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 6px 0 14px;
    border: 0;
    border-radius: 999px;
    background: var(--rc-pink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex: none;
}
.rc-tog svg {
    width: 16px;
    height: 16px;
}
.rc-tog em {
    position: relative;
    width: 40px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .3);
}
.rc-tog em::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 19px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
}
.rc-ask {
    margin: 0;
    padding: 12px;
    border: 1.5px solid var(--rc-pink-line);
    border-radius: 18px;
    background: #FFF9FB;
}
.rc-ask-t {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: var(--rc-pink);
}
.rc-ask-t svg {
    margin-top: 4px;
}
.rc-ask textarea {
    flex: 1;
    min-width: 0;
    min-height: 50px;
    border: 0;
    outline: 0;
    resize: none;
    background: transparent;
    font: 400 16px/1.5 "Hind Siliguri", Inter, sans-serif;
    color: var(--rc-ink);
}
.rc-ask textarea::placeholder {
    color: var(--rc-faint);
}
.rc-ask-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.rc-ask-cam {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--rc-line-2);
    border-radius: 12px;
    background: #fff;
    color: var(--rc-muted);
    flex: none;
}
.rc-ask-hint {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--rc-muted);
}
.rc-ask-go {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: var(--rc-pink);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    flex: none;
}
.rc-ask-go svg {
    width: 17px;
    height: 17px;
}
.rc-try {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 8px;
    padding: 11px 14px;
    border: 1px solid var(--rc-line);
    border-radius: 14px;
    background: #fff;
    color: var(--rc-ink);
    font-size: 15px;
    text-align: left;
}
.rc-try svg {
    width: 17px;
    height: 17px;
    color: var(--rc-pink);
}
.rc-pop {
    display: flex;
    flex-wrap: wrap;
    font-size: 14.5px;
    line-height: 2;
}
.rc-pop a {
    color: var(--rc-ink-2);
    text-decoration: none;
}
.rc-pop a + a::before {
    content: "|";
    margin: 0 8px;
    color: #C2C6D0;
}

/* ---------- the questions and the picks ---------- */
.rc-me {
    display: flex;
    justify-content: flex-end;
    margin: 14px 0 10px;
}
.rc-me span {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px 18px 4px 18px;
    background: var(--rc-ink);
    color: #fff;
    font-size: 15px;
    overflow-wrap: anywhere;
}
.rc-known {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 12px;
}
.rc-known span,
.rc-known button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 0 11px;
    border: 0;
    border-radius: 999px;
    background: #EAF8EF;
    color: #15703A;
    font-size: 13.5px;
    font-weight: 700;
}
.rc-known button {
    background: var(--rc-pink-soft);
    color: var(--rc-pink-text);
}
.rc-known svg {
    width: 15px;
    height: 15px;
}
.rc-q {
    margin-bottom: 10px;
    padding: 14px;
    border: 1px solid var(--rc-pink-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(224, 0, 74, .08);
}
.rc-q-k {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--rc-muted);
}
.rc-steps {
    display: flex;
    gap: 5px;
}
.rc-steps i {
    width: 22px;
    height: 5px;
    border-radius: 3px;
    background: #ECECF2;
}
.rc-steps i.is-done {
    background: var(--rc-pink);
}
.rc-q h3 {
    margin: 6px 0 10px;
    font-size: 18px;
    font-weight: 700;
}
.rc-qa {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.rc-qa button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
}
.rc-skip {
    border: 1px solid var(--rc-line-2);
    background: #fff;
    color: var(--rc-muted);
}
.rc-now {
    border: 0;
    background: var(--rc-pink-soft);
    color: var(--rc-pink-text);
}
.rc-res-h {
    margin: 6px 0 10px;
    font-size: 19px;
    font-weight: 700;
}
.rc-picks {
    display: grid;
    gap: 10px;
}
.rc-pick {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--rc-line);
    border-radius: 18px;
    background: #fff;
}
.rc-picks:not(.is-open) .rc-pick:nth-child(n + 4) {
    display: none;
}
.rc-rank {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--rc-ink);
    color: #fff;
    font: 700 12.5px Inter, sans-serif;
}
.rc-pick-im {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    flex: none;
    overflow: hidden;
    border-radius: 14px;
    background: var(--rc-tile);
}
.rc-pick-im img {
    width: 88%;
    height: 88%;
    object-fit: contain;
}
.rc-pick-b {
    flex: 1;
    min-width: 0;
    padding-right: 26px;
}
.rc-br {
    font: 800 11px Inter, sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--rc-pink);
}
.rc-n {
    display: block;
    margin: 3px 0 4px;
    font: 600 14.5px/1.3 Inter, "Hind Siliguri", sans-serif;
    color: var(--rc-ink);
    text-decoration: none;
}
.rc-p {
    font: 800 16px Inter, sans-serif;
    color: var(--rc-ink);
}
.rc-why {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #FFF7FA;
    color: var(--rc-ink-2);
    font-size: 14px;
    line-height: 1.45;
}
.rc-why svg {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--rc-pink);
}
.rc-mt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
}
.rc-mt b {
    margin-right: 2px;
    font-size: 13px;
    color: var(--rc-muted);
}
.rc-mt span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #F3F4F7;
    font-size: 13px;
    font-weight: 600;
}
.rc-pick .product-actions {
    justify-content: flex-start;
    gap: 6px;
    margin-top: 10px;
}
.rc-pick .product-actions .btn-order {
    flex: 0 0 auto;
    padding: 9px 16px;
    border-radius: 10px;
    font-family: "Hind Siliguri", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
}
.rc-pick .product-actions .btn-cart {
    width: 38px;
    height: 38px;
    border-color: var(--rc-pink-line);
    border-radius: 10px;
    background: var(--rc-pink-soft);
}
.rc-foot {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--rc-muted);
}
.rc-none,
.rc-wait,
.rc-err {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #F7F7FA;
    color: var(--rc-ink-2);
    font-size: 14.5px;
    line-height: 1.5;
}

/* ---------- picture search: only "coming soon" ---------- */
/* At the bottom of the screen, above the phone's safe area; taps go through it (tw-rc-search.js
   hides it on the next tap, the next search, or after 2.5 s). */
.rc-toast {
    position: fixed;
    left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1100;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100vw - 32px);
    padding: 11px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--rc-line-2);
    color: var(--rc-ink);
    font-size: 14.5px;
    font-weight: 600;
    transform: translateX(-50%);
    box-shadow: 0 6px 16px rgba(27, 20, 32, .08);
}
.rc-toast svg {
    width: 16px;
    height: 16px;
    color: var(--rc-pink);
}

/* ---------- results: the listing's floating filter/sort pill, light like the rest of the page ---------- */
/* R-C2 item 6: on the search pages it was the one black box (tw-listing.css #1e2939). */
body.tw-search-v2 .twl-float {
    background: #fff;
    border: 1px solid var(--rc-line-2);
    box-shadow: 0 6px 16px rgba(27, 20, 32, .08);
}
body.tw-search-v2 .twl-float button {
    color: var(--rc-ink);
}
body.tw-search-v2 .twl-float button svg,
body.tw-search-v2 .twl-float button i {
    color: var(--rc-pink);
}
body.tw-search-v2 .twl-float-sep {
    background: var(--rc-line-2);
}

/* ---------- computer ---------- */
@media (min-width: 992px) {
    .rc-top {
        gap: 14px;
        padding: 14px max(24px, calc((100% - 1180px) / 2));
    }
    .rc-logo {
        display: flex;
        margin-right: 10px;
    }
    .rc-logo img {
        width: auto;
        height: 34px;
    }
    .rc-field {
        max-width: 760px;
        height: 52px;
    }
    .rc-go {
        width: 52px;
        height: 52px;
    }
    .rc-body {
        max-width: 1180px;
        margin: 0 auto;
        padding: 6px 24px 48px;
    }
    .rc-find {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 36px;
    }
    .rc[data-mode="ai"] .rc-find,
    .rc.is-typing .rc-find,
    .rc.is-flow .rc-find {
        display: none;
    }
    .rc-brands {
        flex-wrap: wrap;
        overflow: visible;
        margin: 0;
        padding: 0;
    }
    .rc-cats {
        grid-template-columns: repeat(8, 1fr);
    }
    .rc-side .rc-mini:nth-of-type(n + 4) {
        display: flex;
    }
    .rc-flow {
        max-width: 980px;
        margin: 0 auto;
    }
    .rc-aiw {
        max-width: 780px;
        margin: 0 auto;
    }
    .rc-only-mob {
        display: none;
    }
    .rc-only-desk {
        display: inline;
    }
    .rc-chips.rc-scroll {
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
    }
    .rc-tries {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 10px;
    }
    .rc-picks {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .rc-picks:not(.is-open) .rc-pick:nth-child(4) {
        display: flex;
    }
    .rc-picks:not(.is-open) .rc-pick:nth-child(n + 5) {
        display: none;
    }
    .rc-sug {
        max-width: 1180px;
        margin: 0 auto;
        padding: 4px 24px 24px;
    }
    .rc-sug-cols {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .rc-bar .rc-sug {
        left: 50%;
        right: auto;
        width: min(860px, calc(100vw - 48px));
        transform: translateX(-50%);
        border: 1px solid var(--rc-line);
        border-radius: 0 0 20px 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .rc-chip,
    .rc-try,
    .rc-all,
    .rc-go,
    .rc-ask-go {
        transition: background-color .15s ease, border-color .15s ease, color .15s ease;
    }
}

/* =====================================================================================
   R-C2 (design-review/r-c2, approved 2026-10-15; STYLE-GUIDE.md). Light purple only inside
   AI mode, everything else brand pink. Motion: transform and opacity, nothing when the phone
   asks for reduced motion.
   ===================================================================================== */
.rc {
    --rc-ai: #7C3AED;
    --rc-ai-mid: #A78BFA;
    --rc-ai-light: #C4B5FD;
    --rc-ai-soft: #F3EEFF;
    --rc-ok: #1F8A5B;
    --rc-ease: cubic-bezier(.2, .8, .2, 1);
}

/* the bar: one soft ring on the wrapper, no inner focus box */
.rc-field {
    position: relative;
    isolation: isolate;
    border: 1px solid var(--rc-line-2);
    background: var(--rc-tile);
}
.rc-field:focus-within {
    border-color: var(--rc-pink-line);
    background: #fff;
    box-shadow: none;
}
.rc-field input:focus {
    outline: none;
    box-shadow: none;
}
/* The site's own field and focus styles (style.css, the focus-ring switch) reach this input in
   the header's sheet too, where the body is not the search page's: the bar keeps its one ring. */
.rc .rc-field input,
.rc .rc-field input:focus,
.rc .rc-field input:focus-visible {
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}
.rc-tag {
    flex: none;
    margin-right: 8px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    white-space: nowrap;
}
.rc-tag-ai {
    display: none;
    color: var(--rc-ai);
    background: var(--rc-ai-soft);
}
.rc-tag-listen {
    color: var(--rc-pink);
    background: var(--rc-pink-soft);
}

/* ✨: a slow ring pulses from it (find mode); the first-visit tip points at it */
.rc-fi.rc-ai {
    position: relative;
}
.rc-fi.rc-ai::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1.5px solid var(--rc-pink);
    opacity: 0;
    pointer-events: none;
}
.rc-tip {
    position: absolute;
    z-index: 31;
    right: 12px;
    top: calc(100% + 6px);
    width: 232px;
    padding: 12px 14px;
    border: 1px solid var(--rc-line-2);
    border-radius: 14px;
    background: #fff;
    color: var(--rc-ink-2);
    font-size: 14px;
    line-height: 1.45;
    box-shadow: 0 6px 16px rgba(27, 20, 32, .08);
}
.rc-tip b {
    display: block;
    color: var(--rc-ink);
    font-size: 15px;
}
.rc-tip-x {
    display: block;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--rc-pink);
    font-weight: 700;
    font-size: 13.5px;
}

/* AI mode: the same bar, a slow turning light-purple ring (transform only), "AI সার্চ" */
.rc[data-mode="ai"] .rc-field {
    border-color: transparent;
    background: #fff;
    overflow: hidden;
}
.rc[data-mode="ai"] .rc-field::before {
    content: "";
    position: absolute;
    z-index: -2;
    left: 50%;
    top: 50%;
    width: 140%;
    aspect-ratio: 1;
    background: conic-gradient(var(--rc-ai-light), var(--rc-ai-soft), var(--rc-ai-mid), var(--rc-ai-soft), var(--rc-ai-light));
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.rc[data-mode="ai"] .rc-field::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 2px;
    border-radius: inherit;
    background: #fff;
    pointer-events: none;
}
.rc[data-mode="ai"] .rc-tag-ai {
    display: inline-block;
}
.rc[data-mode="ai"] .rc-fi.rc-ai,
.rc-fi.rc-ai[aria-pressed="true"] {
    background: var(--rc-ai-mid);
    color: #fff;
}
.rc[data-mode="ai"] .rc-fi.rc-ai::before {
    display: none;
}
.rc.is-listening .rc-tag-ai {
    display: none;
}

/* voice: the mic fills pink and rings while listening */
.rc-fi.rc-mic {
    position: relative;
}
.rc.is-listening .rc-fi.rc-mic {
    background: var(--rc-pink);
    color: #fff;
}
.rc.is-listening .rc-fi.rc-mic::before,
.rc.is-listening .rc-fi.rc-mic::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid var(--rc-pink);
    opacity: 0;
    pointer-events: none;
}
.rc.is-listening .rc-field {
    border-color: var(--rc-pink-line);
    background: #fff;
}
.rc-voice-err {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 12px 0;
    padding: 12px 12px 12px 14px;
    border: 1px solid var(--rc-pink-line);
    border-radius: 14px;
    background: #fff;
    color: var(--rc-ink-2);
    font-size: 14px;
    line-height: 1.5;
}
.rc-voice-err > svg {
    color: var(--rc-pink);
    margin-top: 2px;
}
.rc-voice-err-t {
    flex: 1;
}
.rc-voice-err-x {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--rc-muted);
}
.rc-voice-err-x svg {
    width: 16px;
    height: 16px;
}

/* before typing: three parts */
.rc-concerns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.rc-cn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 4px;
    border: 0;
    border-radius: 14px;
    background: var(--rc-tile);
    color: var(--rc-ink);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}
.rc-cn i {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--rc-line);
    border-radius: 50%;
    background: #fff;
    color: var(--rc-pink);
}
.rc-trend {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.rc-trend::-webkit-scrollbar {
    display: none;
}
.rc-trend .rc-chip {
    flex: none;
}
.rc-trend .rc-chip b {
    margin-right: 6px;
    color: var(--rc-pink);
    font: 700 12px Inter, sans-serif;
}

/* AI mode, before asking */
.rc-hello {
    margin: 18px 0 6px;
}
.rc-hello h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
}
.rc-hello em {
    font-style: normal;
    color: var(--rc-ai);
}
.rc-hello p {
    margin: 4px 0 0;
    color: var(--rc-ink-2);
    font-size: 14.5px;
}
.rc-aiw .rc-cn i {
    color: var(--rc-ai);
}

/* thinking */
.rc-think {
    margin-top: 16px;
}
.rc-think-h {
    margin-bottom: 10px;
}
.rc-ai-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--rc-ai-soft);
    color: var(--rc-ai);
    font-size: 12.5px;
    font-weight: 700;
}
.rc-res-h .rc-ai-badge {
    margin-right: 8px;
    vertical-align: 2px;
}
.rc-think-steps {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
.rc-think-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    color: var(--rc-faint);
    font-size: 15px;
    opacity: .5;
    transition: opacity .2s ease;
}
.rc-think-steps li.is-now {
    opacity: 1;
    color: var(--rc-ink);
    font-weight: 600;
}
.rc-think-steps li.is-done {
    opacity: 1;
    color: var(--rc-ink-2);
}
.rc-dot {
    width: 18px;
    height: 18px;
    flex: none;
    border: 2px solid var(--rc-line-2);
    border-radius: 50%;
}
.rc-think-steps li.is-now .rc-dot {
    border-color: var(--rc-ai-mid);
    border-top-color: transparent;
}
.rc-think-steps li.is-done .rc-dot {
    border-color: var(--rc-ok);
    background: var(--rc-ok);
}
.rc-skel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.rc-sk {
    padding: 10px;
    border: 1px solid var(--rc-line);
    border-radius: 14px;
}
.rc-sk i {
    display: block;
    border-radius: 10px;
    background: var(--rc-tile);
}
.rc-sk i.im {
    aspect-ratio: 1;
    margin-bottom: 10px;
}
.rc-sk i.l1 {
    height: 12px;
    margin-bottom: 7px;
}
.rc-sk i.l2 {
    width: 70%;
    height: 12px;
}

/* picks: the tick line in both answers; refine chips; the understood words are AI chips */
.rc-why-fit {
    color: var(--rc-ink-2);
}
.rc-refine {
    margin-top: 20px;
    padding: 16px;
    border-radius: 14px;
    background: var(--rc-tile);
}
.rc-refine p {
    margin: 0 0 10px;
    font-weight: 700;
    font-size: 15px;
}
.rc-known button {
    background: var(--rc-ai-soft);
    color: var(--rc-ai);
}

@media (min-width: 992px) {
    .rc-find {
        display: block;
        max-width: 760px;
    }
    .rc-concerns {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
    .rc-skel {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .rc-hello h1 {
        font-size: 28px;
    }
}

@keyframes rc-pulse {
    0%, 100% { transform: scale(.7); opacity: 0; }
    40% { opacity: 1; }
    70% { transform: scale(1.3); opacity: 0; }
}
@keyframes rc-ring {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes rc-listen {
    0% { transform: scale(1); opacity: .7; }
    100% { transform: scale(1.7); opacity: 0; }
}
@keyframes rc-turn {
    to { transform: rotate(360deg); }
}
@keyframes rc-shim {
    0%, 100% { opacity: 1; }
    50% { opacity: .55; }
}
@keyframes rc-in {
    from { opacity: 0; transform: translateY(-6px); }
}
@media (prefers-reduced-motion: no-preference) {
    .rc[data-mode="find"] .rc-fi.rc-ai::before {
        animation: rc-pulse 2.4s var(--rc-ease) infinite;
    }
    .rc[data-mode="ai"] .rc-field::before {
        animation: rc-ring 8s linear infinite;
    }
    .rc.is-listening .rc-fi.rc-mic::before {
        animation: rc-listen 1.6s var(--rc-ease) infinite;
    }
    .rc.is-listening .rc-fi.rc-mic::after {
        animation: rc-listen 1.6s var(--rc-ease) .8s infinite;
    }
    .rc-think-steps li.is-now .rc-dot {
        animation: rc-turn .8s linear infinite;
    }
    .rc-sk i {
        animation: rc-shim 1.4s ease-in-out infinite;
    }
    .rc-tip,
    .rc-voice-err {
        animation: rc-in .2s var(--rc-ease) both;
    }
    .rc-cn,
    .rc-fi,
    .rc-go {
        transition: transform .15s var(--rc-ease);
    }
    .rc-cn:active {
        transform: scale(.96);
    }
    .rc-fi:active,
    .rc-go:active {
        transform: scale(.92);
    }
}
@media (prefers-reduced-motion: reduce) {
    .rc *,
    .rc *::before,
    .rc *::after {
        animation: none !important;
        transition: none !important;
    }
}
