/* ================================================================
 * NASUS RP — Checkout, carrito, campos de producto y selector de país
 *
 * Antes eran los snippets "Country selector" y "Country Selector Mobil":
 * ~120 KB de CSS metidos DENTRO del HTML. Ahora es un archivo aparte que
 * el navegador y el CDN guardan en caché, y solo se carga en carrito,
 * checkout, producto y mi cuenta (ver inc/enqueue.php).
 * ================================================================ */


/* ================================================================
 * 1. CHECKOUT REDISEÑADO — ESTÉTICO Y FLUIDO
 * ================================================================ */

.woocommerce-checkout .nx-wc-main,
body.woocommerce-checkout main,
body.woocommerce-checkout #main,
body.nx-checkout main,
body.nx-checkout .nx-main {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 60px 24px 120px !important;
}

.woocommerce-checkout h1,
.woocommerce-checkout .nx-page-title {
    font-family: 'Anton', 'Space Grotesk', sans-serif !important;
    font-size: clamp(40px, 6vw, 64px) !important;
    font-weight: 400 !important;
    line-height: 0.95 !important;
    letter-spacing: -0.02em !important;
    color: #f5f5f7 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}
.woocommerce-checkout h1::before,
.woocommerce-checkout .nx-page-title::before {
    content: '// FINALIZAR COMPRA · 2026';
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: #8a8a9e;
    letter-spacing: 2.5px;
    margin-bottom: 18px;
    text-transform: uppercase;
}
.woocommerce-checkout h1::after,
.woocommerce-checkout .nx-page-title::after {
    content: '';
    display: block;
    width: 72px;
    height: 3px;
    background: linear-gradient(90deg, #00f0ff 0%, #b983ff 100%);
    margin: 28px auto 48px;
    border-radius: 3px;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}

/* ═══════════════════════════════════════
   AVISOS: login / cupón / YITH Points
   ═══════════════════════════════════════ */

.woocommerce-form-login-toggle,
.woocommerce-form-coupon-toggle {
    margin: 0 0 14px 0 !important;
    padding: 14px 18px !important;
    background: linear-gradient(135deg, rgba(0,240,255,0.05), rgba(185,131,255,0.03)) !important;
    border: 1px solid rgba(0,240,255,0.15) !important;
    border-radius: 14px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 13px !important;
    color: #f5f5f7 !important;
    position: relative !important;
    transition: all 0.25s ease !important;
}
.woocommerce-form-login-toggle:hover,
.woocommerce-form-coupon-toggle:hover {
    border-color: rgba(0,240,255,0.3) !important;
    background: linear-gradient(135deg, rgba(0,240,255,0.08), rgba(185,131,255,0.04)) !important;
}
/* Info box dentro del toggle: ocultar su ícono default de Woo y meter emoji */
.woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-form-login-toggle .woocommerce-info {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    line-height: 1.4 !important;
}
/* Eliminar ::before y ::after default de WooCommerce que genera los cuadrados */
.woocommerce-form-coupon-toggle .woocommerce-info::before,
.woocommerce-form-login-toggle .woocommerce-info::before,
.woocommerce-form-coupon-toggle .woocommerce-info::after,
.woocommerce-form-login-toggle .woocommerce-info::after {
    content: none !important;
    display: none !important;
    background: none !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
}
/* Añadir emoji ticket antes del texto del cupón */
.woocommerce-form-coupon-toggle .woocommerce-info {
    padding-left: 0 !important;
}
.woocommerce-form-coupon-toggle .woocommerce-info::first-letter {
    /* placeholder para no romper nada */
}
/* Usar pseudo-elemento en el contenedor padre (no en woocommerce-info) */
.woocommerce-form-coupon-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}
.woocommerce-form-coupon-toggle::before {
    content: '🎟️';
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(0,240,255,0.4));
}
.woocommerce-form-login-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}
.woocommerce-form-login-toggle::before {
    content: '👤';
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(0,240,255,0.4));
}
.woocommerce-form-login-toggle a,
.woocommerce-form-coupon-toggle a {
    color: #00f0ff !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.woocommerce-form-login-toggle a:hover,
.woocommerce-form-coupon-toggle a:hover {
    color: #b983ff !important;
}

/* Forms expandidos (login / cupón) */
form.login,
form.checkout_coupon,
form.woocommerce-form-coupon {
    padding: 20px !important;
    background: rgba(255,255,255,0.025) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 14px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}
form.checkout_coupon p,
form.woocommerce-form-coupon p {
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 auto !important;
    min-width: 200px !important;
}
form.checkout_coupon input#coupon_code,
form.woocommerce-form-coupon input#coupon_code {
    width: 100% !important;
    min-height: 44px !important;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 100px !important;
    color: #f5f5f7 !important;
    padding: 10px 18px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.25s ease !important;
    box-sizing: border-box !important;
}
form.checkout_coupon input#coupon_code::placeholder,
form.woocommerce-form-coupon input#coupon_code::placeholder {
    color: #5a5a6e !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-family: 'Space Grotesk', sans-serif !important;
}
form.checkout_coupon input#coupon_code:focus,
form.woocommerce-form-coupon input#coupon_code:focus {
    border-color: #00f0ff !important;
    background: rgba(0,240,255,0.04) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0,240,255,0.12) !important;
}
form.checkout_coupon button[name="apply_coupon"],
form.woocommerce-form-coupon button[name="apply_coupon"] {
    background: #00f0ff !important;
    color: #07070c !important;
    border: none !important;
    border-radius: 100px !important;
    padding: 12px 24px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    min-height: 44px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 0 16px rgba(0,240,255,0.2) !important;
}
form.checkout_coupon button[name="apply_coupon"]:hover,
form.woocommerce-form-coupon button[name="apply_coupon"]:hover {
    background: #b983ff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(185,131,255,0.35) !important;
}

/* ═══════════════════════════════════════
   YITH POINTS - Mensajes de "ganarás X" y "usar puntos"
   ═══════════════════════════════════════ */

/* Mensaje "Ganarás X puntos" - pill horizontal morado/cyan */
#yith-par-message-cart,
.yith-par-message-cart,
.woocommerce-cart-notice.woocommerce-cart-notice-minimum-amount.woocommerce-info {
    margin: 0 0 14px 0 !important;
    padding: 14px 18px !important;
    background: linear-gradient(135deg, rgba(185,131,255,0.08), rgba(0,240,255,0.04)) !important;
    border: 1px solid rgba(185,131,255,0.25) !important;
    border-radius: 14px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 13px !important;
    color: #f5f5f7 !important;
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    line-height: 1.4 !important;
    position: relative !important;
    overflow: hidden !important;
}
#yith-par-message-cart::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 40% 80% at 95% 50%, rgba(185,131,255,0.12), transparent 70%);
    pointer-events: none;
}
#yith-par-message-cart img,
.yith-par-message-cart img {
    max-width: 28px !important;
    max-height: 28px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    filter: drop-shadow(0 0 8px rgba(185,131,255,0.4));
    position: relative;
    z-index: 1;
}
#yith-par-message-cart strong {
    color: #b983ff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 0 2px !important;
    letter-spacing: 0.02em !important;
    position: relative;
    z-index: 1;
}

/* Mensaje "Tienes X puntos. Usa Y puntos para obtener descuento" */
#yith-par-message-reward-cart,
.yith-par-message-reward-cart {
    margin: 0 0 20px 0 !important;
    padding: 18px 20px !important;
    background: linear-gradient(135deg, rgba(0,240,255,0.06), rgba(185,131,255,0.05)) !important;
    border: 1px solid rgba(0,240,255,0.2) !important;
    border-radius: 16px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 13px !important;
    color: #f5f5f7 !important;
    list-style: none !important;
    line-height: 1.6 !important;
    position: relative !important;
    overflow: hidden !important;
}
#yith-par-message-reward-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f0ff 50%, #b983ff 100%);
    opacity: 0.6;
}

/* Form interno con el input de puntos */
#yith-par-message-reward-cart form.ywpar_apply_discounts,
form.ywpar_apply_discounts {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-sizing: border-box !important;
}

/* Números destacados en los strong de YITH */
#yith-par-message-reward-cart strong {
    color: #00f0ff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 0 3px !important;
    letter-spacing: 0.01em !important;
}
/* Precio del descuento en morado (está dentro del tercer <strong>) */
#yith-par-message-reward-cart strong .woocommerce-Price-amount {
    color: #b983ff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}
#yith-par-message-reward-cart strong .woocommerce-Price-currencySymbol {
    color: inherit !important;
    font-size: 0.8em !important;
    opacity: 0.75 !important;
    margin-right: 2px !important;
}

/* Input numérico de puntos (ywpar-points-max) */
#yith-par-message-reward-cart input[type="text"],
#ywpar-points-max,
input[name="ywpar_input_points"] {
    min-width: 100px !important;
    max-width: 120px !important;
    width: auto !important;
    min-height: 40px !important;
    padding: 8px 14px !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(0,240,255,0.3) !important;
    border-radius: 100px !important;
    color: #00f0ff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center !important;
    letter-spacing: 0.5px !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
    margin: 0 4px !important;
    outline: none !important;
}
#yith-par-message-reward-cart input[type="text"]:focus,
#ywpar-points-max:focus,
input[name="ywpar_input_points"]:focus {
    border-color: #00f0ff !important;
    background: rgba(0,240,255,0.08) !important;
    box-shadow: 0 0 0 3px rgba(0,240,255,0.15) !important;
}

/* Botón "Aplica puntos" */
#ywpar_apply_discounts,
button.ywpar_apply_discounts,
button.ywpar-fixed-discount {
    background: #00f0ff !important;
    color: #07070c !important;
    border: none !important;
    border-radius: 100px !important;
    padding: 10px 22px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    min-height: 40px !important;
    margin-left: 6px !important;
    box-shadow: 0 0 18px rgba(0,240,255,0.25) !important;
    flex-shrink: 0 !important;
}
#ywpar_apply_discounts:hover,
button.ywpar_apply_discounts:hover {
    background: #b983ff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 22px rgba(185,131,255,0.4) !important;
}

/* Wrappers <span> internos del form YITH */
#yith-par-message-reward-cart span,
form.ywpar_apply_discounts span {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
}



/* Layout grid 2 columnas con sticky sidebar */
form.checkout.woocommerce-checkout {
    display: grid !important;
    grid-template-columns: 1fr 380px !important;
    grid-template-areas:
        "customer review-heading"
        "customer review"
        "customer payment";
    gap: 28px 32px !important;
    align-items: start !important;
}
form.checkout #customer_details {
    grid-area: customer !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
}
form.checkout #customer_details .col-1,
form.checkout #customer_details .col-2 {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
    background: linear-gradient(180deg, rgba(18,18,28,0.95) 0%, rgba(13,13,21,0.95) 100%) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 20px !important;
    padding: 28px 28px 24px !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 0 24px 0 !important;
}
.woocommerce-additional-fields:last-child {
    margin-bottom: 0 !important;
}
.woocommerce-billing-fields::before,
.woocommerce-shipping-fields::before,
.woocommerce-additional-fields::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #00f0ff 30%, #b983ff 70%, transparent 100%);
    opacity: 0.5;
}

.woocommerce-billing-fields > h3,
.woocommerce-shipping-fields > h3,
.woocommerce-additional-fields > h3,
.woocommerce-checkout h3 {
    font-family: 'Anton', sans-serif !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: -0.01em !important;
    color: #f5f5f7 !important;
    margin: 0 0 22px 0 !important;
    padding: 0 0 14px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    line-height: 1 !important;
}
.woocommerce-billing-fields > h3::before,
.woocommerce-shipping-fields > h3::before,
.woocommerce-additional-fields > h3::before,
.woocommerce-checkout h3::before {
    content: '';
    width: 5px;
    height: 20px;
    background: #00f0ff;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0,240,255,0.6);
    flex-shrink: 0;
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px 16px !important;
    margin: 0 !important;
    padding: 0 !important;
}
.woocommerce-checkout form .form-row,
.woocommerce-checkout p.form-row {
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}
.woocommerce-checkout form .form-row-first,
.woocommerce-checkout p.form-row-first {
    grid-column: 1 / 2 !important;
}
.woocommerce-checkout form .form-row-last,
.woocommerce-checkout p.form-row-last {
    grid-column: 2 / 3 !important;
}
.woocommerce-checkout form .form-row-wide,
.woocommerce-checkout p.form-row-wide,
.woocommerce-checkout form p.form-row.notes,
.woocommerce-checkout form p.form-row#cassilaa_field {
    grid-column: 1 / -1 !important;
}

