/* =========================================================
   TRUEVITAHUB
   COMPARE ENGINE
   PHASE C1
   ========================================================= */

.tvh-compare-engine{
    width:100%;
}


/* =========================================================
   SELECTOR
   ========================================================= */

.tvh-compare-selector{
    max-width:1200px;
    margin:0 auto 60px;
    padding:40px;
    background:#fff;
    border:1px solid #E5E7EB;
    border-radius:28px;
    box-shadow:0 20px 60px rgba(15,23,42,.06);
}


.tvh-compare-selector-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:30px;
    margin-bottom:32px;
}


.tvh-compare-eyebrow{
    display:inline-block;
    margin-bottom:10px;
    font-size:12px;
    font-weight:800;
    letter-spacing:1.5px;
    color:#2952E3;
}


.tvh-compare-selector h2{
    margin:0 0 10px;
    font-size:32px;
    line-height:1.2;
    color:#111827;
}


.tvh-compare-selector p{
    margin:0;
    color:#6B7280;
    font-size:16px;
    line-height:1.7;
}


.tvh-compare-count{
    white-space:nowrap;
    padding:12px 18px;
    border-radius:999px;
    background:#F3F6FF;
    color:#2952E3;
    font-size:14px;
    font-weight:700;
}


.tvh-compare-count strong{
    font-size:18px;
}


/* =========================================================
   SEARCH
   ========================================================= */

.tvh-compare-tool-search{
    margin-bottom:28px;
}


.tvh-compare-tool-search label{
    display:block;
    margin-bottom:10px;
    font-weight:700;
    color:#111827;
}


.tvh-compare-search-box{
    display:flex;
    gap:12px;
}


.tvh-compare-search-box input{
    flex:1;
    min-height:54px;
    padding:0 18px;
    border:1px solid #D1D5DB;
    border-radius:14px;
    font-size:16px;
    outline:none;
}


.tvh-compare-search-box input:focus{
    border-color:#2952E3;
    box-shadow:0 0 0 4px rgba(41,82,227,.08);
}


.tvh-compare-search-box button{
    min-height:54px;
    padding:0 26px;
    border:0;
    border-radius:14px;
    background:#2952E3;
    color:#fff;
    font-weight:700;
    cursor:pointer;
}


/* =========================================================
   SEARCH RESULTS
   ========================================================= */

.tvh-compare-search-results{
    margin-top:12px;
}


.tvh-compare-result-item{
    width:100%;
    display:flex;
    align-items:center;
    gap:14px;
    padding:14px;
    margin-bottom:8px;
    border:1px solid #E5E7EB;
    border-radius:16px;
    background:#fff;
    cursor:pointer;
    text-align:left;
}


.tvh-compare-result-item:hover{
    border-color:#2952E3;
    background:#F8FAFF;
}


.tvh-compare-result-item img{
    width:44px;
    height:44px;
    object-fit:contain;
    border-radius:10px;
    border:1px solid #E5E7EB;
    padding:5px;
    background:#fff;
}


.tvh-compare-result-content{
    flex:1;
    min-width:0;
}


.tvh-compare-result-content strong{
    display:block;
    margin-bottom:4px;
    color:#111827;
}


