.offer-filters {
    color: #19362c;
    margin-bottom: 12px;
}

.offer-filter-form {
    padding: 14px clamp(10px, 2.7vw, 22px) 5px;
    border: 1px solid #bed5c9;
    border-radius: 14px;
    background: #eaf4ef;
}

.offer-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
    align-items: start;
    gap: clamp(5px, 1.8vw, 14px);
}

.offer-filters label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
    line-height: 19px;
}

.offer-filters input,
.offer-filters button {
    font: inherit;
}

.offer-filters input:not([type="range"]):not([type="hidden"]) {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 10px;
    border: 1px solid #88a69a;
    border-radius: 8px;
    background: #fff;
    color: #19362c;
}

.offer-filters input::placeholder {
    color: #466358;
    opacity: 1;
}

.offer-filters input[type="number"] {
    appearance: textfield;
    font-variant-numeric: tabular-nums;
}

.offer-filters input[type="number"]::-webkit-inner-spin-button {
    appearance: none;
}

.offer-filters input[type="range"]:not([hidden]) {
    display: block;
    width: 100%;
    height: 44px;
    margin: -9px 0 0;
    padding: 0;
    accent-color: #17553e;
    cursor: pointer;
}

.offer-filters button {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #88a69a;
    border-radius: 8px;
    background: #fff;
    color: #19362c;
    font-weight: 700;
    cursor: pointer;
}

.offer-filters .offer-apply {
    margin-top: 23px;
    padding: 0 clamp(7px, 2.3vw, 20px);
    border-color: #17553e;
    background: #17553e;
    color: #fff;
    white-space: nowrap;
}

.offer-filters :focus-visible {
    outline: 3px solid #008775;
    outline-offset: 2px;
}

.offer-results-tools {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
}

.offer-result-count {
    margin: 0 auto 0 0;
    font-weight: 700;
}

.offer-tool summary {
    display: grid;
    position: relative;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #88a69a;
    border-radius: 8px;
    background: #fff;
    color: #17553e;
    cursor: pointer;
    list-style: none;
}

.offer-tool summary::-webkit-details-marker {
    display: none;
}

.offer-tool[open] summary,
.offer-tool summary.offer-tool-active {
    border-color: #285e4b;
    background: #d8ece2;
}

.offer-tool-active::after {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.offer-search-icon {
    position: relative;
    width: 14px;
    height: 14px;
    margin: 0 4px 4px 0;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.offer-search-icon::after {
    position: absolute;
    top: 9px;
    left: 9px;
    width: 8px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: left;
    content: "";
}

.offer-sort-icon {
    display: grid;
    gap: 4px;
    width: 20px;
}

.offer-sort-icon i {
    height: 2px;
    border-radius: 1px;
    background: currentColor;
}

.offer-sort-icon i:nth-child(2) {
    width: 74%;
}

.offer-sort-icon i:nth-child(3) {
    width: 48%;
}

.offer-disclosure {
    position: absolute;
    z-index: 2;
    top: calc(100% + 6px);
    right: 0;
    width: min(100%, 360px);
    margin: 0;
    padding: 10px;
    border: 1px solid #bed5c9;
    border-radius: 10px;
    background: #f1f7f3;
    box-shadow: 0 6px 20px #19362c26;
}

.offer-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
}

.offer-sort-options {
    display: grid;
    gap: 4px;
}

.offer-sort-options a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid #88a69a;
    border-radius: 8px;
    background: #fff;
    color: #19362c;
    text-decoration: none;
}

.offer-sort-options a[aria-current] {
    border-color: #285e4b;
    background: #d8ece2;
    font-weight: 700;
}

.offer-applied {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    margin-top: 6px;
    font-size: 13px;
}

