body {
    outline: 10px solid red !important;
}

.wfpl {
    display: grid;
    gap: 16px;
}

.wfpl-cat {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    overflow: hidden;
}

.wfpl-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.wfpl-cat-title {
    font-size: 16px;
    font-weight: 600;
}

.wfpl-products {
    padding: 12px 16px;
}

.wfpl-product {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.wfpl-product:last-child {
    border-bottom: none;
}

.wfpl-price {
    width: 120px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

/* cambio detectado */
.wfpl-price.is-dirty {
    outline: 2px solid #fde047;
    background: #fffbeb;
}


/* botón */
.wfpl-save-cat {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    opacity: .4;
}

.wfpl-save-cat:enabled {
    opacity: 1;
}
/* Inputs de precio más cómodos */
.wfpl-price {
    width: 120px;
    padding: 6px 8px;
    font-size: 15px;
}

/* Precio texto (cliente) */
.wfpl-price-text {
    min-width: 120px;
    text-align: right;
    font-weight: 600;
}

/* Select de orden */
#wfpl-order {
    min-width: 220px;
    padding: 6px 8px;
    font-size: 14px;
}
/* ==============================
   WFPL – override Astra/Woo
   ============================== */

/* Astra fuerza input[type=number], lo pisamos completo */
.woocommerce-js .wfpl-product input[type="number"].wfpl-price {
    width: 180px !important;
    max-width: 180px !important;
    min-width: 180px !important;
    flex: 0 0 180px !important;
    box-sizing: border-box;
    padding: 6px 10px;
    font-size: 14px;
}

/* Asegura que el contenedor no lo achique */
.wfpl-product {
    display: flex;
    align-items: center;
    gap: 12px;
}