.tvh-compare-result-content small{
    display:block;
    color:#6B7280;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}


.tvh-compare-add{
    color:#2952E3;
    font-weight:700;
    white-space:nowrap;
}


/* =========================================================
   SELECTED TOOLS
   ========================================================= */

.tvh-compare-selected{
    display:grid;
    grid-template-columns:
        repeat(4,minmax(0,1fr));
    gap:14px;
    margin-bottom:28px;
}


.tvh-compare-selected-tool{
    display:flex;
    align-items:center;
    gap:12px;
    min-height:70px;
    padding:12px;
    border:1px solid #E5E7EB;
    border-radius:16px;
    background:#F8FAFC;
}


.tvh-compare-selected-tool img{
    width:48px;
    height:48px;
    object-fit:contain;
    border-radius:12px;
    border:1px solid #E5E7EB;
    background:#fff;
    padding:5px;
}


.tvh-compare-selected-tool span{
    flex:1;
    min-width:0;
    font-weight:700;
    color:#111827;
}


.tvh-compare-remove{
    width:30px;
    height:30px;
    border:0;
    border-radius:50%;
    background:#FEE2E2;
    color:#B91C1C;
    font-size:20px;
    line-height:1;
    cursor:pointer;
}


.tvh-compare-empty-state{
    grid-column:1/-1;
    padding:40px;
    border:2px dashed #D1D5DB;
    border-radius:20px;
    text-align:center;
}


.tvh-compare-empty-state span{
    display:block;
    margin-bottom:8px;
    font-size:32px;
    color:#2952E3;
}


.tvh-compare-empty-state strong{
    display:block;
    margin-bottom:5px;
    color:#111827;
}


.tvh-compare-empty-state small{
    color:#6B7280;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.tvh-compare-selector-actions{
    display:flex;
    gap:12px;
}


.tvh-compare-primary,
.tvh-compare-secondary{
    min-height:50px;
    padding:0 24px;
    border-radius:12px;
    font-weight:700;
    cursor:pointer;
}


.tvh-compare-primary{
    border:0;
    background:#2952E3;
    color:#fff;
}


.tvh-compare-primary:disabled,
.tvh-compare-secondary:disabled{
    opacity:.45;
    cursor:not-allowed;
}


.tvh-compare-secondary{
    border:1px solid #D1D5DB;
    background:#fff;
    color:#111827;
}


/* =========================================================
   RESULTS HEADER
   ========================================================= */

.tvh-compare-results-header{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:30px;
    margin-bottom:30px;
}


.tvh-compare-results-header h2{
    margin:0 0 10px;
}


.tvh-compare-results-header p{
    margin:0;
    color:#6B7280;
}


.tvh-compare-share{
    padding:12px 18px;
    border:1px solid #D1D5DB;
    border-radius:12px;
    background:#fff;
    font-weight:700;
    cursor:pointer;
}


/* =========================================================
   TABLE ENHANCEMENTS
   ========================================================= */

.tvh-compare-table td{
    min-width:180px;
}


.tvh-compare-rating{
    color:#111827;
    font-size:14px;
    font-weight:700;
}


.tvh-compare-pricing{
    padding:6px 12px;
    border-radius:999px;
    background:#F3F4F6;
    color:#374151;
    font-size:13px;
    font-weight:700;
}


.tvh-compare-view-tool,
.tvh-compare-visit{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 16px;
    border-radius:10px;
    background:#2952E3;
    color:#fff!important;
    font-size:13px;
    font-weight:700;
    text-decoration:none;
}


.tvh-compare-description{
    max-width:280px;
    margin:auto;
    line-height:1.6;
}


.tvh-compare-empty{
    color:#9CA3AF;
}


.tvh-compare-mobile-note{
    display:none;
    margin-top:14px;
    text-align:center;
    color:#6B7280;
    font-size:13px;
}


/* =========================================================
   SHARE BOX
   ========================================================= */

.tvh-compare-share-box{
    margin-top:30px;
    padding:24px;
    border:1px solid #E5E7EB;
    border-radius:20px;
    background:#F8FAFC;
}


.tvh-compare-share-row{
    display:flex;
    gap:10px;
    margin-top:12px;
}


.tvh-compare-share-row input{
    flex:1;
    min-height:48px;
    padding:0 14px;
    border:1px solid #D1D5DB;
    border-radius:10px;
    background:#fff;
}


.tvh-compare-share-row button{
    min-height:48px;
    padding:0 18px;
    border:0;
    border-radius:10px;
    background:#2952E3;
    color:#fff;
    font-weight:700;
    cursor:pointer;
}


.tvh-compare-loading{
    padding:15px;
    color:#6B7280;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:900px){

    .tvh-compare-selector{
        padding:28px 20px;
    }


    .tvh-compare-selector-header{
        flex-direction:column;
    }


    .tvh-compare-selected{
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }


    .tvh-compare-results-header{
        flex-direction:column;
        align-items:flex-start;
    }

}


@media(max-width:600px){

    .tvh-compare-selector{
        border-radius:20px;
        padding:22px 16px;
    }


    .tvh-compare-selector h2{
        font-size:26px;
    }


    .tvh-compare-search-box{
        flex-direction:column;
    }


    .tvh-compare-search-box button{
        width:100%;
    }


    .tvh-compare-selected{
        grid-template-columns:1fr;
    }


    .tvh-compare-selector-actions{
        flex-direction:column;
    }


    .tvh-compare-primary,
    .tvh-compare-secondary{
        width:100%;
    }


    .tvh-compare-mobile-note{
        display:block;
    }


    .tvh-compare-share-row{
        flex-direction:column;
    }

}