.woocommerce-checkout form label,
.woocommerce-checkout p.form-row > label {
    display: block !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #8a8a9e !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
}
.woocommerce-checkout form label .required,
.woocommerce-checkout p.form-row > label .required {
    color: #ff3366 !important;
    font-weight: 700 !important;
    margin-left: 3px !important;
    text-decoration: none !important;
}
.woocommerce-checkout form label .optional,
.woocommerce-checkout p.form-row > label .optional {
    color: #5a5a6e !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
}

.woocommerce-checkout form .input-text,
.woocommerce-checkout form input[type="text"],
.woocommerce-checkout form input[type="email"],
.woocommerce-checkout form input[type="tel"],
.woocommerce-checkout form input[type="number"],
.woocommerce-checkout form input[type="password"],
.woocommerce-checkout form textarea,
.woocommerce-checkout form select,
.woocommerce-input-wrapper input[type="text"],
.woocommerce-input-wrapper input[type="email"],
.woocommerce-input-wrapper input[type="tel"],
.woocommerce-input-wrapper textarea,
.woocommerce-input-wrapper select {
    width: 100% !important;
    min-height: 48px !important;
    height: auto !important;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 12px !important;
    color: #f5f5f7 !important;
    padding: 12px 16px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    transition: all 0.25s ease !important;
    box-sizing: border-box !important;
    outline: none !important;
}
.woocommerce-checkout form textarea {
    min-height: 90px !important;
    resize: vertical !important;
}
.woocommerce-checkout form .input-text:focus,
.woocommerce-checkout form input:focus,
.woocommerce-checkout form textarea:focus,
.woocommerce-checkout form select:focus {
    border-color: #00f0ff !important;
    background: rgba(0,240,255,0.04) !important;
    box-shadow: 0 0 0 3px rgba(0,240,255,0.12) !important;
}
.woocommerce-checkout form input::placeholder,
.woocommerce-checkout form textarea::placeholder {
    color: #5a5a6e !important;
    opacity: 0.7 !important;
}
.woocommerce-input-wrapper {
    display: block !important;
    width: 100% !important;
}

/* Checkbox especial (términos obligatorios) */
.woocommerce-checkout p.form-row .woocommerce-input-wrapper label.checkbox {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    background: rgba(0,240,255,0.03) !important;
    border: 1px solid rgba(0,240,255,0.15) !important;
    border-radius: 12px !important;
    color: #f5f5f7 !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    margin: 0 !important;
}
.woocommerce-checkout p.form-row .woocommerce-input-wrapper label.checkbox:hover {
    background: rgba(0,240,255,0.05) !important;
    border-color: rgba(0,240,255,0.3) !important;
}
.woocommerce-checkout input[type="checkbox"].input-checkbox {
    accent-color: #00f0ff !important;
    width: 18px !important;
    height: 18px !important;
    margin: 1px 0 0 0 !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
}
.woocommerce-checkout p.form-row .woocommerce-input-wrapper label.checkbox .required {
    color: #ff3366 !important;
    font-weight: 700 !important;
}

/* Order review + payment (col derecha sticky) */
form.checkout #order_review_heading {
    grid-area: review-heading !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Anton', sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: -0.01em !important;
    color: #f5f5f7 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border: none !important;
}
form.checkout #order_review_heading::before {
    content: '' !important;
    width: 6px !important;
    height: 6px !important;
    background: #00f0ff !important;
    border-radius: 50% !important;
    box-shadow: 0 0 10px #00f0ff !important;
}
form.checkout #order_review,
form.checkout .woocommerce-checkout-review-order {
    grid-area: review !important;
    position: sticky !important;
    top: 100px !important;
    background: linear-gradient(180deg, rgba(18,18,28,0.95) 0%, rgba(13,13,21,0.95) 100%) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    overflow: hidden !important;
}
form.checkout #order_review::before,
form.checkout .woocommerce-checkout-review-order::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #b983ff 50%, transparent);
    opacity: 0.5;
}

.woocommerce-checkout-review-order-table,
form.checkout .shop_table.woocommerce-checkout-review-order-table {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}
.woocommerce-checkout-review-order-table thead {
    display: none !important;
}
.woocommerce-checkout-review-order-table tbody tr,
.woocommerce-checkout-review-order-table tfoot tr {
    background: transparent !important;
    border: none !important;
}
.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table th {
    background: transparent !important;
    border: none !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
    padding: 12px 0 !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 13px !important;
}
.woocommerce-checkout-review-order-table tbody tr:first-child td {
    border-top: none !important;
    padding-top: 0 !important;
}
.woocommerce-checkout-review-order-table td.product-name {
    color: #f5f5f7 !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: left !important;
    padding-right: 12px !important;
}
.woocommerce-checkout-review-order-table td.product-name .product-quantity {
    display: inline-block !important;
    background: rgba(0, 240, 255, 0.12) !important;
    color: #00f0ff !important;
    padding: 2px 10px !important;
    border-radius: 100px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-left: 6px !important;
    white-space: nowrap !important;
}
.woocommerce-checkout-review-order-table td.product-total {
    color: #00f0ff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 700 !important;
    text-align: right !important;
    white-space: nowrap !important;
}

.woocommerce-checkout-review-order-table tfoot tr.cart-subtotal th,
.woocommerce-checkout-review-order-table tfoot tr.fee th,
.woocommerce-checkout-review-order-table tfoot tr.shipping th {
    color: #8a8a9e !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-align: left !important;
}
.woocommerce-checkout-review-order-table tfoot tr.cart-subtotal td,
.woocommerce-checkout-review-order-table tfoot tr.fee td,
.woocommerce-checkout-review-order-table tfoot tr.shipping td {
    color: #f5f5f7 !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 600 !important;
    text-align: right !important;
}
.woocommerce-checkout-review-order-table tfoot tr.fee td {
    color: #b983ff !important;
}

.woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout-review-order-table tfoot tr.order-total td {
    padding-top: 18px !important;
    padding-bottom: 4px !important;
    border-top: 1px solid rgba(255,255,255,0.12) !important;
    margin-top: 8px !important;
}
.woocommerce-checkout-review-order-table tfoot tr.order-total th {
    font-family: 'Anton', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    color: #f5f5f7 !important;
    letter-spacing: 0.02em !important;
}
.woocommerce-checkout-review-order-table tfoot tr.order-total td {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #00f0ff !important;
    text-align: right !important;
    letter-spacing: 0 !important;
}
.woocommerce-checkout-review-order-table tfoot tr.order-total td strong {
    font-weight: 700 !important;
    color: inherit !important;
}

/* Payment */
#payment.woocommerce-checkout-payment {
    grid-area: payment !important;
    background: linear-gradient(180deg, rgba(18,18,28,0.95) 0%, rgba(13,13,21,0.95) 100%) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    margin: 0 !important;
    overflow: hidden !important;
    position: relative !important;
}
#payment.woocommerce-checkout-payment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f0ff 50%, transparent);
    opacity: 0.5;
}

#payment ul.payment_methods,
#payment ul.wc_payment_methods {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 18px 0 !important;
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}
#payment ul.payment_methods li.wc_payment_method {
    background: rgba(255,255,255,0.025) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    margin: 0 !important;
    list-style: none !important;
    transition: all 0.25s ease !important;
}
#payment ul.payment_methods li.wc_payment_method:hover {
    border-color: rgba(0,240,255,0.4) !important;
    background: rgba(0,240,255,0.03) !important;
}
#payment ul.payment_methods li.wc_payment_method:has(input[type="radio"]:checked) {
    border-color: #00f0ff !important;
    background: rgba(0,240,255,0.05) !important;
    box-shadow: 0 0 0 1px #00f0ff inset, 0 0 20px rgba(0,240,255,0.15) !important;
}
#payment ul.payment_methods li label,
#payment ul.payment_methods li > label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #f5f5f7 !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    width: 100% !important;
}
#payment ul.payment_methods li input[type="radio"],
#payment ul.payment_methods li .input-radio {
    accent-color: #00f0ff !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}
#payment ul.payment_methods li img {
    max-height: 24px !important;
    width: auto !important;
    margin-left: auto !important;
    opacity: 0.85 !important;
}

#payment div.payment_box {
    background: rgba(0,240,255,0.04) !important;
    color: #8a8a9e !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    padding: 12px 14px !important;
    margin: 12px 0 0 0 !important;
    border-radius: 10px !important;
    border: 1px solid rgba(0,240,255,0.1) !important;
}
#payment div.payment_box::before {
    display: none !important;
}
#payment div.payment_box p {
    margin: 0 !important;
    color: inherit !important;
}
#payment div.payment_box p + p {
    margin-top: 8px !important;
}

.woocommerce-terms-and-conditions-wrapper {
    margin: 16px 0 !important;
    padding: 14px 16px !important;
    background: rgba(255,255,255,0.025) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
}
/* Sin aviso de privacidad ni página de términos el recuadro queda vacío */
.woocommerce-terms-and-conditions-wrapper:not(:has(*)) {
    display: none !important;
}
.woocommerce-form__label-for-checkbox {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    color: #8a8a9e !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer !important;
    margin: 0 !important;
}
.woocommerce-form__input-checkbox {
    accent-color: #00f0ff !important;
    width: 16px !important;
    height: 16px !important;
    margin: 2px 0 0 0 !important;
    flex-shrink: 0 !important;
}

/* Botón "Realizar el pedido" */
#payment #place_order,
.woocommerce-checkout #place_order,
button#place_order {
    display: block !important;
    width: 100% !important;
    margin: 18px 0 12px !important;
    padding: 18px 28px !important;
    background: #00f0ff !important;
    color: #07070c !important;
    border: none !important;
    border-radius: 100px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.3), 0 4px 12px rgba(0, 240, 255, 0.15) !important;
    position: relative !important;
    overflow: hidden !important;
}
#payment #place_order:hover {
    background: #b983ff !important;
    color: #07070c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 32px rgba(185, 131, 255, 0.45), 0 0 48px rgba(185, 131, 255, 0.25) !important;
}
#payment #place_order:active {
    transform: translateY(0) !important;
}
#payment #place_order:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ═══════════════════════════════════════
   MENSAJES DE WOOCOMMERCE
   (éxito, error, info, carrito vacío, deshacer)
   ═══════════════════════════════════════ */

.woocommerce-NoticeGroup,
.woocommerce-NoticeGroup ul,
.woocommerce-notices-wrapper {
    margin-bottom: 16px !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Base para TODOS los mensajes */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    background: rgba(255,255,255,0.025) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 14px !important;
    padding: 14px 18px 14px 50px !important;
    color: #f5f5f7 !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 0 0 10px 0 !important;
    list-style: none !important;
    position: relative !important;
    display: block !important;
    transition: all 0.25s ease !important;
    box-shadow: none !important;
}
/* Ocultar ::after default que a veces muestra el icono verde de WooCommerce */
.woocommerce-error::after,
.woocommerce-message::after,
.woocommerce-info::after {
    content: none !important;
    display: none !important;
}

/* Ícono con ::before custom (limpio, sin el SVG verde del plugin) */
.woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    background: transparent;
    line-height: 1;
}

/* Mensaje ÉXITO (producto eliminado, carrito actualizado, etc.) */
.woocommerce-message {
    border-color: rgba(0,240,255,0.3) !important;
    background: linear-gradient(135deg, rgba(0,240,255,0.08), rgba(185,131,255,0.03)) !important;
    color: #f5f5f7 !important;
}
.woocommerce-message::before {
    content: '✓';
    background: rgba(0,240,255,0.15) !important;
    color: #00f0ff !important;
    border: 1px solid rgba(0,240,255,0.4);
    box-shadow: 0 0 8px rgba(0,240,255,0.3);
}
.woocommerce-message a {
    color: #00f0ff !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(0,240,255,0.3) !important;
    padding-bottom: 1px !important;
    transition: all 0.2s ease !important;
}
.woocommerce-message a:hover {
    color: #b983ff !important;
    border-bottom-color: #b983ff !important;
}

