/* NAFISPOD_SANIYAR_PRODUCT_COMPARE_V1 */

.saniyar-product-compare-toggle.is-compared {
    color: var(--main-color-one) !important;
    border-color: var(--main-color-one) !important;
}

.saniyar-product-compare-tray[hidden] {
    display: none !important;
}

.saniyar-product-compare-tray {
    position: fixed;
    right: 0;
    bottom: 1rem;
    left: 0;
    z-index: 1040;
    pointer-events: none;
}

.saniyar-product-compare-tray__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 760px;
    margin-inline: auto;
    padding: .85rem 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    pointer-events: auto;
}

.saniyar-product-compare-tray__summary,
.saniyar-product-compare-tray__actions {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.saniyar-product-compare-tray__summary > i {
    color: var(--main-color-one);
    font-size: 1.25rem;
}

.saniyar-product-compare-tray__message {
    margin: 0;
    color: var(--bs-danger);
    font-size: .8rem;
}

[data-product-compare-open][aria-disabled="true"] {
    pointer-events: none;
    opacity: .55;
}

.saniyar-product-compare-table-wrap {
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
}

.saniyar-product-compare-table {
    min-width: 760px;
    margin-bottom: 0;
}

.saniyar-product-compare-table th,
.saniyar-product-compare-table td {
    min-width: 220px;
    vertical-align: middle;
    text-align: center;
}

.saniyar-product-compare-table .saniyar-product-compare-feature-column {
    position: sticky;
    right: 0;
    z-index: 2;
    min-width: 180px;
    width: 180px;
    text-align: right;
    background: var(--bs-body-bg);
}

.saniyar-product-compare-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--bs-body-bg);
}

.saniyar-product-compare-table thead
.saniyar-product-compare-feature-column {
    z-index: 4;
}

.saniyar-product-compare-group-row th {
    position: static !important;
    min-width: 0;
    background: var(--bs-tertiary-bg);
    color: var(--bs-emphasis-color);
    text-align: right;
    font-weight: 700;
}

.saniyar-product-compare-product {
    min-width: 200px;
    padding: .5rem;
}

.saniyar-product-compare-product__image {
    display: block;
    width: 130px;
    height: 130px;
    margin-inline: auto;
    object-fit: contain;
}

.saniyar-product-compare-empty {
    max-width: 620px;
    margin-inline: auto;
}

@media (max-width: 767.98px) {
    .saniyar-product-compare-tray {
        bottom: .5rem;
    }

    .saniyar-product-compare-tray__inner {
        align-items: stretch;
        flex-direction: column;
        margin-inline: .5rem;
        border-radius: .85rem;
    }

    .saniyar-product-compare-tray__summary,
    .saniyar-product-compare-tray__actions {
        justify-content: space-between;
    }

    .saniyar-product-compare-tray__actions > * {
        flex: 1 1 0;
    }

    .saniyar-product-compare-table th,
    .saniyar-product-compare-table td {
        min-width: 190px;
    }

    .saniyar-product-compare-table
    .saniyar-product-compare-feature-column {
        min-width: 145px;
        width: 145px;
    }
}
