/* Compare page — layout + left alignment (loads last) */
.vitsa-compare-page {
    --vitsa-compare-col-width: 16rem;
    --vitsa-compare-label-width: 11.25rem;
}

.vitsa-compare-page .vitsa-compare-page__inner {
    display: block;
    width: 100%;
    max-width: 100%;
}

.vitsa-compare-page .vitsa-compare-page__table-wrap {
    width: 100% !important;
    max-width: 100%;
    background: #fff;
    border: 1px solid hsl(150, 12%, 88%);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.vitsa-compare-page .vitsa-compare-page__scroll .vitsa-compare-table,
.vitsa-compare-page .vitsa-compare-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
}

.vitsa-compare-page .vitsa-compare-table col.vitsa-compare-table__label-col {
    width: var(--vitsa-compare-label-width) !important;
}

.vitsa-compare-page .vitsa-compare-table col.vitsa-compare-table__data-col {
    width: calc((100% - var(--vitsa-compare-label-width)) / var(--vitsa-compare-cols, 1)) !important;
}

.vitsa-compare-page .vitsa-compare-table th.vitsa-compare-table__label,
.vitsa-compare-page .vitsa-compare-table td.vitsa-compare-table__col {
    text-align: left !important;
    vertical-align: top !important;
}

.vitsa-compare-page .vitsa-compare-table th.vitsa-compare-table__label {
    width: var(--vitsa-compare-label-width) !important;
    min-width: var(--vitsa-compare-label-width) !important;
    max-width: var(--vitsa-compare-label-width) !important;
}

.vitsa-compare-page .vitsa-compare-table td.vitsa-compare-table__col {
    width: calc((100% - var(--vitsa-compare-label-width)) / var(--vitsa-compare-cols, 1)) !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 1rem 1.25rem 1rem 1rem !important;
}

.vitsa-compare-page .vitsa-compare-table__product-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
}

.vitsa-compare-page .vitsa-compare-table__remove-row {
    justify-content: flex-end !important;
    width: 100%;
}

.vitsa-compare-page .vitsa-compare-table__image-link {
    display: block !important;
    width: auto !important;
    max-width: 10rem !important;
    margin: 0 !important;
    text-align: left !important;
}

.vitsa-compare-page .vitsa-compare-table__image-wrap,
.vitsa-compare-page .vitsa-compare-table .img-fluid-eq {
    display: block !important;
    width: auto !important;
    max-width: 10rem !important;
    margin: 0 !important;
    text-align: left !important;
}

.vitsa-compare-page .vitsa-compare-table .img-fluid-eq .img-fluid-eq__dummy {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
}

.vitsa-compare-page .vitsa-compare-table .img-fluid-eq .img-fluid-eq__wrap {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    inset: auto !important;
}

.vitsa-compare-page .vitsa-compare-table .img-fluid-eq .img-fluid-eq__wrap img,
.vitsa-compare-page .vitsa-compare-table__image {
    display: block !important;
    width: auto !important;
    max-width: 10rem !important;
    max-height: 10rem !important;
    height: auto !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: left top !important;
}

.vitsa-compare-page .vitsa-compare-table__product-name,
.vitsa-compare-page .vitsa-compare-table__product-name a {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    margin: 0 !important;
}

.vitsa-compare-page .vitsa-compare-table__product-name a {
    color: #1a231f !important;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400 !important;
    line-height: 1.4;
}

.vitsa-compare-page .vitsa-compare-table__stock {
    display: inline-block !important;
    text-align: left !important;
    margin: 0 !important;
}

.vitsa-compare-page .vitsa-compare-table__value,
.vitsa-compare-page .vitsa-compare-table__empty-value {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    margin: 0 !important;
}

.vitsa-compare-page .vitsa-compare-table__description-text,
.vitsa-compare-page .vitsa-compare-table__description-text p,
.vitsa-compare-page .vitsa-compare-table__description-text li,
.vitsa-compare-page .vitsa-compare-table__description-text span {
    text-align: left !important;
}

.vitsa-compare-page .vitsa-compare-table tr {
    display: table-row !important;
}

.vitsa-compare-page .vitsa-compare-table th,
.vitsa-compare-page .vitsa-compare-table td {
    display: table-cell !important;
}

.vitsa-compare-page .vitsa-compare-table__price-wrap,
.vitsa-compare-page .vitsa-compare-table__price .product-price {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
}

