.rk-screen[data-screen=search]>.app-header{display:none}
.rk-screen[data-screen=search]>.app-scroll{background:#fff;padding-top:calc(var(--rk-inset-top,0px) + 8px);padding-inline:0}
.rk-screen[data-screen=search]>.app-scroll>.page-heading{display:none}
.rk-smart-page{padding:0 20px 20px;color:var(--rk-ink,#242c30);font-family:var(--rk-font-ui)}
.rk-smart-heading{padding:8px 0 8px;display:flex;align-items:center;justify-content:space-between;gap:12px}.rk-smart-heading>span{font-size:11px;letter-spacing:1.4px;font-weight:600;color:var(--rk-muted,#697173)}
.rk-smart-heading h1{font-size:clamp(22px,5.7vw,25px);line-height:31px;font-weight:600;letter-spacing:-.65px;margin:0;white-space:nowrap}

.rk-smart-starters{display:flex;gap:8px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -20px 22px;padding:0 20px;scroll-padding-inline:20px}.rk-smart-starters button{display:flex;flex:none;align-items:center;justify-content:center;gap:6px;border:4px solid transparent;border-inline:0;border-radius:24px;background:#252d30;background-clip:padding-box;color:#fff;padding:8px 16px;min-height:44px;font-size:14px;line-height:20px;white-space:nowrap}

.rk-smart-privacy{font-size:12px;line-height:17px;color:#747b7d;margin:0 0 26px;max-width:330px}
.rk-smart-page h2{font-size:20px;line-height:26px;letter-spacing:-.4px;font-weight:600;margin:0 0 14px}
.rk-smart-sections{margin-top:30px}.rk-smart-sections>button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;border:0;border-bottom:1px solid #eceeed;background:transparent;min-height:55px;padding:12px 0;font-size:16px;line-height:22px;color:inherit}
.rk-smart-sections svg{flex-shrink:0}.rk-smart-notice{display:flex;align-items:flex-start;gap:12px;background:#f3f4f2;border-radius:16px;padding:16px;margin:0 0 20px;font-size:15px;line-height:22px}.rk-smart-notice p{margin:0}.rk-smart-notice svg{flex-shrink:0}.rk-smart-notice[role=alert]{background:#fff0ed;color:#813b2e}
.rk-smart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin-inline:-20px;border-top:1px solid #e8e6e2}.rk-smart-grid article{min-width:0}.rk-smart-results-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.rk-smart-results-title>span{font-size:14px;color:#747b7d}
.rk-smart-compare{font:inherit;font-size:13px;min-height:44px;padding:8px 0;color:#697173;background:none;border:0}.rk-smart-compare[aria-pressed=true]{color:var(--rk-ink);text-decoration:underline}
.rk-smart-status{font-size:14px;color:#697173}.rk-smart-clarify{margin-bottom:24px}.rk-smart-clarify p{font-size:15px;line-height:22px;color:#697173}.rk-smart-clarify button,.rk-smart-more{background:#252d30;color:white;border:0;border-radius:24px;padding:13px 18px;font-size:14px;min-height:44px}.rk-smart-more{margin:24px 0}
.rk-smart-comparison{margin:8px 0 24px;min-width:0}
.rk-smart-comparison-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.rk-smart-page .rk-smart-comparison-heading h2{margin:0}
.rk-smart-comparison-close{flex:0 0 44px;width:44px;height:44px;padding:0;display:grid;place-items:center;color:inherit;background:#edf0ec;border:0;border-radius:50%}
.rk-smart-comparison-scroll{overflow-x:auto;overscroll-behavior-x:contain;margin-inline:-20px;padding-inline:20px;scroll-padding-inline:20px}
.rk-smart-comparison table{border-collapse:collapse;font-size:13px;line-height:18px;width:max-content;min-width:100%}
.rk-smart-comparison td,.rk-smart-comparison th{width:140px;min-width:140px;max-width:140px;overflow-wrap:anywhere;padding:12px 10px;text-align:left;vertical-align:top;border-bottom:1px solid #e7e9e7}
.rk-smart-comparison th{font-weight:600}
.rk-smart-comparison tr>:first-child{width:110px;min-width:110px;max-width:110px;padding-left:0}
.rk-smart-page:has(.rk-smart-comparison) .rk-smart-summary{margin-bottom:8px}
html:has(.rk-screen[data-screen=search]),.rk-screen[data-screen=search]>.app-scroll{overflow-anchor:none}

.rk-smart-bar .rk-store-search{gap:0}.rk-smart-bar button{flex-shrink:0;min-width:30px;min-height:44px}.rk-smart-bar input{min-width:0;width:100%}

.rk-smart-facets>p{font-size:14px;line-height:20px;color:#697173;margin:0 0 12px}
.rk-smart-facets .rk-smart-starters button{background-color:#edf0ec;color:#343c37}
.rk-smart-facets .rk-smart-starters button[aria-pressed=true]{background-color:#252d30;color:#fff}
.rk-smart-basis{font-size:14px;line-height:20px;color:#697173;margin:0 0 20px}
.rk-smart-grid>article{display:flex;flex-direction:column;padding:16px 12px 8px;border-bottom:1px solid #e8e6e2}.rk-smart-grid>article:nth-child(odd){border-right:1px solid #e8e6e2}
.rk-smart-grid .rk-merch-card{flex:1;border:0;padding:0;background:transparent;box-shadow:none;border-radius:0}
.rk-smart-grid .rk-merch-title{line-height:21px;height:84px;min-height:84px;-webkit-line-clamp:4}
.rk-smart-grid .rk-merch-actions{margin-top:auto}
/* The same dock widens only while a nonempty search is being edited. */
html[data-nav-preview] .app-bottom:has(>.rk-smart-bar){transition:gap .28s ease}
html[data-nav-preview] .app-bottom:has(>.rk-smart-bar)>.bottom-nav{transition:flex-basis .28s cubic-bezier(.22,.8,.24,1),padding .28s ease,opacity .2s ease,transform .28s ease,visibility .28s;min-width:0}
html[data-nav-preview] .app-bottom:has(>.rk-smart-bar[data-expanded=true]){gap:0}
html[data-nav-preview] .app-bottom:has(>.rk-smart-bar[data-expanded=true])>.bottom-nav{flex-basis:0;padding-inline:0;border-width:0;opacity:0;visibility:hidden;pointer-events:none;overflow:hidden;transform:translateX(-16px)}
html[data-nav-preview] .app-bottom .rk-smart-send{flex:0 0 44px;width:44px;height:44px;min-height:44px;border:0;border-radius:50%;display:grid;place-items:center;background:#252d30;color:#fff}
html[data-nav-preview] .app-bottom .rk-smart-send:disabled{opacity:.45}
@media(prefers-reduced-motion:reduce){html[data-nav-preview] .app-bottom:has(>.rk-smart-bar),html[data-nav-preview] .app-bottom:has(>.rk-smart-bar)>.bottom-nav{transition:none}}

.rk-smart-back{flex:0 0 44px;width:44px;height:44px;min-height:44px;border:0;border-radius:50%;display:grid;place-items:center;background:#252d30;color:#fff;padding:0;box-shadow:none;-webkit-tap-highlight-color:transparent}
.rk-smart-back:focus-visible{outline:2px solid #697173;outline-offset:3px}
.rk-smart-question{margin:0 0 24px}.rk-smart-question .rk-smart-starters{margin-bottom:0}
.rk-smart-question button:disabled{opacity:.5}
.rk-smart-conditions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 20px;font-size:14px;line-height:20px;color:#697173}
.rk-smart-conditions>span{padding:8px 12px;background:#edf0ec;border-radius:16px}
.rk-smart-conditions>button{font:inherit;color:inherit;background:none;border:0;min-height:44px;padding:8px 0;text-decoration:underline}

[data-ds-id=smart-search-calculation] .rk-smart-starters button[aria-pressed=false]{background-color:#edf0ec;color:#343c37}
.rk-smart-calculation-result{display:block}.rk-smart-calculation-result p{margin-top:8px}

.rk-smart-calculation-result table{border-collapse:collapse;width:100%;font-size:14px;line-height:20px}
.rk-smart-calculation-result caption{text-align:left;font-size:16px;font-weight:600;margin-bottom:8px}
.rk-smart-calculation-result th,.rk-smart-calculation-result td{padding:8px 0;vertical-align:top}
.rk-smart-calculation-result th{text-align:left;font-weight:400;color:#697173}
.rk-smart-calculation-result td{text-align:right;font-weight:500}
.rk-smart-calculation-result tr:last-child{border-top:1px solid #e7e9e7}
.rk-smart-calculation-result tr:last-child td{font-weight:600}

.rk-smart-summary{margin:0 0 24px}
.rk-smart-summary .rk-smart-conditions{margin-bottom:8px}

.rk-smart-comparison,[data-ds-id=smart-search-calculation]{scroll-margin-top:calc(var(--rk-inset-top,0px) + 12px)}

.rk-smart-question:has(+.rk-smart-comparison){margin-bottom:8px}
.rk-smart-grid:has(>article:last-child:nth-child(odd))::after{content:"";border-bottom:1px solid #e8e6e2}

.rk-smart-summary>.rk-smart-status{margin:0 0 24px}
.rk-smart-summary>.rk-smart-starters{margin-bottom:0}
.rk-smart-summary>.rk-smart-starters button{border:0;border-radius:16px;padding:8px 12px;min-height:36px;line-height:20px}
.rk-smart-calculate-entry{margin:0 0 24px}
.rk-smart-calculate-entry>.rk-smart-more{margin:0}

/* Shared mobile controls: one geometry for task chips and all calculators. */
.rk-smart-page{--smart-control-radius:16px}
.rk-smart-page .rk-smart-starters button{border-radius:var(--smart-control-radius)}
[data-ds-id=smart-search-calculation] .ct-field,[data-ds-id=smart-search-area] .ct-field{display:flex;flex-direction:column;gap:8px;margin:0 0 20px}
[data-ds-id=smart-search-calculation] .ct-field>span,[data-ds-id=smart-search-area] .ct-field>span,.rk-smart-choice legend{font-size:14px;line-height:20px;font-weight:500;color:var(--rk-ink,#242c30)}
[data-ds-id=smart-search-calculation] .ct-field input,[data-ds-id=smart-search-area] .ct-field input{box-sizing:border-box;width:100%;min-width:0;min-height:48px;border:1px solid #e7e9e7;border-radius:var(--smart-control-radius);background:#f3f4f2;padding:12px 14px;font:inherit;font-size:16px;line-height:22px;color:inherit;box-shadow:none}
[data-ds-id=smart-search-calculation]>.rk-smart-status{font-size:14px;line-height:20px;margin:0 0 24px}
[data-ds-id=smart-search-calculation] .rk-smart-starters{margin:0 0 20px;padding:0;gap:8px;flex-wrap:wrap;overflow:visible}
[data-ds-id=smart-search-calculation] .rk-smart-starters button{border:0;min-height:44px;font-size:14px;padding:10px 12px}
[data-ds-id=smart-search-calculation] .rk-smart-more{border-radius:var(--smart-control-radius);width:100%;margin:8px 0 20px;font-size:16px;min-height:48px}
.rk-smart-choice{border:0;padding:0;margin:0 0 20px;min-width:0}
.rk-smart-choice legend{padding:0;margin:0 0 8px}
.rk-smart-choice details{border:1px solid #e7e9e7;border-radius:var(--smart-control-radius);background:#f3f4f2}
.rk-smart-choice summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;min-height:48px;box-sizing:border-box;cursor:pointer;font-size:16px;line-height:22px;overflow-wrap:anywhere}
.rk-smart-choice summary::-webkit-details-marker{display:none}
.rk-smart-choice summary svg{flex-shrink:0;transform:rotate(90deg)}
.rk-smart-choice details[open] summary{border-bottom:1px solid #e7e9e7}
.rk-smart-choice-options{padding:4px 8px}
.rk-smart-choice-options label{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 6px;box-sizing:border-box;font-size:15px;line-height:21px;cursor:pointer}
.rk-smart-choice-options input{appearance:auto;flex:0 0 18px;width:18px;height:18px;margin:0;accent-color:#252d30}
.rk-smart-choice-options label:has(input:checked){font-weight:600}
.rk-smart-choice-single{margin:0;font-size:16px;line-height:22px;padding:12px 14px;background:#f3f4f2;border-radius:var(--smart-control-radius)}
.rk-smart-choice summary:focus-visible,.rk-smart-choice input:focus-visible,[data-ds-id=smart-search-calculation] input:focus-visible{outline:2px solid #697173;outline-offset:2px}

[data-ds-id=smart-search-calculation] .rk-smart-reserve .rk-smart-starters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0}

/* Search uses the existing offer surface, preserving gallery and purchase controls. */
.rk-smart-products{padding:var(--rk-section-title-top) 0 18px;margin:24px -20px}
.rk-smart-products>.rk-smart-results-title{margin:0 var(--rk-section-title-inset) var(--rk-section-title-gap)}
.rk-smart-products>.rk-smart-results-title h2{margin:0}
.rk-smart-products>.rk-smart-grid{margin:0;padding:0 12px;gap:10px;border:0}
.rk-smart-products .rk-smart-grid>article{background:#fff;border:0;border-radius:10px;padding:10px;overflow:hidden}
.rk-smart-products .rk-smart-grid>article:nth-child(odd){border:0}
.rk-smart-products .rk-merch-photos img{height:100%;margin:0;border-radius:0}
.rk-smart-products>.rk-smart-more{display:block;margin:18px auto 0}
.rk-smart-products .rk-merch-title{background:none;border-radius:0;margin:8px 0;font-weight:500;order:2}
.rk-smart-products .rk-merch-price{order:1;margin:12px 0 0;min-height:0}
.rk-smart-products .rk-merch-actions{order:3}
.rk-smart-products article>.rk-smart-compare{margin-top:0;background:none;border-radius:0;font-weight:400}
.rk-smart-products .rk-purchase-add{box-shadow:none}

/* One dock reserve in the app scroller; no second blank footer inside search. */
.rk-smart-page{padding-bottom:0}
.rk-smart-page>:last-child{margin-bottom:0}
/* Literal results start immediately below the header's existing 8px inset. */
.rk-smart-heading+.rk-smart-products{margin-top:0}

/* Smaller back affordance; transparent hit area stays at least 44px. */
:is(.rk-smart-back,.rh-viewed-header button){position:relative;transform:scale(.85);transform-origin:center}
:is(.rk-smart-back,.rh-viewed-header button)::after{content:'';position:absolute;inset:-4px;border-radius:50%;background:transparent}

.rk-screen[data-screen=search]>.app-scroll{padding-top:max(0px,calc(var(--rk-inset-top,0px) - 18px))}
.rk-smart-heading{position:sticky;top:max(0px,calc(var(--rk-inset-top,0px) - 18px));z-index:5;background:#fff;margin-inline:-20px;padding-inline:20px;border-bottom:1px solid #e8e6e2;isolation:isolate}
.rk-smart-heading:before{content:'';position:absolute;inset-inline:0;bottom:100%;height:var(--rk-inset-top,0px);background:#fff;pointer-events:none}
.rk-smart-primary{background:#fff}
.rk-smart-primary>.rk-smart-grid{padding:0;gap:0;border-top:0}
.rk-smart-primary .rk-smart-grid>article{border-radius:0;padding:12px 12px 8px;border-bottom:1px solid #e8e6e2}
.rk-smart-primary .rk-smart-grid>article:nth-child(odd){border-right:1px solid #e8e6e2;border-bottom:1px solid #e8e6e2}
.rk-smart-primary{padding:16px 0 18px}
.rk-smart-primary>.rk-smart-results-title{margin:0 16px 12px}
/* A nested keyboard scroller already offsets its sticky children by its padding. */
.rk-keyboard .rk-smart-heading{top:0}