/* Mensaje ERROR (validación, falta algo) */
.woocommerce-error {
    border-color: rgba(255,51,102,0.3) !important;
    background: linear-gradient(135deg, rgba(255,51,102,0.08), rgba(255,51,102,0.03)) !important;
    color: #ff6688 !important;
}
.woocommerce-error::before {
    content: '!';
    background: rgba(255,51,102,0.15) !important;
    color: #ff3366 !important;
    border: 1px solid rgba(255,51,102,0.4);
    box-shadow: 0 0 8px rgba(255,51,102,0.3);
}
.woocommerce-error a {
    color: #ff3366 !important;
    font-weight: 700 !important;
}

/* Mensaje INFO (info general, recordatorios) */
.woocommerce-info {
    border-color: rgba(185,131,255,0.3) !important;
    background: linear-gradient(135deg, rgba(185,131,255,0.06), rgba(0,240,255,0.03)) !important;
    color: #f5f5f7 !important;
}
.woocommerce-info::before {
    content: 'i';
    background: rgba(185,131,255,0.15) !important;
    color: #b983ff !important;
    border: 1px solid rgba(185,131,255,0.4);
    box-shadow: 0 0 8px rgba(185,131,255,0.3);
    font-style: italic;
    font-weight: 700;
}
.woocommerce-info a,
.woocommerce-info a.restore-item {
    color: #00f0ff !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(0,240,255,0.3) !important;
    padding-bottom: 1px !important;
    transition: all 0.2s ease !important;
}
.woocommerce-info a:hover,
.woocommerce-info a.restore-item:hover {
    color: #b983ff !important;
    border-bottom-color: #b983ff !important;
}

/* Carrito vacío - card destacada grande */
body.woocommerce-cart .woocommerce-info.cart-empty,
body.woocommerce-cart .cart-empty.woocommerce-info {
    padding: 48px 32px !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #f5f5f7 !important;
    background: linear-gradient(135deg, rgba(185,131,255,0.06), rgba(0,240,255,0.04)) !important;
    border: 1px solid rgba(185,131,255,0.25) !important;
    border-radius: 20px !important;
    position: relative !important;
}
body.woocommerce-cart .woocommerce-info.cart-empty::before,
body.woocommerce-cart .cart-empty.woocommerce-info::before {
    content: '🛒';
    position: static !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
    font-size: 48px !important;
    margin: 0 auto 16px auto !important;
    line-height: 1 !important;
    filter: drop-shadow(0 0 12px rgba(185,131,255,0.4));
}

/* Botón "Volver a la tienda" después del carrito vacío */
body.woocommerce-cart .return-to-shop {
    text-align: center !important;
    margin: 16px 0 !important;
    padding: 0 !important;
}
body.woocommerce-cart .return-to-shop .button,
body.woocommerce-cart .return-to-shop a.wc-backward {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 28px !important;
    background: #00f0ff !important;
    color: #07070c !important;
    border: none !important;
    border-radius: 100px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25), 0 4px 10px rgba(0, 240, 255, 0.12) !important;
}
body.woocommerce-cart .return-to-shop .button:hover,
body.woocommerce-cart .return-to-shop a.wc-backward:hover {
    background: #b983ff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(185, 131, 255, 0.4) !important;
}

/* Animación sutil de entrada para nuevos mensajes */
@keyframes nasusMessageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.woocommerce-message,
.woocommerce-error,
.woocommerce-info:not(.cart-empty) {
    animation: nasusMessageSlideIn 0.3s ease-out !important;
}

/* Blockui (loader) */
.blockUI.blockOverlay {
    background: rgba(7,7,12,0.7) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Responsive checkout */
@media (max-width: 980px) {
    form.checkout.woocommerce-checkout {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "customer"
            "review-heading"
            "review"
            "payment" !important;
        gap: 20px !important;
    }
    form.checkout #order_review_heading,
    form.checkout #order_review,
    form.checkout .woocommerce-checkout-review-order,
    #payment.woocommerce-checkout-payment {
        position: static !important;
    }
    /* Espaciado extra antes del heading del resumen para separar visualmente del form */
    form.checkout #order_review_heading {
        margin-top: 8px !important;
    }
}
@media (max-width: 640px) {
    .woocommerce-checkout .nx-wc-main,
    body.woocommerce-checkout main {
        padding: 40px 16px 80px !important;
    }
    .woocommerce-checkout h1 {
        font-size: 34px !important;
    }
    .woocommerce-billing-fields,
    .woocommerce-shipping-fields,
    .woocommerce-additional-fields,
    form.checkout #order_review,
    #payment.woocommerce-checkout-payment {
        padding: 20px 18px !important;
    }
    .woocommerce-billing-fields__field-wrapper,
    .woocommerce-shipping-fields__field-wrapper,
    .woocommerce-additional-fields__field-wrapper {
        grid-template-columns: 1fr !important;
    }
    .woocommerce-checkout form .form-row-first,
    .woocommerce-checkout form .form-row-last {
        grid-column: 1 / -1 !important;
    }
}


/* ================================================================
 * 2. CARRITO REDISEÑADO — CARDS LIMPIAS ESTILO BRUTALIST
 * ================================================================ */

/* Prevenir overflow horizontal en el body */
body.woocommerce-cart,
body.woocommerce-cart #page,
body.woocommerce-cart .site,
body.woocommerce-cart .site-content,
body.woocommerce-cart #main,
body.woocommerce-cart main {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* Contenedor principal - 1100px centrado */
body.woocommerce-cart .nx-wc-main,
body.woocommerce-cart main,
body.woocommerce-cart #main,
body.woocommerce-cart .nx-main,
body.nx-cart .nx-main,
body.nx-cart main {
    max-width: 1100px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 60px 24px 120px !important;
    box-sizing: border-box !important;
}

/* Título */
.woocommerce-cart h1,
.woocommerce-cart .nx-page-title {
    font-family: 'Anton', sans-serif !important;
    font-size: clamp(40px, 6vw, 64px) !important;
    font-weight: 400 !important;
    line-height: 0.95 !important;
    letter-spacing: -0.02em !important;
    color: #f5f5f7 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}
.woocommerce-cart h1::before,
.woocommerce-cart .nx-page-title::before {
    content: '// TU CARRITO · 2026';
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: #8a8a9e;
    letter-spacing: 2.5px;
    margin-bottom: 18px;
    text-transform: uppercase;
}
.woocommerce-cart h1::after,
.woocommerce-cart .nx-page-title::after {
    content: '';
    display: block;
    width: 72px;
    height: 3px;
    background: linear-gradient(90deg, #00f0ff 0%, #b983ff 100%);
    margin: 28px auto 36px;
    border-radius: 3px;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}

/* ═══════════════════════════════════════
   AVISOS SUPERIORES: info + YITH points (arriba, full width)
   ═══════════════════════════════════════ */

/* Aviso "Revisa tu pedido" - arriba, ancho completo */
body.woocommerce-cart .woocommerce-info:not(.woocommerce-cart-notice) {
    margin: 0 0 14px 0 !important;
    padding: 14px 18px !important;
    background: linear-gradient(135deg, rgba(0,240,255,0.05), rgba(185,131,255,0.03)) !important;
    border: 1px solid rgba(0,240,255,0.2) !important;
    border-radius: 14px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 13px !important;
    color: #f5f5f7 !important;
    list-style: none !important;
    line-height: 1.5 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
}
body.woocommerce-cart .woocommerce-info:not(.woocommerce-cart-notice)::before {
    content: '💬';
    font-size: 18px;
    line-height: 1.3;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(0,240,255,0.4));
}
body.woocommerce-cart .woocommerce-info strong {
    color: #00f0ff !important;
    font-weight: 700 !important;
}

/* ═══════════════════════════════════════
   LAYOUT GRID: form + sidebar
   ═══════════════════════════════════════ */
.woocommerce-cart .woocommerce {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 340px !important;
    gap: 24px 28px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Col izquierda: form con productos */
.woocommerce-cart form.woocommerce-cart-form {
    grid-column: 1 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    background: linear-gradient(180deg, rgba(18,18,28,0.95) 0%, rgba(13,13,21,0.95) 100%) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
.woocommerce-cart form.woocommerce-cart-form::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #00f0ff 30%, #b983ff 70%, transparent 100%);
    opacity: 0.5;
}

/* ═══════════════════════════════════════
   TABLA DEL CARRITO → convertir a CARDS
   ═══════════════════════════════════════ */
.woocommerce-cart table.shop_table.cart,
.woocommerce-cart .woocommerce-cart-form__contents {
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    table-layout: auto !important;
}

/* Ocultar thead (los títulos cortados "Producto Precio Cantidad Subtotal") */
.woocommerce-cart table.shop_table.cart thead {
    display: none !important;
}

/* tbody y tfoot como blocks */
.woocommerce-cart table.shop_table.cart tbody,
.woocommerce-cart table.shop_table.cart tfoot {
    display: block !important;
    width: 100% !important;
}

/* Cada fila de producto = card horizontal */
.woocommerce-cart table.shop_table.cart tbody tr.cart_item {
    display: grid !important;
    grid-template-columns: 32px 72px minmax(0, 1fr) auto !important;
    gap: 14px !important;
    align-items: center !important;
    padding: 16px 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    transition: all 0.25s ease !important;
}
.woocommerce-cart table.shop_table.cart tbody tr.cart_item:hover {
    background: rgba(0,240,255,0.02) !important;
}
.woocommerce-cart table.shop_table.cart tbody tr.cart_item:last-of-type {
    border-bottom: none !important;
    padding-bottom: 20px !important;
}
.woocommerce-cart table.shop_table.cart tbody tr.cart_item:first-of-type {
    padding-top: 4px !important;
}

/* Todos los td sin padding table */
.woocommerce-cart table.shop_table.cart tbody tr.cart_item td {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    display: block !important;
    text-align: left !important;
    vertical-align: middle !important;
}

/* 1. Botón X (remove) */
.woocommerce-cart table.shop_table.cart td.product-remove {
    width: 32px !important;
    text-align: center !important;
}
.woocommerce-cart table.shop_table.cart td.product-remove a.remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    background: rgba(255,51,102,0.08) !important;
    border: 1px solid rgba(255,51,102,0.2) !important;
    border-radius: 50% !important;
    color: #ff3366 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}
.woocommerce-cart table.shop_table.cart td.product-remove a.remove:hover {
    background: #ff3366 !important;
    color: #07070c !important;
    border-color: #ff3366 !important;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 14px rgba(255,51,102,0.4);
}

/* 2. Thumbnail */
.woocommerce-cart table.shop_table.cart td.product-thumbnail {
    width: 72px !important;
}
.woocommerce-cart table.shop_table.cart td.product-thumbnail a {
    display: block !important;
    line-height: 0 !important;
}
.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
    width: 72px !important;
    height: 72px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    transition: all 0.25s ease !important;
}
.woocommerce-cart table.shop_table.cart td.product-thumbnail a:hover img {
    border-color: rgba(0,240,255,0.4) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,240,255,0.15);
}

/* 3. Contenido central: nombre + precio unitario + cantidad */
.woocommerce-cart table.shop_table.cart td.product-name {
    min-width: 0 !important;
    overflow: hidden !important;
}
.woocommerce-cart table.shop_table.cart td.product-name a {
    display: block !important;
    color: #f5f5f7 !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    margin: 0 0 6px 0 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    transition: color 0.2s ease !important;
}
.woocommerce-cart table.shop_table.cart td.product-name a:hover {
    color: #00f0ff !important;
}
.woocommerce-cart table.shop_table.cart td.product-name .variation {
    margin: 4px 0 0 0 !important;
    padding: 0 !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    color: #8a8a9e !important;
    line-height: 1.4 !important;
}
.woocommerce-cart table.shop_table.cart td.product-name .variation dt,
.woocommerce-cart table.shop_table.cart td.product-name .variation dd {
    display: inline !important;
    margin: 0 4px 0 0 !important;
    padding: 0 !important;
    color: inherit !important;
}
.woocommerce-cart table.shop_table.cart td.product-name .variation dt {
    font-weight: 700 !important;
    color: #00f0ff !important;
}

/* Ocultar td.product-price y product-quantity del GRID */
/* pero reubicarlos dentro del product-name via display none y usar ::after del name */
/* Mejor dejarlos visibles en columnas adicionales cuando haya espacio */

.woocommerce-cart table.shop_table.cart td.product-price {
    display: none !important;
}

/* 4. Cantidad como pill inline dentro del product-name area */
.woocommerce-cart table.shop_table.cart td.product-quantity {
    display: none !important;
}

/* 5. Subtotal - a la derecha, cyan prominente */
.woocommerce-cart table.shop_table.cart td.product-subtotal {
    text-align: right !important;
    white-space: nowrap !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 8px !important;
}
.woocommerce-cart table.shop_table.cart td.product-subtotal .woocommerce-Price-amount {
    color: #00f0ff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

/* Mostrar qty debajo del subtotal como pill cyan */
.woocommerce-cart table.shop_table.cart td.product-subtotal::before {
    content: '';
    display: none;
}

/* ALTERNATIVA: Mostrar qty + subtotal en grid de 2 cols internas */
/* Reactivar product-quantity pero compacto al lado del name */
.woocommerce-cart table.shop_table.cart tbody tr.cart_item {
    grid-template-columns: 32px 72px minmax(0, 1fr) auto auto !important;
}
.woocommerce-cart table.shop_table.cart td.product-quantity {
    display: block !important;
    text-align: center !important;
    padding: 0 8px !important;
}
.woocommerce-cart table.shop_table.cart td.product-quantity .quantity {
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 100px !important;
    overflow: hidden !important;
    transition: all 0.25s ease !important;
}
.woocommerce-cart table.shop_table.cart td.product-quantity .quantity:hover,
.woocommerce-cart table.shop_table.cart td.product-quantity .quantity:focus-within {
    border-color: #00f0ff !important;
    box-shadow: 0 0 0 2px rgba(0,240,255,0.15) !important;
}
.woocommerce-cart table.shop_table.cart td.product-quantity input.qty,
.woocommerce-cart table.shop_table.cart td.product-quantity input[type="number"] {
    width: 56px !important;
    min-width: 56px !important;
    min-height: 38px !important;
    height: 38px !important;
    background: transparent !important;
    border: none !important;
    color: #00f0ff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center !important;
    padding: 0 !important;
    outline: none !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

/* ═══════════════════════════════════════
   FILA ACCIONES: Cupón + Actualizar
   ═══════════════════════════════════════ */
.woocommerce-cart table.shop_table.cart tfoot tr,
.woocommerce-cart table.shop_table.cart tr:has(td.actions),
.woocommerce-cart table.shop_table.cart tr.actions {
    background: transparent !important;
    border: none !important;
    display: block !important;
    width: 100% !important;
}
.woocommerce-cart table.shop_table.cart td.actions {
    display: block !important;
    background: transparent !important;
    padding: 20px 0 0 0 !important;
    margin-top: 12px !important;
    border: none !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Cupón */
.woocommerce-cart .coupon {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin-bottom: 12px !important;
}
.woocommerce-cart .coupon label {
    display: none !important;
}
.woocommerce-cart .coupon input#coupon_code {
    min-height: 44px !important;
    min-width: 180px !important;
    flex: 1 1 auto !important;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 100px !important;
    color: #f5f5f7 !important;
    padding: 10px 18px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.25s ease !important;
    box-sizing: border-box !important;
}
.woocommerce-cart .coupon input#coupon_code::placeholder {
    color: #5a5a6e !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-family: 'Space Grotesk', sans-serif !important;
}
.woocommerce-cart .coupon input#coupon_code:focus {
    border-color: #00f0ff !important;
    background: rgba(0,240,255,0.04) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0,240,255,0.12) !important;
}
.woocommerce-cart .coupon button[name="apply_coupon"] {
    background: rgba(0,240,255,0.08) !important;
    color: #00f0ff !important;
    border: 1px solid rgba(0,240,255,0.3) !important;
    border-radius: 100px !important;
    padding: 12px 22px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    min-height: 44px !important;
    flex-shrink: 0 !important;
}
.woocommerce-cart .coupon button[name="apply_coupon"]:hover {
    background: #00f0ff !important;
    color: #07070c !important;
    border-color: #00f0ff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(0,240,255,0.3) !important;
}

