/* Comparison toolbar presentation. Filtering and financial calculations are unchanged. */
.rb-legacy-filter-intro-hidden { display: none !important; }
.rb-cc-filter-wrapper--clean {
    --rb-filter-ink: #18364d;
    --rb-filter-muted: #607381;
    --rb-filter-line: #d6e1e7;
    position: relative !important;
    top: auto !important;
    isolation: isolate;
    margin-top: 0;
    padding: 24px 0;
    color: var(--rb-filter-ink);
    font-family: var(--bs-body-font-family, system-ui, sans-serif);
}
/* A full-width paint layer keeps the original container and page width intact. */
.rb-cc-filter-wrapper--clean::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #f5f8fa;
    box-shadow: 0 0 0 100vmax #f5f8fa;
    clip-path: inset(0 -100vmax);
    pointer-events: none;
}
.rb-cc-filter-wrapper--clean *,
.rb-cc-filter-wrapper--clean *::before,
.rb-cc-filter-wrapper--clean *::after { box-sizing: border-box; }
.rb-cc-filter-wrapper--clean .rb-cc-filter-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 0 0 18px;
}
.rb-cc-filter-wrapper--clean .rb-cc-filter-intro-main,
.rb-cc-filter-wrapper--clean .rb-cc-filter-copy { flex: 1 1 auto; min-width: 0; }
.rb-cc-filter-wrapper--clean .rb-cc-filter-copy > h2 {
    margin: 0;
    color: var(--rb-filter-ink);
    font-family: inherit;
    font-size: clamp(21px, 2vw, 27px);
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}
.rb-cc-filter-wrapper--clean .rb-cc-comparison-updated {
    margin: 5px 0 0;
    color: var(--rb-filter-muted);
    font-size: 12px;
    font-weight: 450;
    line-height: 1.5;
}
.rb-cc-filter-wrapper--clean .rb-cc-filter-status { flex: 0 0 auto; padding-top: 3px; }
.rb-cc-filter-wrapper--clean .rb-cc-status-pill {
    display: none;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 550;
    line-height: 1.4;
    white-space: nowrap;
}
.rb-cc-filter-wrapper--clean .rb-cc-status-pill-active {
    display: inline-flex;
    background: #e7f2ec;
    color: #216146;
}
.rb-cc-filter-wrapper--clean #calculator-bar.rb-cc-filter-bar {
    position: relative !important;
    top: auto !important;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
    overflow: visible;
}
.rb-cc-filter-wrapper--clean #calculator-bar::before { content: none; }
.rb-cc-filter-wrapper--clean #calcForm { position: relative; margin: 0; }
.rb-cc-filter-wrapper--clean #calcForm > .row {
    display: grid;
    grid-template-columns: minmax(160px, .8fr) minmax(220px, 1.1fr) minmax(360px, 1.7fr);
    align-items: end;
    gap: 16px;
    margin: 0;
}
.rb-cc-filter-wrapper--clean #calcForm > .row > div {
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
}
.rb-cc-filter-wrapper--clean .rb-cc-filter-label {
    display: block;
    margin: 0 0 7px;
    color: #486272;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.3;
}
.rb-cc-filter-wrapper--clean .rb-cc-input-group {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}
.rb-cc-filter-wrapper--clean #calculator-bar .rb-cc-input-group .input-group-text {
    display: flex;
    align-items: center;
    min-height: 44px !important;
    height: 44px !important;
    margin: 0;
    padding: 0 4px 0 12px;
    border: 1px solid var(--rb-filter-line);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #fff !important;
    color: #6d8290;
    font-size: 16px !important;
    font-weight: 450;
}
.rb-cc-filter-wrapper--clean #calculator-bar .rb-cc-input-group .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    min-height: 44px !important;
    height: 44px !important;
    margin: 0;
    padding: 9px 10px 9px 4px;
    border: 1px solid var(--rb-filter-line);
    border-left: 0;
    border-radius: 0 8px 8px 0;
    background: #fff !important;
    color: var(--rb-filter-ink);
    font-family: inherit;
    font-size: 16px !important;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: none;
    outline: none;
}
.rb-cc-filter-wrapper--clean .rb-cc-input-group:focus-within,
.rb-cc-filter-wrapper--clean .rb-cc-filter-pill:focus-within {
    outline: 2px solid #367ca7;
    outline-offset: 3px;
}
.rb-cc-filter-wrapper--clean .rb-cc-select-wrap { position: relative; min-width: 0; }
.rb-cc-filter-wrapper--clean .rb-cc-provider-select {
    display: block !important;
    appearance: auto;
    -webkit-appearance: menulist;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--rb-filter-line);
    border-radius: 8px;
    background: #fff;
    color: var(--rb-filter-ink);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    cursor: pointer;
}
.rb-cc-filter-wrapper--clean .rb-cc-provider-select option { background: #fff; color: var(--rb-filter-ink); }
.rb-cc-filter-wrapper--clean .rb-cc-provider-select:focus-visible,
.rb-cc-filter-wrapper--clean .rb-cc-filter-reset:focus-visible { outline: 2px solid #367ca7; outline-offset: 3px; }
.rb-cc-filter-wrapper--clean .rb-cc-filter-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.rb-cc-filter-wrapper--clean .rb-cc-filter-pill {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid var(--rb-filter-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    transition: border-color .15s, background-color .15s;
}
.rb-cc-filter-wrapper--clean .rb-cc-filter-pill:hover { border-color: #98b1c0; }
.rb-cc-filter-wrapper--clean .rb-cc-filter-pill:has(input:checked) { border-color: #b8d7c6; background: #edf6f1; }
.rb-cc-filter-wrapper--clean .rb-cc-filter-pill .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: 28px;
    margin: 0 !important;
    padding: 0;
}
.rb-cc-filter-wrapper--clean #calculator-bar .form-check-input {
    appearance: none;
    -webkit-appearance: none;
    float: none;
    flex: 0 0 32px;
    width: 32px;
    height: 20px;
    margin: 0 !important;
    border: 1px solid transparent;
    border-radius: 999px;
    background-color: #cfdae1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='8' cy='8' r='7' fill='white'/%3E%3C/svg%3E");
    background-size: 16px 16px;
    background-position: 1px center;
    background-repeat: no-repeat;
    box-shadow: none;
    cursor: pointer;
    transition: background-color .15s, background-position .15s;
}
.rb-cc-filter-wrapper--clean #calculator-bar .form-check-input:checked {
    background-color: #24694d;
    border-color: transparent;
    background-position: calc(100% - 1px) center;
}
.rb-cc-filter-wrapper--clean .rb-cc-filter-pill .form-check-label {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #304e62;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.3;
    cursor: pointer;
    white-space: normal;
}
.rb-cc-filter-wrapper--clean .rb-cc-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 44px;
    margin: 0;
    padding: 4px 2px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #526d7e;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.rb-cc-filter-wrapper--clean .rb-cc-filter-reset:hover { color: #163e59; }
.rb-cc-filter-wrapper--clean .rb-cc-filter-reset[hidden],
.rb-cc-filter-wrapper--clean .rb-cc-filter-bridge { display: none !important; }
@media (max-width: 991.98px) {
    .rb-cc-filter-wrapper--clean #calcForm > .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
    .rb-cc-filter-wrapper--clean #calcForm > .row > div:last-child { grid-column: 1 / -1; }
    .rb-cc-filter-wrapper--clean .rb-cc-filter-copy > h2 { font-size: 24px; }
}
@media (max-width: 575.98px) {
    .rb-cc-filter-wrapper--clean { padding: 20px 0; }
    .rb-cc-filter-wrapper--clean .rb-cc-filter-intro { display: block; padding-bottom: 16px; }
    .rb-cc-filter-wrapper--clean .rb-cc-filter-copy > h2 { font-size: 21px; line-height: 1.35; }
    .rb-cc-filter-wrapper--clean .rb-cc-filter-status:has(.rb-cc-status-pill-active) { padding-top: 8px; }
    .rb-cc-filter-wrapper--clean #calcForm > .row { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px 10px; }
    .rb-cc-filter-wrapper--clean .rb-cc-filter-actions { gap: 7px; }
    .rb-cc-filter-wrapper--clean .rb-cc-filter-pill { padding: 7px; }
    .rb-cc-filter-wrapper--clean .rb-cc-filter-pill .form-check { gap: 6px; }
    .rb-cc-filter-wrapper--clean .rb-cc-filter-pill .form-check-label { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .rb-cc-filter-wrapper--clean .rb-cc-filter-pill,
    .rb-cc-filter-wrapper--clean #calculator-bar .form-check-input { transition: none; }
}
@media (forced-colors: active) {
    .rb-cc-filter-wrapper--clean #calculator-bar .form-check-input { appearance: auto; background-image: none; border: 1px solid ButtonText; }
    .rb-cc-filter-wrapper--clean .rb-cc-filter-pill:has(input:checked) { outline: 1px solid Highlight; }
}

/* Text highlights on Editorial Picks and Best Overall only. */
.category-page-wrapper:is([data-category-slug="best-cards"], [data-category-slug="best-overall"]) #card-listings-container .premium-ranking-header.rb-top-ranked-award-header {
    background: transparent;
    border: 0;
    border-radius: 0;
}
.category-page-wrapper:is([data-category-slug="best-cards"], [data-category-slug="best-overall"]) #card-listings-container .rb-top-ranked-award-copy {
    align-items: flex-start;
    gap: 0.2rem;
}
.category-page-wrapper:is([data-category-slug="best-cards"], [data-category-slug="best-overall"]) #card-listings-container .rb-top-ranked-award-title,
.category-page-wrapper:is([data-category-slug="best-cards"], [data-category-slug="best-overall"]) #card-listings-container .rb-top-ranked-award-subtitle,
.category-page-wrapper:is([data-category-slug="best-cards"], [data-category-slug="best-overall"]) #card-listings-container .rb-top-ranked-award-header > span:not(.rb-top-ranked-award-copy) {
    display: block;
    width: fit-content;
    max-width: 100%;
    padding: 0.15rem 0.45rem;
    background: #fff3c4;
    color: #6b4f12;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    white-space: normal;
    overflow-wrap: anywhere;
}


