/* Checkout por defecto oculto para referencia */
/* #iowp-wc-oficiial-checkout{
    display: none;
} */

/* Controles de WooCommerce ocultos necesarios para funcionamiento */
#customer_details {
    margin-bottom: 0 !important;
}

#customer_details .col-1 {
    display: none;
}

#order_review table.woocommerce-checkout-review-order-table {
    display: none;
}

#iowp-woocommerce-wrapper {
    display: none;
}

#iowp-order-recived-back {
    display: none;
}

/* Pedido completado (order-received) */
#tus-datos .woocommerce-customer-details {
    margin-top: 1rem;
}

body.woocommerce-order-received #tu-carrito,
body.woocommerce-order-received #tus-datos {
    display: block;
}

body.woocommerce-order-received .iowp-checkout-loading {
    display: none !important;
}

body.woocommerce-order-received #iowp-pagos {
    margin-top: 0;
}

body.woocommerce-order-received #iowp-woocommerce-wrapper .woocommerce,
body.woocommerce-order-received #iowp-pagos .woocommerce {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 24px 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    max-width: 960px;
    margin: 0 auto;
}

body.woocommerce-order-received .woocommerce-order {
    margin: 0;
}

body.woocommerce-order-received .woocommerce-thankyou-order-received,
body.woocommerce-order-received .woocommerce-order-overview strong {
    color: #5B44F5;
    font-weight: 700;
}

h2.woocommerce-column__title {
    display:  none;
}

body.woocommerce-order-received .woocommerce-order-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 12px 0 8px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 12px;
}

body.woocommerce-order-received .woocommerce-order-overview li {
    border: none;
    padding: 0;
    margin: 0;
}

body.woocommerce-order-received .woocommerce-table--order-details th,
body.woocommerce-order-received .woocommerce-table--order-details td {
    padding: 12px 10px;
}

body.woocommerce-order-received .woocommerce-customer-details address {
    border: 1px solid #e8e8e8;
    padding: 14px;
    border-radius: 8px;
}

body.woocommerce-order-received .iowp-order-summary__title {
    color: #ffffff;
    margin: 0 0 12px;
    font-weight: 600;
    font-size: 18px;
}

body.woocommerce-order-received .iowp-billing-nif {
    font-weight: 600;
    display: block;
    margin: 4px 0;
}

/* Tabla de carrito */
#tu-carrito table {
    width: 100%;
    border-collapse: collapse;
    border: none !important;
    color: #ffffff;
    font-family: "Manrope" !important;
}

/* Encabezado de la tabla */
#tu-carrito table thead {
    border-bottom: 1px solid #ccc;
    margin-bottom: 1rem !important;
    padding-bottom: 0.6rem;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 400;
}

#tu-carrito table tr th, #tu-carrito table tr td {
    font-weight: 400!important;
    border: none !important;
    padding: 10px;
    line-height: 1.65rem;
}

#tu-carrito table tr {
    display: flex;
    justify-content: space-between;
}    

#tu-carrito table td.product-name{
    width: Calc(100% - 150px);
}

#tu-carrito table td.product-name .iowp-course-duration{
    float: right;
}

#tu-carrito table td.product-name .product-quantity{
    display: none;
}
#tu-carrito table td.product-total .tax_label{
    display: none;
}
#tu-carrito table td.product-total a.iowp-remove-cart-item{
    color: #ffffff;
}

#tu-carrito table tfoot .cart-subtotal, #tu-carrito table tfoot .order-total{
    display: none;
}

/* Cupones aplicados: conservar la información nativa en el resumen personalizado. */
#tu-carrito table tfoot tr.cart-discount th {
    min-width: 0;
    overflow-wrap: anywhere;
}

#tu-carrito table tfoot tr.cart-discount td {
    flex-shrink: 0;
    text-align: right;
}

#tu-carrito table tfoot .woocommerce-remove-coupon {
    display: block;
    color: #ffffff;
    font-size: 12px;
    text-decoration: underline;
}

#tu-carrito table tfoot .woocommerce-remove-coupon:hover,
#tu-carrito table tfoot .woocommerce-remove-coupon:focus-visible {
    color: var(--e-global-color-accent, #ffffff);
}

/* Información de recargo por bonificación */
#iowp-info-recargo {
    display: none;
}