/* Botón "Actualizar carrito" */
.woocommerce-cart button[name="update_cart"] {
    background: rgba(255,255,255,0.04) !important;
    color: #8a8a9e !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-radius: 100px !important;
    padding: 12px 22px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    min-height: 44px !important;
    width: auto !important;
}
.woocommerce-cart button[name="update_cart"]:hover:not(:disabled) {
    background: rgba(0,240,255,0.05) !important;
    color: #00f0ff !important;
    border-color: #00f0ff !important;
}
.woocommerce-cart button[name="update_cart"]:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

/* ═══════════════════════════════════════
   SIDEBAR: collaterals con totales + YITH points
   ═══════════════════════════════════════ */
.woocommerce-cart .cart-collaterals {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: 340px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: sticky !important;
    top: 100px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    box-sizing: border-box !important;
}
.woocommerce-cart .cart-collaterals .cross-sells {
    display: none !important;
}

/* Box de totales */
.woocommerce-cart .cart_totals {
    width: 100% !important;
    background: linear-gradient(180deg, rgba(18,18,28,0.95) 0%, rgba(13,13,21,0.95) 100%) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    float: none !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
.woocommerce-cart .cart_totals::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f0ff 50%, transparent);
    opacity: 0.5;
}
.woocommerce-cart .cart_totals h2 {
    font-family: 'Anton', sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: -0.01em !important;
    color: #f5f5f7 !important;
    margin: 0 0 18px 0 !important;
    padding: 0 0 12px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.woocommerce-cart .cart_totals h2::before {
    content: '';
    width: 4px;
    height: 18px;
    background: #00f0ff;
    border-radius: 2px;
    box-shadow: 0 0 6px #00f0ff;
}

/* Tabla de totales */
.woocommerce-cart .cart_totals table.shop_table {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}
.woocommerce-cart .cart_totals table.shop_table tr {
    background: transparent !important;
    border: none !important;
}
.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
    background: transparent !important;
    border: none !important;
    padding: 10px 0 !important;
    font-family: 'Space Grotesk', sans-serif !important;
}
.woocommerce-cart .cart_totals tr.cart-subtotal th,
.woocommerce-cart .cart_totals tr.fee th,
.woocommerce-cart .cart_totals tr.shipping th {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #8a8a9e !important;
    text-align: left !important;
}
.woocommerce-cart .cart_totals tr.cart-subtotal td,
.woocommerce-cart .cart_totals tr.fee td,
.woocommerce-cart .cart_totals tr.shipping td {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #f5f5f7 !important;
    text-align: right !important;
    white-space: nowrap !important;
}
.woocommerce-cart .cart_totals tr.fee td {
    color: #b983ff !important;
}
.woocommerce-cart .cart_totals tr.order-total th,
.woocommerce-cart .cart_totals tr.order-total td {
    padding: 16px 0 4px !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    margin-top: 8px !important;
}
.woocommerce-cart .cart_totals tr.order-total th {
    font-family: 'Anton', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    color: #f5f5f7 !important;
}
.woocommerce-cart .cart_totals tr.order-total td {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #00f0ff !important;
    text-align: right !important;
    white-space: nowrap !important;
}
.woocommerce-cart .cart_totals tr.order-total td strong,
.woocommerce-cart .cart_totals tr.order-total td .woocommerce-Price-amount {
    font-weight: 700 !important;
    color: inherit !important;
}

/* Métodos de envío si existen */
.woocommerce-cart .cart_totals .woocommerce-shipping-methods,
.woocommerce-cart .cart_totals .shipping-calculator-button {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 12px !important;
    color: #8a8a9e !important;
}

/* Botón "Finalizar compra" */
.woocommerce-cart .wc-proceed-to-checkout {
    padding: 18px 0 0 0 !important;
    margin-top: 12px !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart a.checkout-button {
    display: block !important;
    width: 100% !important;
    padding: 16px 24px !important;
    background: #00f0ff !important;
    color: #07070c !important;
    border: none !important;
    border-radius: 100px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.3), 0 4px 12px rgba(0, 240, 255, 0.15) !important;
    box-sizing: border-box !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart a.checkout-button:hover {
    background: #b983ff !important;
    color: #07070c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 32px rgba(185, 131, 255, 0.45), 0 0 40px rgba(185, 131, 255, 0.25) !important;
}

/* ═══════════════════════════════════════
   YITH POINTS: mover al sidebar como card
   ═══════════════════════════════════════ */

/* Mensaje "¡Ganarás X puntos!" */
#yith-par-message-cart,
.yith-par-message-cart,
body.woocommerce-cart .woocommerce-cart-notice.woocommerce-cart-notice-minimum-amount.woocommerce-info {
    margin: 0 0 14px 0 !important;
    padding: 14px 18px !important;
    background: linear-gradient(135deg, rgba(185,131,255,0.08), rgba(0,240,255,0.04)) !important;
    border: 1px solid rgba(185,131,255,0.25) !important;
    border-radius: 14px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 13px !important;
    color: #f5f5f7 !important;
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    line-height: 1.4 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
#yith-par-message-cart img,
.yith-par-message-cart img {
    max-width: 28px !important;
    max-height: 28px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    filter: drop-shadow(0 0 8px rgba(185,131,255,0.4));
}
#yith-par-message-cart strong {
    color: #b983ff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 0 2px !important;
}

/* Card "Usa X puntos para descuento de Y" */
#yith-par-message-reward-cart,
.yith-par-message-reward-cart {
    margin: 0 0 14px 0 !important;
    padding: 16px 18px !important;
    background: linear-gradient(135deg, rgba(0,240,255,0.05), rgba(185,131,255,0.04)) !important;
    border: 1px solid rgba(0,240,255,0.2) !important;
    border-radius: 14px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 13px !important;
    color: #f5f5f7 !important;
    list-style: none !important;
    line-height: 1.6 !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
#yith-par-message-reward-cart::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f0ff 50%, #b983ff 100%);
    opacity: 0.5;
}
#yith-par-message-reward-cart form.ywpar_apply_discounts,
form.ywpar_apply_discounts {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-sizing: border-box !important;
}
#yith-par-message-reward-cart strong {
    color: #00f0ff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 0 2px !important;
}
#yith-par-message-reward-cart strong .woocommerce-Price-amount {
    color: #b983ff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 700 !important;
}
#yith-par-message-reward-cart strong .woocommerce-Price-currencySymbol {
    color: inherit !important;
    font-size: 0.8em !important;
    opacity: 0.75 !important;
    margin-right: 2px !important;
}
#yith-par-message-reward-cart input[type="text"],
#ywpar-points-max,
input[name="ywpar_input_points"] {
    min-width: 80px !important;
    max-width: 100px !important;
    width: auto !important;
    min-height: 36px !important;
    padding: 6px 12px !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(0,240,255,0.3) !important;
    border-radius: 100px !important;
    color: #00f0ff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-align: center !important;
    letter-spacing: 0.5px !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
    margin: 0 3px !important;
    outline: none !important;
}
#yith-par-message-reward-cart input[type="text"]:focus,
#ywpar-points-max:focus,
input[name="ywpar_input_points"]:focus {
    border-color: #00f0ff !important;
    background: rgba(0,240,255,0.08) !important;
    box-shadow: 0 0 0 2px rgba(0,240,255,0.15) !important;
}
#ywpar_apply_discounts,
button.ywpar_apply_discounts,
button.ywpar-fixed-discount {
    background: #00f0ff !important;
    color: #07070c !important;
    border: none !important;
    border-radius: 100px !important;
    padding: 9px 18px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    min-height: 36px !important;
    margin: 4px 0 0 0 !important;
    box-shadow: 0 0 14px rgba(0,240,255,0.2) !important;
    flex-shrink: 0 !important;
}
#ywpar_apply_discounts:hover,
button.ywpar_apply_discounts:hover {
    background: #b983ff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(185,131,255,0.35) !important;
}
#yith-par-message-reward-cart span,
form.ywpar_apply_discounts span {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
}

