
/* Main container styles */
.car-compare-container {
    padding: 20px;
    background: #fff;
    font-family: Arial, sans-serif;
}

/* Header styles */
.car-compare-header {
    background-color: #273b8c;
    color: white;
    padding: 70px;
    text-align: left;
    margin-bottom: -40px;
}

.car-compare-header h1 {
    font-size: 24px;
    margin: 0;
    color: white;
}

.car-compare-header p {
    margin: 5px 0 0;
    font-size: 14px;
}

/* Car selectors styles */
.car-selectors {
    padding-top:20px;
    background-color: white;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    margin-left:50px;
    
}

.car-selector {
    text-align: center;
    flex: 1;
    padding: 0 10px;
    margin: 0 50px;
    align-content:center;
}

.car-selector h3 {
    margin-bottom: 10px;
}
/*
.car-input-wrapper {
    position: relative;
}

.car-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
}*/

/* Action buttons styles */
.car-compare-actions {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.action.secondary.clear {
    background: transparent;
    margin-left: 50px;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
}

.action.primary.compare {
    background: #4CAF50;
    border: none;
    color: white;
    padding: 10px 40px;
    border-radius: 3px;
    cursor: pointer;
}

/* Modal styles */
.modal-car-selector {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 960px;
    border-radius: 5px;
    overflow: hidden;
}

/* Modal header styles */
.modal-header {
    border-bottom: 1px solid #eee;
}

.modal-tabs {
    display: flex;
/*    background-color: #f9f9f9;*/
}

.modal-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: #fff;
    position: relative;
}

.modal-tab::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #fff;
}

.modal-tab:last-child::after {
    display: none;
}

.modal-tab.active {
    color: #fff;
    text-decoration: underline;

}

.modal-tab span {
    font-weight: normal;
    color: #fff;
    font-size: 12px;
}

/* Modal body styles */
.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    margin-bottom: 20px;
}

.modal-popup._inner-scroll.modal-car-selector .modal-inner-wrap .action.primary{border-radius: 0px;}

.panels-container {
    display: flex;
    height: 100%;
}

.panel {
    flex: 1;
    border-right: 1px solid #eee;
    max-height: 60vh;
    overflow-y: auto;
}

.panel:last-child {
    border-right: none;
}

/* Make panel styles */
.make-item, .model-item, .version-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.make-item:hover, .model-item:hover, .version-item:hover, 
.make-item.selected, .model-item.selected, .version-item.selected {
    background-color: #f0f7ff;
}

.make-item.selected, .model-item.selected, .version-item.selected {
    background-color: #e6f0ff;
}

.make-item img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    object-fit: contain;
}

.arrow {
    margin-left: auto;
    font-size: 18px;
    color: #999;
    font-weight: bold;
}

/* Category headers */
.category-header {
    padding: 10px 15px;
    background-color: #f9f9f9;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    color: #666;
}

/* Year range in version panel */
.year-range {
    padding: 10px 15px;
    background-color: #f9f9f9;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    color: #666;
}

/* Modal footer styles */
.modal-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

/* Scrollbar styling */
.panel::-webkit-scrollbar {
    width: 8px;
}

.panel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.panel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.panel::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* No versions message */
.no-versions {
    padding: 15px;
    color: #999;
    text-align: center;
}