/* Estilos para el formulario de cupón */
.iowp-coupon-minimal{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.iowp-coupon-minimal label{
    font-family: "Manrope" !important;
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
}

.iowp-coupon-minimal input[type="text"]{
    color: #ffffff !important;
    height: 25px !important;
    width: 160px !important;
    border: 1px solid white !important;
    background-color: #5B44F5 !important;
    border-radius: 5px !important;
    padding: 7px 20px;
    line-height: var(--ast-body-line-height,1.65em);
}

.iowp-coupon-minimal button{
    border-radius: 500px !important;
    background-color: transparent !important;
    border: none !important;
    color: white !important;
    transition: all 0.3s ease-in-out;
    padding: 0 0 0 15px;
}

.iowp-coupon-minimal button:hover{
    color: var(--e-global-color-accent) !important;
    cursor: pointer;
}

.iowp-coupon-error {
    background: white;
    color: #333333;
    white-space: pre-line;
    padding: 0 7px;
    border-left: 3px solid red;
    border-radius: 5px;
}

.iowp-coupon-message {
    background: white;
    color: #333333;
    white-space: pre-line;
    padding: 0 7px;
    border-left: 3px solid var(--e-global-color-accent);
    border-radius: 5px;
}

/* Estilo para "Tus datos" */
.woocommerce-billing-fields h3{
    display: none;
}

.woocommerce .col2-set .col-1, .woocommerce-page .col2-set .col-1 {
    width: 100%;
}

.woocommerce-billing-fields__field-wrapper p.form-row {
    float: left;
    width: 48% !important;
    padding-right: 2%;
    height: 1.3rem;
}
/* El checkbox de datos de facturación ocupa todo el ancho */
p#datos_facturacion_field {
    width: 98% !important;
    margin-top: .75rem !important;
}
.woocommerce-billing-fields__field-wrapper input.input-text {
    border-radius: 5px !important;
    border-color: #f0efef;
    color: #999 !important;
    height: 30px !important;
    width: 100% !important;
}
.woocommerce-invalid-required-field input.input-text{
    border-color: #ff2a00 !important;
}
.woocommerce-checkout p.woocommerce-invalid-required-field span.error {
    color: #ff2a00;
    display: block !important;
    font-size: 12px!important;
}
p.woocommerce-invalid.woocommerce-invalid-required-field {
    margin-bottom: 2.6rem;
}
.woocommerce-page .select2-container .select2-selection--single, .woocommerce-page select,
.woocommerce-billing-fields form .form-row .select2-container {
    padding: .25rem 0.8rem !important;
}

body.woocommerce-checkout .woocommerce-billing-fields input.input-text,
body.woocommerce-checkout .woocommerce-billing-fields span.select2-selection {
    border-radius: 5px !important;
    border-color: #f0efef;
    color: #999 !important;
}

.woocommerce-billing-fields .select2-selection__rendered,
.woocommerce-billing-fields .select2-container--default .select2-selection--single .select2-selection__placeholder,
.woocommerce-billing-fields span.select2-selection__arrow{
    color: #999 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--e-global-color-primary);
}

#customer_details_clone {
    margin-bottom: 0 !important;
}

p#quiero_bonificar_field {
    width: 100% !important;
    margin-bottom: 3rem;
    margin-top: 1rem;
    display: block;
    height: auto;
}
div#iowp-info-recargo {
    padding: 0 20px;
}
[id="quiero_bonificar-description"] {
    font-size: 0.9rem;
    display: block !important;
    margin-top: 0.65rem;
}

[id="quiero_bonificar-description"].iowp-bonification-description--hidden {
    display: none !important;
}

[id="quiero_bonificar-description"] .iowp-bonification-paragraph {
    display: block;
    margin: 0 0 1rem;
}

[id="quiero_bonificar-description"] .iowp-bonification-services {
    display: block;
    margin: 0 0 1rem;
}

[id="quiero_bonificar-description"] .iowp-bonification-services > span {
    display: block;
    margin-bottom: 0.4rem;
}

[id="quiero_bonificar-description"] .iowp-bonification-services > span::before {
    content: '✓';
    margin-right: 0.45rem;
}

[id="quiero_bonificar-description"] .iowp-bonification-cost {
    display: block;
    margin-bottom: 0;
}

.iowp-bonification-quote-button {
    padding: 0.65rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background-color: #5B44F5;
    color: #fff;
    font: inherit;
    font-weight: 500;
    cursor: default;
}

/* Pagos */
#iowp-pagos {
    margin-top: -2rem;
}