/* Responsive carrito */
@media (max-width: 980px) {
    .woocommerce-cart .woocommerce {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .woocommerce-cart .cart-collaterals {
        grid-column: 1 !important;
        max-width: 100% !important;
        position: static !important;
    }
}
@media (max-width: 640px) {
    body.woocommerce-cart .nx-wc-main,
    body.woocommerce-cart main,
    body.woocommerce-cart #main {
        padding: 40px 16px 80px !important;
    }
    .woocommerce-cart h1 {
        font-size: 34px !important;
    }
    .woocommerce-cart form.woocommerce-cart-form {
        padding: 20px 16px !important;
    }
    .woocommerce-cart .cart_totals {
        padding: 20px 18px !important;
    }
    /* En mobile: simplificar grid interno del producto */
    .woocommerce-cart table.shop_table.cart tbody tr.cart_item {
        grid-template-columns: 28px 64px minmax(0, 1fr) !important;
        grid-template-areas:
            "remove thumb name"
            ".      .     qty"
            ".      .     subtotal" !important;
        gap: 10px 12px !important;
        padding: 14px 0 !important;
    }
    .woocommerce-cart table.shop_table.cart td.product-remove {
        grid-area: remove !important;
    }
    .woocommerce-cart table.shop_table.cart td.product-thumbnail {
        grid-area: thumb !important;
    }
    .woocommerce-cart table.shop_table.cart td.product-thumbnail img {
        width: 64px !important;
        height: 64px !important;
    }
    .woocommerce-cart table.shop_table.cart td.product-name {
        grid-area: name !important;
    }
    .woocommerce-cart table.shop_table.cart td.product-quantity {
        grid-area: qty !important;
        text-align: left !important;
        padding: 0 !important;
        margin-top: 4px !important;
    }
    .woocommerce-cart table.shop_table.cart td.product-subtotal {
        grid-area: subtotal !important;
        align-items: flex-start !important;
        margin-top: 4px !important;
    }
    .woocommerce-cart .coupon {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .woocommerce-cart .coupon button[name="apply_coupon"],
    .woocommerce-cart button[name="update_cart"] {
        width: 100% !important;
    }
}


/* ================================================================
 * 3. ADVANCED PRODUCT FIELDS PRO (WAPF)
 * ================================================================ */

.wapf-wrapper {
    margin: 24px 0 !important;
    padding: 24px !important;
    background: linear-gradient(180deg, #12121c 0%, #0d0d15 100%) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 16px !important;
    position: relative;
    overflow: hidden;
}
.wapf-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #00f0ff 30%, #b983ff 70%, transparent 100%);
    opacity: 0.6;
}
.wapf-field-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
}
.wapf-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.wapf-section:last-child {
    padding-bottom: 0 !important;
    border-bottom: none !important;
}
.wapf-section-title,
.wapf-section > h3 {
    font-family: 'Anton', sans-serif !important;
    font-size: 18px !important;
    color: #f5f5f7 !important;
    text-transform: uppercase !important;
    letter-spacing: -0.01em !important;
    margin: 0 0 4px 0 !important;
    padding: 0 0 8px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wapf-section-title::before,
.wapf-section > h3::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #00f0ff;
    border-radius: 2px;
    box-shadow: 0 0 6px #00f0ff;
}
.wapf-field-container {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.wapf-field-label,
.wapf-field-container > label,
label.wapf-field-input > span:first-child {
    display: block !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #8a8a9e !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 10px !important;
    line-height: 1.3 !important;
}
.wapf-required,
.wapf-field-label .required {
    color: #ff3366 !important;
    font-weight: 700 !important;
}
.wapf-field-description,
.wapf-field-container .description {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 12px !important;
    color: #8a8a9e !important;
    margin-top: 6px !important;
    line-height: 1.5 !important;
    opacity: 0.85;
}

.wapf-wrapper input[type="text"],
.wapf-wrapper input[type="email"],
.wapf-wrapper input[type="tel"],
.wapf-wrapper input[type="number"],
.wapf-wrapper input[type="password"],
.wapf-wrapper input[type="date"],
.wapf-wrapper textarea,
.wapf-wrapper select,
.wapf-field-input input[type="text"],
.wapf-field-input input[type="email"],
.wapf-field-input input[type="tel"],
.wapf-field-input input[type="number"],
.wapf-field-input textarea,
.wapf-field-input select {
    width: 100% !important;
    height: auto !important;
    min-height: 48px !important;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    color: #f5f5f7 !important;
    padding: 12px 16px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    transition: all 0.25s ease !important;
    box-sizing: border-box !important;
}
.wapf-wrapper select,
.wapf-field-input select {
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.5L7 9.5L11 5.5' stroke='%2300f0ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 14px 14px !important;
    padding-right: 42px !important;
    cursor: pointer;
}
.wapf-wrapper select option {
    background: #0d0d15 !important;
    color: #f5f5f7 !important;
}
.wapf-wrapper input:focus,
.wapf-wrapper textarea:focus,
.wapf-wrapper select:focus,
.wapf-field-input input:focus,
.wapf-field-input textarea:focus,
.wapf-field-input select:focus {
    border-color: #00f0ff !important;
    background: rgba(0,240,255,0.04) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0,240,255,0.12) !important;
}
.wapf-wrapper textarea,
.wapf-field-input textarea {
    min-height: 100px !important;
    resize: vertical !important;
}

.wapf-field-input input[type="checkbox"],
.wapf-field-input input[type="radio"] {
    accent-color: #00f0ff !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 10px 0 0 !important;
    flex-shrink: 0 !important;
}
.wapf-field-input > label,
label.wapf-field-input label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    background: rgba(255,255,255,0.025) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 10px !important;
    color: #f5f5f7 !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    margin: 0 0 8px 0 !important;
}
.wapf-field-input > label:hover {
    border-color: #00f0ff !important;
    background: rgba(0,240,255,0.04) !important;
}
.wapf-field-input > label:has(input:checked) {
    border-color: #00f0ff !important;
    background: rgba(0,240,255,0.06) !important;
    box-shadow: 0 0 0 1px #00f0ff inset !important;
    color: #00f0ff !important;
}
.wapf-price-hint,
.wapf-price {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #00f0ff !important;
    background: rgba(0,240,255,0.1) !important;
    padding: 3px 9px !important;
    border-radius: 100px !important;
    margin-left: 6px !important;
    white-space: nowrap;
}

.wapf-swatches {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 0 !important;
}
.wapf-swatch,
.wapf-swatches label {
    position: relative !important;
    cursor: pointer !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    transition: all 0.25s ease !important;
    border: 2px solid rgba(255,255,255,0.08) !important;
    background: rgba(255,255,255,0.025) !important;
    min-width: 60px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 16px !important;
    color: #f5f5f7 !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    margin: 0 !important;
}
.wapf-swatch:hover,
.wapf-swatches label:hover {
    border-color: #00f0ff !important;
    transform: translateY(-1px) !important;
}
.wapf-swatch.wapf-swatch-active,
.wapf-swatches label:has(input:checked) {
    border-color: #00f0ff !important;
    background: rgba(0,240,255,0.08) !important;
    color: #00f0ff !important;
    box-shadow: 0 0 16px rgba(0,240,255,0.2) !important;
}
.wapf-swatch.wapf-swatch-color {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 50% !important;
    padding: 0 !important;
}
.wapf-swatch.wapf-swatch-image {
    padding: 4px !important;
    width: 60px !important;
    height: 60px !important;
}
.wapf-swatch img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 6px !important;
}
.wapf-swatch input {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

.wapf_btn_prev,
.wapf_btn_next {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 24px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    border-radius: 100px !important;
    cursor: pointer !important;
    border: 1px solid transparent !important;
    transition: all 0.25s ease !important;
}
.wapf_btn_next {
    background: #00f0ff !important;
    color: #07070c !important;
    border-color: #00f0ff !important;
    margin-left: auto !important;
}
.wapf_btn_next:hover {
    background: #b983ff !important;
    border-color: #b983ff !important;
    transform: translateY(-1px);
}
.wapf_btn_prev {
    background: rgba(255,255,255,0.04) !important;
    color: #f5f5f7 !important;
    border-color: rgba(255,255,255,0.14) !important;
}
.wapf_btn_prev:hover {
    background: rgba(0,240,255,0.05) !important;
    border-color: #00f0ff !important;
    color: #00f0ff !important;
}

.wapf-progress-bar {
    background: linear-gradient(90deg, #00f0ff, #b983ff) !important;
    box-shadow: 0 0 10px #00f0ff !important;
}
.wapf-progress-steps > div.active {
    background: #00f0ff !important;
    color: #07070c !important;
    border-color: #00f0ff !important;
    box-shadow: 0 0 12px #00f0ff !important;
}

.wapf-error,
.wapf-validation-error {
    color: #ff3366 !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    margin-top: 6px !important;
    padding: 8px 12px !important;
    background: rgba(255,51,102,0.08) !important;
    border: 1px solid rgba(255,51,102,0.25) !important;
    border-radius: 8px !important;
}


/* ================================================================
 * 4. COUNTRY CODE SELECTOR (intl-tel-input)
 * ================================================================ */

.iti {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}
.iti input[type="tel"],
.iti input[type="text"],
.iti__tel-input,
input.wc-ccs-phone,
.woocommerce-checkout .iti input#billing_phone,
.woocommerce-checkout .iti input#shipping_phone {
    width: 100% !important;
    padding-left: 135px !important;
    padding-right: 16px !important;
    min-height: 48px !important;
    height: auto !important;
    line-height: 1.5 !important;
    position: relative !important;
    box-sizing: border-box !important;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    color: #f5f5f7 !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 14px !important;
    transition: all 0.25s ease !important;
}
.iti input[type="tel"]:focus,
.iti__tel-input:focus {
    border-color: #00f0ff !important;
    background: rgba(0,240,255,0.04) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0,240,255,0.12) !important;
}
.iti.iti--allow-dropdown input[type="tel"],
.iti--allow-dropdown .iti__tel-input {
    padding-left: 135px !important;
}
.iti:not(.iti--allow-dropdown) input[type="tel"] {
    padding-left: 80px !important;
}
.iti__flag-container,
.iti__country-container {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    padding: 0 !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
}
.iti__selected-flag,
.iti__selected-country {
    height: 100% !important;
    padding: 0 14px 0 16px !important;
    background: transparent !important;
    border: none !important;
    border-right: 1px solid rgba(255,255,255,0.12) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    border-radius: 12px 0 0 12px !important;
    transition: background 0.2s ease !important;
    min-width: 120px !important;
    max-width: 130px !important;
}
.iti__selected-flag:hover,
.iti__selected-country:hover {
    background: rgba(0,240,255,0.05) !important;
}
.iti__flag {
    margin-right: 4px !important;
    flex-shrink: 0 !important;
}
.iti__selected-dial-code {
    color: #f5f5f7 !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}
.iti__arrow {
    margin-left: 6px !important;
    border-left: 4px solid transparent !important;
    border-right: 4px solid transparent !important;
    border-top: 5px solid #8a8a9e !important;
    border-bottom: 0 !important;
    width: 0 !important;
    height: 0 !important;
    transition: transform 0.2s ease !important;
}
.iti__arrow.iti__arrow--up {
    transform: rotate(180deg) !important;
}
.iti__country-list,
.iti__dropdown-content {
    background: #0d0d15 !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7) !important;
    color: #f5f5f7 !important;
    font-family: 'Space Grotesk', sans-serif !important;
    margin-top: 4px !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    padding: 6px !important;
    z-index: 100000 !important;
}
.iti__country-list::-webkit-scrollbar { width: 4px; }
.iti__country-list::-webkit-scrollbar-thumb {
    background: rgba(0,240,255,0.3);
    border-radius: 4px;
}
.iti__country,
.iti__dropdown-item {
    padding: 10px 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border-radius: 8px !important;
    color: #f5f5f7 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    margin: 2px 0 !important;
}
.iti__country:hover,
.iti__country.iti__highlight {
    background: rgba(0,240,255,0.08) !important;
    color: #00f0ff !important;
}
.iti__country.iti__active {
    background: rgba(0,240,255,0.1) !important;
    color: #00f0ff !important;
}
.iti__dial-code {
    color: #8a8a9e !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px !important;
    margin-left: auto !important;
    font-weight: 600 !important;
}
.iti input::placeholder {
    color: #5a5a6e !important;
    opacity: 0.7 !important;
}

@media (max-width: 640px) {
    .iti input[type="tel"],
    .iti__tel-input {
        padding-left: 125px !important;
        font-size: 13px !important;
    }
    .iti__selected-flag,
    .iti__selected-country {
        padding: 0 10px 0 14px !important;
        min-width: 110px !important;
        max-width: 120px !important;
    }
}


/* ================================================================
 * 4. PEPRODEV RECEIPT UPLOADER — SUBIR COMPROBANTE DE PAGO
 * ================================================================ */

/* Contenedor principal del uploader */
.peprodev_woocommerce_receipt_uploader,
.peprodev_woocommerce_receipt_uploader.shortcode_wrapper {
    margin: 28px 0 !important;
    padding: 28px !important;
    background: linear-gradient(180deg, rgba(18,18,28,0.95) 0%, rgba(13,13,21,0.95) 100%) !important;
    border: 1px solid rgba(0,240,255,0.25) !important;
    border-radius: 20px !important;
    position: relative !important;
    overflow: hidden !important;
    font-family: 'Space Grotesk', sans-serif !important;
    color: #f5f5f7 !important;
    box-shadow: 0 0 40px rgba(0,240,255,0.08), 0 8px 24px rgba(0,0,0,0.3) !important;
}
.peprodev_woocommerce_receipt_uploader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #00f0ff 30%, #b983ff 70%, transparent 100%);
    opacity: 0.8;
}
/* Efecto decorativo adicional: punto cyan pulsante arriba derecha */
.peprodev_woocommerce_receipt_uploader::after {
    content: '';
    position: absolute;
    top: 24px;
    right: 24px;
    width: 8px;
    height: 8px;
    background: #00f0ff;
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(0,240,255,0.8), 0 0 30px rgba(0,240,255,0.4);
    animation: nasusReceiptPulse 2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes nasusReceiptPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

/* Título "Upload receipt" / "Subir comprobante" */
.peprodev_woocommerce_receipt_uploader h2.woocommerce-order-details__title.upload_receipt,
.peprodev_woocommerce_receipt_uploader h2.upload_receipt {
    font-family: 'Anton', sans-serif !important;
    font-size: clamp(24px, 3.5vw, 32px) !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: -0.01em !important;
    color: #f5f5f7 !important;
    margin: 0 0 8px 0 !important;
    padding: 0 0 14px 0 !important;
    border-bottom: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    line-height: 1 !important;
    position: relative !important;
}
.peprodev_woocommerce_receipt_uploader h2.upload_receipt::before {
    content: '📎';
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(0,240,255,0.5));
}
.peprodev_woocommerce_receipt_uploader h2.upload_receipt::after {
    content: '// PAGO POR TRANSFERENCIA';
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    color: #00f0ff;
    letter-spacing: 2.5px;
    margin-left: auto;
    text-transform: uppercase;
    opacity: 0.85;
    padding: 4px 12px;
    background: rgba(0,240,255,0.08);
    border: 1px solid rgba(0,240,255,0.2);
    border-radius: 100px;
    white-space: nowrap;
}

