/**
 * Kura – Checkout, estilo moderno (v3.1.1)
 * Se carga DESPUÉS de checkout.css y usa alta especificidad para ganarle al tema.
 * Superficies claras, bordes suaves, píldoras, degradado en el CTA.
 * Nada en negro: todo fondo/borde de celda es claro.
 */

body.woocommerce-checkout .container_checkout {
    --kbco-primary: #1a73e8;
    --kbco-primary-dark: #1558b8;
    --kbco-primary-soft: #eaf2fe;
    --kbco-text: #14233a;
    --kbco-muted: #6a7a90;
    --kbco-border: #e6ecf4;
    --kbco-radius: 18px;
}

html,
body.woocommerce-checkout {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

body.woocommerce-checkout {
    background: linear-gradient(180deg, #f3f8ff 0%, #f8fafc 60%) !important;
}

body.woocommerce-checkout #page,
body.woocommerce-checkout .site-content,
body.woocommerce-checkout .data_checkout,
body.woocommerce-checkout form.checkout,
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .col2-set {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#btn-wsp-universal,
.wsp-flotante {
    max-width: calc(100vw - 16px) !important;
    box-sizing: border-box !important;
}

/* Superficies */
body .container_checkout .header_checkout,
body .container_checkout .kbco-card,
body .container_checkout .review_checkout {
    background: #fff !important;
    border: 1px solid var(--kbco-border) !important;
    border-radius: var(--kbco-radius) !important;
    box-shadow: 0 10px 30px -12px rgba(26, 60, 110, 0.18) !important;
}

body .container_checkout .kbco-card { padding: 26px !important; }

body .container_checkout .kbco-card-head {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 20px !important;
}

body .container_checkout .kbco-card-icon {
    background: linear-gradient(135deg, #eaf2fe, #d7e7fd) !important;
    color: var(--kbco-primary) !important;
    border-radius: 14px !important;
}

body .container_checkout .kbco-card-head h3,
body .container_checkout .review_checkout h3 {
    color: var(--kbco-text) !important;
    font-size: 19px !important;
    letter-spacing: -0.2px;
    background: none !important;
    border: 0 !important;
}

body .container_checkout .step-subtitle {
    color: var(--kbco-primary) !important;
    font-weight: 600;
    font-size: 11.5px !important;
}

/* Campos: fondo blanco, nunca oscuros */
body .container_checkout .form-row input.input-text,
body .container_checkout .form-row input[type="text"],
body .container_checkout .form-row input[type="email"],
body .container_checkout .form-row input[type="tel"],
body .container_checkout .form-row select,
body .container_checkout .form-row textarea,
body .container_checkout .kbco-op-card input[type="text"],
body .container_checkout .select2-container--default .select2-selection--single {
    background: #fff !important;
    color: var(--kbco-text) !important;
    border: 1.5px solid #dbe4ef !important;
    border-radius: 12px !important;
    min-height: 50px !important;
    padding: 12px 14px !important;
    box-shadow: none !important;
}

body .container_checkout .form-row input:focus,
body .container_checkout .form-row select:focus,
body .container_checkout .kbco-op-card input:focus {
    border-color: var(--kbco-primary) !important;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.14) !important;
}

body .container_checkout .form-row label {
    color: var(--kbco-text) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

/* Resumen: tabla clara, sin celdas oscuras */
body .container_checkout .kbco-review-table,
body .container_checkout .kbco-review-table thead,
body .container_checkout .kbco-review-table tbody,
body .container_checkout .kbco-review-table tfoot,
body .container_checkout .kbco-review-table tr,
body .container_checkout .kbco-review-table th,
body .container_checkout .kbco-review-table td {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--kbco-text) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
}

body .container_checkout .kbco-review-table {
    border: 0 !important;
    width: 100% !important;
}

body .container_checkout .kbco-review-table th,
body .container_checkout .kbco-review-table td {
    border-bottom: 1px dashed var(--kbco-border) !important;
    padding: 12px 0 !important;
    font-weight: 500;
}

body .container_checkout .kbco-review-table tr.kbco-item td {
    border-bottom: 1px solid var(--kbco-border) !important;
}

body .container_checkout .kbco-review-table tr.order-total th,
body .container_checkout .kbco-review-table tr.order-total td {
    border-bottom: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

body .container_checkout .kbco-review-table tr.order-total td { color: var(--kbco-primary) !important; }

body .container_checkout .kbco-item-thumb img {
    border-radius: 14px !important;
    border: 1px solid var(--kbco-border) !important;
    background: #fff;
}

/* Selector de cantidad: píldora clara, sin bordes rojos del tema */
body .container_checkout .kbco-qty {
    background: #f1f5fb !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 3px !important;
    gap: 2px !important;
}

body .container_checkout .kbco-qty .kbco-qty-btn,
body .container_checkout .kbco-qty .kbco-remove-item {
    background: #fff !important;
    color: var(--kbco-primary) !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 1px 3px rgba(26, 60, 110, 0.16) !important;
    font-size: 17px !important;
    line-height: 1 !important;
}

body .container_checkout .kbco-qty .kbco-qty-btn:hover {
    background: var(--kbco-primary) !important;
    color: #fff !important;
}

body .container_checkout .kbco-qty .kbco-remove-item {
    color: #c0504d !important;
    margin-left: 6px !important;
    box-shadow: none !important;
    background: transparent !important;
}

body .container_checkout .kbco-qty .kbco-remove-item:hover { background: #fdecec !important; }

body .container_checkout .kbco-qty-val {
    min-width: 28px !important;
    color: var(--kbco-text) !important;
    background: transparent !important;
}

/* Botón de resumen: solo en móvil */
body .container_checkout .kbco-summary-toggle { display: none !important; }

/* Métodos de pago */
body .container_checkout #payment ul.payment_methods li {
    background: #fff !important;
    border: 1.5px solid var(--kbco-border) !important;
    border-radius: 14px !important;
}

body .container_checkout #payment ul.payment_methods li:has(input:checked) {
    border-color: var(--kbco-primary) !important;
    background: #f7fbff !important;
}

body .container_checkout #payment .payment_box,
body .container_checkout .kbco-op-card {
    background: #fff !important;
    color: var(--kbco-text) !important;
}

body .container_checkout .kbco-op-card {
    border: 1.5px solid var(--kbco-border) !important;
    border-radius: 14px !important;
}

/* CTA */
body .container_checkout #place_order {
    background: linear-gradient(135deg, #2b86f2, #1558b8) !important;
    border: 0 !important;
    border-radius: 14px !important;
    min-height: 56px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
    box-shadow: 0 10px 22px -8px rgba(26, 115, 232, 0.55) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

body .container_checkout #place_order:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -8px rgba(26, 115, 232, 0.65) !important;
}

body .container_checkout .kbco-logo-chip,
body .container_checkout .kbco-brand {
    background: #fff !important;
    border-radius: 6px !important;
}

@media ( max-width: 992px ) {
    body .container_checkout .review_checkout { padding: 0 !important; overflow: hidden; }

    body .container_checkout .kbco-summary-toggle {
        display: flex !important;
        width: 100% !important;
        background: var(--kbco-primary-soft) !important;
        color: var(--kbco-primary) !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 15px 18px !important;
        font-weight: 600 !important;
    }

    body .container_checkout .kbco-card { padding: 18px !important; }
}

/* ═══ Método de pago Yape / Plin / BBVA / BCP (vectores) ═══ */
body .container_checkout .kbco-pm-title {
    display: inline-block;
    margin-left: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--kbco-text);
    vertical-align: middle;
}

body .container_checkout .kbco-pm-logos > label {
    display: block;
    width: calc(100% - 34px);
}

body .container_checkout .kbco-pm-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 190px));
    gap: 14px;
    margin-top: 12px;
}