#order_review_heading {
    display: none;
}
.woocommerce-page.woocommerce-checkout form #order_review {
    border: none !important;
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    display: inline-block;
}

#payment .place-order p.form-row.mycheckbox label {
    text-indent: 1rem;
    font-weight: normal;
    font-size: 13px;
}

#payment .place-order {
    text-align: center;
    border-top: 1px solid var(--e-global-color-primary);
    margin-top: 3rem !important;
    padding-top: 1.5rem !important;
}

#payment .place-order p.form-row.mycheckbox {
    margin-bottom: .5rem !important;
    margin-left: 0 !important;
    text-align: left;
    line-height: 1.2rem;
}

.woocommerce-page.woocommerce-checkout #payment #place_order, 
.woocommerce.woocommerce-checkout #payment #place_order {
    background-color: #5B44F5 !important;
    border: 2px solid #5B44F5!important;
    border-radius: 50px;
    color: white !important;
    float: none;
    margin: 30px auto 0;
    padding: 10px 20px;
    width: auto;
}

.woocommerce-notices-wrapper .woocommerce-message {
    display: none;
}

/* Estilo personalizado para el aviso de checkout */
.woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout ul {
    margin-top: 3rem;
    margin-bottom: -1rem;
}

li[data-id='terms'] {
    display: none;
}

/* Estilo para formas de pago */
.woocommerce-checkout #payment ul.payment_methods li img {
    margin-top: 3px;
    max-height: 24px;
    float: right;
}

#payment li.wc_payment_method {
    border: 1px solid #f0efef;
    padding: 5px 10px;
    margin-bottom: 5px !important;
}

/* Pedido finalizado (received) */
#tu-carrito table td.product-name a {
    color: #fff;
}

#tu-carrito table tfoot {
    display: none;
}

/* Mostrar solo cupones: el resto del pie sigue oculto en el diseño personalizado. */
#tu-carrito table.woocommerce-checkout-review-order-table tfoot.iowp-checkout-coupons {
    display: table-row-group;
}

#tu-carrito table.woocommerce-checkout-review-order-table tfoot.iowp-checkout-coupons > tr:not(.cart-discount) {
    display: none;
}

/* Pedido recibido: mostrar los cupones guardados sin repetir el resto de totales. */
body.woocommerce-order-received #tu-carrito table.woocommerce-table--order-details tfoot.iowp-order-coupons {
    display: table-row-group;
}

body.woocommerce-order-received #tu-carrito table.woocommerce-table--order-details tfoot.iowp-order-coupons > tr:not(.iowp-order-coupon) {
    display: none;
}

/* Errores al hacer el pedido */
#iowp-order-notice--error {
    display: none;
}

/* Políticas de privacidad */
.woocommerce-terms-and-conditions-wrapper {
    display: none;
}
.politicas_checkout {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 0px;
    border-top: 1px solid #f0efef;
    padding: 20px 0;
    text-align: center;
    margin-top: 70px;
    font-size: 12px;
}
.politicas_checkout a {
    font-size: 0.8rem;
    padding: 0 5px;
    color: var(--ast-global-color-3) !important;
    font-weight: 500 !important;
    flex: 1 1 auto;
    white-space: nowrap;
}
.politicas_checkout a:hover {
    color: var(--e-global-color-primary)!important;
    text-decoration: none !important;
}

/* Checkout: el contenedor de detalles del pedido está vacío hasta confirmar la compra; mientras lo esté, se oculta para que no añada espacio bajo «Pagos». */
#iowp-woocommerce-order-details:not(:has(*)) {
    display: none;
}

/* 12/11/2026: campos del checkout con la etiqueta encima y más grandes, como el formulario de contacto.
   La etiqueta la hace visible iowp_checkout_etiquetas_visibles() (include/iowp-filters.php). */
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper p.form-row {
    float: none;
    height: auto;
    margin-bottom: 1.1rem;
}
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper p.form-row > label:not(.checkbox) {
    display: block;
    margin: 0 0 .4rem;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #222;
}
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper p.form-row > label abbr.required {
    color: inherit;
    border: 0;
    text-decoration: none;
}
body.woocommerce-checkout .woocommerce-billing-fields input.input-text,
body.woocommerce-checkout .woocommerce-billing-fields select,
body.woocommerce-checkout .woocommerce-billing-fields span.select2-selection--single {
    height: 48px !important;
    padding: 0 14px !important;
    font-size: 16px !important;
    color: #222 !important;
    background-color: #fff;
    border: 1px solid #222 !important;
    border-radius: 6px !important;
}
body.woocommerce-checkout .woocommerce-billing-fields .select2-selection__rendered {
    padding-left: 0 !important;
    line-height: 46px !important;
    font-size: 16px;
    color: #222 !important;
}
body.woocommerce-checkout .woocommerce-billing-fields span.select2-selection__arrow {
    height: 46px !important;
    right: 8px !important;
}
/* En móvil, una columna. La página de Elementor 5836 convierte el contenedor en una rejilla de 2 columnas
   (grid-template-columns: 1fr 1fr) y quita el margen de cada fila: aquí se deja en 1 columna con separación */
