.partfinder {
    margin: 24px 0;
}

.partfinder__form {
    background: #f6f8fb;
    border-radius: 8px;
    box-shadow: 0 14px 40px rgba(31, 46, 75, .08);
    padding: 24px;
}

.partfinder__header {
    margin-bottom: 18px;
}

.partfinder__title {
    color: #24324a;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.partfinder__fields {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.partfinder__field {
    color: #33425c;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 700;
    gap: 8px;
}

.partfinder__field select {
    appearance: none;
    background: #fff;
    border: 1px solid #d5dce8;
    border-radius: 5px;
    color: #26364f;
    font-size: 14px;
    height: 42px;
    padding: 0 36px 0 12px;
    width: 100%;
}

.partfinder__types {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    margin-top: 18px;
}

.partfinder__type {
    cursor: pointer;
    margin: 0;
}

.partfinder__type input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.partfinder__type-card {
    align-items: center;
    background: #fff;
    border: 1px solid #dce3ee;
    border-radius: 8px;
    color: #26364f;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 700;
    gap: 10px;
    min-height: 132px;
    padding: 14px;
    text-align: center;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.partfinder__type-card img {
    aspect-ratio: 4 / 3;
    max-height: 78px;
    object-fit: contain;
    width: 100%;
}

.partfinder__type-placeholder {
    align-items: center;
    background: #e9eef8;
    border-radius: 50%;
    color: #2454dc;
    display: flex;
    font-size: 28px;
    font-weight: 800;
    height: 64px;
    justify-content: center;
    width: 64px;
}

.partfinder__type input:checked + .partfinder__type-card,
.partfinder__type-card:hover {
    border-color: #2454dc;
    box-shadow: 0 10px 26px rgba(36, 84, 220, .16);
    transform: translateY(-1px);
}

.partfinder__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.partfinder__button {
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    height: 42px;
    line-height: 40px;
    min-width: 86px;
    padding: 0 22px;
}

.partfinder__button--primary {
    background: #2454dc;
    border: 1px solid #2454dc;
    color: #fff;
}

.partfinder__button--secondary {
    background: #fff;
    border: 1px solid #2454dc;
    color: #2454dc;
}

@media (max-width: 768px) {
    .partfinder__fields,
    .partfinder__types {
        grid-template-columns: 1fr;
    }

    .partfinder__form {
        padding: 18px;
    }
}