.vitsa-compare-page .vitsa-compare-table__price .product-price-sale:not(.d-none),
.vitsa-compare-page .vitsa-compare-table__price .product-price-original:not(.d-none) {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: baseline !important;
    gap: 0.25rem !important;
    text-align: left !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.vitsa-compare-page .vitsa-compare-table__price .product-price-sale:not(.d-none) ins,
.vitsa-compare-page .vitsa-compare-table__price .product-price-sale:not(.d-none) del,
.vitsa-compare-page .vitsa-compare-table__price .product-price-sale:not(.d-none) .product-price-discount {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

.vitsa-compare-page .vitsa-compare-table__price .product-price-sale:not(.d-none) ins {
    display: inline !important;
    text-decoration: none !important;
}

.vitsa-compare-page .vitsa-compare-table__price .product-price-sale.d-none,
.vitsa-compare-page .vitsa-compare-table__price .product-price-original.d-none {
    display: none !important;
}

.vitsa-compare-page .vitsa-compare-table__price ins {
    text-decoration: none;
}

.vitsa-compare-page .vitsa-compare-table__price ins .amount,
.vitsa-compare-page .vitsa-compare-table__price ins .bb-product-price-text {
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    color: var(--primary-color, #6eb12e) !important;
}

.vitsa-compare-page .vitsa-compare-table__price del .amount,
.vitsa-compare-page .vitsa-compare-table__price del .bb-product-price-text-old {
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: hsl(150, 8%, 42%) !important;
    text-decoration: line-through !important;
}

.vitsa-compare-page .vitsa-compare-table__price .product-price-discount {
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    align-self: baseline !important;
    display: inline-block !important;
    width: auto !important;
    max-width: max-content !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #e53935 !important;
    background: none !important;
    border-radius: 0 !important;
    white-space: nowrap !important;
}

.vitsa-compare-page .vitsa-compare-table__price .product-price-original:not(.d-none) .amount,
.vitsa-compare-page .vitsa-compare-table__price .product-price-original:not(.d-none) .bb-product-price-text {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--primary-color, #6eb12e) !important;
}

.vitsa-compare-page .vitsa-compare-table__cart,
.vitsa-compare-page .vitsa-compare-table__cart .cart-form,
.vitsa-compare-page .vitsa-compare-table__cart .product-button {
    text-align: left !important;
    padding: 0 !important;
    margin: 0 !important;
}

.vitsa-compare-page .vitsa-compare-table__cart .btn-primary,
.vitsa-compare-page .vitsa-compare-table__cart .add-to-cart-button,
.vitsa-compare-page .vitsa-compare-table__cart .js-quick-shop-button,
.vitsa-compare-page .vitsa-compare-page__shop-link.btn-primary {
    width: 100% !important;
    max-width: 100% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0 !important;
    min-height: 2.65rem;
    padding: 0.65rem 1rem !important;
    border: 1px solid #367c2b !important;
    border-radius: 0.75rem !important;
    background: #367c2b !important;
    color: #fff !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    box-shadow: 0 8px 18px rgba(54, 124, 43, 0.25) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.vitsa-compare-page .vitsa-compare-page__shop-link.btn-primary {
    width: auto !important;
    max-width: none !important;
    min-width: 11rem;
    text-decoration: none !important;
}

.vitsa-compare-page .vitsa-compare-table__cart .btn-primary:hover:not(:disabled),
.vitsa-compare-page .vitsa-compare-table__cart .add-to-cart-button:hover:not(:disabled),
.vitsa-compare-page .vitsa-compare-table__cart .js-quick-shop-button:hover:not(:disabled),
.vitsa-compare-page .vitsa-compare-page__shop-link.btn-primary:hover {
    background: #2f5e27 !important;
    border-color: #2f5e27 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(47, 94, 39, 0.3) !important;
}

.vitsa-compare-page .vitsa-compare-table__cart .btn-primary:disabled,
.vitsa-compare-page .vitsa-compare-table__cart .add-to-cart-button:disabled,
.vitsa-compare-page .vitsa-compare-table__cart .js-quick-shop-button:disabled {
    opacity: 0.55;
    transform: none;
    box-shadow: none !important;
    cursor: not-allowed;
}

.vitsa-compare-page .vitsa-compare-table__cart .add-to-cart-text {
    color: inherit !important;
}

@media (max-width: 767px) {
    .vitsa-compare-page {
        --vitsa-compare-col-width: 14rem;
        --vitsa-compare-label-width: 7rem;
    }
}
