/* Compare Modal Styles */
.compare-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    z-index: 9999;
}

.compare-modal-content {
    background: white;
    border-radius: 8px;
    width: 1240px;
    max-height: calc(100vh - 80px);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

.close-modal {
    font-size: 24px;
    padding: 0;
    border: none;
    background: transparent;
    margin: 0;
}

.close-modal .close-icon {
    width: 16px;
    height: 16px;
    display: block;
}

.compare-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px 4px 0 0;
    background: #EEF3F6;
    padding: 11.7px 29px 9.7px 72px;
    position: sticky;
    top: 0;
    z-index: 9;
}

.compare-result-header .compare-result-header-title {
    color: #333;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
}

.compare-result-header .compare-result-header-right {
    display: flex;
    align-items: center;
    gap: 36px;
}

.compare-result-header .compare-result-header-right-btn-list {
    display: flex;
    gap: 5.6px;
}

.compare-result-header .compare-result-header-right-btn-list .btn {
    border-radius: 4px;
    display: flex;
    gap: 4px;
    padding: 4px 8px;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.16px;
    text-decoration: none;
}

.compare-result-header .compare-result-header-right-btn-list .btn.download {
    background: #0057B8;
    color: #fff;
    border: none;
}

.compare-result-header .compare-result-header-right-btn-list .btn.share {
    min-width: unset;
    border: 1px solid #425563;
    background: #fff;
    color: #425563;
}

.compare_main_content-wrapper {
    padding-right: 12px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.compare_main_content-wrapper::-webkit-scrollbar {
    width: 5px;
}

.compare_main_content-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.compare_main_content-wrapper::-webkit-scrollbar-thumb {
    background: #C0C0C0;
    border-radius: 3px;
    min-height: 20px;
}

.compare_main_content-wrapper::-webkit-scrollbar-thumb:hover {
    background: #A0A0A0;
}

.compare_main_content {
    color: #5d6072;
    padding: 0 73px 41px 85px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.compare_products_container {
    display: flex;
    gap: 8px;
    padding: 10px 0;
    width: 100%;
    justify-content: flex-end;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 8;
    margin-bottom: 20px;
    min-height: 84px;
    box-sizing: border-box;
}

.compare_product_card {
    width: 190px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 0px 0 12px;
    position: relative;
    min-height: 63px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    overflow: visible;
}

.remove_product_btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: none;
    border: none;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove_product_btn .close-icon {
    width: 12px;
    height: 12px;
    display: block;
}

.product_name {
    font-size: 20px;
    font-weight: 700;
    color: #0057B8;
    margin-bottom: 4px;
    line-height: 1.2;
}

.product_category {
    font-size: 16px;
    color: #666;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 25px);
    text-transform: uppercase;
    line-height: 1.6;
    padding-right: 0;
    padding-top: 3px;
    padding-bottom: 3px;
}

.product_category sup {
    font-size: 0.7em;
    vertical-align: super;
    line-height: 1;
    position: relative;
    top: -0.4em;
    text-transform: none;
}

.compare_properties_table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table_header {
    display: flex;
    background: #fff;
    font-weight: 700;
    font-size: 14px;
    color: #333;
    position: -webkit-sticky;
    position: sticky;
    top: 76px;
    z-index: 7;
    width: 100%;
}

.header_cell {
    padding: 12px 8px;
    text-align: left;
    color: #687F91;
    font-weight: 700;
    font-size: 12px;
    flex: 1;
    min-width: 120px;
}

.header_cell:first-child {
    flex: 2;
    min-width: 200px;
}

.header_cell:nth-child(2) {
    flex: 1.5;
    min-width: 150px;
}


.table_row {
    display: flex;
    font-size: 13px;
    color: #333;
}

.table_row:nth-child(2) {
    background: #fff;
}

.table_row:nth-child(odd):not(:first-child) {
    background: #f8f9fa;
}

.table_row:nth-child(even):not(:first-child) {
    background: #fff;
}

.table_cell {
    flex: 1;
    padding: 10px 8px;
    text-align: left;
    word-wrap: break-word;
    font-size: 12px;
    min-width: 120px;
}

.table_cell:first-child {
    flex: 2;
    font-weight: 700;
    color: #666;
    min-width: 200px;
}

.table_cell:nth-child(2) {
    flex: 1.5;
    color: #333;
    min-width: 150px;
}