body .container_checkout .kbco-chip {
    display: block;
    width: 100%;
    max-width: 190px;
    height: auto;
    margin: 0;
    border-radius: 14px;
    filter: drop-shadow(0 4px 8px rgba(20, 35, 58, 0.14));
    transition: transform 0.15s ease;
}

body .container_checkout .kbco-pm-logos:hover .kbco-chip { transform: translateY(-2px); }

/* La imagen original se oculta solo si el JS insertó los vectores */
body .container_checkout .kbco-pm-logos img.kbco-pm-orig { display: none !important; }

@media ( max-width: 600px ) {
    body .container_checkout .kbco-pm-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ═══ Consentimiento / términos: texto legible ═══ */
body .container_checkout .woocommerce-terms-and-conditions-wrapper,
body .container_checkout .woocommerce-privacy-policy-text,
body .container_checkout .woocommerce-privacy-policy-text p,
body .container_checkout .woocommerce-form__label-for-checkbox,
body .container_checkout .woocommerce-form__label-for-checkbox span,
body .container_checkout form.checkout .form-row.validate-required label.checkbox {
    font-size: 15px !important;
    line-height: 1.55 !important;
    color: var(--kbco-text) !important;
}

body .container_checkout .woocommerce-privacy-policy-text a,
body .container_checkout .woocommerce-terms-and-conditions-wrapper a {
    color: var(--kbco-primary) !important;
    font-weight: 600;
    text-decoration: underline;
}

body .container_checkout input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-height: 0 !important;
    margin-right: 10px !important;
    accent-color: var(--kbco-primary);
    vertical-align: middle;
}

body .container_checkout .woocommerce-terms-and-conditions-wrapper {
    margin: 16px 0 !important;
    padding: 14px 16px !important;
    background: #f6f9fe !important;
    border-radius: 12px !important;
}

/* ═══ Columna derecha: resumen del pedido (rediseño) ═══ */
body .container_checkout .review_checkout {
    padding: 0 !important;
    overflow: hidden !important;
    top: 24px !important;
}

body .container_checkout .review_checkout #order_review { padding: 0 !important; }

body .container_checkout .review_checkout #order_review > h3 {
    margin: 0 !important;
    padding: 20px 24px !important;
    background: linear-gradient(135deg, #2b86f2, #1558b8) !important;
    color: #fff !important;
    font-size: 18px !important;
}

body .container_checkout .review_checkout #order_review > h3 .kbco-card-icon {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

/* Tabla → tarjetas de producto */
body .container_checkout .kbco-review-table,
body .container_checkout .kbco-review-table tbody,
body .container_checkout .kbco-review-table tfoot {
    display: block !important;
    width: 100% !important;
}

body .container_checkout .kbco-review-table tbody { padding: 8px 20px 0 !important; }

body .container_checkout .kbco-review-table tr.kbco-item {
    display: grid !important;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 0 !important;
    border-bottom: 1px solid var(--kbco-border) !important;
}

body .container_checkout .kbco-review-table tr.kbco-item:last-child { border-bottom: 0 !important; }

body .container_checkout .kbco-review-table tr.kbco-item td {
    display: block !important;
    border: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

body .container_checkout .kbco-item-thumb img {
    width: 68px !important;
    height: 68px !important;
    object-fit: cover;
}

body .container_checkout .kbco-item-name {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
}

body .container_checkout .kbco-item-total {
    font-weight: 700 !important;
    font-size: 15px !important;
    align-self: start;
    padding-top: 2px !important;
}

/* Totales: caja suave */
body .container_checkout .kbco-review-table tfoot {
    margin: 4px 20px 0 !important;
    padding: 6px 16px !important;
    width: auto !important;
    background: #f6f9fe !important;
    border-radius: 14px;
}

body .container_checkout .kbco-review-table tfoot tr {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

body .container_checkout .kbco-review-table tfoot th,
body .container_checkout .kbco-review-table tfoot td {
    display: block !important;
    width: auto !important;
    border-bottom: 0 !important;
    padding: 9px 0 !important;
    font-size: 14.5px;
}

body .container_checkout .kbco-review-table tfoot th { color: var(--kbco-muted) !important; }
body .container_checkout .kbco-review-table tfoot td { text-align: right !important; font-weight: 600 !important; }

body .container_checkout .kbco-review-table tfoot ul#shipping_method,
body .container_checkout .kbco-review-table tfoot ul.woocommerce-shipping-methods {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .container_checkout .kbco-review-table tr.order-total {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed #cdd9e8 !important;
}

body .container_checkout .kbco-review-table tr.order-total th { color: var(--kbco-text) !important; font-size: 17px !important; }
body .container_checkout .kbco-review-table tr.order-total td { font-size: 24px !important; }

/* Envío gratuito: píldora verde */
body .container_checkout .kbco-review-table tr.kbco-free-shipping-row { display: block !important; }

body .container_checkout .kbco-review-table tr.kbco-free-shipping-row th {
    display: block !important;
    padding: 4px 0 10px !important;
    text-align: center;
}

body .container_checkout .kbco-free-ship-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #e6f6ec;
    color: #1e8e4e !important;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

/* Botón de pagar y confianza dentro de la columna derecha, si el tema lo mueve */
body .container_checkout .review_checkout::after { content: ""; display: block; height: 20px; }

@media ( max-width: 992px ) {
    body .container_checkout .review_checkout #order_review > h3 { display: none !important; }
    body .container_checkout .review_checkout #order_review { padding: 6px 0 14px !important; }
}

/* ═══ Casillas de consentimiento: mismo carril, mismo bloque ═══ */
body .container_checkout form.checkout .woocommerce-terms-and-conditions-wrapper,
/* (selector :has() retirado en 3.2.3) */
body .container_checkout form.checkout p#consentimiento_datos_field {
    background: #f6f9fe !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    margin: 0 0 12px !important;
    width: 100% !important;
    float: none !important;
    box-sizing: border-box !important;
}

/* El bloque interior de términos no repite caja ni sangría */
body .container_checkout .woocommerce-terms-and-conditions-wrapper p.form-row,
body .container_checkout .woocommerce-terms-and-conditions-wrapper .form-row {
    background: transparent !important;
    padding: 0 !important;
    margin: 12px 0 0 !important;
}

/* Casilla a la izquierda y texto alineado a su derecha, igual en todas */
body .container_checkout form.checkout label.checkbox,
body .container_checkout form.checkout label.woocommerce-form__label-for-checkbox {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 600 !important;
    text-indent: 0 !important;
}

body .container_checkout form.checkout label.checkbox input[type="checkbox"],
body .container_checkout form.checkout label.woocommerce-form__label-for-checkbox input[type="checkbox"],
body .container_checkout form.checkout p.form-row > label > input[type="checkbox"] {
    flex: 0 0 20px !important;
    width: 20px !important;
    height: 20px !important;
    margin: 2px 0 0 0 !important;
    position: static !important;
    float: none !important;
}


/* ═══ v3.2.2 – correcciones tras la prueba en staging ═══ */

/* Yape / Plin: radio + título en la misma línea, logos debajo */
body .container_checkout #payment ul.payment_methods li.kbco-pm-logos {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    column-gap: 4px;
}

body .container_checkout #payment li.kbco-pm-logos > input[type="radio"] {
    grid-column: 1;
    margin: 4px 0 0 !important;
    align-self: start;
}

