/* Royal Mobil - moderni prikaz rezultata pretrage.
   Fokus: preglednost, poverenje, brza kupovina i mobilni UX bez teškog JS-a. */

.rm-search-modern {
    padding: 0 0 64px;
    background: #f6f8fc;
    color: #10172f;
}
.rm-search-modern * { box-sizing: border-box; }
.rm-search-breadcrumb {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 12px;
    color: #68738a;
    font-size: 13px;
}
.rm-search-breadcrumb a { color: #26314b; }
.rm-search-breadcrumb i { color: #a8b0bf; font-size: 9px; }

.rm-search-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(390px, .75fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 22px;
    padding: 30px 34px;
    border: 1px solid #e1e6f0;
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(229,31,69,.075), transparent 30%),
        linear-gradient(120deg, #fff 0%, #f4f8ff 68%, #edf3ff 100%);
    box-shadow: 0 14px 36px rgba(10, 18, 53, .055);
}
.rm-search-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #e51f45;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.rm-search-eyebrow i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e51f45;
    box-shadow: 0 0 0 5px rgba(229, 31, 69, .1);
}
.rm-search-hero h1 {
    margin: 0 0 10px;
    color: #081235;
    font-size: 36px;
    font-weight: 850;
    line-height: 1.1;
}
.rm-search-hero p {
    max-width: 760px;
    margin: 0;
    color: #5f6b82;
    font-size: 15px;
    line-height: 1.65;
}
.rm-search-hero p strong { color: #09143f; }
.rm-search-understood {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    padding: 10px 13px;
    border: 1px solid #e5ebf5;
    border-radius: 12px;
    color: #46516a;
    background: rgba(255,255,255,.88);
    font-size: 13px;
}
.rm-search-understood i { color: #0a9872; }
.rm-search-understood strong { color: #09143f; }

.rm-search-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.rm-search-trust span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 15px 12px;
    border: 1px solid #e3e8f2;
    border-radius: 14px;
    background: rgba(255,255,255,.88);
}
.rm-search-trust i { margin-bottom: 8px; color: #0a9872; font-size: 17px; }
.rm-search-trust b { color: #10172f; font-size: 12px; }
.rm-search-trust small { margin-top: 4px; color: #7a8498; font-size: 10px; line-height: 1.35; }

.rm-search-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.rm-search-main { min-width: 0; }
.rm-search-sidebar {
    position: sticky;
    top: 16px;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 12px;
}
.rm-search-sidebar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 2px 4px;
}
.rm-search-sidebar-heading span {
    display: block;
    margin-bottom: 2px;
    color: #e51f45;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.rm-search-sidebar-heading h2 {
    margin: 0;
    color: #09143f;
    font-size: 20px;
    font-weight: 850;
}
.rm-search-sidebar-heading button {
    display: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: #5e687d;
    background: #f1f3f7;
    font-size: 25px;
}
.rm-search-filter-card {
    overflow: hidden;
    padding: 16px;
    border: 1px solid #dfe4ed;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(10,18,53,.025);
}
.rm-search-filter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.rm-search-filter-title h3 {
    margin: 0;
    color: #10172f;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .035em;
    text-transform: uppercase;
}
.rm-search-offer-filter,
.rm-search-link-list,
.rm-search-simple-list {
    display: flex;
    flex-direction: column;
}
.rm-search-offer-filter a,
.rm-search-link-list a,
.rm-search-simple-list span {
    display: grid;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #edf0f5;
    color: #263149;
    font-size: 12px;
}
.rm-search-offer-filter a:last-child,
.rm-search-link-list a:last-child,
.rm-search-simple-list span:last-child { border-bottom: 0; }
.rm-search-offer-filter a,
.rm-search-link-list a {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 3px;
    text-decoration: none;
}
.rm-search-offer-filter a.active {
    margin: 3px 0;
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: #09143f;
    font-weight: 750;
}
.rm-search-link-list a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rm-search-offer-filter small,
.rm-search-link-list small,
.rm-search-simple-list small {
    color: #8b94a7;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}
.rm-search-offer-filter a.active small { color: rgba(255,255,255,.78); }
.rm-search-simple-list span {
    grid-template-columns: 16px minmax(0, 1fr) auto;
}
.rm-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c3cad8;
}
.rm-dot--green { background: #13b889; }
.rm-search-help-card {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    background: #f2f6ff;
}
.rm-search-help-card > i {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    color: #244a9a;
    background: #e1eaff;
}
.rm-search-help-card strong,
.rm-search-help-card span { display: block; }
.rm-search-help-card strong { margin-bottom: 3px; color: #14203b; font-size: 11px; }
.rm-search-help-card span { color: #68748b; font-size: 9.5px; line-height: 1.45; }

.rm-search-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
    padding: 12px;
    border: 1px solid #e1e6ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(10,18,53,.035);
}
.rm-search-refine {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
}
.rm-search-refine > i {
    position: absolute;
    left: 16px;
    color: #7b8599;
}
.rm-search-refine input[type="search"] {
    width: 100%;
    height: 46px;
    padding: 0 126px 0 43px;
    border: 1px solid #dfe4ed;
    border-radius: 11px;
    outline: 0;
    color: #121a32;
    background: #fbfcfe;
    font-size: 13px;
}
.rm-search-refine input[type="search"]:focus {
    border-color: #7e91c4;
    box-shadow: 0 0 0 3px rgba(32,61,136,.08);
}
.rm-search-refine button {
    position: absolute;
    right: 5px;
    height: 36px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #09143f;
    font-size: 12px;
    font-weight: 750;
}
.rm-search-sort-note {
    display: flex;
    min-height: 46px;
    flex-direction: column;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid #e1e6ef;
    border-radius: 11px;
    background: #fff;
}
.rm-search-sort-note span {
    color: #7a8498;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.rm-search-sort-note strong {
    margin-top: 2px;
    color: #10172f;
    font-size: 12px;
    white-space: nowrap;
}
.rm-search-results-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}
.rm-search-results-heading h2 {
    margin: 0;
    color: #0a1235;
    font-size: 22px;
    font-weight: 850;
}
.rm-search-results-heading p {
    margin: 4px 0 0;
    color: #737d92;
    font-size: 12px;
}
.rm-search-refresh {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #dfe4ed;
    border-radius: 10px;
    color: #17213a;
    background: #fff;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

/* Product cards - isti vizuelni jezik kao kategorije, ali izolovan za search. */
.rm-search-products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}
.rm-search-products > .category-product.rm-product-card {
    display: flex !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    border-right: 0 !important;
}
.rm-search-products .rm-product-card {
    position: relative;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #e1e5ed;
    border-radius: 16px;
    background: #fff;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.rm-search-products .rm-product-card:hover {
    border-color: #cdd4e1;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(10,18,53,.085);
}
.rm-search-products .rm-product-card-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 14px;
    background: #fff;
}
.rm-search-products .rm-product-card-image-link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}
.rm-search-products .rm-product-card-image .precolor {
    position: absolute;
    inset: 14px;
    z-index: 1;
    border-radius: 10px;
}
.rm-search-products .rm-product-card-image img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.rm-search-products .rm-discount-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #fff;
    background: #e51f45;
    font-size: 10px;
    font-weight: 850;
}
.rm-search-products .rm-product-wish {
    position: absolute;
    z-index: 3;
    right: 10px;
    bottom: 10px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #e5e8f0;
    border-radius: 10px;
    color: #8992a8;
    background: #fff;
    box-shadow: 0 3px 8px rgba(10,15,45,.1);
}
.rm-search-products .rm-product-wish:hover,
.rm-search-products .rm-product-wish.active {
    color: #e51f45;
    border-color: #f3c8d2;
}
.rm-search-products .rm-product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0 15px 15px;
}
.rm-search-products .rm-product-stock {
    display: inline-flex;
    align-items: center;
    margin-bottom: 7px;
    color: #098b68;
    font-size: 11px;
    font-weight: 750;
}
.rm-search-products .rm-product-stock i {
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: #13b889;
}
.rm-search-products .rm-product-stock--out { color: #8992a8; }
.rm-search-products .rm-product-stock--out i { background: #c2c8d6; }
.rm-search-products .rm-product-card h3 {
    margin: 0 0 14px;
    color: #10172f;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.38;
}
.rm-search-products .rm-product-card h3 a {
    color: #10172f;
    text-decoration: none;
}
.rm-search-products .rm-product-card h3 a:hover { color: #e51f45; }
.rm-search-products .rm-product-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #edf0f5;
}
.rm-search-products .rm-product-price {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column-reverse;
}
.rm-search-products .rm-product-price strong {
    color: #0a1235;
    font-size: 16px;
    font-weight: 850;
    white-space: nowrap;
}
.rm-search-products .rm-product-price del {
    color: #8992a8;
    font-size: 11px;
    white-space: nowrap;
}
.rm-search-products .rm-product-add {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 13px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: #09143f;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, transform .15s ease;
}
.rm-search-products .rm-product-add:hover {
    background: #e51f45;
    transform: translateY(-1px);
}

.rm-search-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
    margin-top: 30px;
    padding: 14px;
    border: 1px solid #e1e5ed;
    border-radius: 16px;
    background: #fff;
}
.rm-search-page-arrow {
    display: inline-flex;
    width: max-content;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 14px;
    border: 1px solid #dfe4ec;
    border-radius: 10px;
    color: #17213a;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}
.rm-search-page-arrow:last-child { justify-self: end; }
.rm-search-page-arrow:not(.disabled):hover {
    color: #fff;
    border-color: #09143f;
    background: #09143f;
}
.rm-search-page-arrow.disabled {
    color: #b3bac7;
    background: #f7f8fa;
}
.rm-search-page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.rm-search-page-numbers a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #58647a;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}
.rm-search-page-numbers a:hover { border-color: #cfd6e2; }
.rm-search-page-numbers a.active { color: #fff; background: #09143f; }
.rm-search-page-numbers span { padding: 0 2px; color: #9aa2b2; }

.rm-search-empty {
    padding: 64px 20px;
    border: 1px dashed #ccd3df;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}
.rm-search-empty > i { color: #a4adbd; font-size: 32px; }
.rm-search-empty h2 { margin: 16px 0 7px; color: #0a1235; font-size: 22px; }
.rm-search-empty p { max-width: 560px; margin: 0 auto 18px; color: #707b91; }
.rm-search-empty div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}
.rm-search-empty a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0 15px;
    border-radius: 10px;
    color: #fff;
    background: #09143f;
    font-weight: 750;
}
.rm-search-filter-open,
.rm-search-filter-overlay { display: none; }

@media (max-width: 1280px) {
    .rm-search-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
    .rm-search-hero {
        grid-template-columns: 1fr;
        padding: 28px;
    }
    .rm-search-trust { max-width: 760px; }
    .rm-search-layout {
        grid-template-columns: 236px minmax(0, 1fr);
        gap: 16px;
    }
}
@media (max-width: 991px) {
    .rm-search-layout { display: block; }
    .rm-search-sidebar {
        position: fixed;
        z-index: 1202;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(88vw, 335px);
        padding: 18px 14px 28px;
        overflow-y: auto;
        background: #f7f8fb;
        box-shadow: 18px 0 45px rgba(5, 12, 39, .2);
        transform: translateX(-105%);
        transition: transform .22s ease;
    }
    .rm-search-sidebar.is-open { transform: translateX(0); }
    .rm-search-sidebar-heading {
        position: sticky;
        z-index: 2;
        top: -18px;
        margin: -18px -14px 2px;
        padding: 16px 14px 12px;
        background: #f7f8fb;
    }
    .rm-search-sidebar-heading button { display: block; }
    .rm-search-filter-overlay {
        position: fixed;
        z-index: 1201;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(4, 10, 32, .52);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }
    body.rm-search-filter-panel-open { overflow: hidden; }
    body.rm-search-filter-panel-open .rm-search-filter-overlay {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
    .rm-search-filter-open {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 0 13px;
        border: 1px solid #dce2eb;
        border-radius: 10px;
        color: #17213a;
        background: #fff;
        font-size: 12px;
        font-weight: 750;
    }
    .rm-search-toolbar {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .rm-search-sort-note {
        grid-column: 1 / 3;
        align-items: flex-start;
    }
}
@media (max-width: 767px) {
    .rm-search-modern { padding-bottom: 42px; }
    .rm-search-breadcrumb { min-height: 44px; }
    .rm-search-hero {
        gap: 18px;
        margin: 0 -5px 16px;
        padding: 21px 18px;
        border-radius: 16px;
    }
    .rm-search-hero h1 { font-size: 28px; }
    .rm-search-hero p { font-size: 13px; line-height: 1.55; }
    .rm-search-trust { display: none; }
    .rm-search-understood {
        display: flex;
        align-items: flex-start;
        font-size: 12px;
        line-height: 1.45;
    }
    .rm-search-toolbar {
        gap: 9px;
        margin: 0 -5px 18px;
        padding: 9px;
        border-radius: 13px;
    }
    .rm-search-filter-open {
        width: 44px;
        padding: 0;
    }
    .rm-search-filter-open span { display: none; }
    .rm-search-refine { min-width: 0; }
    .rm-search-refine input[type="search"] {
        width: auto;
        min-width: 0;
        flex: 1;
        padding-right: 38px;
    }
    .rm-search-refine button {
        position: static;
        flex: none;
        height: 42px;
        margin-left: 7px;
        padding: 0 13px;
    }
    .rm-search-sort-note { min-height: 42px; }
    .rm-search-results-heading {
        align-items: center;
        margin-bottom: 12px;
    }
    .rm-search-results-heading h2 { font-size: 18px; }
    .rm-search-refresh { display: none; }
    .rm-search-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .rm-search-products .rm-product-card { border-radius: 13px; }
    .rm-search-products .rm-product-card-image { padding: 10px; }
    .rm-search-products .rm-product-card-body { padding: 0 10px 11px; }
    .rm-search-products .rm-product-card h3 {
        font-size: 12.5px;
        line-height: 1.4;
    }
    .rm-search-products .rm-product-card-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }
    .rm-search-products .rm-product-price strong { font-size: 15px; }
    .rm-search-products .rm-product-add {
        width: 100%;
        min-height: 37px;
    }
    .rm-search-products .rm-product-wish {
        right: 7px;
        bottom: 7px;
        width: 30px;
        height: 30px;
    }
    .rm-search-pagination {
        grid-template-columns: 1fr 1fr;
        padding: 10px;
    }
    .rm-search-page-numbers {
        grid-column: 1 / 3;
        grid-row: 1;
    }
    .rm-search-page-arrow {
        grid-row: 2;
        width: 100%;
    }
    .rm-search-page-arrow:last-child { justify-self: stretch; }
}
@media (max-width: 420px) {
    .rm-search-products { grid-template-columns: 1fr; }
    .rm-search-products .rm-product-card {
        display: grid !important;
        grid-template-columns: 132px minmax(0, 1fr);
        align-items: stretch;
    }
    .rm-search-products .rm-product-card-image {
        aspect-ratio: auto;
        min-height: 168px;
    }
    .rm-search-products .rm-product-card-body {
        padding: 12px 11px;
    }
    .rm-search-products .rm-product-card h3 {
        font-size: 13px;
    }
}
@media (max-width: 350px) {
    .rm-search-products .rm-product-card {
        grid-template-columns: 1fr;
    }
    .rm-search-products .rm-product-card-image {
        aspect-ratio: 1.1 / 1;
        min-height: 0;
    }
    .rm-search-page-numbers a {
        width: 34px;
        height: 34px;
    }
}

/* v2 - 2026-07-11: manje hero prostora, bez druge pretrage, pravi toggle filteri. */
.rm-search-hero--compact {
    display: block;
    margin-bottom: 18px;
    padding: 18px 24px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 98% 0%, rgba(229,31,69,.065), transparent 28%),
        linear-gradient(120deg, #fff 0%, #f6f9ff 78%, #f2f6ff 100%);
}
.rm-search-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 7px;
}
.rm-search-hero--compact .rm-search-eyebrow {
    margin: 0;
    font-size: 10px;
}
.rm-search-hero--compact h1 {
    margin: 0 0 5px;
    font-size: 30px;
}
.rm-search-hero--compact p {
    font-size: 13px;
    line-height: 1.45;
}
.rm-search-hero--compact .rm-search-understood {
    margin: 0;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.2;
}
.rm-search-hero--compact .rm-search-understood i {
    font-size: 10px;
}
.rm-search-filter-title > a {
    color: #667188;
    font-size: 10px;
    font-weight: 700;
    text-decoration: underline;
}
.rm-search-toolbar--summary {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 16px;
    padding: 10px 12px;
}
.rm-search-active-summary {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.rm-search-active-summary > span {
    color: #788399;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}
.rm-search-active-summary > strong {
    overflow: hidden;
    color: #10172f;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rm-search-active-chips {
    display: inline-flex;
    min-width: 0;
    gap: 6px;
    flex-wrap: wrap;
}
.rm-search-active-chips a {
    display: inline-flex;
    max-width: 210px;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid #cfe8dd;
    border-radius: 999px;
    color: #057454;
    background: #ecfbf5;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}
.rm-search-active-chips a i {
    font-style: normal;
    font-size: 13px;
    line-height: 1;
}
.rm-search-toggle-list a {
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 8px;
}
.rm-search-toggle-list a > i {
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border: 1px solid #aeb6c5;
    border-radius: 4px;
    color: transparent;
    background: #fff;
    font-size: 8px;
    font-style: normal;
}
.rm-search-toggle-list a.selected {
    margin: 4px 0;
    padding: 0 8px;
    border-bottom-color: transparent;
    border-radius: 9px;
    color: #071236;
    background: #eef8f4;
    font-weight: 800;
}
.rm-search-toggle-list a.selected > i {
    border-color: #0a9872;
    color: #fff;
    background: #0a9872;
}
.rm-search-toggle-list a.selected small {
    color: #057454;
}

@media (max-width: 991px) {
    .rm-search-toolbar--summary {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .rm-search-toolbar--summary .rm-search-sort-note {
        grid-column: 1 / 3;
    }
}
@media (max-width: 767px) {
    .rm-search-hero--compact {
        margin: 0 -5px 14px;
        padding: 16px 16px;
        border-radius: 14px;
    }
    .rm-search-hero--compact h1 {
        font-size: 23px;
        line-height: 1.18;
    }
    .rm-search-hero--compact p {
        font-size: 12px;
    }
    .rm-search-active-summary {
        gap: 5px;
    }
    .rm-search-active-summary > strong {
        max-width: 100%;
        white-space: normal;
    }
    .rm-search-active-chips {
        width: 100%;
    }
}
