/**
 * Estilos base para elementos WooCommerce (Cart, Checkout, Order, Account)
 * Permite que los elementos se vean correctamente sin depender de Tailwind.
 * Si Tailwind está cargado, sus utilidades pueden complementar o sobrescribir estos estilos.
 *
 * @package Flowtitude
 * @subpackage WooCommerce
 * @since 1.0.6
 */

/* --- Carrito: subtotal, total, envío --- */
.flowtitude-cart-subtotal,
.flowtitude-cart-order-total {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.flowtitude-cart-subtotal__label,
.flowtitude-cart-order-total__label {
    font-weight: 700;
}

.flowtitude-cart-subtotal__value,
.flowtitude-cart-order-total__value {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.flowtitude-cart-subtotal__price,
.flowtitude-cart-order-total__price {
    display: flex;
    justify-content: flex-end;
    font-weight: 700;
}

.flowtitude-cart-order-total__tax {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
    text-align: right;
}

/* Row layout para order total (label + valor) */
.flowtitude-cart-order-total__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

/* Price amount styling */
.flowtitude-price-amount {
    font-weight: 700;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

/* --- Carrito: envío --- */
.flowtitude-cart-shipping-totals__wrapper table {
    width: 100%;
}

.flowtitude-cart-shipping-totals__wrapper td {
    padding: 0.25rem 0;
}

/* --- Carrito: botón checkout y express --- */
.flowtitude-cart-proceed-checkout-container,
.flowtitude-cart-proceed-checkout-wrapper {
    width: 100%;
}

.flowtitude-cart-proceed-checkout__express {
    margin-bottom: 0.75rem;
}

.flowtitude-cart-proceed-checkout__express--below {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* --- Checkout: contenedores genéricos --- */
.flowtitude-checkout-submit-container,
.flowtitude-checkout-billing-detail,
.flowtitude-checkout-order-detail,
.flowtitude-checkout-shipping-methods-wrapper {
    width: 100%;
}

.flowtitude-checkout-order-total__value,
.flowtitude-checkout-order-total__price {
    text-align: right;
    font-weight: 700;
}

.flowtitude-checkout-order-total__tax {
    font-size: 0.875rem;
    color: #6b7280;
}

/* --- Order Summary: layouts --- */
.ft-order-summary--horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ft-order-summary--vertical {
    display: flex;
    flex-direction: column;
}

/* --- Simple Add to Cart: layouts --- */
.ft-add-to-cart--inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ft-add-to-cart--stacked {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
