.compared-products-table *,
.compare-product {
    color: var(--color-text);
}

.compared-products-table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
    border-right: 1px solid #e1e1e1;
    font-size: 12px;
}

.compared-products-table th,
.compared-products-table td {
    width: 170px;
    min-width: 170px;
}

.compared-products-table th:first-child,
.compared-products-table td:first-child {
    z-index: 10;
    background-color: #fff;
    position: sticky;
    left: 0;
    outline: 1px solid #ddd !important;
    border-right: none !important;
}

.compared-products-table th:first-child {
    border-bottom: none !important;
}

.compared-products-table th .compare_product__title {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    width: 80%;
    float: left;
}

.compared-products-table th>.remove-product {
    position: absolute;
    right: 8px;
    top: 8px;
    left: unset;
}

.compared-products-table td button a,
.compared-products-table td button a:hover {
    color: #fff !important;
}

.urartu-compare-empty{
	width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 280px;
}

.urartu-compare-empty > .urartu-compare-empty-title{
    position: relative;
    font-size: 20px;
    top: 0;
    color: var(--color-text);
	font-family: Playfair-italic;
}

.urartu-compare-empty .urartu-compare-empty-icon{
	font-size: 160px;
    color: rgba(0, 28, 85, 0.2);
}

@media screen and (max-width: 768px) {

    .compared-products-table th:first-child,
    .compared-products-table td:first-child {
        width: 100px;
        min-width: 100px;
    }

    .compared-products-table th,
    .compared-products-table td {
        width: 150px;
        min-width: 150px;
    }

}

/* Sticky header row (pairs with the existing sticky first column). A bounded
   scroll box gives top-sticky a scroll boundary. */
.compared-products-table {
    max-height: 82vh;
    overflow: auto;
}

.compared-products-table thead th {
    position: sticky;
    top: 0;
    z-index: 8;
    background-color: #fff;
}

.compared-products-table thead th:first-child {
    z-index: 15;
}

/* Highlight attribute rows whose values differ across the compared products. */
.compared-products-table tr.compare-diff td {
    background-color: #fff8e1;
}

.compared-products-table tr.compare-diff td:first-child {
    background-color: #fff4d6;
}

/* Compare toolbar (differences-only toggle + clear all). */
.urartu-compare-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 16px;
}

.urartu-compare-toolbar button {
    padding: 8px 14px;
    border: 1px solid var(--color-main-green);
    background: #fff;
    color: var(--color-main-green);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}

.urartu-compare-toolbar button:hover,
.urartu-compare-toolbar .urartu-compare-diff-toggle.is-active {
    background: var(--color-main-green);
    color: #fff;
}

.urartu-compare-toolbar .urartu-compare-clear {
    border-color: var(--color-main-red);
    color: var(--color-main-red);
}

.urartu-compare-toolbar .urartu-compare-clear:hover {
    background: var(--color-main-red);
    color: #fff;
}

.compared-products-table.urartu-diff-only tr.compare-attr-row:not(.compare-diff) {
    display: none;
}