.ai-wheel-fit-container {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.ai-wheel-fit-form h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.ai-wheel-fit-limit-info {
    margin-bottom: 15px;
    padding: 8px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    color: #856404;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group .input-text {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Стили для плиток годов */
.ai-wheel-fit-container .year-tiles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.ai-wheel-fit-container .year-tile {
    padding: 8px 12px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    font-weight: 500;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.ai-wheel-fit-container .year-tile:hover {
    background-color: #e9e9e9;
    border-color: #007bff;
}

.ai-wheel-fit-container .year-tile.selected {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Стили для плиток цветов */
.ai-wheel-fit-container .color-tiles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.ai-wheel-fit-container .color-tile {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.ai-wheel-fit-container .color-tile:hover {
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.ai-wheel-fit-container .color-tile.selected {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}

/* Для белого цвета добавляем рамку */
.ai-wheel-fit-container .color-tile[data-color="Белый"] {
    border: 1px solid #ddd;
}

.ai-wheel-fit-container .color-tile[data-color="Белый"].selected {
    border: 2px solid #007bff;
}

.current-wheel-image {
    margin-top: 10px;
    text-align: center;
}

.current-wheel-image img {
    max-width: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ai-wheel-fit-result {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
}

.ai-wheel-fit-result h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
}

.ai-wheel-fit-image-container {
    text-align: center;
}

.ai-wheel-fit-image-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .ai-wheel-fit-container .year-tiles-container {
        gap: 5px;
    }
    
    .ai-wheel-fit-container .year-tile {
        padding: 6px 8px;
        font-size: 14px;
    }
    
    .ai-wheel-fit-container .color-tiles-container {
        gap: 8px;
    }
    
    .ai-wheel-fit-container .color-tile {
        width: 35px;
        height: 35px;
    }
}