body .container_checkout #payment li.kbco-pm-logos > label {
    grid-column: 2;
    display: block !important;
    width: auto !important;
    margin: 0 !important;
}

body .container_checkout #payment li.kbco-pm-logos > .payment_box {
    grid-column: 1 / -1;
}

body .container_checkout .kbco-pm-title {
    margin-left: 0 !important;
    display: block !important;
    line-height: 1.4;
}

body .container_checkout .kbco-pm-chips {
    display: flex !important;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
}

body .container_checkout .kbco-pm-chips .kbco-chip {
    width: 100% !important;
    max-width: 190px !important;
    flex: 0 1 190px;
    height: auto !important;
}

@media ( max-width: 600px ) {
    body .container_checkout .kbco-pm-chips .kbco-chip {
        flex-basis: calc(50% - 7px);
        max-width: none !important;
    }
}

/* Flechita gris del tema sobre la caja de cada método */
body .container_checkout #payment .payment_box::before,
body .container_checkout #payment div.payment_box::before,
body .container_checkout .wc_payment_method .payment_box::before {
    display: none !important;
    content: none !important;
    border: 0 !important;
}

/* Consentimiento: ambas casillas en la misma caja y el mismo carril */
body .container_checkout form.checkout .woocommerce-terms-and-conditions-wrapper,
body .container_checkout form.checkout p#consentimiento_datos_field,
body .container_checkout form.checkout p.form-row.privacy {
    background: #f6f9fe !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    margin: 0 0 12px !important;
    width: 100% !important;
    float: none !important;
    box-sizing: border-box !important;
}

body .container_checkout form.checkout .woocommerce-terms-and-conditions-wrapper .form-row,
body .container_checkout form.checkout .woocommerce-terms-and-conditions-wrapper p.form-row.validate-required {
    background: transparent !important;
    padding: 0 !important;
    margin: 12px 0 0 !important;
    border: 0 !important;
}

body .container_checkout form.checkout .woocommerce-input-wrapper,
body .container_checkout form.checkout p#consentimiento_datos_field .woocommerce-input-wrapper {
    display: block !important;
    width: 100% !important;
}

body .container_checkout form.checkout label.checkbox,
body .container_checkout form.checkout label.woocommerce-form__label-for-checkbox {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
    line-height: 1.5 !important;
}

body .container_checkout form.checkout label.checkbox input[type="checkbox"],
body .container_checkout form.checkout label.woocommerce-form__label-for-checkbox input[type="checkbox"] {
    flex: 0 0 20px !important;
    margin: 2px 0 0 0 !important;
}

body .container_checkout form.checkout label.checkbox .required,
body .container_checkout form.checkout label.checkbox abbr.required {
    float: none !important;
    margin-left: 2px !important;
}

/* Botón de pagar a todo el ancho */
body .container_checkout #place_order,
body .container_checkout button#place_order {
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin: 12px 0 0 !important;
}

body .container_checkout #payment .form-row.place-order {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}


/* ═══ v3.2.3 ═══ */

/* Logos Yape / Plin: íconos cuadrados, tamaño contenido */
body .container_checkout .kbco-pm-chips .kbco-chip {
    width: 96px !important;
    max-width: 96px !important;
    flex: 0 0 96px !important;
    border-radius: 22px !important;
    filter: drop-shadow(0 3px 6px rgba(20, 35, 58, 0.16));
}

body .container_checkout .kbco-pm-chips { gap: 16px !important; }

@media ( max-width: 600px ) {
    body .container_checkout .kbco-pm-chips .kbco-chip {
        flex-basis: 84px !important;
        width: 84px !important;
        max-width: 84px !important;
    }
}

/* Términos: la fila interior no repite caja ni sangría; el asterisco queda junto al texto */
body .container_checkout form.checkout .woocommerce-terms-and-conditions-wrapper .form-row,
body .container_checkout form.checkout .woocommerce-terms-and-conditions-wrapper .validate-required {
    background: transparent !important;
    padding: 0 !important;
    margin: 12px 0 0 !important;
    border-radius: 0 !important;
}

body .container_checkout form.checkout .woocommerce-terms-and-conditions-wrapper {
    padding-bottom: 14px !important;
}

body .container_checkout form.checkout .woocommerce-terms-and-conditions-checkbox-text {
    flex: 0 1 auto !important;
}

body .container_checkout form.checkout label.checkbox .required,
body .container_checkout form.checkout label.woocommerce-form__label-for-checkbox .required {
    flex: 0 0 auto !important;
    margin-left: 0 !important;
}

/* Botón de pagar: el tema lo centra con left/transform; lo devolvemos al flujo normal */
body .container_checkout #place_order,
body .container_checkout button#place_order {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    padding: 14px 24px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}


/* ═══ v3.2.4 – Fila de envío con varias opciones (p. ej. Entrega hoy + Envío gratuito) ═══ */
body .container_checkout .kbco-review-table tfoot tr.woocommerce-shipping-totals,
body .container_checkout .kbco-review-table tfoot tr.shipping {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 2px !important;
}

body .container_checkout .kbco-review-table tfoot tr.shipping td {
    text-align: left !important;
    padding-top: 0 !important;
    font-weight: 500 !important;
}

body .container_checkout .kbco-review-table tfoot tr.shipping ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .container_checkout .kbco-review-table tfoot tr.shipping ul li {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 8px !important;
    padding: 10px 12px !important;
    background: #fff;
    border: 1.5px solid var(--kbco-border);
    border-radius: 12px;
    line-height: 1.35;
}

body .container_checkout .kbco-review-table tfoot tr.shipping ul li:has(input:checked) {
    border-color: var(--kbco-primary);
}

body .container_checkout .kbco-review-table tfoot tr.shipping ul li input[type="radio"] {
    flex: 0 0 auto;
    margin: 3px 0 0 !important;
    accent-color: var(--kbco-primary);
}

body .container_checkout .kbco-review-table tfoot tr.shipping ul li label {
    flex: 1 1 auto;
    margin: 0 !important;
    font-size: 14px;
    cursor: pointer;
}


/* ═══ v3.3.0 – Font Awesome, encabezado sin logo y cupón en la segunda columna ═══ */

