/* =====================================================================
   Fastpoint – Product Technical Section frontend styles
   Replicates the old Bootstrap-based layout using plain CSS/flexbox
   ===================================================================== */

/* ---- Wrapping container -------------------------------------------- */
.fp-technical-section {
    margin-top: 2em;
    clear: both;
}

/* ---- Tab list: match WooCommerce wc-tabs look ----------------------- */
.fp-technical-tabs.wc-tabs-wrapper {
    margin-bottom: 0;
}

/* ---- Technical description inner: two-column flex layout ----------- */
.fp-technical-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    padding: 1.5em 0;
}

.fp-technical-description {
    flex: 1 1 45%;
    min-width: 260px;
}

.fp-technical-image {
    flex: 1 1 45%;
    min-width: 260px;
    text-align: center;
}

.fp-technical-image img {
    max-width: 100%;
    height: auto;
}

/* ---- Variants table wrapper ---------------------------------------- */
.product_variations {
    margin-top: 1.5em;
    width: 100%;
}

.fp-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* DataTables fuerza width:99% — lo sobreescribimos */
.fp-table-responsive .dataTables_wrapper {
    width: 100%;
}

/* ---- Variants table: base style ------------------------------------ */
#table-varianti {
    width: 100% !important;
    border-collapse: collapse;
    font-size: 0.9em;
}

#table-varianti thead th {
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
    padding: 8px 10px;
    text-align: left;
    white-space: nowrap;
}

#table-varianti tbody td {
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

#table-varianti tbody tr:hover {
    background: #fafafa;
}

#table-varianti tbody tr.selected-row {
    background: #fff8e1;
}

/* ---- Column filters row (tfoot) ------------------------------------ */
#table-varianti tfoot th {
    padding: 4px 6px;
    background: #f0f0f0;
    border-top: 1px solid #ddd;
}

#table-varianti tfoot select {
    width: 100%;
    padding: 3px 4px;
    font-size: 0.85em;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fff;
}

/* ---- Reset filter button ------------------------------------------- */
.reset-btn-wrapper {
    margin-top: 0.75em;
    text-align: right;
}

.reset-btn-wrapper .reset-filter {
    display: none; /* shown by JS when a filter is active */
    cursor: pointer;
    padding: 6px 14px;
    font-size: 0.85em;
    background: #cd2653;
    color: #fff;
    border: none;
    border-radius: 3px;
}

.reset-btn-wrapper .reset-filter:hover {
    background: #a81e44;
}

/* ---- Responsive: stack columns on small screens -------------------- */
@media (max-width: 640px) {
    .fp-technical-inner {
        flex-direction: column;
    }
}