@media (max-width: 767px) {
    body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}
/* Campo obligatorio vacío: borde rojo, como antes del rediseño */
body.woocommerce-checkout .woocommerce-billing-fields .woocommerce-invalid input.input-text,
body.woocommerce-checkout .woocommerce-billing-fields .woocommerce-invalid select,
body.woocommerce-checkout .woocommerce-billing-fields .woocommerce-invalid span.select2-selection--single {
    border-color: #ff2a00 !important;
}
/* Checks de Tus datos (facturar a nombre de empresa, bonificar): texto y casilla más grandes.
   La casilla va a la izquierda con sangría para que el texto largo no pase por debajo */
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper p.form-row label.checkbox {
    display: block;
    position: relative;
    padding-left: 30px;
    font-size: 17px;
    line-height: 1.4;
    color: #222;
    cursor: pointer;
}
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper p.form-row label.checkbox input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--e-global-color-primary);
    cursor: pointer;
}
/* Bloque morado del carrito (contenedor Elementor 77719d0 de la página 5836): más margen interior.
   Elementor lo define con variables --padding-*, a 10 px por defecto */
body.woocommerce-checkout .elementor-element.elementor-element-77719d0 {
    --padding-top: 30px;
    --padding-bottom: 30px;
    --padding-left: 40px;
    --padding-right: 40px;
}
/* En móvil el bloque morado va encima de Tus datos: se deja el margen lateral original (10 px)
   para que su contenido quede alineado con los campos de debajo */
@media (max-width: 767px) {
    body.woocommerce-checkout .elementor-element.elementor-element-77719d0 {
        --padding-top: 20px;
        --padding-bottom: 20px;
        --padding-left: 10px;
        --padding-right: 10px;
    }
}
/* Con el nuevo margen, en tableta la fila del cupón no cabía y se salía por la izquierda:
   el campo del cupón puede estrecharse */
.iowp-coupon-minimal input[type="text"] {
    min-width: 0;
    flex: 0 1 160px;
}
/* Logo del bloque morado (widget Elementor f9d4bb9) alineado con «Tu carrito»: el título va dentro
   de un contenedor con 10 px de padding y el logo no, así que se le dan esos 10 px */
body.woocommerce-checkout .elementor-element.elementor-element-f9d4bb9 {
    padding-left: 10px;
}
/* Columna blanca (contenedor Elementor e806432): mismo margen a la derecha que a la izquierda.
   A la izquierda, además de sus 10 px de padding, está el hueco de 20 px entre las dos columnas;
   a la derecha solo había los 10 px. Solo con las dos columnas lado a lado (desde 768 px) */
@media (min-width: 768px) {
    body.woocommerce-checkout .elementor-element.elementor-element-e806432 {
        --padding-right: 30px;
    }
}

/* 12/11/2026: métodos de pago con aspecto de tarjeta y sin el bloque gris de WooCommerce.
   El número de tarjeta y el CVV son iframes de Paycomet: solo se estiliza el recuadro que los contiene */