/* Línea divisoria después del título */
.peprodev_woocommerce_receipt_uploader h2.upload_receipt + * {
    margin-top: 0 !important;
    padding-top: 18px !important;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Sobreescribir la tabla con estilo inline background:#f5f5f5 */
.peprodev_woocommerce_receipt_uploader table.woocommerce-table--upload-receipt,
.peprodev_woocommerce_receipt_uploader table.upload_receipt,
.peprodev_woocommerce_receipt_uploader table[style*="background"] {
    width: 100% !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-collapse: collapse !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
}
.peprodev_woocommerce_receipt_uploader table.woocommerce-table--upload-receipt tbody,
.peprodev_woocommerce_receipt_uploader table.woocommerce-table--upload-receipt tfoot {
    background: transparent !important;
}
.peprodev_woocommerce_receipt_uploader table.woocommerce-table--upload-receipt tr {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    display: grid !important;
    grid-template-columns: 180px 1fr !important;
    gap: 16px 24px !important;
    padding: 16px 0 !important;
    align-items: center !important;
}
.peprodev_woocommerce_receipt_uploader table.woocommerce-table--upload-receipt tr:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
.peprodev_woocommerce_receipt_uploader table.woocommerce-table--upload-receipt tr:first-child {
    padding-top: 4px !important;
}

.peprodev_woocommerce_receipt_uploader table.woocommerce-table--upload-receipt th,
.peprodev_woocommerce_receipt_uploader table.woocommerce-table--upload-receipt td {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    text-align: left !important;
    vertical-align: middle !important;
    color: #f5f5f7 !important;
}
.peprodev_woocommerce_receipt_uploader table.woocommerce-table--upload-receipt th {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #8a8a9e !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
}

/* Hide empty date row */
.peprodev_woocommerce_receipt_uploader tr.date-uploaded.hide {
    display: none !important;
}

/* Celda del preview actual (thumbnail) */
.peprodev_woocommerce_receipt_uploader td.receipt-img-preview {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}
.peprodev_woocommerce_receipt_uploader .receipt-preview {
    width: 80px !important;
    height: 80px !important;
    border-radius: 14px !important;
    object-fit: cover !important;
    border: 2px solid rgba(255,255,255,0.1) !important;
    background: rgba(255,255,255,0.03) !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}
.peprodev_woocommerce_receipt_uploader .receipt-preview:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: rgba(0,240,255,0.4) !important;
    box-shadow: 0 12px 24px rgba(0,240,255,0.2) !important;
}
/* Estados: borde con color según status */
.peprodev_woocommerce_receipt_uploader .receipt-preview.approved {
    border-color: #00f0ff !important;
    box-shadow: 0 0 0 2px rgba(0,240,255,0.3), 0 0 20px rgba(0,240,255,0.25) !important;
}
.peprodev_woocommerce_receipt_uploader .receipt-preview.pending {
    border-color: #b983ff !important;
    box-shadow: 0 0 0 2px rgba(185,131,255,0.3), 0 0 20px rgba(185,131,255,0.25) !important;
}
.peprodev_woocommerce_receipt_uploader .receipt-preview.rejected {
    border-color: #ff3366 !important;
    box-shadow: 0 0 0 2px rgba(255,51,102,0.3), 0 0 20px rgba(255,51,102,0.25) !important;
}
.peprodev_woocommerce_receipt_uploader .receipt-preview.upload {
    border-color: rgba(255,255,255,0.15) !important;
    opacity: 0.7;
    filter: grayscale(0.3);
}

/* Badge de estado del comprobante */
.peprodev_woocommerce_receipt_uploader p.receipt-status {
    margin: 0 !important;
    padding: 6px 14px !important;
    border-radius: 100px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}
.peprodev_woocommerce_receipt_uploader p.receipt-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.peprodev_woocommerce_receipt_uploader p.receipt-status.approved {
    background: rgba(0,240,255,0.1) !important;
    color: #00f0ff !important;
    border: 1px solid rgba(0,240,255,0.35) !important;
}
.peprodev_woocommerce_receipt_uploader p.receipt-status.approved::before {
    background: #00f0ff;
    box-shadow: 0 0 10px #00f0ff;
    animation: nasusReceiptPulse 1.5s ease-in-out infinite;
}
.peprodev_woocommerce_receipt_uploader p.receipt-status.pending {
    background: rgba(185,131,255,0.1) !important;
    color: #b983ff !important;
    border: 1px solid rgba(185,131,255,0.35) !important;
}
.peprodev_woocommerce_receipt_uploader p.receipt-status.pending::before {
    background: #b983ff;
    box-shadow: 0 0 10px #b983ff;
    animation: nasusReceiptPulse 1.5s ease-in-out infinite;
}
.peprodev_woocommerce_receipt_uploader p.receipt-status.rejected {
    background: rgba(255,51,102,0.1) !important;
    color: #ff3366 !important;
    border: 1px solid rgba(255,51,102,0.35) !important;
}
.peprodev_woocommerce_receipt_uploader p.receipt-status.rejected::before {
    background: #ff3366;
    box-shadow: 0 0 10px #ff3366;
}
.peprodev_woocommerce_receipt_uploader p.receipt-status.upload {
    background: rgba(255,255,255,0.04) !important;
    color: #8a8a9e !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
}
.peprodev_woocommerce_receipt_uploader p.receipt-status.upload::before {
    background: #8a8a9e;
}

/* ═══════════════════════════════════════
   FORMULARIO DE SUBIDA — ZONA DROP LLAMATIVA
   ═══════════════════════════════════════ */
.peprodev_woocommerce_receipt_uploader td.receipt-img-upload {
    width: 100% !important;
}
.peprodev_woocommerce_receipt_uploader form#uploadreceiptfileimage {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    display: block !important;
}
.peprodev_woocommerce_receipt_uploader form#uploadreceiptfileimage > div[style*="display: inline-block"],
.peprodev_woocommerce_receipt_uploader form#uploadreceiptfileimage > div {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
}

/* Input file estilizado como zona de drop */
.peprodev_woocommerce_receipt_uploader input[type="file"]#receipt-file,
.peprodev_woocommerce_receipt_uploader input[type="file"] {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    min-height: 56px !important;
    padding: 14px 18px !important;
    background: rgba(0,240,255,0.03) !important;
    border: 2px dashed rgba(0,240,255,0.3) !important;
    border-radius: 14px !important;
    color: #f5f5f7 !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-sizing: border-box !important;
    outline: none !important;
}
.peprodev_woocommerce_receipt_uploader input[type="file"]#receipt-file:hover,
.peprodev_woocommerce_receipt_uploader input[type="file"]:hover {
    border-color: #00f0ff !important;
    background: rgba(0,240,255,0.06) !important;
    box-shadow: 0 0 0 3px rgba(0,240,255,0.12), 0 6px 20px rgba(0,240,255,0.15) !important;
    transform: translateY(-1px);
}
.peprodev_woocommerce_receipt_uploader input[type="file"]#receipt-file:focus {
    border-style: solid !important;
    border-color: #00f0ff !important;
    background: rgba(0,240,255,0.08) !important;
}
/* Estilizar el "botón" interno del input file (WebKit) */
.peprodev_woocommerce_receipt_uploader input[type="file"]::-webkit-file-upload-button {
    background: rgba(0,240,255,0.1) !important;
    color: #00f0ff !important;
    border: 1px solid rgba(0,240,255,0.3) !important;
    border-radius: 100px !important;
    padding: 8px 16px !important;
    margin-right: 12px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
.peprodev_woocommerce_receipt_uploader input[type="file"]::-webkit-file-upload-button:hover {
    background: #00f0ff !important;
    color: #07070c !important;
    border-color: #00f0ff !important;
}
/* Firefox */
.peprodev_woocommerce_receipt_uploader input[type="file"]::file-selector-button {
    background: rgba(0,240,255,0.1) !important;
    color: #00f0ff !important;
    border: 1px solid rgba(0,240,255,0.3) !important;
    border-radius: 100px !important;
    padding: 8px 16px !important;
    margin-right: 12px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
.peprodev_woocommerce_receipt_uploader input[type="file"]::file-selector-button:hover {
    background: #00f0ff !important;
    color: #07070c !important;
    border-color: #00f0ff !important;
}

/* Botón "Upload Receipt" / "Subir Comprobante" */
.peprodev_woocommerce_receipt_uploader button.start-upload,
.peprodev_woocommerce_receipt_uploader button.start-upload.button,
.peprodev_woocommerce_receipt_uploader .start-upload {
    background: #00f0ff !important;
    color: #07070c !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 16px 28px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 24px rgba(0,240,255,0.3), 0 4px 12px rgba(0,240,255,0.15) !important;
    min-height: 56px !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
    line-height: 1 !important;
}
.peprodev_woocommerce_receipt_uploader button.start-upload::before {
    content: '⬆';
    font-size: 16px;
    font-weight: 900;
    margin-right: 4px;
}
.peprodev_woocommerce_receipt_uploader button.start-upload::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}
.peprodev_woocommerce_receipt_uploader button.start-upload:hover::after {
    left: 100%;
}
.peprodev_woocommerce_receipt_uploader button.start-upload:hover {
    background: #b983ff !important;
    color: #07070c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 32px rgba(185,131,255,0.45), 0 0 48px rgba(185,131,255,0.25) !important;
}
.peprodev_woocommerce_receipt_uploader button.start-upload:active {
    transform: translateY(0) !important;
}
.peprodev_woocommerce_receipt_uploader button.start-upload:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Fecha de subida */
.peprodev_woocommerce_receipt_uploader td.receipt-upload-date {
    color: #f5f5f7 !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px !important;
}
.peprodev_woocommerce_receipt_uploader td.receipt-upload-date bdi {
    color: #00f0ff !important;
    font-weight: 600 !important;
}

/* Nota del admin */
.peprodev_woocommerce_receipt_uploader td.receipt-admin-note {
    color: #f5f5f7 !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}
.peprodev_woocommerce_receipt_uploader td.receipt-admin-note span {
    display: block !important;
    padding: 12px 16px !important;
    background: rgba(185,131,255,0.06) !important;
    border-left: 3px solid #b983ff !important;
    border-radius: 10px !important;
    color: #f5f5f7 !important;
    line-height: 1.5 !important;
}

/* Link "View Order Details" */
.peprodev_woocommerce_receipt_uploader a {
    color: #00f0ff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}
.peprodev_woocommerce_receipt_uploader a:hover {
    color: #b983ff !important;
}

/* Mensajes de feedback del plugin (upload status) */
.peprodev_woocommerce_receipt_uploader .upload-progress,
.peprodev_woocommerce_receipt_uploader .upload-status,
.peprodev_woocommerce_receipt_uploader .upload-message {
    margin-top: 12px !important;
    padding: 12px 16px !important;
    background: rgba(0,240,255,0.05) !important;
    border: 1px solid rgba(0,240,255,0.2) !important;
    border-radius: 12px !important;
    color: #f5f5f7 !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: center !important;
}

/* Responsive */
@media (max-width: 640px) {
    .peprodev_woocommerce_receipt_uploader {
        padding: 20px 18px !important;
    }
    .peprodev_woocommerce_receipt_uploader h2.upload_receipt {
        font-size: 22px !important;
        flex-wrap: wrap !important;
    }
    .peprodev_woocommerce_receipt_uploader h2.upload_receipt::after {
        font-size: 9px !important;
        padding: 3px 10px !important;
    }
    .peprodev_woocommerce_receipt_uploader table.woocommerce-table--upload-receipt tr {
        grid-template-columns: 1fr !important;
        gap: 8px 0 !important;
        padding: 14px 0 !important;
    }
    .peprodev_woocommerce_receipt_uploader form#uploadreceiptfileimage > div {
        flex-direction: column !important;
    }
    .peprodev_woocommerce_receipt_uploader button.start-upload,
    .peprodev_woocommerce_receipt_uploader input[type="file"]#receipt-file {
        width: 100% !important;
    }
    .peprodev_woocommerce_receipt_uploader::after {
        top: 18px;
        right: 18px;
    }
}


/* ================================================================
 * 5. MÉTODOS DE PAGO COMPATIBLES CON COMPROBANTE
 * (destacar los gateways que requieren subir receipt)
 * ================================================================ */

/* En el checkout: método de pago BACS / transferencia (con receipt) */
#payment ul.payment_methods li.payment_method_bacs,
#payment ul.payment_methods li[class*="payment_method_alg_custom_gateway"],
#payment ul.payment_methods li[class*="custom_gateway"] {
    position: relative !important;
}

