/* P4C Integración ERP: precio neto por cliente */

.p4c-precio-iva,
.p4c-precio-unidad,
.p4c-precio-login {
    display: inline-block;

    margin-left: 6px;

    color: #515556;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
    vertical-align: baseline;
}

/* La unidad va en la misma línea, a la derecha del precio y del "+ IVA":
   "USD 60,00 + IVA · por paquete de 100 u." */
.p4c-precio-unidad {
    display: inline;

    margin-left: 6px;

    white-space: nowrap;
}

.p4c-precio-unidad::before {
    content: "·";

    margin-right: 6px;
}

.p4c-precio-login {
    display: block;

    margin: 2px 0 0;

    color: #186973;
}

.p4c-precio-consultar {
    display: inline-block;

    color: #186973;

    font-size: 16px;
    font-weight: 700;
}

.p4c-erp-cliente {
    margin: 0 0 16px;

    color: #515556;
}

.p4c-erp-cliente-codigo {
    color: #8a9696;
}

/* Sin neto para el cliente: lista + leyenda */
.p4c-precio-sin {
    display: block;

    margin: 2px 0 0;

    color: #cb0000;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
}

/* Carrito: "+ IVA" junto a precio, subtotal y total, y la nota al pie */
.woocommerce-cart .custom-cart-table .p4c-precio-iva,
.cart-collaterals .p4c-precio-iva,
.woocommerce-checkout-review-order-table .p4c-precio-iva,
.ld-cart-total-price .p4c-precio-iva,
.ld-cart-product-price .p4c-precio-iva {
    margin-left: 4px;

    font-size: 11px;
}

.p4c-cart-iva-note td {
    padding-top: 8px !important;

    border: 0 !important;

    color: #515556;

    font-size: 12px;
    font-weight: 400;
    text-align: left !important;
}

/* Cantidad ajustada por embalaje: marca amarilla con tilde */
.p4c-ajuste-nota,
.p4c-ajuste-aviso,
.p4c-toast-ajuste .p4c-toast-text {
    display: inline-block;

    padding-left: 22px;

    color: #8a6d00;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;

    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23f5c400'/%3E%3Cpath d='M5.5 10.5l3 3L14.5 7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat left center / 16px 16px;
}

.p4c-ajuste-nota {
    display: block;

    margin: 4px 0 0;
}

.woocommerce-cart .custom-cart-table tr.p4c-cantidad-ajustada td {
    background: #fff8dc !important;
}

.woocommerce-cart .custom-cart-table tr.p4c-cantidad-ajustada td.product-quantity .quantity {
    box-shadow: 0 0 0 2px #f5c400;
}

/* Aviso de WooCommerce con el ajuste (carrito clásico) */
.woocommerce-cart .woocommerce-info:has(.p4c-ajuste-aviso),
.woocommerce-cart .woocommerce-message:has(.p4c-ajuste-aviso) {
    border-color: #f5c400 !important;

    background: #fff8dc !important;
}

/* Toast del catálogo */
.p4c-toast.p4c-toast-ajuste {
    border-color: #f5c400 !important;

    background: #fff8dc !important;
}

.p4c-toast.p4c-toast-ajuste .p4c-toast-icon {
    display: none !important;
}

/* Resultado de la carga masiva */
.p4c-result-row.p4c-result-ajustado .p4c-result-icon {
    background: #fff3c4;

    color: #8a6d00;
}

.p4c-result-row .p4c-result-ajuste {
    display: block;

    color: #8a6d00;

    font-size: 12px;
}

/* Neto por pieza, debajo del precio expresado por 100 u. */
.p4c-precio-cu {
    display: block;

    margin: 2px 0 0;

    color: #515556;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
}

/* Entrega estimada: columna del carrito. Misma etiqueta que el stock de la
   ficha (verde inmediata, amarillo parcial, verde agua con fecha). */
.p4c-entrega {
    display: inline-flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 27px;

    padding: 5px 12px;

    border-radius: 7px;

    color: #186973;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;

    white-space: nowrap;

    background: #e3f3f5;
}

.p4c-entrega--inmediata {
    color: #2f7c37;

    background: #c9f8ce;
}

.p4c-entrega--parcial {
    color: #8a6d1d;

    background: #fdf1c7;
}

.p4c-entrega--sin {
    color: #515556;

    font-weight: 400;

    background: #eef1f1;
}

/* Fuera de gama en Alemania y sin stock en Argentina */
.p4c-entrega--sin_disponibilidad {
    color: #cb0000;

    white-space: normal;

    background: #ffcfcf;
}

/* Checkout por bloques: el dato "Entrega" del ítem del resumen */
.wc-block-components-product-details__entrega .wc-block-components-product-details__value {
    font-weight: 700;
}

/* Pedido mínimo: aviso en lugar del botón "Finalizar compra" */
.p4c-minimo-pedido {
    box-sizing: border-box;

    margin: 0 0 16px;
    padding: 12px;

    border: 1px solid #cb0000;
    border-radius: 8px;

    background: #ffcfcf;

    color: #cb0000;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.p4c-minimo-pedido--mini {
    margin: 0 0 12px;

    font-size: 12px;
}
