.compound-compare-wrapper {
    overflow-x: auto;
    width: 100%;
}

.compound-comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.compound-comparison-table th,
.compound-comparison-table td {
    border: 1px solid #dee2e6;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.compound-comparison-table th.sticky-col {
    position: sticky;
    left: 0;
    z-index: 2;
    background-color: #f8f9fa;
}

.compound-comparison-table thead th.sticky-col {
    z-index: 3;
}

.compound-comparison-table .highlight-diff {
    background-color: #fff3cd; /* light yellow */
}

@media (max-width: 768px) {
    .compound-comparison-table th,
    .compound-comparison-table td {
        font-size: 14px;
        padding: 8px;
    }
}

/* ========== Compare flyout ========== */

/* Thumbnails in flyout: max width 90px */
.ignitix-compare-flyout .compound-thumb img,
.ignitix-compare-flyout img.compare-thumb,
.ignitix-compare-flyout .compare-item img {
    max-width: 90px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Remove (X) badge on compound flyout slot thumbnails */
.ignitix-compare-flyout .compare-remove {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    font-size: 16px !important;
    line-height: 1 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.35);
    font-weight: 400;
    user-select: none;
    z-index: 4 !important;
    transition: transform .15s ease, background-color .15s ease;
}

.ignitix-compare-flyout .compare-remove:hover {
    background: #e11 !important;
    color: #fff !important;
    transform: scale(1.08);
}