/* Íconos Font Awesome dentro de los discos */
body .container_checkout .kbco-card-icon i { font-size: 20px; line-height: 1; }
body .container_checkout .kbco-card-icon-sm i { font-size: 16px; }
body .container_checkout .security_info i { font-size: 14px; }
body .container_checkout .kbco-op-secure i,
body .container_checkout .kbco-pay-lock i,
body .container_checkout .kbco-trust-badge i { font-size: 13px; }
body .container_checkout .kbco-summary-toggle i { font-size: 17px; }
body .container_checkout .kbco-qty .kbco-qty-btn i { font-size: 11px; line-height: 1; pointer-events: none; }
body .container_checkout .kbco-qty .kbco-remove-item i { font-size: 14px; line-height: 1; pointer-events: none; }
body .container_checkout .kbco-free-ship-badge i { margin-right: 4px; }

/* Encabezado: sin logo (ya está en el header del sitio) */
body .container_checkout .header_checkout {
    position: relative;
    overflow: hidden;
    padding: 18px 24px !important;
}

body .container_checkout .kbco-head-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

body .container_checkout .kbco-head-icon { margin: 0; }

body .container_checkout .header_checkout .title h3 {
    margin: 0 0 8px !important;
    font-size: 20px !important;
    line-height: 1.2;
}

/* Fila de cinco puntos: retoma la fila de puntos del logo */
body .container_checkout .kbco-dots { display: inline-flex; gap: 6px; }
body .container_checkout .kbco-dots span {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--kbco-accent, #38a9e8);
    opacity: 0.9;
}

/* Cupón: segunda columna, bajo el resumen */
body .container_checkout .kbco-coupon {
    margin: 4px 20px 22px !important;
    padding: 0 !important;
}

body .container_checkout .kbco-coupon .woocommerce-form-coupon-toggle { margin: 0 !important; }

body .container_checkout .kbco-coupon .woocommerce-info,
body .container_checkout .kbco-coupon .woocommerce-message {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 12px 14px !important;
    background: #fff !important;
    border: 1.5px dashed #b7cde0 !important;
    border-radius: 12px !important;
    color: var(--kbco-text) !important;
    font-size: 14px !important;
    line-height: 1.35;
}

body .container_checkout .kbco-coupon .woocommerce-info::before {
    content: "\f02b" !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    position: static !important;
    display: inline-block !important;
    margin: 0 !important;
    font-size: 15px !important;
    color: var(--kbco-accent, #38a9e8) !important;
}

body .container_checkout .kbco-coupon .woocommerce-info a,
body .container_checkout .kbco-coupon .showcoupon {
    color: var(--kbco-primary) !important;
    font-weight: 600;
}

body .container_checkout .kbco-coupon form.checkout_coupon { display: none !important; }

body .container_checkout .kbco-coupon form.checkout_coupon[style*="block"] {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body .container_checkout .kbco-coupon form.checkout_coupon > p:first-child { flex: 0 0 100%; margin: 0 0 2px; font-size: 13px; color: var(--kbco-muted); }

body .container_checkout .kbco-coupon form.checkout_coupon .form-row {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .container_checkout .kbco-coupon form.checkout_coupon .form-row-first { flex: 1 1 140px; }
body .container_checkout .kbco-coupon form.checkout_coupon .form-row-last { flex: 0 0 auto; }

body .container_checkout .kbco-coupon form.checkout_coupon input.input-text {
    width: 100% !important;
    min-height: 46px !important;
}

body .container_checkout .kbco-coupon form.checkout_coupon button {
    min-height: 46px;
    padding: 0 20px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--kbco-primary) !important;
    color: #fff !important;
    font-weight: 600 !important;
    cursor: pointer;
}

body .container_checkout .kbco-coupon form.checkout_coupon button:hover { background: var(--kbco-primary-dark) !important; }

@media ( max-width: 600px ) {
    body .container_checkout .header_checkout { padding: 14px 16px !important; }
    body .container_checkout .header_checkout .title h3 { font-size: 17px !important; }
}


/* Font Awesome: la tipografía del tema nunca debe reemplazar la fuente de los íconos */
body .container_checkout .fas,
body .container_checkout .fa-solid,
body .container_checkout .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

body .container_checkout .far,
body .container_checkout .fa-regular {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 400 !important;
    font-style: normal !important;
}


/* ═══ v3.4.0 – Encabezado con logo del canal oficial, "Tu pedido" azul sólido y tarjeta del mapa ═══ */

/* Encabezado: título a la izquierda, logo del Club enfabebe a la derecha */
body .container_checkout .header_checkout {
    gap: 20px;
}

body .container_checkout .kbco-head-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
}

body .container_checkout .kbco-head-meta .security_info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

body .container_checkout .kbco-head-logo {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(10, 31, 68, 0.18);
}

body .container_checkout .kbco-head-logo img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
}

/* "Tu pedido": encabezado azul sólido (sin degradado) */
body .container_checkout .review_checkout #order_review > h3 {
    background: var(--kbco-primary) !important;
    background-image: none !important;
}

body .container_checkout .review_checkout #order_review > h3::after { display: none !important; }

/* Tarjeta del mapa (antes del paso 2) */
body .container_checkout .kbco-card-map:not(:has(.kmp-wrap)) { display: none !important; }

body .container_checkout .kbco-card-map .kmp-wrap {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body .container_checkout .kbco-card-map .kmp-title { display: none !important; }

body .container_checkout .kbco-card-map .kmp-help {
    margin: 0 0 12px !important;
    font-size: 14px;
    color: var(--kbco-muted);
}

body .container_checkout .kbco-card-map #kmp-map {
    width: 100% !important;
    min-height: 340px;
    height: 340px;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid var(--kbco-border);
}

@media ( max-width: 600px ) {
    body .container_checkout .header_checkout { flex-direction: column; align-items: flex-start !important; }
    body .container_checkout .kbco-head-logo { align-self: flex-start; padding: 8px 12px; }
    body .container_checkout .kbco-head-logo img { height: 42px; }
    body .container_checkout .kbco-card-map #kmp-map { min-height: 280px; height: 280px; }
}


