.fd_productpage_compare {
    .product-compare-wrapper {
        margin: 30px auto;
        max-width: 100%;
        padding: 0 15px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .img-container {
        position: relative;
    }

    .flag-page-product {
        position: unset !important;
        .product-flags__flag {
            list-style: none;
            top: -3px !important;
            right: 13px !important;
            font-size: 11px;
            padding: 4px;
            @media (max-width: 425px) {
                top: -50px !important;
                right: 2px !important;
            }
            @media (max-width: 320px) {
                top: -72px !important;
                right: 2px !important;
            }
            &:after {
                content: none;
            }
        }

    }

    .compare-grid {
        display: grid;
        grid-template-columns: 160px;
        grid-auto-flow: column;
        grid-auto-columns: minmax(160px, 1fr);
        column-gap: 0;
    }

    .compare-column {
        background: #fff;
        padding: 6px;
        text-align: center;

        &.is-base-product {
            border: 1px solid #979797;
            border-bottom: transparent;
        }

        .product-header {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100%;
        }
    }

    .product-name {
        font-weight: bold;
        font-size: 14px;
        margin: 10px 0;
    }

    .product-pricing {
        display: flex;
        flex-direction: column;
        width: 100%;
        font-size: 1.2rem;
        padding: 10px;
        color: #183157;
    }

    .btn {
        &.seeprodct {
            background: none;
            border: 1px solid #183157;
            color: #183157;

            &:hover {
                background: #183157;
                color: white;
                border: 1px solid #183157;
            }
        }
    }

    .btn-view {
        background-color: #007bff;
        color: #fff;
    }

    .features-grid {
        display: flex;
        flex-direction: column;
    }

    .feature-row {
        display: grid;
        grid-template-columns: 160px;
        grid-auto-flow: column;
        grid-auto-columns: minmax(160px, 1fr);
        column-gap: 0;
        font-size: 13px;

        &:nth-child(odd) {
            div {
                background-color: #0000000d;
            }
        }
    }

    .feature-title {
        text-align: center;
        font-weight: bold;
        padding: 6px 0;
    }

    .features-grid .feature-row:last-child .feature-value.is-base-product {
        border-bottom: 1px solid #979797;
    }

    .feature-value {
        text-align: center;
        padding: 6px 0;

        &.is-base-product {
            border-left: 1px solid #979797;
            border-right: 1px solid #979797;
        }

    }
}


/* ========== Mobile / tablette ========== */
@media (max-width: 1024px) {
    .fd_productpage_compare {
        .product-compare-wrapper {
            overflow-x: auto;
            overscroll-behavior-x: contain;
            -webkit-overflow-scrolling: touch;
        }

        .compare-grid,
        .feature-row {
            display: grid;
            grid-template-columns: 120px;
            grid-auto-flow: column;
            grid-auto-columns: minmax(160px, 1fr);
            column-gap: 0;
        }

        .feature-row {
            &:nth-child(odd) {
                background-color: #0000000d;
                div:not(.feature-title) {
                    background-color: #00000003;
                }
                div.feature-title {
                    background-color: transparent;
                }
            }
        }

        .ghost-column,
        .feature-title {
            position: sticky;
            z-index: 2;
            background: transparent;
            min-width: 0 !important;
            left: 0;
            top: 0;
            padding: 0 !important;
            font-size: 10px !important;
            text-align: left;
            font-weight: bold;
            border-top: none;
            white-space: nowrap;
        }

        .compare-column,
        .feature-value {
            min-width: 160px;
        }

        .features-grid {
            flex-wrap: wrap;
        }

        .product-name { font-size: 13px; }
        .product-pricing { font-size: 1rem; }
    }
}
@media (max-width: 640px) {
    .fd_productpage_compare {
        .compare-grid, .feature-row {
            grid-template-columns: 90px;
        }
    }
}