body.woocommerce-checkout #payment ul.payment_methods {
    padding: 0;
    border: 0;
}
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
    margin: 0 0 12px !important;
    padding: 16px 18px !important;
    background: #fff;
    border: 1px solid #d9d9e3;
    border-radius: 8px;
    transition: border-color .2s ease, background-color .2s ease;
}
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:hover {
    border-color: #9a93c9;
}
/* Método elegido: borde morado de 2 px (el padding baja 1 px para que no se mueva el contenido) */
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:has(> input.input-radio:checked) {
    padding: 15px 17px !important;
    background: #f7f5ff;
    border: 2px solid var(--e-global-color-primary);
}
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > input.input-radio {
    width: 18px;
    height: 18px;
    margin: 0 10px 0 0;
    vertical-align: middle;
    accent-color: var(--e-global-color-primary);
    cursor: pointer;
}
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    vertical-align: middle;
    cursor: pointer;
}
/* Fuera el fondo gris y el triángulo: los datos van dentro de la tarjeta, tras una línea fina */
body.woocommerce-checkout #payment div.payment_box {
    margin: 14px 0 0 !important;
    padding: 14px 0 0 !important;
    font-size: 15px;
    color: #444;
    background: transparent !important;
    border-top: 1px solid #e3e0f5;
    border-radius: 0;
}
body.woocommerce-checkout #payment div.payment_box::before {
    display: none !important;
}
body.woocommerce-checkout #payment div.payment_box p {
    margin-bottom: 12px;
}
body.woocommerce-checkout #payment div.payment_box label {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
}
/* Recuadros del número de tarjeta y del CVV (Paycomet les pone estilos en línea) */
body.woocommerce-checkout #payment #paycomet-pan,
body.woocommerce-checkout #payment #paycomet-cvc2 {
    box-sizing: border-box;
    height: 48px !important;
    padding: 6px 12px !important;
    background: #fff;
    border: 1px solid #222 !important;
    border-radius: 6px;
}
body.woocommerce-checkout #payment #paycomet-pan {
    width: 100% !important;
    max-width: 360px;
}
body.woocommerce-checkout #payment #paycomet-cvc2 {
    width: 120px;
}
/* Mes y Año (select2) */
body.woocommerce-checkout #payment div.payment_box .select2-container .select2-selection--single {
    height: 48px !important;
    padding: 0 12px !important;
    background: #fff;
    border: 1px solid #222 !important;
    border-radius: 6px !important;
}
body.woocommerce-checkout #payment div.payment_box .select2-selection__rendered {
    padding-left: 0 !important;
    line-height: 46px !important;
    font-size: 16px;
    color: #222 !important;
}
body.woocommerce-checkout #payment div.payment_box .select2-selection__arrow {
    height: 46px !important;
    right: 8px !important;
}
/* Mes y Año en la misma fila, repartiéndose el ancho (Paycomet les fija 142 px en línea),
   y bloques del formulario de Paycomet alineados a la izquierda con la misma separación */
body.woocommerce-checkout #payment div.payment_box .form-group {
    margin: 0 0 12px;
    padding: 0;
}
body.woocommerce-checkout #payment div.payment_box .col-md-9 {
    flex: 0 0 100%;
    width: 100%;
    max-width: 360px;
    padding: 0 !important;
}
body.woocommerce-checkout #payment div.payment_box .form-inline {
    display: flex;
    gap: 10px;
}
body.woocommerce-checkout #payment div.payment_box .form-inline > .select2-container {
    flex: 1 1 0;
    min-width: 0;
    width: auto !important;
    height: 48px;
}
/* Foco en el número de tarjeta y el CVV: el contorno azul del navegador se quita dentro del iframe
   (ajustes de Paycomet, outline:none) y aquí se marca el recuadro en morado para no perder el foco visible */
body.woocommerce-checkout #payment #paycomet-pan:focus-within,
body.woocommerce-checkout #payment #paycomet-cvc2:focus-within {
    border-color: var(--e-global-color-primary) !important;
    box-shadow: 0 0 0 3px rgba(91, 68, 245, .2);
}

/* 12/11/2026: bloque «Tu carrito» con aspecto más actual: producto en tarjeta translúcida, duración como etiqueta,
   botón de papelera redondo, cupón en forma de píldora y total separado por una línea */
