/* =========================================================
   TireLand — соответствие ширины шин и дисков
   ========================================================= */

#tl-rim-fit-home {
    margin-top: 18px !important;
    margin-bottom: 18px !important;
}

#tl-rim-fit-home .tlrf-wrap {
    background: #fff;
    border: 1px solid #e7e9ec;
    border-radius: 10px;
    padding: 16px 18px;
}

#tl-rim-fit-home .tlrf-subtitle {
    margin: 0 0 13px;
    color: #777;
    font-size: 14px;
    line-height: 1.5;
}

#tl-rim-fit-home .tlrf-size-title {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

#tl-rim-fit-home .tlrf-fields {
    display: grid;
    grid-template-columns: 1fr 28px 1fr 28px 1fr;
    gap: 7px;
    align-items: center;
    max-width: 620px;
}

#tl-rim-fit-home .tlrf-fields select {
    width: 100%;
    height: 44px;
    padding: 0 10px;
    border: 1px solid #dfe3e7;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 15px;
    cursor: pointer;
}

#tl-rim-fit-home .tlrf-fields select:focus {
    outline: none;
    border-color: #20a8df;
}

#tl-rim-fit-home .tlrf-separator {
    text-align: center;
    color: #777;
    font-weight: 600;
}

#tl-rim-fit-home .tlrf-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 14px;
}

#tl-rim-fit-home .tlrf-result {
    padding: 16px;
    background: #f6f7f8;
    border: 1px solid transparent;
    border-radius: 8px;
    text-align: center;
}

#tl-rim-fit-home .tlrf-result span {
    display: block;
    margin-bottom: 5px;
    color: #777;
    font-size: 13px;
}

#tl-rim-fit-home .tlrf-result strong {
    color: #333;
    font-size: 22px;
    font-weight: 600;
}

#tl-rim-fit-home .tlrf-result-recommended {
    background: #f4fbfe;
    border-color: #20a8df;
}

#tl-rim-fit-home .tlrf-result-recommended strong {
    color: #1596cc;
}

#tl-rim-fit-home .tlrf-status {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 7px;
    background: #eaf7ef;
    color: #278147;
    font-weight: 600;
    line-height: 1.45;
}

#tl-rim-fit-home .tlrf-note {
    margin-top: 7px;
    color: #858b91;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 767px) {

    #tl-rim-fit-home {
        margin-top: 12px !important;
        margin-bottom: 12px !important;
    }

    #tl-rim-fit-home .tlrf-wrap {
        padding: 12px;
    }

    #tl-rim-fit-home .tlrf-fields {
        grid-template-columns: 1fr 22px 1fr 22px 1fr;
        gap: 5px;
        max-width: none;
    }

    #tl-rim-fit-home .tlrf-fields select {
        padding-left: 7px;
        padding-right: 5px;
        font-size: 14px;
    }

    #tl-rim-fit-home .tlrf-results {
        grid-template-columns: repeat(3, 1fr);
        gap: 7px;
        margin-top: 12px;
    }

    #tl-rim-fit-home .tlrf-result {
        padding: 12px 5px;
    }

    #tl-rim-fit-home .tlrf-result span {
        min-height: 34px;
        font-size: 11px;
        line-height: 1.35;
    }

    #tl-rim-fit-home .tlrf-result strong {
        font-size: 19px;
    }
}
/* =========================================================
   TireLand Rim Fit — финальная доработка
   ========================================================= */

/* Заблокированные поля */

#tl-rim-fit-home .tlrf-fields select:disabled {
    background: #eef1f4 !important;
    border-color: #e1e5e9 !important;
    color: #9ca4ab !important;

    opacity: 1 !important;

    cursor: not-allowed;
}


/* Результат чуть компактнее */

#tl-rim-fit-home .tlrf-results {
    margin-top: 14px;
}


/* Кнопка */

#tl-rim-fit-home .tlrf-actions {
    display: none;

    margin-top: 12px;
}

#tl-rim-fit-home .tlrf-actions.visible {
    display: flex;
}

#tl-rim-fit-home .tlrf-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 24px;

    border: 0;
    border-radius: 24px;

    background: #20a8df;

    color: #fff !important;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none !important;

    cursor: pointer;

    transition:
        opacity .2s ease,
        transform .2s ease;
}

#tl-rim-fit-home .tlrf-button:hover {
    color: #fff !important;

    opacity: .90;

    text-decoration: none !important;
}

#tl-rim-fit-home .tlrf-button.loading {
    pointer-events: none;
    opacity: .65;
}


/* Сообщения только при ошибках */

#tl-rim-fit-home .tlrf-message {
    display: none;

    margin-top: 10px;

    padding: 10px 15px;

    border-radius: 7px;

    background: #fff5dc;

    color: #926200;

    line-height: 1.45;
}


/* Примечание */

#tl-rim-fit-home .tlrf-note {
    margin-top: 10px;
}


/* Чуть меньше пустого пространства снизу */

#tl-rim-fit-home {
    margin-bottom: 10px !important;
}


/* MOBILE */

@media (max-width: 767px) {

    #tl-rim-fit-home .tlrf-actions {
        margin-top: 10px;
    }

    #tl-rim-fit-home .tlrf-button {
        width: 100%;
    }

}