/* Editorial Top Picks: larger medal; other page icons keep their current design. */
.category-page-wrapper[data-category-slug="best-cards"] #card-listings-container .rb-top-ranked-award-header > i.bi-award {
    display: block;
    flex: 0 0 46px;
    width: 46px;
    min-width: 46px;
    height: 56px;
    margin-right: 2px !important;
    font-size: 0 !important;
    line-height: 1;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2076%22%20fill%3D%22none%22%3E%0A%3Cdefs%3E%3ClinearGradient%20id%3D%22gold%22%20x1%3D%2213%22%20y1%3D%226%22%20x2%3D%2251%22%20y2%3D%2249%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23fff3b0%22%2F%3E%3Cstop%20offset%3D%22.43%22%20stop-color%3D%22%23ffd35b%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23d99315%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22blue%22%20x1%3D%2219%22%20y1%3D%2237%22%20x2%3D%2227%22%20y2%3D%2270%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%233d8fbd%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2317466f%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22green%22%20x1%3D%2240%22%20y1%3D%2237%22%20x2%3D%2248%22%20y2%3D%2270%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%2354b69b%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2314644f%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%0A%3Cpath%20d%3D%22M18%2037%2010%2069l13-6%208%2010%208-34-21-2Z%22%20fill%3D%22url%28%23blue%29%22%2F%3E%0A%3Cpath%20d%3D%22m31%2041%206%2031%209-10%2013%205-12-32-16%206Z%22%20fill%3D%22url%28%23green%29%22%2F%3E%0A%3Cpath%20d%3D%22m21%2043-4%2017m23-17%205%2017%22%20stroke%3D%22%23ffffff%22%20stroke-opacity%3D%22.35%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3Ccircle%20cx%3D%2232%22%20cy%3D%2229%22%20r%3D%2223%22%20fill%3D%22%23bb7b12%22%2F%3E%0A%3Ccircle%20cx%3D%2232%22%20cy%3D%2227%22%20r%3D%2223%22%20fill%3D%22url%28%23gold%29%22%2F%3E%0A%3Ccircle%20cx%3D%2232%22%20cy%3D%2227%22%20r%3D%2218%22%20fill%3D%22%23fff3bb%22%20stroke%3D%22%23d9a42e%22%20stroke-width%3D%221.4%22%2F%3E%0A%3Cpath%20d%3D%22m32%2014%204.1%208.2%209.1%201.3-6.6%206.4%201.6%209.1L32%2034.7l-8.2%204.3%201.6-9.1-6.6-6.4%209.1-1.3L32%2014Z%22%20fill%3D%22%2320547a%22%2F%3E%0A%3Cpath%20d%3D%22m32%2017%202.8%205.6%206.2.9-4.5%204.4%201.1%206.2-5.6-2.9V17Z%22%20fill%3D%22%233e83a9%22%2F%3E%0A%3Cpath%20d%3D%22M17%2015a19%2019%200%200%201%2013-7%22%20stroke%3D%22%23fffdf0%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.category-page-wrapper[data-category-slug="best-cards"] #card-listings-container .rb-top-ranked-award-header > i.bi-award::before {
    display: none;
    content: none;
}
@media (max-width: 575.98px) {
    .category-page-wrapper[data-category-slug="best-cards"] #card-listings-container .rb-top-ranked-award-header > i.bi-award {
        flex-basis: 40px;
        width: 40px;
        min-width: 40px;
        height: 48px;
    }
}