#tu-carrito table thead {
    border-bottom: 1px solid rgba(255, 255, 255, .25);
    font-size: 12px;
    letter-spacing: .08em;
    opacity: .75;
}
#tu-carrito table tbody tr.cart_item {
    align-items: center;
    margin-top: 14px;
    padding: 6px 4px;
    background: rgba(255, 255, 255, .08);
    border-radius: 12px;
}
#tu-carrito table td.product-name .ast-product-name {
    font-weight: 600;
    line-height: 1.45;
}
#tu-carrito table td.product-name .iowp-course-duration {
    float: none;
    display: block;
    width: fit-content;
    margin-top: 8px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    background: rgba(255, 255, 255, .16);
    border-radius: 999px;
}
#tu-carrito table td.product-total {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    font-weight: 700 !important;
}
#tu-carrito table td.product-total a.iowp-remove-cart-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 14px;
    background: rgba(255, 255, 255, .12);
    border-radius: 50%;
    transition: background-color .2s ease;
}
#tu-carrito table td.product-total a.iowp-remove-cart-item:hover,
#tu-carrito table td.product-total a.iowp-remove-cart-item:focus-visible {
    background: rgba(255, 255, 255, .28);
}
/* Cupón: campo y botón en una sola píldora */
.iowp-coupon-minimal {
    gap: 0;
}
.iowp-coupon-minimal label,
.iowp-coupon-minimal button {
    white-space: nowrap;
}
.iowp-coupon-minimal label {
    margin-right: 12px;
    font-size: 13px;
    opacity: .85;
}
.iowp-coupon-minimal input[type="text"] {
    height: 40px !important;
    padding: 0 16px;
    background-color: rgba(255, 255, 255, .12) !important;
    border: 1px solid rgba(255, 255, 255, .35) !important;
    border-right: 0 !important;
    border-radius: 999px 0 0 999px !important;
    flex: 0 1 200px;
}
.iowp-coupon-minimal input[type="text"]:focus {
    outline: none;
    border-color: #ffffff !important;
}
.iowp-coupon-minimal button {
    height: 40px;
    padding: 0 18px;
    font-weight: 600;
    color: #5B44F5 !important;
    background-color: #ffffff !important;
    border-radius: 0 999px 999px 0 !important;
}
.iowp-coupon-minimal button:hover {
    color: #5B44F5 !important;
    background-color: var(--e-global-color-accent) !important;
}
/* Total separado del resto por una línea */
body.woocommerce-checkout #order-total {
    margin-top: 6px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .25);
}
/* WooCommerce deja un &nbsp; tras el nombre del producto que añadía una línea vacía (25 px) dentro de la tarjeta.
   Solo en el resumen del checkout: en «Pedido recibido» el nombre es un enlace suelto en la celda */
#tu-carrito table.woocommerce-checkout-review-order-table td.product-name {
    line-height: 0;
}
/* Menos hueco entre la tarjeta del producto y el cupón */
#tu-carrito table.woocommerce-checkout-review-order-table {
    margin-bottom: 0;
}
.iowp-coupon-minimal {
    margin-top: 0;
}
/* 12/11/2026: el país está fijado en España (select2 deshabilitado con una sola opción): se muestra en gris,
   sin flecha y con cursor de no permitido para que no parezca editable */
body.woocommerce-checkout #billing_country_field .select2-container--disabled .select2-selection--single {
    background-color: #f2f2f4 !important;
    background-image: none !important;
    border-color: #d0d0d8 !important;
    cursor: not-allowed;
}
body.woocommerce-checkout #billing_country_field .select2-container--disabled .select2-selection__rendered {
    color: #6e6e7a !important;
    cursor: not-allowed;
}
body.woocommerce-checkout #billing_country_field .select2-container--disabled .select2-selection__arrow {
    display: none;
}
/* 12/11/2026: el mensaje del cupón («Cupón aplicado.», errores) se insertaba entre el campo y el botón y partía la píldora.
   Ahora va en su propia línea, debajo y alineado a la derecha, como etiqueta translúcida sobre el morado */
.iowp-coupon-minimal {
    flex-wrap: wrap;
}
.iowp-coupon-minimal .iowp-coupon-msg {
    order: 10;
    flex: 0 0 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}
.iowp-coupon-minimal .iowp-coupon-msg:empty {
    display: none;
}
.iowp-coupon-minimal .iowp-coupon-message,
.iowp-coupon-minimal .iowp-coupon-error {
    margin: 0 !important;
    padding: 6px 14px;
    font-size: 13px;
    line-height: 1.4;
    color: #ffffff;
    background: rgba(255, 255, 255, .14);
    border: 0;
    border-radius: 999px;
}
.iowp-coupon-minimal .iowp-coupon-message::before {
    content: "✓";
    margin-right: 8px;
    font-weight: 700;
    color: var(--e-global-color-accent, #c6f432);
}
.iowp-coupon-minimal .iowp-coupon-error {
    background: rgba(255, 90, 90, .28);
    border-radius: 12px;
}
.iowp-coupon-minimal .iowp-coupon-error::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #5B44F5;
    background: #ffffff;
    border-radius: 50%;
}
/* Con flex-wrap, el botón «Aplicar» saltaba de línea en móvil y tableta: el campo parte de 60 px y crece hasta 200 px */
.iowp-coupon-minimal input[type="text"] {
    flex: 1 1 60px;
    max-width: 200px;
}