/* ═══ v3.5.0 – Títulos Azul Kura, íconos/eyebrows Celeste, título con logo en línea ═══ */
body.woocommerce-checkout .container_checkout { --kbco-title: #0546B4; --kbco-icon: #189CD8; }

body .container_checkout .kbco-card-head h3,
body .container_checkout .header_checkout .title h3 { color: #0546B4 !important; }

body .container_checkout .review_checkout #order_review > h3 { background: #0546B4 !important; color: #fff !important; }

body .container_checkout .step-subtitle { color: #189CD8 !important; }
body .container_checkout .kbco-card-icon,
body .container_checkout .kbco-card-icon i { color: #189CD8 !important; }
body .container_checkout .review_checkout #order_review > h3 .kbco-card-icon,
body .container_checkout .review_checkout #order_review > h3 .kbco-card-icon i { color: #189CD8 !important; }
body .container_checkout .security_info i,
body .container_checkout .kbco-summary-toggle i,
body .container_checkout .kbco-coupon .woocommerce-info::before { color: #189CD8 !important; }

/* Título con logo en línea: "Compra en el canal oficial de [logo]" */
body .container_checkout .header_checkout .title h3 {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
}
body .container_checkout .header_checkout .title h3 .kbco-head-logo {
    padding: 4px 12px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 0 0 1px #d2e2ee;
}
body .container_checkout .header_checkout .title h3 .kbco-head-logo img { height: 40px; max-width: 160px; }
@media ( max-width: 600px ) {
    body .container_checkout .header_checkout .title h3 .kbco-head-logo img { height: 32px; }
}

/* Espacio sobre "Información adicional" */
body .container_checkout .woocommerce-additional-fields { margin-top: 32px !important; padding-top: 4px; }
body .container_checkout .woocommerce-additional-fields > h3 { margin: 0 0 14px !important; color: #0546B4 !important; }


/* ═══ v3.6.0 – Azul oficial #0546B4, hover #189CD8, precios azules, encabezado en una línea, "Tu pedido" difuminado ═══ */
body.woocommerce-checkout .container_checkout,
html body.kbco-theme-brand.woocommerce-checkout .container_checkout {
    --kbco-primary: #0546B4;
    --kbco-primary-dark: #189CD8;
    --kbco-primary-soft: #E8F4FB;
    --kbco-hover: #189CD8;
}

/* Hover oficial: Celeste */
html body .container_checkout #place_order:hover,
html body .container_checkout .kbco-coupon form.checkout_coupon button:hover,
html body .container_checkout .kbco-qty .kbco-qty-btn:hover {
    background: #189CD8 !important;
    border-color: #189CD8 !important;
    color: #ffffff !important;
}
html body .container_checkout a:hover,
html body .container_checkout .showcoupon:hover { color: #189CD8 !important; }
html body .container_checkout a,
html body .container_checkout .showcoupon { color: #0546B4; }

/* Precios en azul */
html body .container_checkout .kbco-review-table .woocommerce-Price-amount,
html body .container_checkout .kbco-review-table .amount,
html body .container_checkout .kbco-review-table .kbco-item-total,
html body .container_checkout .kbco-review-table tr.cart-subtotal td,
html body .container_checkout .kbco-review-table tr.order-total td,
html body .container_checkout .kbco-summary-toggle-total,
html body .container_checkout #order_review .kbco-item-total * {
    color: #0546B4 !important;
}

/* Encabezado: [título + logo] | [candado + Compra segura] en una sola línea, a todo el ancho */
body .container_checkout .header_checkout { display: block !important; }
body .container_checkout .kbco-head-main { display: block; width: 100%; }
body .container_checkout .header_checkout .title {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    gap: 16px;
}
body .container_checkout .header_checkout .title h3 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
    font-size: clamp(15px, 2.2vw, 22px) !important;
    white-space: nowrap;
}
body .container_checkout .kbco-head-meta { flex: 0 0 auto; display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 16px; }
body .container_checkout .kbco-head-sep { display: inline-block; width: 1px; height: 36px; background: #c9dbe9; }
body .container_checkout .kbco-dots { display: none !important; }
body .container_checkout .header_checkout .security_info { background: none !important; padding: 0 !important; gap: 8px; }
body .container_checkout .header_checkout .security_info i {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: #ffffff; color: #189CD8 !important; box-shadow: inset 0 0 0 1px #c9dbe9; font-size: 14px;
}
body .container_checkout .header_checkout .security_info small { color: #0546B4 !important; font-weight: 600; font-size: 13px; }

html body.kbco-theme-brand.woocommerce-checkout .container_checkout .header_checkout {
    background: #0546B4 !important;
}
html body.kbco-theme-brand.woocommerce-checkout .container_checkout .kbco-head-sep { background: rgba(255,255,255,0.4); }
html body.kbco-theme-brand.woocommerce-checkout .container_checkout .header_checkout .security_info small { color: #ffffff !important; }
html body.kbco-theme-brand.woocommerce-checkout .container_checkout .header_checkout .security_info i { box-shadow: none; }

@media ( max-width: 600px ) {
    body .container_checkout .header_checkout .title { gap: 10px; }
    body .container_checkout .header_checkout .title h3 { font-size: 12.5px !important; gap: 6px; }
    body .container_checkout .header_checkout .title h3 .kbco-head-logo { padding: 3px 7px; }
    body .container_checkout .header_checkout .title h3 .kbco-head-logo img { height: 22px; max-width: 80px; }
    body .container_checkout .kbco-head-meta { gap: 8px; }
    body .container_checkout .kbco-head-sep { height: 28px; }
    body .container_checkout .header_checkout .security_info small { font-size: 11px; }
    body .container_checkout .header_checkout .security_info i { width: 24px; height: 24px; font-size: 11px; }
}

/* "Tu pedido": cabecera difuminada, texto Azul Kura */
html body .container_checkout .review_checkout #order_review > h3,
html body.kbco-theme-brand.woocommerce-checkout .container_checkout .review_checkout #order_review > h3 {
    background: linear-gradient(135deg, #cfe6f6 0%, #e8f4fb 55%, #ffffff 100%) !important;
    background-image: linear-gradient(135deg, #cfe6f6 0%, #e8f4fb 55%, #ffffff 100%) !important;
    color: #0546B4 !important;
}
html body .container_checkout .review_checkout #order_review > h3 .kbco-card-icon {
    background: #ffffff !important;
    color: #189CD8 !important;
    box-shadow: 0 0 0 4px rgba(24,156,216,0.18) !important;
}

/* v3.6.1 – el logo no baja de línea */
html body .container_checkout .header_checkout .title h3 { flex-wrap: nowrap !important; gap: 10px !important; font-size: clamp(14px, 1.9vw, 21px) !important; }
html body .container_checkout .header_checkout .title h3 .kbco-head-logo { flex: 0 1 auto; min-width: 0; }
html body .container_checkout .header_checkout .title h3 .kbco-head-logo img { height: 34px; max-width: 130px; }

/* ═══ v3.7.0 – logo suelto, "Compra segura" en verde, "Tu pedido" sólido, CTA Azul Kura ═══ */
html body .container_checkout .header_checkout .title h3 .kbco-head-logo,
html body.kbco-theme-brand.woocommerce-checkout .container_checkout .header_checkout .title h3 .kbco-head-logo {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

html body .container_checkout .header_checkout .security_info i { color: #16A34A !important; }
html body .container_checkout .header_checkout .security_info small { color: #16A34A !important; }
html body.kbco-theme-brand.woocommerce-checkout .container_checkout .header_checkout .security_info i,
html body.kbco-theme-brand.woocommerce-checkout .container_checkout .header_checkout .security_info small { color: #4ADE80 !important; }
html body.kbco-theme-brand.woocommerce-checkout .container_checkout .header_checkout .security_info i { color: #16A34A !important; }

html body .container_checkout .review_checkout #order_review > h3,
html body.kbco-theme-brand.woocommerce-checkout .container_checkout .review_checkout #order_review > h3 {
    background: #E8F4FB !important;
    background-image: none !important;
}

html body .container_checkout #place_order,
html body.kbco-theme-brand.woocommerce-checkout .container_checkout #place_order {
    background: #0546B4 !important;
    background-image: none !important;
    border-color: #0546B4 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
html body .container_checkout #place_order:hover,
html body.kbco-theme-brand.woocommerce-checkout .container_checkout #place_order:hover {
    background: #189CD8 !important;
    background-image: none !important;
    border-color: #189CD8 !important;
}


/* ═══ v3.8.0 – Correcciones móvil + imagen de tarjetas ═══ */

/* Imagen referencial de tarjetas aceptadas (reemplaza las etiquetas de texto cuando carga) */
html body .container_checkout .kbco-op-cards-img { display: block; width: auto; max-width: 100%; height: auto; max-height: 38px; margin: 4px 0 16px; }
html body .container_checkout .kbco-op-card.has-cards-img .kbco-op-brands { display: none !important; }

/* Método de pago: radio y título en la misma línea en todos los métodos */
html body .container_checkout #payment ul.payment_methods li.wc_payment_method {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    column-gap: 6px;
}
html body .container_checkout #payment li.wc_payment_method > input[type="radio"] { grid-column: 1; margin: 0 !important; }
html body .container_checkout #payment li.wc_payment_method > label { grid-column: 2; display: block !important; width: auto !important; margin: 0 !important; line-height: 1.35; font-weight: 600; }
html body .container_checkout #payment li.wc_payment_method > .payment_box { grid-column: 1 / -1; min-width: 0; }

@media ( max-width: 992px ) {
    /* Franja blanca bajo "Ver resumen del pedido" */
    html body .container_checkout .review_checkout::after { display: none !important; content: none !important; }
    html body .container_checkout .review_checkout:not(.is-open) #order_review { display: none !important; padding: 0 !important; }
}

@media ( max-width: 600px ) {
    /* Encabezado: texto, logo y "Compra segura" se acomodan en líneas, sin recortes */
    html body .container_checkout .header_checkout .title { flex-wrap: wrap !important; row-gap: 8px; }
    html body .container_checkout .header_checkout .title h3 {
        flex: 1 1 100% !important;
        flex-wrap: wrap !important;
        white-space: normal !important;
        font-size: 15px !important;
        line-height: 1.3;
        row-gap: 6px;
    }
    html body .container_checkout .header_checkout .title h3 .kbco-head-text { white-space: normal !important; }
    html body .container_checkout .header_checkout .title h3 .kbco-head-logo { flex: 0 0 auto; }
    html body .container_checkout .header_checkout .title h3 .kbco-head-logo img { height: 28px; max-width: 120px; }
    html body .container_checkout .kbco-head-meta { flex: 1 1 100%; }
    html body .container_checkout .kbco-head-sep { display: none !important; }

    /* Método de pago: menos sangría anidada para que la tarjeta use todo el ancho */
    html body .container_checkout .kbco-card-payment { padding: 16px 12px !important; }
    html body .container_checkout #payment ul.payment_methods li.wc_payment_method { padding: 12px !important; }
    html body .container_checkout #payment li.wc_payment_method > label { font-size: 15px !important; }
    html body .container_checkout #payment .payment_box { padding: 10px 0 0 !important; margin: 0 !important; font-size: 14px; }
    html body .container_checkout .kbco-op-card { padding: 14px 12px !important; }
    html body .container_checkout .kbco-op-card input[type="text"] { font-size: 16px !important; padding-left: 12px !important; padding-right: 12px !important; }
    html body .container_checkout .kbco-op-head { flex-wrap: wrap; gap: 8px; }
    html body .container_checkout .kbco-op-secure { font-size: 13px !important; }
}


/* ═══ v3.9.0 – "Elige tu comprobante de pago" resaltado en cyan ═══ */
html body .container_checkout #billing_invoice_type_field > label {
    color: #189CD8 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}
html body .container_checkout #billing_invoice_type_field select,
html body .container_checkout #billing_invoice_type_field .select2-selection {
    border: 2px solid #189CD8 !important;
    background-color: #E8F4FB !important;
    box-shadow: 0 0 0 4px rgba(24, 156, 216, 0.18) !important;
    font-weight: 600 !important;
    color: #0546B4 !important;
    border-radius: 14px !important;
}
html body .container_checkout #billing_invoice_type_field select:focus {
    border-color: #189CD8 !important;
    box-shadow: 0 0 0 5px rgba(24, 156, 216, 0.30) !important;
}
html body .container_checkout #billing_invoice_type_field > label .optional { display: none !important; }


/* ═══ v3.10.0 – Móvil: título + logo en una línea, "Compra segura" centrado, tarjeta con menos margen lateral ═══ */
@media ( max-width: 600px ) {
    html body .container_checkout .header_checkout .title { justify-content: center !important; text-align: center; row-gap: 10px; }
    html body .container_checkout .header_checkout .title h3 {
        flex: 1 1 100% !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        white-space: nowrap !important;
        font-size: clamp(11px, 3.2vw, 14px) !important;
        font-weight: 600 !important;
        letter-spacing: -0.1px;
    }
    html body .container_checkout .header_checkout .title h3 .kbco-head-text { white-space: nowrap !important; }
    html body .container_checkout .header_checkout .title h3 .kbco-head-logo { flex: 0 1 auto; min-width: 0; }
    html body .container_checkout .header_checkout .title h3 .kbco-head-logo img { height: 24px; max-width: 100px; width: auto; }
    html body .container_checkout .kbco-head-meta { flex: 1 1 100% !important; justify-content: center !important; }
    html body .container_checkout .header_checkout .security_info { justify-content: center; }

    /* Tarjeta de pago: menos margen izquierdo/derecho */
    html body .container_checkout .kbco-card-payment { padding-left: 8px !important; padding-right: 8px !important; }
    html body .container_checkout #payment ul.payment_methods li.wc_payment_method { padding: 12px 8px !important; }
    html body .container_checkout #payment .payment_box { padding: 8px 0 0 !important; }
    html body .container_checkout .kbco-op-card { padding: 12px 8px !important; }
}


/* ═══ v3.11.0 – Sello de certificado SSL bajo el botón de pagar ═══ */
html body .container_checkout .kbco-ssl-seal {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin: 14px auto 12px; padding: 10px 16px; width: fit-content; max-width: 100%;
    background: #F0FDF4; border: 1.5px solid #16A34A; border-radius: 14px;
}
html body .container_checkout .kbco-ssl-ico { flex: 0 0 auto; display: block; }
html body .container_checkout .kbco-ssl-txt { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
html body .container_checkout .kbco-ssl-txt strong { color: #15803D; font-size: 14px; font-weight: 800; }
html body .container_checkout .kbco-ssl-txt small { color: #166534; font-size: 12px; font-weight: 600; }

/* ═══ Corrección Yape / Plin: Ocultar banner gigante de logos y alinear contenedor ═══ */
html body .container_checkout #payment .wc_payment_method:not(.payment_method_kbco_openpay) label img,
html body .container_checkout #payment .wc_payment_method img.kbco-pm-orig,
html body .container_checkout #payment .wc_payment_method img[src*="BBVA" i],
html body .container_checkout #payment .wc_payment_method img[src*="bcp" i],
html body .container_checkout #payment .wc_payment_method img[src*="yape" i],
html body .container_checkout #payment .wc_payment_method img[src*="plin" i],
html body .container_checkout .kbco-pm-chips {
    display: none !important;
}

/* Asegurar que la caja de instrucciones ocupe el 100% exacto del contenedor */
html body .container_checkout #payment .payment_box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
}

html body .container_checkout #payment .payment_box > * {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

html body .container_checkout #payment .payment_box div {
    max-width: 100% !important;
    box-sizing: border-box !important;
}


/* ═══ v3.12.3 – Ancho del checkout: contenedor centrado a 1140 px (antes se estiraba al 100% de la pantalla) ═══ */
body.woocommerce-checkout #content,
body.woocommerce-checkout .container_checkout {
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}


/* ═══ v3.13.0 – Envío "Entrega hoy" ordenado y mapa de ubicación integrado ═══ */

/* Etiqueta del método de envío: nombre + aclaración a la izquierda, precio a la derecha */
body .container_checkout .kbco-review-table tfoot tr.shipping ul li label { display: block; min-width: 0; }
body .container_checkout .kbco-review-table tfoot tr.shipping ul li:has(input:checked) { background: #E8F4FB; }

body .container_checkout .kbco-ship {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 12px;
}

body .container_checkout .kbco-ship-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 96px;
    min-width: 0;
}

body .container_checkout .kbco-ship-name { font-size: 14.5px; font-weight: 600; line-height: 1.25; color: #0546B4; }
body .container_checkout .kbco-ship-hint { font-size: 12.5px; font-weight: 400; line-height: 1.3; color: var(--kbco-muted); }

body .container_checkout .kbco-ship-price {
    margin-left: auto;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #0546B4;
    white-space: nowrap;
}

/* Mapa de ubicación (integrado en el plugin) */
body .container_checkout .kbco-card-map:not(:has(.kmp-wrap)):has(.kbco-map-box) { display: block !important; }
body .container_checkout .kbco-card-map:has(.kmp-wrap) .kbco-map-box { display: none !important; }

body .container_checkout .kbco-map-help { margin: 0 0 12px; font-size: 14px; line-height: 1.4; color: var(--kbco-muted); }

body .container_checkout .kbco-map-tools { display: flex; gap: 10px; margin-bottom: 12px; }

body .container_checkout .kbco-map-tools input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    font-size: 15px;
    background: #fff;
    border: 1.5px solid var(--kbco-border);
    border-radius: 12px;
    box-sizing: border-box;
}

body .container_checkout .kbco-map-tools input[type="search"]:focus {
    outline: 0;
    border-color: #0546B4;
    box-shadow: 0 0 0 3px rgba(5, 70, 180, 0.15);
}

body .container_checkout .kbco-map-locate {
    flex: 0 0 auto;
    height: 46px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    color: #0546B4;
    background: #fff;
    border: 1.5px solid #0546B4;
    border-radius: 12px;
    cursor: pointer;
}

body .container_checkout .kbco-map-locate:hover,
body .container_checkout .kbco-map-locate:focus-visible { background: #E8F4FB; }
body .container_checkout .kbco-map-locate i { margin-right: 6px; }

body .container_checkout #kbco-map {
    width: 100%;
    height: 340px;
    background: #eef3f9;
    border: 1.5px solid var(--kbco-border);
    border-radius: 14px;
    overflow: hidden;
}

body .container_checkout .kbco-map-status { margin: 10px 0 0; min-height: 1.2em; font-size: 13.5px; line-height: 1.4; color: var(--kbco-muted); }
body .container_checkout .kbco-map-status.is-ok { color: #1e8e4e; }
body .container_checkout .kbco-map-status.is-error { color: #B42318; }

/* Autocompletado de Google por encima de las tarjetas */
.pac-container { z-index: 100000 !important; }

@media ( max-width: 600px ) {
    body .container_checkout .kbco-map-tools { flex-direction: column; }
    body .container_checkout .kbco-map-locate { width: 100%; }
    body .container_checkout #kbco-map { height: 280px; }
}

/* El mapa propio reemplaza al del plugin externo "Google Maps Autocomplete" */
body .container_checkout .kbco-card-map:has(.kbco-map-box) .wcgmaps-wrap { display: none !important; }


/* ═══ v3.14.0 – Métodos de pago con separación y logos, notificaciones y ventanas emergentes con la línea gráfica, y "Pedido recibido" ═══ */

/* Métodos de pago: separación entre tarjetas */
body .container_checkout #payment ul.payment_methods { display: flex; flex-direction: column; gap: 12px; }
body .container_checkout #payment ul.payment_methods > li.wc_payment_method { margin: 0 !important; }

/* Yape / Plin: logos oficiales junto al título (visibles aunque el método no esté elegido) */
html body .container_checkout #payment .wc_payment_method.kbco-pm-logos-on > label {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    width: auto !important;
}

html body .container_checkout #payment .wc_payment_method .kbco-pm-chips {
    display: inline-flex !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px !important;
    margin: 0 0 0 auto !important;
}

html body .container_checkout #payment .wc_payment_method .kbco-pm-chips img.kbco-chip {
    display: block !important;
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    flex: 0 0 38px !important;
    border-radius: 10px !important;
    filter: none;
    box-shadow: 0 2px 6px rgba(10, 31, 68, 0.15);
}

html body .container_checkout #payment .wc_payment_method.kbco-pm-logos-on .payment_box h5 { display: none !important; }

@media ( max-width: 480px ) {
    html body .container_checkout #payment .wc_payment_method .kbco-pm-chips { margin-left: 0 !important; }
}

/* Notificaciones de WooCommerce (errores, avisos, confirmaciones) */
body.woocommerce-checkout :is(.woocommerce-NoticeGroup, .woocommerce-notices-wrapper) :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) {
    position: relative;
    list-style: none !important;
    margin: 0 0 14px !important;
    padding: 16px 18px 16px 58px !important;
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #d2e2ee !important;
    border-left: 5px solid #0546B4 !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 28px -16px rgba(10, 31, 68, 0.35);
    font-size: 14.5px;
    line-height: 1.5;
}

body.woocommerce-checkout :is(.woocommerce-NoticeGroup, .woocommerce-notices-wrapper) :is(.woocommerce-error, .woocommerce-message, .woocommerce-info)::before {
    content: "i" !important;
    position: absolute;
    left: 18px;
    top: 15px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin: 0;
    font: 700 14px/1 Inter, -apple-system, "Segoe UI", sans-serif !important;
    color: #fff !important;
    background: #0546B4;
    border-radius: 50%;
}

body.woocommerce-checkout :is(.woocommerce-NoticeGroup, .woocommerce-notices-wrapper) .woocommerce-error { border-left-color: #B42318 !important; }
body.woocommerce-checkout :is(.woocommerce-NoticeGroup, .woocommerce-notices-wrapper) .woocommerce-error::before { content: "!" !important; background: #B42318; }
body.woocommerce-checkout :is(.woocommerce-NoticeGroup, .woocommerce-notices-wrapper) .woocommerce-message { border-left-color: #1e8e4e !important; }
body.woocommerce-checkout :is(.woocommerce-NoticeGroup, .woocommerce-notices-wrapper) .woocommerce-message::before { content: "✓" !important; background: #1e8e4e; }

body.woocommerce-checkout :is(.woocommerce-NoticeGroup, .woocommerce-notices-wrapper) .woocommerce-error li { margin: 0 !important; padding: 3px 0 !important; list-style: none !important; }
body.woocommerce-checkout :is(.woocommerce-NoticeGroup, .woocommerce-notices-wrapper) :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) a { color: #0546B4 !important; font-weight: 600; text-decoration: underline; }
body.woocommerce-checkout :is(.woocommerce-NoticeGroup, .woocommerce-notices-wrapper) .button { float: none !important; margin-left: 12px; }

/* Ventana de carga (WooCommerce bloquea la sección mientras recalcula o procesa el pago) */
body.woocommerce-checkout .blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.72) !important;
    opacity: 1 !important;
    border-radius: 18px;
    cursor: wait;
}

body.woocommerce-checkout .blockUI.blockOverlay::before {
    content: "" !important;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    background: none !important;
    border: 3px solid #E8F4FB;
    border-top-color: #0546B4;
    border-radius: 50%;
    animation: kbco-spin 0.7s linear infinite;
}

@keyframes kbco-spin { to { transform: rotate(360deg); } }

/* Desplegables (Select2) y sugerencias del buscador de direcciones */
body.woocommerce-checkout .select2-dropdown {
    border: 1.5px solid #d2e2ee !important;
    border-radius: 12px !important;
    box-shadow: 0 18px 40px -14px rgba(10, 31, 68, 0.3);
    overflow: hidden;
    font-family: inherit;
}

body.woocommerce-checkout .select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1.5px solid #d2e2ee !important;
    border-radius: 10px !important;
    padding: 8px 10px;
}

body.woocommerce-checkout .select2-container--default .select2-results__option { padding: 9px 14px; font-size: 14.5px; }
body.woocommerce-checkout .select2-container--default .select2-results__option--highlighted[aria-selected],
body.woocommerce-checkout .select2-container--default .select2-results__option--highlighted { background: #E8F4FB !important; color: #0546B4 !important; }
body.woocommerce-checkout .select2-container--default .select2-results__option[aria-selected="true"] { background: #0546B4 !important; color: #fff !important; }

.pac-container {
    border: 1.5px solid #d2e2ee;
    border-radius: 12px;
    box-shadow: 0 18px 40px -14px rgba(10, 31, 68, 0.3);
    font-family: inherit;
    overflow: hidden;
}

.pac-item { padding: 8px 12px; cursor: pointer; }
.pac-item:hover, .pac-item-selected { background: #E8F4FB; }

/* ═══ Pedido recibido (order-received) ═══ */
body.woocommerce-order-received .page-header .entry-title {
    margin: 18px 0 6px;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: #0546B4;
}

body.woocommerce-order-received .woocommerce-order { max-width: 920px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }

body.woocommerce-order-received .woocommerce-thankyou-order-received {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    color: #1e8e4e;
    background: #e6f6ec;
    border: 1px solid #bfe6cd;
    border-radius: 14px;
}

body.woocommerce-order-received .woocommerce-thankyou-order-received::before {
    content: "✓";
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: #1e8e4e;
    border-radius: 50%;
}

body.woocommerce-order-received ul.woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 22px !important;
    padding: 0 !important;
    list-style: none;
}

body.woocommerce-order-received ul.woocommerce-order-overview::before,
body.woocommerce-order-received ul.woocommerce-order-overview::after { display: none !important; content: none !important; }

@media ( max-width: 760px ) {
    body.woocommerce-order-received ul.woocommerce-order-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body.woocommerce-order-received ul.woocommerce-order-overview li {
    float: none;
    margin: 0;
    padding: 14px 16px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4f5b69;
    background: #fff;
    border: 1px solid #d2e2ee !important;
    border-radius: 14px;
    box-shadow: 0 10px 24px -18px rgba(10, 31, 68, 0.35);
}

body.woocommerce-order-received ul.woocommerce-order-overview li strong {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
    color: #0A1F44;
}

body.woocommerce-order-received :is(.woocommerce-order-details, .woocommerce-customer-details) {
    margin: 22px 0 0;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #eef2f8;
    border-radius: 20px;
    box-shadow: 0 14px 34px -22px rgba(10, 31, 68, 0.35);
}

body.woocommerce-order-received :is(.woocommerce-order-details__title, .woocommerce-column__title) {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 700;
    color: #0546B4;
}

body.woocommerce-order-received table.woocommerce-table--order-details {
    width: 100%;
    margin: 0;
    border: 1px solid #d2e2ee;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 14px;
    overflow: hidden;
}

body.woocommerce-order-received table.woocommerce-table--order-details :is(th, td) {
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e6eef6;
    text-align: left;
}

body.woocommerce-order-received table.woocommerce-table--order-details thead th {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0546B4;
    background: #E8F4FB;
}

body.woocommerce-order-received table.woocommerce-table--order-details :is(th:last-child, td:last-child) { text-align: right; }
body.woocommerce-order-received table.woocommerce-table--order-details tbody a { color: #0546B4; font-weight: 600; text-decoration: none; }
body.woocommerce-order-received table.woocommerce-table--order-details tfoot th { font-weight: 600; color: #4f5b69; }
body.woocommerce-order-received table.woocommerce-table--order-details tfoot td { font-weight: 700; color: #0A1F44; }
body.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child :is(th, td) { border-bottom: 0; }
body.woocommerce-order-received table.woocommerce-table--order-details .woocommerce-Price-amount { white-space: nowrap; }

body.woocommerce-order-received .woocommerce-customer-details address {
    padding: 14px 16px;
    font-style: normal;
    line-height: 1.6;
    background: #f6f9fe;
    border: 1px solid #d2e2ee;
    border-radius: 14px;
}

body.woocommerce-order-received .woocommerce-thankyou-order-failed-actions a.button {
    display: inline-block;
    padding: 12px 22px;
    font-weight: 700;
    color: #fff;
    background: #0546B4;
    border-radius: 999px;
}

@media ( max-width: 600px ) {
    body.woocommerce-order-received .page-header .entry-title { font-size: 25px; }
    body.woocommerce-order-received :is(.woocommerce-order-details, .woocommerce-customer-details) { padding: 18px 16px; }
    body.woocommerce-order-received table.woocommerce-table--order-details :is(th, td) { padding: 10px 12px; }
}


/* ═══ v3.14.3 – Encabezado +2 px y texto de consentimiento (privacidad / términos) en Inter ═══ */
html body .container_checkout .header_checkout .title h3 { font-size: clamp(16px, calc(1.9vw + 2px), 23px) !important; }

/* Móvil: se conserva el tamaño anterior (15 px) para mantener el encabezado en una línea */
@media ( max-width: 600px ) {
    html body .container_checkout .header_checkout .title h3 { font-size: 15px !important; }
}

/* Pantallas muy angostas: si el logo no cabe junto al texto, baja a la línea siguiente en vez de salirse del encabezado */
@media ( max-width: 380px ) {
    html body.woocommerce-checkout .container_checkout .header_checkout .title h3 { flex-wrap: wrap !important; }
    html body.woocommerce-checkout .container_checkout .header_checkout .title h3 .kbco-head-logo { flex: 0 0 auto !important; }
}

html body .container_checkout :is(.woocommerce-terms-and-conditions-wrapper, .woocommerce-privacy-policy-text, .woocommerce-form__label-for-checkbox),
html body .container_checkout :is(.woocommerce-terms-and-conditions-wrapper, .woocommerce-privacy-policy-text, .woocommerce-form__label-for-checkbox) * {
    font-family: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* v3.16.0 — Pedido recibido: aire bajo el último contenedor, antes del footer */
body.woocommerce-order-received .woocommerce-order{padding-bottom:56px}
@media (max-width:600px){body.woocommerce-order-received .woocommerce-order{padding-bottom:40px}}