/* Permitir que el label sea flex vertical para acomodar el badge debajo */
#payment ul.payment_methods li.payment_method_bacs > label,
#payment ul.payment_methods li[class*="custom_gateway"] > label {
    flex-wrap: wrap !important;
    align-items: center !important;
    row-gap: 8px !important;
}

/* Badge "comprobante requerido" - SOLO aparece cuando el método está seleccionado */
/* Ahora se posiciona debajo del nombre, ocupando su propia línea */
#payment ul.payment_methods li.payment_method_bacs:has(input:checked) > label::after,
#payment ul.payment_methods li[class*="custom_gateway"]:has(input:checked) > label::after {
    content: '📎  Requiere subir comprobante de pago';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 4px 0 0 0;
    padding: 7px 14px;
    background: linear-gradient(135deg, rgba(185,131,255,0.1), rgba(0,240,255,0.05));
    border: 1px solid rgba(185,131,255,0.3);
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #d4b5ff;
    text-transform: none;
    white-space: normal;
    line-height: 1.4;
    order: 99;
    flex-basis: 100%;
    gap: 6px;
    box-shadow: none;
    animation: nasusBadgeFadeIn 0.3s ease-out;
}
@keyframes nasusBadgeFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* En mobile el badge se mantiene legible */
@media (max-width: 640px) {
    #payment ul.payment_methods li.payment_method_bacs:has(input:checked) > label::after,
    #payment ul.payment_methods li[class*="custom_gateway"]:has(input:checked) > label::after {
        font-size: 10px !important;
        padding: 6px 12px !important;
    }
}

/* Info dentro del payment_box sobre comprobante */
#payment div.payment_box.payment_method_bacs,
#payment div.payment_box[class*="payment_method_alg_custom_gateway"],
#payment div.payment_box[class*="custom_gateway"] {
    background: linear-gradient(135deg, rgba(0,240,255,0.05), rgba(185,131,255,0.03)) !important;
    border: 1px solid rgba(0,240,255,0.2) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    position: relative !important;
}
#payment div.payment_box.payment_method_bacs::after,
#payment div.payment_box[class*="custom_gateway"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f0ff 50%, transparent);
    opacity: 0.6;
}

/* Detalles bancarios (.wc-bacs-bank-details) si existen */
.wc-bacs-bank-details,
ul.wc-bacs-bank-details,
.woocommerce-bacs-bank-details,
.bacs_details,
ul.order_details {
    background: rgba(0,0,0,0.2) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    margin: 12px 0 0 0 !important;
    list-style: none !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px !important;
    color: #f5f5f7 !important;
}
.wc-bacs-bank-details li,
ul.wc-bacs-bank-details li {
    padding: 6px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
    list-style: none !important;
    color: #f5f5f7 !important;
}
.wc-bacs-bank-details li:last-child {
    border-bottom: none !important;
}
.wc-bacs-bank-details li strong,
ul.wc-bacs-bank-details li strong {
    color: #00f0ff !important;
    margin-right: 8px !important;
    font-weight: 700 !important;
}
.wc-bacs-bank-details h2,
.wc-bacs-bank-details h3,
.woocommerce-order-details__title + h2 {
    font-family: 'Anton', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    color: #b983ff !important;
    margin: 0 0 10px 0 !important;
    padding: 0 0 8px 0 !important;
    border-bottom: 1px solid rgba(185,131,255,0.2) !important;
    letter-spacing: 0.02em !important;
}


/* ════════════════════════════════════════════════════════════════
   NASUS · COUNTRY SELECTOR — MOBILE FIX v6 (solo CSS)
   ════════════════════════════════════════════════════════════════ */

/* Fix seguro en todos los tamaños: permitir que el dropdown
   se salga de los containers del checkout (WooCommerce mete
   overflow:hidden que lo corta) */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields,
p.form-row#billing_phone_field,
p.form-row#shipping_phone_field {
    overflow: visible !important;
}

/* ────────────────────────────────────────────
   MOBILE (<768px táctil): dropdown como modal flotante
   con fondo oscurecido vía box-shadow gigante
   ──────────────────────────────────────────── */
@media (max-width: 768px) and (pointer: coarse) {

    .iti__country-list:not(.iti__hide),
    .iti__dropdown-content:not(.iti__hide) {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: calc(100vw - 32px) !important;
        max-width: 440px !important;
        max-height: 75vh !important;
        z-index: 2147483647 !important;
        background: linear-gradient(180deg, #12121c 0%, #0d0d15 100%) !important;
        border: 1.5px solid rgba(0, 240, 255, 0.4) !important;
        border-radius: 20px !important;
        /* El truco: box-shadow gigante oscurece TODO lo que queda alrededor
           del dropdown, simulando un backdrop sin necesitar elementos extra */
        box-shadow: 0 0 0 100vmax rgba(7, 7, 12, 0.88),
                    0 30px 80px rgba(0, 0, 0, 0.85),
                    0 0 60px rgba(0, 240, 255, 0.2) !important;
        padding: 8px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        animation: nasusItiSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
        isolation: isolate !important;
    }
    @keyframes nasusItiSlideUp {
        from { opacity: 0; transform: translate(-50%, -45%) scale(0.96); }
        to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    }

    /* Items de país más grandes y touch-friendly */
    .iti__country-list:not(.iti__hide) .iti__country,
    .iti__dropdown-content:not(.iti__hide) .iti__dropdown-item {
        padding: 14px !important;
        min-height: 54px !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        border-radius: 12px !important;
        margin: 3px 0 !important;
        font-size: 15px !important;
        color: #f5f5f7 !important;
        border: 1px solid transparent !important;
        background: transparent !important;
    }
    .iti__country-list:not(.iti__hide) .iti__country:hover,
    .iti__country-list:not(.iti__hide) .iti__country:active,
    .iti__country-list:not(.iti__hide) .iti__country.iti__highlight {
        background: rgba(0, 240, 255, 0.12) !important;
        border-color: rgba(0, 240, 255, 0.35) !important;
        color: #00f0ff !important;
    }
    .iti__country-list:not(.iti__hide) .iti__flag {
        transform: scale(1.15);
        flex-shrink: 0 !important;
    }
    .iti__country-list:not(.iti__hide) .iti__dial-code {
        margin-left: auto !important;
        background: rgba(255, 255, 255, 0.04);
        padding: 4px 10px;
        border-radius: 100px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        font-family: 'JetBrains Mono', monospace !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #8a8a9e !important;
    }

    /* Separador entre países preferidos (LATAM) y el resto */
    .iti__country-list:not(.iti__hide) .iti__divider {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin: 10px 8px !important;
    }

    /* ────────────────────────────────────────────
       BUSCADOR NATIVO del plugin (intl-tel-input v18)
       Lo estilizamos con la paleta brutalist
       ──────────────────────────────────────────── */
    .iti__country-list:not(.iti__hide) .iti__search-input,
    .iti__dropdown-content:not(.iti__hide) input[type="search"],
    .iti__dropdown-content:not(.iti__hide) input.iti__search-input {
        position: sticky !important;
        top: 0 !important;
        width: 100% !important;
        min-height: 48px !important;
        margin: 0 0 8px 0 !important;
        padding: 12px 16px 12px 46px !important;
        background-color: rgba(0, 240, 255, 0.06) !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: 14px center !important;
        border: 1.5px solid rgba(0, 240, 255, 0.35) !important;
        border-radius: 12px !important;
        color: #f5f5f7 !important;
        font-family: 'Space Grotesk', sans-serif !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        box-sizing: border-box !important;
        outline: none !important;
        z-index: 20 !important;
        transition: all 0.2s ease !important;
    }
    .iti__country-list:not(.iti__hide) .iti__search-input::placeholder,
    .iti__dropdown-content:not(.iti__hide) input[type="search"]::placeholder {
        color: #8a8a9e !important;
        opacity: 0.85 !important;
        font-weight: 400 !important;
    }
    .iti__country-list:not(.iti__hide) .iti__search-input:focus,
    .iti__dropdown-content:not(.iti__hide) input[type="search"]:focus {
        border-color: #00f0ff !important;
        background-color: rgba(0, 240, 255, 0.1) !important;
        box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15),
                    0 4px 12px rgba(0, 0, 0, 0.3) !important;
    }
    /* Quitar el ícono X nativo del input search en Chrome */
    .iti__country-list:not(.iti__hide) .iti__search-input::-webkit-search-cancel-button,
    .iti__dropdown-content:not(.iti__hide) input[type="search"]::-webkit-search-cancel-button {
        -webkit-appearance: none !important;
        appearance: none !important;
        height: 18px !important;
        width: 18px !important;
        margin-left: 8px !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8a9e' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        cursor: pointer !important;
    }

    /* Scrollbar estilizada */
    .iti__country-list::-webkit-scrollbar {
        width: 5px;
    }
    .iti__country-list::-webkit-scrollbar-thumb {
        background: rgba(0, 240, 255, 0.4);
        border-radius: 8px;
    }
    .iti__country-list::-webkit-scrollbar-track {
        background: transparent;
    }
}


/* ================================================================
 * 6. RESEÑAS DEL PRODUCTO — cinta en movimiento como la del inicio
 *    (template-parts/reviews/product-reviews.php + theme.css §22)
 * ================================================================ */
