/* ==========================================================
   TEC Fingerprint Product Comparison
   PrestaShop / Leo Gamegear
   ========================================================== */


/* ----------------------------------------------------------
   Comparison Wrapper
   Desktop: centered with 20px side gutters
   ---------------------------------------------------------- */

.tec-comparison-scroll {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 32px auto;
    overflow-x: visible;
}


/* ----------------------------------------------------------
   Main Comparison Table
   ---------------------------------------------------------- */

.tec-comparison-table {
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    table-layout: fixed;
    border: 1px solid #dbe5f5 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    color: #141a26;
    font-size: 12px;
}

.tec-comparison-table th,
.tec-comparison-table td {
    box-sizing: border-box;
    vertical-align: middle !important;
    border-left: 0 !important;
    border-right: 0 !important;
}


/* ----------------------------------------------------------
   Column Widths
   ---------------------------------------------------------- */

.tec-feature-spacer,
.tec-feature {
    width: 21%;
}

.tec-model-cell {
    width: 15.8%;
    padding: 10px 5px 7px !important;
    border: 0 !important;
    background: #fff !important;
}


/* ----------------------------------------------------------
   Product Model Headers
   ---------------------------------------------------------- */

.tec-model {
    padding: 11px 3px;
    border-radius: 8px;
    background: #053885;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}


/* ----------------------------------------------------------
   Product Images
   ---------------------------------------------------------- */

.tec-image-cell {
    height: 125px;
    padding: 6px !important;
    border: 0 !important;
    background: #fff !important;
    text-align: center;
}

.tec-product-image {
    display: block;
    width: 105px !important;
    height: 105px !important;
    max-width: 100% !important;
    max-height: 105px !important;
    margin: 0 auto;
    object-fit: contain;
}


/* ----------------------------------------------------------
   Comparison Rows
   ---------------------------------------------------------- */

.tec-comparison-table tbody tr:nth-child(odd) {
    background: #f6faff;
}

.tec-comparison-table tbody tr:nth-child(even) {
    background: #fff;
}

.tec-comparison-table tbody td {
    height: 57px;
    padding: 9px 6px !important;
    border: 0 !important;
    border-bottom: 1px solid #b8d1f0 !important;
    color: #141a26;
    text-align: center;
    overflow-wrap: break-word;
}


/* ----------------------------------------------------------
   Feature Column
   ---------------------------------------------------------- */

.tec-feature {
    min-width: 0;
    padding-left: 16px !important;
    text-align: left !important;
    font-weight: 700;
}

.tec-feature-inner {
    display: flex;
    align-items: center;
    gap: 9px;
}

.tec-feature-icon {
    display: block;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    flex: 0 0 22px;
    object-fit: contain;
}

.tec-feature-subtitle {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 8px;
    font-weight: 500;
    line-height: 1.2;
}


/* ----------------------------------------------------------
   Highlighted Values
   ---------------------------------------------------------- */

.tec-highlight {
    color: #053885 !important;
    font-weight: 700;
}


/* ----------------------------------------------------------
   Supported / Not Supported
   ---------------------------------------------------------- */

.tec-supported {
    display: inline-flex;
    width: 21px;
    height: 21px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #053885;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.tec-not-supported {
    color: #64748b;
    font-size: 16px;
    line-height: 1;
}


/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */

.tec-comparison-footer-cell {
    padding: 15px 16px !important;
    border: 0 !important;
    background: #fff !important;
}

.tec-comparison-footer {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tec-footer-item {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.tec-footer-icon {
    display: block;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    flex: 0 0 30px;
    object-fit: contain;
}

.tec-footer-title {
    color: #053885;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
}

.tec-footer-description {
    margin-top: 2px;
    color: #374151;
    font-size: 8px;
    line-height: 1.3;
}


/* ----------------------------------------------------------
   Legend / Key
   ---------------------------------------------------------- */

.tec-comparison-key {
    flex: 0 0 175px;
    padding: 8px 10px;
    border: 1px solid #aecbf5;
    border-radius: 9px;
    background: #fff;
}

.tec-comparison-key-title {
    margin-bottom: 5px;
    color: #053885;
    font-size: 9px;
    font-weight: 700;
}

.tec-comparison-key-options {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 8px;
}

.tec-comparison-key-option {
    display: flex;
    align-items: center;
    gap: 5px;
}


/* ==========================================================
   Tablet / Mobile
   Horizontal scrolling begins below 768px
   ========================================================== */

@media (max-width: 767px) {

    /*
       12px gutter on both sides.
       The table itself remains wide and scrollable.
    */

    .tec-comparison-scroll {
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
        margin: 24px auto;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .tec-comparison-table {
        width: 920px !important;
        min-width: 920px;
        table-layout: fixed;
    }

    .tec-feature-spacer,
    .tec-feature {
        width: 180px;
        min-width: 180px;
    }

    .tec-model-cell {
        width: 148px;
        min-width: 148px;
        padding: 8px 4px 6px !important;
    }

    .tec-model {
        padding: 9px 3px;
        font-size: 13px;
        border-radius: 7px;
    }


    /* Product Images */

    .tec-image-cell {
        height: 110px;
        padding: 5px !important;
    }

    .tec-product-image {
        width: 90px !important;
        height: 90px !important;
        max-height: 90px !important;
    }


    /* Comparison Rows */

    .tec-comparison-table tbody td {
        height: 54px;
        padding: 8px 5px !important;
        font-size: 11px;
    }


    /* Feature Column */

    .tec-feature {
        padding-left: 12px !important;
    }

    .tec-feature-inner {
        gap: 8px;
    }

    .tec-feature-icon {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
        flex: 0 0 20px;
    }

    .tec-feature-subtitle {
        font-size: 7px;
    }


    /* Checkmarks */

    .tec-supported {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }


    /* Footer */

    .tec-comparison-footer-cell {
        padding: 14px !important;
    }

    .tec-comparison-footer {
        min-width: 860px;
        gap: 10px;
    }

    .tec-footer-icon {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
        flex: 0 0 28px;
    }

    .tec-footer-title {
        font-size: 8px;
    }

    .tec-footer-description {
        font-size: 7px;
    }

    .tec-comparison-key {
        flex-basis: 165px;
    }
}


/* ==========================================================
   Small Mobile
   ========================================================== */

@media (max-width: 480px) {

    .tec-comparison-scroll {
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
        margin: 20px auto;
    }

    .tec-comparison-table {
        width: 880px !important;
        min-width: 880px;
    }

    .tec-feature-spacer,
    .tec-feature {
        width: 170px;
        min-width: 170px;
    }

    .tec-model-cell {
        width: 142px;
        min-width: 142px;
    }

    .tec-model {
        font-size: 12px;
    }

    .tec-product-image {
        width: 82px !important;
        height: 82px !important;
        max-height: 82px !important;
    }

    .tec-image-cell {
        height: 100px;
    }
}