.offer-applied-values {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.offer-applied-values span {
    padding: 4px 8px;
    border-radius: 6px;
    background: #edf4ef;
}

.offer-applied a {
    margin-left: auto;
    padding: 8px 0;
    color: #17553e;
    text-decoration: underline;
}

.offer-filter-errors {
    color: #9c2929;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.offer-filter-errors ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.offer-empty {
    padding: 12px 14px;
    border: 1px solid #bed5c9;
    border-radius: 10px;
    color: #19362c;
}

@media (max-width: 420px) {
    .offer-filters label,
    .offer-filters .offer-apply {
        font-size: 12px;
    }

    .offer-filter-row input:not([type="range"]):not([type="hidden"]) {
        padding-inline: 5px;
        font-size: 13px;
    }
}

.loan-comparison {
    margin-block: 1rem;
}

.loan-comparison summary {
    cursor: pointer;
    padding-block: .65rem;
}

.loan-comparison summary h2 {
    display: inline;
}

.loan-table-scroll {
    overflow-x: auto;
    border: 1px solid #bed5c9;
    border-radius: 8px;
}

.loan-table-scroll table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
}

.loan-table-scroll :is(th, td) {
    padding: .55rem;
    border-bottom: 1px solid #bed5c9;
    text-align: start;
    vertical-align: top;
}

.loan-table-scroll thead th {
    background: #eaf4ef;
}

.loan-table-scroll tbody th {
    position: sticky;
    inset-inline-start: 0;
    background: #fff;
    overflow-wrap: anywhere;
}

.loan-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    margin-block: .6rem;
}

.loan-shortcuts a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    text-decoration: underline;
}

.loan-highlights {
    margin-bottom: .75rem;
}

.loan-highlights p {
    margin-block: .25rem;
}

.loan-highlight-reason,
.loan-sponsored {
    color: #395a4e;
    font-size: .875rem;
    margin-block: .35rem;
}

.loan-offer-details,
.loan-comparison,
.loan-highlights {
    overflow-wrap: anywhere;
}

.loan-offer-details summary {
    cursor: pointer;
    min-height: 32px;
}

.loan-offer-details dl {
    margin: .5rem 0;
}

.loan-offer-details dt {
    font-weight: 700;
}

.loan-offer-details dd {
    margin: 0 0 .4rem;
}

.loan-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

:is(.loan-shortcuts, .loan-offer-details, .loan-comparison, .loan-highlights) :focus-visible {
    outline: 3px solid #008775;
    outline-offset: 2px;
}

.loan-calculator-widget {
    display: block;
    width: 100%;
    height: 23rem;
    border: 1px solid #bed5c9;
    border-radius: 8px;
    box-sizing: border-box;
}

@media (max-width: 580px) {
    .loan-calculator-widget {
        height: 33rem;
    }
}

.loan-review-link {
    margin: .6rem 0 0;
    font-size: .875rem;
}

.loan-review {
    border-bottom: 1px solid #bed5c9;
    padding-bottom: .65rem;
    overflow-wrap: anywhere;
}

.loan-faq details {
    border-bottom: 1px solid #bed5c9;
    padding-block: .6rem;
    scroll-margin-top: 1rem;
    overflow-wrap: anywhere;
}

.loan-faq summary {
    cursor: pointer;
    font-weight: 700;
}

.loan-faq details:target {
    background: #eaf4ef;
}

.mfo-list.loan-offer-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
    align-items: start;
    gap: 1rem;
}

.loan-offer-list.mfo-list .mfo-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: clamp(.8rem, 2vw, 1.15rem);
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.loan-logo {
    min-height: 40px;
    text-align: center;
}

.loan-logo img,
.loan-logo .logo-placeholder {
    max-width: 100%;
    width: 120px;
    height: 40px;
    object-fit: contain;
}

.loan-logo .logo-placeholder {
    margin-inline: auto;
}

.loan-logo [hidden] {
    display: none;
}

#where .loan-table-scroll td {
    padding: .55rem;
}

:is(.offer-filters, .loan-comparison, .loan-highlights, .loan-offer-list) {
    scroll-margin-top: .65rem;
}

.mfo-card[data-provider-id] .condition .label {
    min-width: 3rem;
    max-width: 40%;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .loan-table-scroll {
        max-height: min(60vh, 32rem);
        overflow: auto;
    }

    .loan-table-scroll thead th {
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .loan-table-scroll thead th:first-child {
        inset-inline-start: 0;
        z-index: 3;
    }

    .loan-table-scroll tbody th {
        z-index: 1;
    }
}
