.thvvs {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    margin: 0 0 1.25rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
}

.thvvs__label {
    display: block;
    font-weight: 700;
    margin: 0 0 0.45rem;
}

.thvvs__input-wrap {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.thvvs__input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.thvvs__clear {
    flex: 0 0 auto;
    min-width: 2.75rem;
    padding: 0 0.75rem;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.thvvs__help,
.thvvs__summary {
    margin: 0.45rem 0 0;
    font-size: 0.92rem;
}

.thvvs__help {
    opacity: 0.78;
}

.thvvs__summary {
    font-weight: 600;
}

.thvvs__results {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.75rem;
    max-height: 18rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.thvvs__result {
    display: grid;
    gap: 0.2rem;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 6px;
    padding: 0.65rem 0.75rem;
    text-align: left;
    background: #fff;
    cursor: pointer;
}

.thvvs__result:hover,
.thvvs__result:focus {
    border-color: currentColor;
    outline: none;
}

.thvvs__result-label {
    font-weight: 500;
}

.thvvs__result-label strong {
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 0.12em;
    text-underline-offset: 0.15em;
}

.thvvs__result-sku,
.thvvs__result-action {
    font-size: 0.84rem;
    opacity: 0.75;
}

@media (max-width: 600px) {
    .thvvs {
        padding: 0.85rem;
    }

    .thvvs__input-wrap {
        gap: 0.35rem;
    }

    .thvvs__results {
        max-height: 15rem;
    }

    .thvvs__result {
        padding: 0.65rem;
    }
}

/* Optional per-product display controls. */
.thvvs-form--hide-selectors table.variations,
.thvvs--hide-selectors ~ table.variations {
    display: none !important;
}

.thvvs-form--hide-description .woocommerce-variation-description,
.thvvs--hide-description ~ .single_variation_wrap .woocommerce-variation-description {
    display: none !important;
}

/* Enhanced result cards while keeping the original card layout. */
.thvvs__result-sku {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    opacity: 1;
}

.thvvs__result-sku-value {
    font-size: 1.12rem;
}

.thvvs__result-price {
    display: block;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.3;
    opacity: 0.9;
}

.thvvs__result-price-label,
.thvvs__result-sku-label {
    font-weight: 800;
}

.thvvs__result-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    margin-top: 0.35rem;
    border: 1px solid currentColor;
    border-radius: 5px;
    padding: 0.45rem 0.75rem;
    background: rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    opacity: 1;
}