.nx-product-reviews {
    margin: 22px 0 36px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden; /* la cinta nunca debe ensanchar la ficha */
}
.nx-product-reviews .nx-product-reviews-score {
    display: inline-flex;
    margin: 0 0 22px;
}


/* ============================================================
 * 12. CARRITO Y CHECKOUT — PASOS, MINIATURAS Y GARANTÍAS (3.17.0)
 * El HTML lo pone inc/modules/checkout-extras.php
 * ============================================================ */

/* ---------- Pasos de la compra ---------- */
.nx-ck-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    counter-reset: none;
}
.nx-ck-step {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 1 1 190px;
    min-width: 0;
    padding: 13px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    color: #8b8b9a;
}
.nx-ck-step > a {
    display: flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}
.nx-ck-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    font-family: var(--nx-font-mono, monospace);
    font-size: 12px;
    font-weight: 700;
}
.nx-ck-step-txt {
    font-family: var(--nx-font-mono, monospace);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nx-ck-step.is-done { color: #b4b4c4; }
.nx-ck-step.is-done .nx-ck-step-num {
    background: rgba(0, 240, 255, 0.12);
    border-color: rgba(0, 240, 255, 0.35);
    color: #00f0ff;
}
.nx-ck-step.is-done > a:hover { color: #00f0ff; }
.nx-ck-step.is-current {
    border-color: rgba(0, 240, 255, 0.45);
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.07), rgba(0, 240, 255, 0.02));
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.1);
    color: #f5f5f7;
}
.nx-ck-step.is-current .nx-ck-step-num {
    background: #00f0ff;
    border-color: #00f0ff;
    color: #07070c;
}

/* ---------- Miniatura de cada producto en "Tu pedido" ---------- */
.nx-ck-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    vertical-align: middle;
    max-width: 100%;
}
.woocommerce-checkout-review-order-table img.nx-ck-thumb {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    object-fit: cover;
    background: #0d0d15;
}
.nx-ck-item-name { min-width: 0; }

/* ---------- Garantías bajo el botón de pagar ---------- */
.nx-ck-trust {
    display: grid;
    gap: 11px;
    margin: 18px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    list-style: none;
}
.nx-ck-trust li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #8b8b9a;
}
.nx-ck-trust svg {
    flex: 0 0 auto;
    margin-top: 1px;
    color: #00f0ff;
}
.nx-ck-trust b {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #f5f5f7;
}

/* ---------- Canjear puntos en carrito y checkout ---------- */
.ywpar_apply_discounts_container {
    margin: 0 0 20px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
}
.ywpar_apply_discounts_container input[type="number"],
.ywpar_apply_discounts_container input[type="text"] {
    height: 46px;
    padding: 0 14px;
    border: 1px solid #30303f;
    border-radius: 12px;
    background: #0d0d15;
    color: #f5f5f7;
}
.ywpar_apply_discounts,
button.ywpar_apply_discounts {
    padding: 13px 24px !important;
    border: 0 !important;
    border-radius: 100px !important;
    background: #00f0ff !important;
    color: #07070c !important;
    font-family: var(--nx-font-mono, monospace) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    cursor: pointer;
}
.ywpar_apply_discounts:hover,
button.ywpar_apply_discounts:hover { background: #b983ff !important; }

@media (max-width: 782px) {
    .nx-ck-steps { gap: 8px; }
    .nx-ck-step { flex: 1 1 100%; padding: 11px 14px; }
    .woocommerce-checkout-review-order-table img.nx-ck-thumb { width: 38px; height: 38px; }
}

/* ---------- Carrito: seguir comprando y métodos de pago ---------- */
/* El tema pinta como botón cyan cualquier enlace de esta zona
   (woocommerce.css: .cart_totals .wc-proceed-to-checkout a), así que
   este hay que devolverlo a enlace con más peso. */
.cart_totals .wc-proceed-to-checkout a.nx-cart-continue,
.woocommerce-cart .wc-proceed-to-checkout a.nx-cart-continue {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    width: auto !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: var(--nx-font-mono, monospace) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    text-align: left !important;
    color: #8b8b9a !important;
    text-decoration: none !important;
    transition: color 0.25s ease !important;
}
.cart_totals .wc-proceed-to-checkout a.nx-cart-continue:hover,
.woocommerce-cart .wc-proceed-to-checkout a.nx-cart-continue:hover {
    background: none !important;
    color: #00f0ff !important;
    transform: none !important;
}
.nx-cart-continue svg { transition: transform 0.25s ease; }
.nx-cart-continue:hover svg { transform: translateX(-3px); }

.nx-cart-pay {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.nx-cart-pay-t {
    display: block;
    margin-bottom: 10px;
    font-family: var(--nx-font-mono, monospace);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5c5c6e;
}
.nx-cart-pay ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nx-cart-pay li {
    display: block;
    width: 34px;
    height: 23px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    background: #0d0d15;
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.nx-cart-pay li:hover {
    border-color: rgba(0, 240, 255, 0.45);
    transform: translateY(-2px);
}
.nx-cart-pay li svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Los pasos del carrito van pegados al ancho de la página, no a la rejilla */
.woocommerce-cart .nx-ck-steps { margin-bottom: 22px; }


/* ============================================================
 * 13. FICHA DEL PRODUCTO — DESCRIPCIÓN, AHORRO Y GARANTÍAS (3.18.0)
 * ============================================================ */

/* ---------- Precio ---------- */
.single-product .summary .price .nx-rpb-price { gap: 4px 12px; }
.single-product .summary .price .nx-rpb-desde { font-size: 12px; }
.single-product .summary .price .nx-rpb-tag,
.single-product .woocommerce-variation-price .nx-rpb-tag { font-size: 11px; padding: 4px 10px; align-self: center; }
.single-product .woocommerce-variation-price .price { margin: 4px 0 14px !important; font-size: 24px !important; }

.nx-save {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: -10px 0 22px !important;
    padding: 6px 14px 6px 6px;
    border: 1px solid rgba(34, 224, 108, 0.3);
    border-radius: 100px;
    background: rgba(34, 224, 108, 0.07);
    font-size: 13px;
    color: #c9f7da;
}
.nx-save-pct {
    padding: 3px 9px;
    border-radius: 100px;
    background: #22e06c;
    font-family: var(--nx-font-mono);
    font-size: 11px;
    font-weight: 700;
    color: #07070c;
}
.nx-save-txt .amount { font-family: var(--nx-font-mono); font-weight: 700; color: #22e06c; }

/* ---------- Descripción corta: tarjeta como las de la web ---------- */
.single-product .woocommerce-product-details__short-description {
    position: relative;
    margin: 0 0 26px !important;
    padding: 24px 26px !important;
    border: 1px solid var(--nx-line) !important;
    border-left: 1px solid var(--nx-line) !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)) !important;
    color: var(--nx-ink-dim) !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    overflow: hidden;
}
.single-product .woocommerce-product-details__short-description::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--nx-accent) 30%, var(--nx-accent-2) 70%, transparent);
    opacity: 0.7;
}
.single-product .woocommerce-product-details__short-description p { margin: 0 0 14px; }
.single-product .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }
.single-product .woocommerce-product-details__short-description p:first-child {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--nx-line);
    font-size: 16px;
    color: var(--nx-ink);
}
.single-product .woocommerce-product-details__short-description strong,
.single-product .woocommerce-product-details__short-description b { color: var(--nx-ink); font-weight: 700; }
.single-product .woocommerce-product-details__short-description a { color: var(--nx-accent); text-decoration: underline; text-underline-offset: 3px; }
.single-product .woocommerce-product-details__short-description ul,
.single-product .woocommerce-product-details__short-description ol { margin: 0 0 14px; padding: 0; list-style: none; }
.single-product .woocommerce-product-details__short-description li {
    position: relative;
    margin: 0 0 6px;
    padding-left: 22px;
}
.single-product .woocommerce-product-details__short-description ul li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--nx-accent);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
    transform: rotate(45deg);
}
.single-product .woocommerce-product-details__short-description ol { counter-reset: nx-paso; }
.single-product .woocommerce-product-details__short-description ol li { counter-increment: nx-paso; padding-left: 30px; }
.single-product .woocommerce-product-details__short-description ol li::before {
    content: counter(nx-paso);
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.12);
    font-family: var(--nx-font-mono);
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    color: var(--nx-accent);
}

/* ---------- Descripción larga (pestaña "Descripción") ---------- */
.single-product #tab-description {
    color: var(--nx-ink-dim);
    font-size: 15px;
    line-height: 1.8;
}
.single-product #tab-description > h2:first-child { display: none; }  /* "Descripción" repetido */
.single-product #tab-description h2,
.single-product #tab-description h3,
.single-product #tab-description h4 {
    margin: 28px 0 12px;
    font-family: var(--nx-font-display);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--nx-ink);
}
.single-product #tab-description strong { color: var(--nx-ink); }
.single-product #tab-description img { max-width: 100%; height: auto; border-radius: 14px; }
.single-product #tab-description a { color: var(--nx-accent); }
.single-product #tab-description table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.single-product #tab-description th,
.single-product #tab-description td { padding: 10px 12px; border-bottom: 1px solid var(--nx-line); text-align: left; }

/* ---------- Aviso de puntos de YITH en la ficha ----------
   Trae el color en el propio HTML (fondo #E4F6F3 y texto negro). */
.single-product .yith-par-message:not(.hide),
.single-product .yith-par-message-product:not(.hide),
.single-product .yith-par-message-variation:not(:empty):not(.hide) {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 18px !important;
    padding: 9px 16px !important;
    border: 1px solid rgba(255, 209, 102, 0.3) !important;
    border-radius: 100px !important;
    background: rgba(255, 209, 102, 0.08) !important;
    color: var(--nx-ink-dim) !important;
    font-size: 13px !important;
}
/* YITH esconde con .hide el mensaje que no corresponde (rango del producto
   o puntos de la variación elegida). Sin esto se veían los dos a la vez. */
.single-product .yith-par-message.hide,
.single-product .yith-par-message-product.hide,
.single-product .yith-par-message-variation.hide { display: none !important; }
.single-product .yith-par-message strong,
.single-product .yith-par-message-variation strong { color: var(--nx-accent-gold) !important; font-family: var(--nx-font-mono); }
.single-product .yith-par-message img,
.single-product .yith-par-message-variation img { margin: 0 !important; filter: brightness(1.6) saturate(0.4); }

/* ---------- Garantías debajo del botón ---------- */
.nx-pd-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 4px 0 26px;
    padding: 0;
    list-style: none;
}
.nx-pd-trust li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--nx-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 12px;
    line-height: 1.4;
    color: var(--nx-ink-low);
}
.nx-pd-trust svg { flex: 0 0 auto; margin-top: 1px; color: var(--nx-accent); }
.nx-pd-trust b { display: block; margin-bottom: 1px; font-size: 13px; color: var(--nx-ink); }

@media (max-width: 640px) {
    .single-product .woocommerce-product-details__short-description { padding: 18px 18px !important; font-size: 14px !important; }
    .nx-pd-trust { grid-template-columns: minmax(0, 1fr); }
    .nx-pd-trust li { padding: 10px 12px; }
}

/* ═══════════════════════════════════════
   Página del carrito: "Finalizar compra" igual que en el carrito lateral
   (degradado cyan→morado con brillo que pasa)
   ═══════════════════════════════════════ */
html body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 58px !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    background: linear-gradient(120deg, #00f0ff 0%, #5fd8ff 40%, #b983ff 100%) !important;
    font-family: 'Anton', 'Space Grotesk', sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    letter-spacing: 1.5px !important;
    box-shadow: 0 12px 32px rgba(0, 240, 255, .28), 0 0 0 1px rgba(255, 255, 255, .18) inset !important;
}
html body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: nxCtaShine 3.6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes nxCtaShine {
    0%, 55% { transform: translateX(-120%); }
    100%    { transform: translateX(120%); }
}
html body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: linear-gradient(120deg, #00f0ff 0%, #5fd8ff 40%, #b983ff 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 40px rgba(0, 240, 255, .4), 0 0 28px rgba(185, 131, 255, .35) !important;
}
@media (prefers-reduced-motion: reduce) {
    html body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button::after { display: none; }
}
