.oecpc-compare-button {
    display: inline-flex;
    align-items: center;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.oecpc-compare-button-widget {
    display: block;
}

.oecpc-compare-button-widget .oecpc-compare-button {
    display: inline-flex;
    width: auto;
}

#owp-qv-content .oecpc-compare-button {
    margin-top: 10px;
}

.oecpc-compare-button:hover {
    background-color: #005177;
}

.oecpc-compare-button.oecpc-compared {
    background-color: #d63638;
}

.oecpc-compare-button:not(.oecpc-icon-only) .fas.fa-balance-scale {
    margin-right: 5px;
    font-size: 12px;
}

.oecpc-compare-button.oecpc-icon-only .fas.fa-balance-scale {
    font-size: 12px;
}

.woocommerce .products .product .woo-entry-inner .oecpc-compare-wrap {
    text-align: center;
    list-style: none;
}

.woocommerce .products .product .woo-entry-inner .oecpc-compare-wrap .oecpc-compare-button {
    display: inline-flex;
    width: auto;
}

.woocommerce .products .product .btn-wrap .oecpc-compare-wrap-inline,
.woocommerce .products .product .image-wrap .oecpc-compare-wrap-inline {
    display: block;
    text-align: center;
}

.woocommerce .products .product .btn-wrap .oecpc-compare-button,
.woocommerce .products .product .image-wrap .oecpc-compare-button {
    display: inline-flex;
    width: auto;
}

.oecpc-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    table-layout: fixed;
}

.oecpc-comparison-table th,
.oecpc-comparison-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

.oecpc-comparison-table th:not(:first-child),
.oecpc-comparison-table td:not(:first-child) {
    width: 20%;
}

.oecpc-comparison-table th:first-child,
.oecpc-comparison-table td:first-child {
    width: 15%;
    max-width: 15%;
    overflow-wrap: break-word;
    white-space: normal;
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    padding: 8px 20px;
    background-color: #f9f9f9;
    border-right: 2px solid #ccc;
}

.oecpc-comparison-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.oecpc-comparison-table .oecpc-product-image {
    max-width: 100px;
    height: auto;
    margin: 0 auto 10px;
    display: block;
}

.oecpc-comparison-table .woocommerce-product-rating {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.oecpc-comparison-table .oecpc-product-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-decoration: underline;
    display: block;
    margin-bottom: 10px;
}

.oecpc-comparison-table .oecpc-remove-compare {
    font-size: 14px;
    color: #d63638;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.oecpc-comparison-table .oecpc-remove-compare .fas.fa-times {
    margin-right: 5px;
    font-size: 14px;
}

.oecpc-comparison-table .oecpc-remove-compare:hover {
    text-decoration: underline;
}

.oecpc-comparison-table tr.oecpc-different td:not(:first-child) {
    background-color: #fff3cd;
}

.oecpc-comparison-table td.oecpc-description {
    overflow-wrap: break-word;
    max-width: 200px;
}

.oecpc-comparison-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #333;
    color: #fff;
    padding: 10px 52px;
    text-align: center;
    z-index: 1000;
}

.oecpc-comparison-bar.is-visible {
    display: flex;
}

.oecpc-comparison-bar[hidden] {
    display: none !important;
}

.oecpc-comparison-bar a {
    color: #fff;
    text-decoration: underline;
}

.oecpc-comparison-bar .count {
    font-weight: bold;
}

.oecpc-comparison-bar-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.oecpc-comparison-bar-close:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.oecpc-comparison-bar-close:focus {
    outline: none;
}

.oecpc-comparison-bar-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .oecpc-comparison-table {
        display: block;
        overflow-x: auto;
    }

    .oecpc-comparison-table th,
    .oecpc-comparison-table td {
        min-width: 100px;
    }

    .oecpc-comparison-table th:not(:first-child),
    .oecpc-comparison-table td:not(:first-child) {
        width: auto;
    }

    .oecpc-comparison-table th:first-child,
    .oecpc-comparison-table td:first-child {
        width: 100px !important;
        max-width: 100px !important;
        font-size: 13px;
        padding: 6px;
    }

    .oecpc-comparison-table td.oecpc-description {
        max-width: 150px;
    }

    .oecpc-comparison-bar {
        font-size: 14px;
        padding: 8px 48px;
    }

    .oecpc-compare-button {
        padding: 6px 10px;
    }

    .oecpc-comparison-table .oecpc-product-image {
        max-width: 80px;
    }
}