.mortgage-calculator fieldset {
    min-width: 0;
}

.mortgage-mode-options,
.mortgage-inline-options {
    display: grid;
    gap: 12px;
}

.mortgage-option {
    align-items: center;
    background: #fff;
    border: 1px solid #dadbdd;
    border-radius: 6px;
    color: #19212d;
    cursor: pointer;
    display: flex;
    font-size: 15px;
    font-weight: 500;
    gap: 10px;
    margin: 0;
    padding: 14px 16px;
    transition: border-color .2s ease, background-color .2s ease;
}

.mortgage-option:has(input:checked) {
    background: #eef8f9;
    border-color: #1aa6b7;
}

.mortgage-option input {
    flex: 0 0 auto;
    margin: 0;
    position: static;
}

.mortgage-mode-description,
.mortgage-market-rate {
    color: #6c7179;
    font-size: 14px;
    margin: 12px 0 0;
}

.mortgage-inline-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mortgage-rate-options {
    margin-bottom: 4px;
}

.mortgage-term-control {
    margin-bottom: 24px;
    width: 100%;
}

.mortgage-term-header {
    align-items: center;
    color: #474d57;
    display: flex;
    font-size: 14px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mortgage-term-header output {
    background: #eef8f9;
    border-radius: 20px;
    color: #19212d;
    font-size: 15px;
    min-width: 92px;
    padding: 8px 14px;
    text-align: center;
}

.mortgage-term-range {
    --term-progress: 85.2941%;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(
        to right,
        #1aa6b7 0,
        #1aa6b7 var(--term-progress),
        #e1e5e7 var(--term-progress),
        #e1e5e7 100%
    );
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: block;
    height: 10px;
    margin: 7px 0;
    outline: 0;
    width: 100%;
}

.mortgage-term-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #fff;
    border: 3px solid #1aa6b7;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(25, 33, 45, .22);
    height: 26px;
    width: 26px;
}

.mortgage-term-range::-moz-range-track {
    background: #e1e5e7;
    border: 0;
    border-radius: 999px;
    height: 10px;
}

.mortgage-term-range::-moz-range-progress {
    background: #1aa6b7;
    border-radius: 999px;
    height: 10px;
}

.mortgage-term-range::-moz-range-thumb {
    background: #fff;
    border: 3px solid #1aa6b7;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(25, 33, 45, .22);
    height: 20px;
    width: 20px;
}

.mortgage-term-range:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(26, 166, 183, .2), 0 2px 6px rgba(25, 33, 45, .22);
}

.mortgage-term-range:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 4px rgba(26, 166, 183, .2), 0 2px 6px rgba(25, 33, 45, .22);
}

.mortgage-term-control .form-group {
    margin-bottom: 0;
}

.mortgage-term-control datalist {
    display: none;
}

.mortgage-term-labels {
    color: #6c7179;
    font-size: 11px;
    height: 28px;
    margin-top: 5px;
    position: relative;
}

.mortgage-term-labels span {
    padding-top: 10px;
    position: absolute;
    transform: translateX(-50%);
}

.mortgage-term-labels span::before {
    background: #dadbdd;
    border-radius: 50%;
    content: '';
    height: 4px;
    left: 50%;
    position: absolute;
    top: 2px;
    transform: translateX(-50%);
    width: 4px;
}

.mortgage-term-labels span:first-child {
    transform: none;
}

.mortgage-term-labels span:first-child::before {
    left: 0;
    transform: none;
}

.mortgage-term-labels span:last-child {
    transform: translateX(-100%);
}

.mortgage-term-labels span:last-child::before {
    left: 100%;
}

.mortgage-disclaimer {
    background: #f8f8f9;
    border-left: 3px solid #1aa6b7;
    border-radius: 4px;
    color: #474d57;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 24px;
    padding: 16px;
}

.mortgage-result-explanation {
    border-top: 1px solid #dadbdd;
    margin-top: 24px;
    padding-top: 24px;
}

.mortgage-result-explanation summary {
    color: #19212d;
    cursor: pointer;
    font-weight: 600;
}

.mortgage-result-explanation p:first-of-type {
    margin-top: 16px;
}

.mortgage-article-content {
    padding-bottom: 48px;
}

.mortgage-article-content h2 {
    margin-top: 48px;
}

.mortgage-article-content h3 {
    margin-top: 32px;
}

@media (min-width: 768px) {
    .mortgage-mode-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .mortgage-inline-options {
        grid-template-columns: 1fr;
    }
}

.tools-exp .widget-discover a  {
    color: white;
    text-decoration: none;
}
