/* ============================================================
   CHECKOUT + CARRITO · Casabella Natura · v1.4
   Checkout WooCommerce Blocks + carrito y sus bloques de detalle.
   Cargado por functions.php solo en checkout/carrito · prefijo cbn-checkout
   ============================================================ */

/*
 ------------------------------------------------------------
 1 · VARIABLES Y BASE
 ------------------------------------------------------------
*/

body.cbn-checkout {
    --cbn-checkout-green: #37442e;
    --cbn-checkout-green-dark: #293323;
    --cbn-checkout-ink: #26301d;
    --cbn-checkout-olive: #68734b;
    --cbn-checkout-cream: #f4f0e6;
    --cbn-checkout-bg: #fbfaf5;
    --cbn-checkout-text: #34372f;
    --cbn-checkout-muted: #75786f;
    --cbn-checkout-line: rgba(55, 68, 46, .14);
    --cbn-checkout-serif: Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    --cbn-checkout-gutter: 28px;
    overflow-x: hidden !important;
}

body.cbn-checkout #main,
body.cbn-checkout #main .container,
body.cbn-checkout .content,
body.cbn-checkout .entry-content {
    box-sizing: border-box !important;
}

body.cbn-checkout #main .container {
    width: 100% !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--cbn-checkout-gutter) !important;
    padding-right: var(--cbn-checkout-gutter) !important;
    box-sizing: border-box !important;
}

body.cbn-checkout .wp-block-woocommerce-checkout {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* Rejilla general: formulario a la izquierda, resumen a la derecha */
body.cbn-checkout .wp-block-woocommerce-checkout__row {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px;
    margin: 0 !important;
    width: 100% !important;
}

body.cbn-checkout .wp-block-woocommerce-checkout__form-block {
    flex: 1 1 560px;
    min-width: 0;
}

body.cbn-checkout .wp-block-woocommerce-checkout__summary-block {
    flex: 0 1 420px;
    min-width: 0;
    position: sticky;
    top: 100px;
}

/*
 ------------------------------------------------------------
 2 · TÍTULOS DE SECCIÓN
 ------------------------------------------------------------
*/

body.cbn-checkout .wc-block-components-title,
body.cbn-checkout .wp-block-woocommerce-checkout__title,
body.cbn-checkout .wc-block-components-sidebar-layout .wc-block-components-title {
    color: var(--cbn-checkout-ink) !important;
    font-family: var(--cbn-checkout-serif) !important;
    font-size: 22px !important;
    font-weight: 400;
    line-height: 1.25 !important;
    letter-spacing: .01em;
    text-transform: none !important;
    padding: 0 0 14px !important;
    margin: 0 0 22px !important;
    border-bottom: 1px solid var(--cbn-checkout-line);
}

body.cbn-checkout .wc-block-components-title .wc-block-components-title__label,
body.cbn-checkout .wc-block-components-title__label {
    font-family: var(--cbn-checkout-serif) !important;
    font-weight: 400;
}

body.cbn-checkout .wc-block-components-text,
body.cbn-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar-layout__title {
    color: var(--cbn-checkout-muted) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    font-weight: 400;
}

/*
 ------------------------------------------------------------
 3 · CAMPOS DE FORMULARIO
 ------------------------------------------------------------
*/

body.cbn-checkout .wc-block-components-text-input__input,
body.cbn-checkout .wc-block-components-form .wc-block-components-text-input input,
body.cbn-checkout input[type="text"],
body.cbn-checkout input[type="email"],
body.cbn-checkout input[type="tel"],
body.cbn-checkout input[type="password"],
body.cbn-checkout input[type="number"],
body.cbn-checkout select,
body.cbn-checkout textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-height: 48px;
    padding: 12px 14px !important;
    background: #ffffff !important;
    color: var(--cbn-checkout-text) !important;
    border: 1px solid rgba(55, 68, 46, .28) !important;
    border-radius: 7px !important;
    font-family: inherit !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
    transition: border-color .25s ease, box-shadow .25s ease;
}

body.cbn-checkout .wc-block-components-text-input__input:focus,
body.cbn-checkout input:focus,
body.cbn-checkout select:focus,
body.cbn-checkout textarea:focus {
    border-color: var(--cbn-checkout-olive) !important;
    box-shadow: 0 0 0 3px rgba(104, 115, 75, .14) !important;
    outline: none !important;
}

body.cbn-checkout textarea {
    min-height: 110px !important;
    resize: vertical;
}

body.cbn-checkout .wc-block-components-label,
body.cbn-checkout label {
    color: var(--cbn-checkout-text) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 0 0 8px !important;
    display: block;
}

body.cbn-checkout .wc-block-components-form .wc-block-components-text-input,
body.cbn-checkout .wc-block-components-form .wc-block-components-form-field {
    margin-bottom: 18px !important;
}

/* Checkboxes y opciones: alineación y área táctil correcta */
body.cbn-checkout .wc-block-components-checkbox,
body.cbn-checkout .wc-block-components-checkbox__input,
body.cbn-checkout .wc-block-components-form .wc-block-components-checkbox,
body.cbn-checkout .wc-block-components-radio-control,
body.cbn-checkout .wc-block-components-radio-control__input {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin: 0 0 12px !important;
}

body.cbn-checkout input[type="checkbox"],
body.cbn-checkout input[type="radio"] {
    flex: 0 0 20px !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    accent-color: var(--cbn-checkout-green);
}

body.cbn-checkout .wc-block-components-checkbox__label,
body.cbn-checkout .wc-block-components-radio-control__label,
body.cbn-checkout .wc-block-components-form .wc-block-components-checkbox label {
    margin: 0 !important;
    padding: 2px 0 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/*
 ------------------------------------------------------------
 4 · CAJAS / BLOQUES CON FONDO
 ------------------------------------------------------------
*/

body.cbn-checkout .wc-block-components-sidebar-layout,
body.cbn-checkout .wp-block-woocommerce-checkout__order-summary-block,
body.cbn-checkout .wc-block-components-panel,
body.cbn-checkout .wc-block-components-card {
    background: #ffffff;
    border: 1px solid var(--cbn-checkout-line);
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(38, 48, 29, .09);
}

body.cbn-checkout .wc-block-components-panel__content,
body.cbn-checkout .wc-block-components-sidebar-layout__content {
    padding: 26px 24px !important;
}

/*
 ------------------------------------------------------------
 5 · EXPRESOS (Apple Pay, Google Pay…)
 ------------------------------------------------------------
*/

body.cbn-checkout .wc-block-components-express-payment,
body.cbn-checkout .wp-block-woocommerce-checkout-express-payment-block {
    margin: 0 0 24px !important;
    width: 100% !important;
}

body.cbn-checkout .wc-block-components-express-payment__title,
body.cbn-checkout .wc-block-components-express-payment__title-text {
    color: var(--cbn-checkout-muted) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 12px !important;
}

body.cbn-checkout .wc-block-components-express-payment__content,
body.cbn-checkout .wc-block-components-express-payment__content iframe,
body.cbn-checkout .wc-block-components-express-payment__content > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/*
 ------------------------------------------------------------
 6 · RESUMEN DEL PEDIDO
 ------------------------------------------------------------
*/

body.cbn-checkout .wc-block-components-order-summary-item,
body.cbn-checkout .wc-block-components-totals-item {
    color: var(--cbn-checkout-text) !important;
    font-size: 14px;
}

body.cbn-checkout .wc-block-components-order-summary-item__name,
body.cbn-checkout .wc-block-components-order-summary-item__product-name {
    color: var(--cbn-checkout-text) !important;
    font-weight: 500;
}

body.cbn-checkout .wc-block-components-order-summary-item__total,
body.cbn-checkout .wc-block-components-totals-item__value {
    color: var(--cbn-checkout-ink) !important;
    font-weight: 600;
}

body.cbn-checkout .wc-block-components-totals-item--total {
    border-top: 1px solid var(--cbn-checkout-line);
    padding-top: 14px !important;
    margin-top: 8px !important;
}

body.cbn-checkout .wc-block-components-totals-item--total .wc-block-components-totals-item__label,
body.cbn-checkout .wc-block-components-totals-item--total .wc-block-components-totals-item__value {
    color: var(--cbn-checkout-green) !important;
    font-family: var(--cbn-checkout-serif) !important;
    font-size: 20px !important;
    font-weight: 400;
}

body.cbn-checkout .wc-block-components-totals-coupon-form,
body.cbn-checkout .wp-block-woocommerce-checkout-order-summary-coupon-form-block {
    margin-top: 14px !important;
}

/*
 ------------------------------------------------------------
 7 · BOTONES
 ------------------------------------------------------------
*/

body.cbn-checkout .wc-block-components-button,
body.cbn-checkout .wp-block-woocommerce-checkout-actions-block button,
body.cbn-checkout button[type="submit"] {
    background: var(--cbn-checkout-green) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 3px !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 15px 30px !important;
    min-height: 0;
    transition: background-color .3s ease, color .3s ease;
}

body.cbn-checkout .wc-block-components-button:hover,
body.cbn-checkout .wp-block-woocommerce-checkout-actions-block button:hover,
body.cbn-checkout button[type="submit"]:hover {
    background: #ffffff !important;
    color: var(--cbn-checkout-green) !important;
    box-shadow: inset 0 0 0 1.5px var(--cbn-checkout-green) !important;
}

body.cbn-checkout .wc-block-components-button.is-link,
body.cbn-checkout .wc-block-components-text-link,
body.cbn-checkout a.wc-block-components-link {
    background: transparent !important;
    color: var(--cbn-checkout-olive) !important;
    box-shadow: none !important;
    text-decoration: underline;
    letter-spacing: .04em;
    text-transform: none;
    font-size: 13px !important;
    padding: 0 !important;
}

body.cbn-checkout .wc-block-components-button.is-link:hover,
body.cbn-checkout .wc-block-components-text-link:hover,
body.cbn-checkout a.wc-block-components-link:hover {
    color: var(--cbn-checkout-green) !important;
    background: transparent !important;
    box-shadow: none !important;
}

/*
 ------------------------------------------------------------
 8 · TÉRMINOS Y NOTAS
 ------------------------------------------------------------
*/

body.cbn-checkout .wc-block-components-checkout-terms,
body.cbn-checkout .wp-block-woocommerce-checkout-terms-block {
    color: var(--cbn-checkout-muted) !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    margin: 14px 0 0 !important;
}

body.cbn-checkout .wc-block-components-checkout-terms a {
    color: var(--cbn-checkout-olive) !important;
}

body.cbn-checkout .wc-block-components-textarea,
body.cbn-checkout .wp-block-woocommerce-checkout-order-note-block textarea {
    background: var(--cbn-checkout-cream) !important;
}

/*
 ------------------------------------------------------------
 9 · ERRORES Y AVISOS
 ------------------------------------------------------------
*/

body.cbn-checkout .wc-block-components-form-error,
body.cbn-checkout .wc-block-components-notice-banner--error {
    color: #a4342e !important;
    font-size: 13px !important;
}

/*
 ------------------------------------------------------------
 10 · CARRITO: ESTRUCTURA Y DETALLES
 ------------------------------------------------------------
*/

body.cbn-checkout .wp-block-woocommerce-cart {
    margin: 0 auto !important;
    padding: 24px 0 60px !important;
    max-width: 1180px;
    width: 100%;
    box-sizing: border-box;
}

/* Cabecera del carrito: título y acción de cupón */
body.cbn-checkout .wp-block-woocommerce-cart__header,
body.cbn-checkout .wc-block-components-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px !important;
}

body.cbn-checkout .wp-block-woocommerce-cart__title,
body.cbn-checkout .wc-block-components-cart-header__title {
    color: var(--cbn-checkout-ink) !important;
    font-family: var(--cbn-checkout-serif) !important;
    font-size: clamp(30px, 4vw, 44px) !important;
    font-weight: 400;
    line-height: 1.05 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Rejilla del carrito: artículos a la izquierda y totales a la derecha */
body.cbn-checkout .wp-block-woocommerce-cart__main-grid,
body.cbn-checkout .wc-block-components-cart-main-grid,
body.cbn-checkout .wp-block-woocommerce-cart__layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: start;
    gap: 32px !important;
}

body.cbn-checkout .wp-block-woocommerce-cart__main-grid > *,
body.cbn-checkout .wc-block-components-cart-main-grid > * {
    min-width: 0;
}

/* Lista de artículos */
body.cbn-checkout .wp-block-woocommerce-cart-items-block,
body.cbn-checkout .wc-block-components-cart-items-block {
    background: #fff;
    border: 1px solid var(--cbn-checkout-line);
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(38, 48, 29, .07);
    overflow: hidden;
}

body.cbn-checkout .wc-block-components-cart-item,
body.cbn-checkout .wp-block-woocommerce-cart-line-items-block > li,
body.cbn-checkout .wp-block-woocommerce-cart-items-block .wc-block-components-cart-item {
    display: grid !important;
    grid-template-columns: 108px minmax(0, 1fr) auto;
    gap: 20px !important;
    align-items: center;
    padding: 22px 24px !important;
    border-bottom: 1px solid var(--cbn-checkout-line);
}

body.cbn-checkout .wc-block-components-cart-item:last-child,
body.cbn-checkout .wp-block-woocommerce-cart-line-items-block > li:last-child {
    border-bottom: 0;
}

/* Imagen del producto */
body.cbn-checkout .wc-block-components-cart-item__image,
body.cbn-checkout .wc-block-components-cart-item__image img,
body.cbn-checkout .wp-block-woocommerce-cart-line-items-block .wc-block-components-cart-item__image img {
    width: 108px !important;
    height: 108px !important;
    max-width: 108px !important;
    object-fit: cover;
    border-radius: 9px;
    background: var(--cbn-checkout-cream);
    border: 1px solid var(--cbn-checkout-line);
}

/* Datos: nombre, variación y precio */
body.cbn-checkout .wc-block-components-cart-item__product,
body.cbn-checkout .wc-block-components-cart-item__product-name {
    min-width: 0;
}

body.cbn-checkout .wc-block-components-cart-item__product-name a,
body.cbn-checkout .wc-block-components-cart-item__product-name {
    color: var(--cbn-checkout-ink) !important;
    font-family: var(--cbn-checkout-serif) !important;
    font-size: 17px !important;
    font-weight: 400;
    line-height: 1.3 !important;
    text-decoration: none !important;
}

body.cbn-checkout .wc-block-components-cart-item__product-name a:hover {
    color: var(--cbn-checkout-olive) !important;
}

body.cbn-checkout .wc-block-components-cart-item__product-meta,
body.cbn-checkout .wc-block-components-product-meta,
body.cbn-checkout .wc-block-components-cart-item__product-sku {
    color: var(--cbn-checkout-muted) !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    margin-top: 5px !important;
}

body.cbn-checkout .wc-block-components-cart-item__product-meta dt,
body.cbn-checkout .wc-block-components-product-meta dt {
    display: inline !important;
    margin: 0 5px 0 0 !important;
    padding: 0 !important;
    font-weight: 600 !important;
}

body.cbn-checkout .wc-block-components-cart-item__product-meta dd,
body.cbn-checkout .wc-block-components-product-meta dd {
    display: inline !important;
    margin: 0 12px 0 0 !important;
    padding: 0 !important;
}

/* Precio total de la línea */
body.cbn-checkout .wc-block-components-cart-item__product-price,
body.cbn-checkout .wc-block-components-cart-item__product-price * {
    color: var(--cbn-checkout-text) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

body.cbn-checkout .wc-block-components-cart-item__product-price strong,
body.cbn-checkout .wc-block-components-cart-item__product-price .amount {
    color: var(--cbn-checkout-ink) !important;
    font-weight: 600 !important;
}

/* Selector de cantidad */
body.cbn-checkout .wc-block-components-quantity-selector,
body.cbn-checkout .wc-block-components-quantity-selector__input {
    background: transparent !important;
}

body.cbn-checkout .wc-block-components-quantity-selector__input {
    width: 58px !important;
    min-height: 38px;
    padding: 7px 8px !important;
    border-radius: 4px !important;
    border-color: var(--cbn-checkout-line) !important;
    text-align: center;
}

body.cbn-checkout .wc-block-components-quantity-selector__button {
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border: 1px solid var(--cbn-checkout-line) !important;
    border-radius: 4px !important;
    color: var(--cbn-checkout-green) !important;
    background: #fff !important;
}

body.cbn-checkout .wc-block-components-quantity-selector__button:hover {
    background: var(--cbn-checkout-green) !important;
    color: #fff !important;
}

/* Enlace para eliminar */
body.cbn-checkout .wc-block-components-cart-item__remove-link,
body.cbn-checkout a:has(+ .wc-block-components-cart-item__remove-link),
body.cbn-checkout .wc-block-components-cart-item__remove-link span {
    color: var(--cbn-checkout-muted) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.cbn-checkout .wc-block-components-cart-item__remove-link:hover {
    color: #a4342e !important;
}

/*
 ------------------------------------------------------------
 11 · CARRITO: TOTALES Y CUPÓN
 ------------------------------------------------------------
*/

body.cbn-checkout .wp-block-woocommerce-cart-totals-block,
body.cbn-checkout .wc-block-components-cart-totals-block,
body.cbn-checkout .wp-block-woocommerce-cart__sidebar {
    background: #fff;
    border: 0 !important;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(38, 48, 29, .09);
    padding: 26px !important;
    position: sticky;
    top: 100px;
}

body.cbn-checkout .wp-block-woocommerce-cart-totals-block h2,
body.cbn-checkout .wc-block-components-cart-totals-block h2,
body.cbn-checkout .wc-block-components-sidebar-layout .wc-block-components-title {
    color: var(--cbn-checkout-ink) !important;
    font-family: var(--cbn-checkout-serif) !important;
    font-size: 21px !important;
    font-weight: 400;
    margin: 0 0 18px !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid var(--cbn-checkout-line);
}

body.cbn-checkout .wc-block-components-totals-item,
body.cbn-checkout .wp-block-woocommerce-cart-totals-block .cart-subtotal,
body.cbn-checkout .wp-block-woocommerce-cart-totals-block .cart-total {
    color: var(--cbn-checkout-text) !important;
    font-size: 14px !important;
    padding: 10px 0 !important;
    margin: 0 !important;
}

body.cbn-checkout .wc-block-components-totals-item__label,
body.cbn-checkout .wp-block-woocommerce-cart-totals-block .cart-subtotal th,
body.cbn-checkout .wp-block-woocommerce-cart-totals-block .cart-total th {
    color: var(--cbn-checkout-muted) !important;
    font-weight: 500 !important;
    text-transform: none !important;
}

body.cbn-checkout .wc-block-components-totals-item__value,
body.cbn-checkout .wp-block-woocommerce-cart-totals-block .cart-subtotal td,
body.cbn-checkout .wp-block-woocommerce-cart-totals-block .cart-total td {
    color: var(--cbn-checkout-ink) !important;
    font-weight: 600 !important;
    text-align: right;
}

body.cbn-checkout .wc-block-components-totals-item--total,
body.cbn-checkout .wp-block-woocommerce-cart-totals-block .cart-total {
    border-top: 1px solid var(--cbn-checkout-line);
    margin-top: 8px !important;
}

body.cbn-checkout .wc-block-components-totals-item--total .wc-block-components-totals-item__label,
body.cbn-checkout .wc-block-components-totals-item--total .wc-block-components-totals-item__value,
body.cbn-checkout .wp-block-woocommerce-cart-totals-block .cart-total th,
body.cbn-checkout .wp-block-woocommerce-cart-totals-block .cart-total td {
    color: var(--cbn-checkout-green) !important;
    font-family: var(--cbn-checkout-serif) !important;
    font-size: 21px !important;
    font-weight: 400;
}

body.cbn-checkout .wc-block-components-totals-coupon-form,
body.cbn-checkout .wp-block-woocommerce-cart-totals-coupon-form-block,
body.cbn-checkout .wc-block-components-coupon {
    margin-top: 18px !important;
}

body.cbn-checkout .wc-block-components-coupon input[type="text"] {
    background: var(--cbn-checkout-bg) !important;
}

body.cbn-checkout .wc-block-components-coupon button,
body.cbn-checkout .wp-block-woocommerce-cart-totals-coupon-form button {
    background: transparent !important;
    color: var(--cbn-checkout-olive) !important;
    border: 1px solid var(--cbn-checkout-line) !important;
    padding: 11px 14px !important;
    font-size: 10px !important;
}

body.cbn-checkout .wc-block-components-coupon button:hover,
body.cbn-checkout .wp-block-woocommerce-cart-totals-coupon-form button:hover {
    background: var(--cbn-checkout-green) !important;
    color: #fff !important;
    border-color: var(--cbn-checkout-green) !important;
}

/* Botón principal del carrito */
body.cbn-checkout .wp-block-woocommerce-cart__submit-button,
body.cbn-checkout .wc-block-components-cart__submit-button,
body.cbn-checkout .wc-block-components-button--primary,
body.cbn-checkout .wp-block-components-cart__submit-button-container .wc-block-components-button {
    width: 100%;
    justify-content: center;
}

/* Enlace para volver a la tienda */
body.cbn-checkout .wp-block-woocommerce-cart__link,
body.cbn-checkout .wc-block-components-cart__totals-block a {
    display: inline-block;
    margin-top: 12px !important;
    color: var(--cbn-checkout-olive) !important;
    font-size: 12px !important;
    letter-spacing: .04em;
}

/*
 ------------------------------------------------------------
 12 · CARRITO: ESTADO VACÍO Y AVISOS
 ------------------------------------------------------------
*/

body.cbn-checkout .wp-block-woocommerce-cart__empty-cart-block,
body.cbn-checkout .wc-block-components-empty-cart {
    background: #fff;
    border: 1px solid var(--cbn-checkout-line);
    border-radius: 14px;
    padding: 48px 28px !important;
    text-align: center;
    box-shadow: 0 18px 42px rgba(38, 48, 29, .07);
}

body.cbn-checkout .wp-block-woocommerce-cart__empty-cart-block h2,
body.cbn-checkout .wc-block-components-empty-cart__title {
    color: var(--cbn-checkout-ink) !important;
    font-family: var(--cbn-checkout-serif) !important;
    font-size: 26px !important;
    font-weight: 400;
    margin-bottom: 10px !important;
}

body.cbn-checkout .wp-block-woocommerce-cart__empty-cart-block p,
body.cbn-checkout .wc-block-components-empty-cart__description {
    color: var(--cbn-checkout-muted) !important;
    font-size: 14px !important;
}

body.cbn-checkout .wc-block-components-notice-banner,
body.cbn-checkout .wc-block-components-notice-banner__content {
    border-radius: 8px !important;
    font-size: 13px !important;
}

/*
 ------------------------------------------------------------
 13 · TABLET
 ------------------------------------------------------------
*/

@media only screen and (max-width: 900px) {
    body.cbn-checkout {
        --cbn-checkout-gutter: 24px;
    }

    body.cbn-checkout .wp-block-woocommerce-checkout__summary-block {
        position: static;
        flex: 1 1 100%;
    }

    body.cbn-checkout .wp-block-woocommerce-checkout__row {
        gap: 24px;
    }

    body.cbn-checkout .wp-block-woocommerce-cart__main-grid,
    body.cbn-checkout .wc-block-components-cart-main-grid,
    body.cbn-checkout .wp-block-woocommerce-cart__layout {
        grid-template-columns: 1fr;
    }

    body.cbn-checkout .wp-block-woocommerce-cart-totals-block,
    body.cbn-checkout .wc-block-components-cart-totals-block,
    body.cbn-checkout .wp-block-woocommerce-cart__sidebar {
        position: static;
    }
}

/*
 ------------------------------------------------------------
 14 · MÓVIL · CHECKOUT Y CARRITO
 ------------------------------------------------------------
*/

@media only screen and (max-width: 767px) {
    body.cbn-checkout {
        --cbn-checkout-gutter: 16px;
    }

    /* El contenedor de Enfold puede dejar el bloque a 100vw:
       se recorta por ambos lados para crear margen real. */
    body.cbn-checkout #main .container,
    body.cbn-checkout .content,
    body.cbn-checkout .entry-content,
    body.cbn-checkout .wp-block-woocommerce-checkout,
    body.cbn-checkout .wp-block-woocommerce-cart {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    body.cbn-checkout #main .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    body.cbn-checkout .wp-block-woocommerce-checkout__row {
        display: flex !important;
        flex-direction: column !important;
        gap: 18px !important;
        width: 100% !important;
    }

    body.cbn-checkout .wp-block-woocommerce-checkout__form-block,
    body.cbn-checkout .wp-block-woocommerce-checkout__summary-block {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body.cbn-checkout .wc-block-components-panel,
    body.cbn-checkout .wc-block-components-card,
    body.cbn-checkout .wc-block-components-sidebar-layout,
    body.cbn-checkout .wp-block-woocommerce-checkout__order-summary-block {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 9px !important;
    }

    body.cbn-checkout .wc-block-components-panel__content,
    body.cbn-checkout .wc-block-components-sidebar-layout__content {
        padding: 20px 16px !important;
    }

    /* Evita que los headings y separadores peguen al borde. */
    body.cbn-checkout .wc-block-components-title,
    body.cbn-checkout .wp-block-woocommerce-checkout__title {
        font-size: 19px !important;
        line-height: 1.3 !important;
        padding: 0 0 12px !important;
        margin: 0 0 18px !important;
    }

    /* Los subtítulos de secciones también necesitan aire. */
    body.cbn-checkout .wc-block-components-sidebar-layout__title,
    body.cbn-checkout .wc-block-components-checkout__title,
    body.cbn-checkout .wc-block-components-text {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.cbn-checkout .wc-block-components-form .wc-block-components-text-input,
    body.cbn-checkout .wc-block-components-form .wc-block-components-form-field {
        margin-bottom: 16px !important;
    }

    body.cbn-checkout input[type="text"],
    body.cbn-checkout input[type="email"],
    body.cbn-checkout input[type="tel"],
    body.cbn-checkout input[type="password"],
    body.cbn-checkout input[type="number"],
    body.cbn-checkout select,
    body.cbn-checkout textarea,
    body.cbn-checkout .wc-block-components-text-input__input {
        min-height: 50px !important;
        padding: 12px 13px !important;
        font-size: 16px !important; /* evita el zoom automático en iPhone */
    }

    body.cbn-checkout .wc-block-components-label,
    body.cbn-checkout label {
        font-size: 11px !important;
        line-height: 1.4 !important;
        margin-bottom: 7px !important;
    }

    /* Checkbox y radio aligned and easy to press. */
    body.cbn-checkout .wc-block-components-checkbox,
    body.cbn-checkout .wc-block-components-radio-control {
        padding: 4px 0 !important;
        margin-bottom: 12px !important;
    }

    body.cbn-checkout input[type="checkbox"],
    body.cbn-checkout input[type="radio"] {
        flex-basis: 22px !important;
        width: 22px !important;
        min-width: 22px !important;
        height: 22px !important;
        min-height: 22px !important;
        margin-top: 0 !important;
    }

    body.cbn-checkout .wc-block-components-checkbox__label,
    body.cbn-checkout .wc-block-components-radio-control__label {
        padding-top: 2px !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    /* El pago rápido ocupa todo el ancho sin salirse. */
    body.cbn-checkout .wc-block-components-express-payment__content,
    body.cbn-checkout .wc-block-components-express-payment__content > *,
    body.cbn-checkout .wc-block-components-express-payment__content iframe {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.cbn-checkout .wc-block-components-button,
    body.cbn-checkout .wp-block-woocommerce-checkout-actions-block button {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 50px !important;
        padding: 14px 18px !important;
    }

    /* Carrito móvil */
    body.cbn-checkout .wp-block-woocommerce-cart {
        padding: 10px 0 40px !important;
    }

    body.cbn-checkout .wp-block-woocommerce-cart__header,
    body.cbn-checkout .wc-block-components-cart-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px !important;
        padding: 0 !important;
    }

    body.cbn-checkout .wp-block-woocommerce-cart__title,
    body.cbn-checkout .wc-block-components-cart-header__title {
        font-size: 30px !important;
    }

    body.cbn-checkout .wp-block-woocommerce-cart__main-grid,
    body.cbn-checkout .wc-block-components-cart-main-grid,
    body.cbn-checkout .wp-block-woocommerce-cart__layout {
        width: 100% !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }

    body.cbn-checkout .wc-block-components-cart-item,
    body.cbn-checkout .wp-block-woocommerce-cart-line-items-block > li {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 14px !important;
        padding: 18px 16px !important;
    }

    body.cbn-checkout .wc-block-components-cart-item__image,
    body.cbn-checkout .wc-block-components-cart-item__image img,
    body.cbn-checkout .wp-block-woocommerce-cart-line-items-block .wc-block-components-cart-item__image img {
        width: 78px !important;
        height: 78px !important;
        max-width: 78px !important;
    }

    body.cbn-checkout .wc-block-components-cart-item__product-price {
        grid-column: 2;
        justify-self: start;
    }

    body.cbn-checkout .wp-block-woocommerce-cart-totals-block,
    body.cbn-checkout .wc-block-components-cart-totals-block,
    body.cbn-checkout .wp-block-woocommerce-cart__sidebar {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 17px !important;
        border-radius: 10px !important;
    }
}

/* Pantallas muy estrechas: reducimos aún más los márgenes internos. */
@media only screen and (max-width: 359px) {
    body.cbn-checkout {
        --cbn-checkout-gutter: 12px;
    }

    body.cbn-checkout #main .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.cbn-checkout .wc-block-components-panel__content,
    body.cbn-checkout .wc-block-components-sidebar-layout__content {
        padding: 18px 13px !important;
    }
}

/*
 ------------------------------------------------------------
 15 · CORRECCIÓN DE DESBORDES Y PADDING INTERIOR
 ------------------------------------------------------------
*/

/* La caja blanca nunca debe permitir que su contenido se salga. */
body.cbn-checkout .wc-block-components-panel,
body.cbn-checkout .wc-block-components-card,
body.cbn-checkout .wc-block-components-sidebar-layout,
body.cbn-checkout .wc-block-components-sidebar-layout__content,
body.cbn-checkout .wc-block-components-panel__content,
body.cbn-checkout .wp-block-woocommerce-checkout__order-summary-block,
body.cbn-checkout .wp-block-woocommerce-checkout__form-block,
body.cbn-checkout .wp-block-woocommerce-checkout__summary-block,
body.cbn-checkout .wc-block-components-form {
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere;
}

/* Reserva espacio interior dentro de las tarjetas blancas. */
body.cbn-checkout .wc-block-components-panel__content,
body.cbn-checkout .wc-block-components-sidebar-layout__content {
    padding-left: 24px !important;
    padding-right: 24px !important;
}

body.cbn-checkout .wc-block-components-form {
    padding: 0 24px 24px !important;
}

/* Los textos no deben comenzar pegados al borde ni cortarse. */
body.cbn-checkout .wc-block-components-title,
body.cbn-checkout .wp-block-woocommerce-checkout__title,
body.cbn-checkout .wc-block-components-sidebar-layout__title,
body.cbn-checkout .wc-block-components-checkout__title,
body.cbn-checkout .wc-block-components-text,
body.cbn-checkout .wc-block-components-form-field,
body.cbn-checkout .wc-block-components-text-input {
    padding-left: 0 !important;
    padding-right: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

body.cbn-checkout .wc-block-components-title__label,
body.cbn-checkout .wp-block-woocommerce-checkout__title,
body.cbn-checkout .wc-block-components-sidebar-layout__title,
body.cbn-checkout .wc-block-components-checkout__title {
    display: block !important;
    width: 100% !important;
    overflow-wrap: break-word;
}

/* Evita que una etiqueta larga desplace el bloque. */
body.cbn-checkout .wc-block-components-form-field label,
body.cbn-checkout .wc-block-components-label {
    display: block;
    max-width: 100% !important;
    overflow-wrap: break-word;
}

/*
 ------------------------------------------------------------
 16 · MÓVIL · CAJAS BLANCAS CON AIRE REAL
 ------------------------------------------------------------
*/

@media only screen and (max-width: 767px) {
    body.cbn-checkout .wc-block-components-panel__content,
    body.cbn-checkout .wc-block-components-sidebar-layout__content {
        padding: 22px 18px !important;
    }

    body.cbn-checkout .wc-block-components-form {
        padding: 0 18px 20px !important;
    }

    body.cbn-checkout .wc-block-components-title,
    body.cbn-checkout .wp-block-woocommerce-checkout__title,
    body.cbn-checkout .wc-block-components-sidebar-layout__title,
    body.cbn-checkout .wc-block-components-checkout__title {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.cbn-checkout .wc-block-components-text,
    body.cbn-checkout .wc-block-components-form-field {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/*
 ------------------------------------------------------------
 17 · PADDING ADICIONAL EN MÓVIL (corrección final)
 ------------------------------------------------------------
*/

@media only screen and (max-width: 767px) {
    body.cbn-checkout .wc-block-components-sidebar-layout,
    body.cbn-checkout .wc-block-components-panel,
    body.cbn-checkout .wc-block-components-card {
        padding: 0 !important;
    }

    body.cbn-checkout .wc-block-components-sidebar-layout__content,
    body.cbn-checkout .wc-block-components-panel__content {
        padding: 20px 20px 24px !important;
    }

    body.cbn-checkout .wc-block-components-form {
        padding: 0 20px 24px !important;
    }

    body.cbn-checkout .wc-block-components-sidebar-layout__title,
    body.cbn-checkout .wc-block-components-checkout__title,
    body.cbn-checkout .wp-block-woocommerce-checkout__title {
        margin-top: 8px !important;
        margin-bottom: 18px !important;
    }
}

/*
 ------------------------------------------------------------
 18 · OPCIONES DE PAGO · UNA TARJETA POR FILA Y SIN CORTES
 ------------------------------------------------------------
*/

/* Cada método de pago se dibuja como fila propia: el radio, el nombre
   del método y los iconos de tarjetas no deben competir por el ancho. */
body.cbn-checkout .wc-block-components-payment-method,
body.cbn-checkout .wc-block-components-payment-method__content,
body.cbn-checkout .wc-block-components-payment-methods .wc-block-components-payment-method {
    box-sizing: border-box !important;
    max-width: 100% !important;
}

/* Contenedor de cada opción (radio + etiqueta + badges). */
body.cbn-checkout .wc-block-components-radio-control {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    align-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 8px 0 !important;
    margin: 0 !important;
}

/* La etiqueta del método es la parte flexible: nunca se comprime. */
body.cbn-checkout .wc-block-components-radio-control__label,
body.cbn-checkout .wc-block-components-payment-method__label {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    line-height: 1.45 !important;
    padding: 2px 0 !important;
    margin: 0 !important;
    font-size: 13px !important;
}

/* Los iconos de tarjetas (Visa, Mastercard…) pueden ir en su propia línea
   en pantallas estrechas para que no empujen la etiqueta. */
body.cbn-checkout .wc-block-components-radio-control img,
body.cbn-checkout .wc-block-components-payment-method__content img,
body.cbn-checkout .wc-block-components-payment-methods img {
    max-width: 100% !important;
    height: auto !important;
    flex: 0 0 auto !important;
}

/* Contenido que se despliega al elegir el método (formulario de tarjeta). */
body.cbn-checkout .wc-block-components-payment-method__content,
body.cbn-checkout .wc-block-components-payment-methods {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

body.cbn-checkout .wc-block-components-payment-method__content > *,
body.cbn-checkout .wc-block-components-payment-methods > * {
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Los campos del formulario de tarjeta (número, caducidad, CVC) se reparten
   en una rejilla flexible en lugar de desbordarse. */
body.cbn-checkout .wc-block-components-card__content,
body.cbn-checkout .wc-block-components-payment-method__content .wc-block-components-form {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 12px !important;
    align-items: flex-end !important;
}

body.cbn-checkout .wc-block-components-card__content > .wc-block-components-form-field,
body.cbn-checkout .wc-block-components-payment-method__content .wc-block-components-form-field {
    flex: 1 1 160px !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

/* Sin borde oscuro alrededor de la opción seleccionada. */
body.cbn-checkout .wc-block-components-payment-method.is-selected,
body.cbn-checkout .wc-block-components-payment-method__content {
    border-color: var(--cbn-checkout-line) !important;
    box-shadow: none !important;
}

@media only screen and (max-width: 767px) {
    /* La etiqueta y los iconos de tarjetas en filas separadas. */
    body.cbn-checkout .wc-block-components-radio-control {
        gap: 6px 10px !important;
    }

    body.cbn-checkout .wc-block-components-radio-control__label {
        flex: 1 1 100% !important;
        order: 2;
    }

    body.cbn-checkout .wc-block-components-radio-control img,
    body.cbn-checkout .wc-block-components-payment-method__content img {
        order: 3;
    }

    body.cbn-checkout .wc-block-components-payment-method__content > *,
    body.cbn-checkout .wc-block-components-payment-methods > * {
        width: 100% !important;
    }

    /* Los campos de tarjeta se apilan o se reparten sin salirse. */
    body.cbn-checkout .wc-block-components-card__content > .wc-block-components-form-field,
    body.cbn-checkout .wc-block-components-payment-method__content .wc-block-components-form-field {
        flex: 1 1 100% !important;
    }
}

/*
 ------------------------------------------------------------
 19 · CARRITO · SIN BORDE EXTERIOR EN EL RESUMEN
 ------------------------------------------------------------
*/

/* El contorno gris exterior del bloque «Resum de la comanda» queda eliminado.
   Se conservan los separadores internos entre producto, cupón, subtotal y total. */
body.cbn-checkout .wp-block-woocommerce-cart-totals-block,
body.cbn-checkout .wc-block-components-cart-totals-block,
body.cbn-checkout .wp-block-woocommerce-cart__sidebar {
    border: 0 !important;
}

@media only screen and (max-width: 767px) {
    body.cbn-checkout .wp-block-woocommerce-cart-totals-block,
    body.cbn-checkout .wc-block-components-cart-totals-block,
    body.cbn-checkout .wp-block-woocommerce-cart__sidebar {
        border: 0 !important;
    }
}

/*
 ------------------------------------------------------------
 20 · CHECKOUT · SIN BORDE EXTERIOR Y CON PADDING INTERIOR REAL
 ------------------------------------------------------------
*/

/* En el checkout real el contenido cuelga directamente de estos
   contenedores, por eso el padding debe aplicarse aquí y no solo
   en .wc-block-components-panel__content / .sidebar-layout__content. */
body.cbn-checkout .wc-block-components-sidebar-layout,
body.cbn-checkout .wp-block-woocommerce-checkout__order-summary-block,
body.cbn-checkout .wc-block-components-panel,
body.cbn-checkout .wc-block-components-card {
    border: 0 !important;
    padding: 22px 22px 24px !important;
    box-sizing: border-box !important;
}

/* Los títulos quedan separados del borde de la caja. */
body.cbn-checkout .wc-block-components-sidebar-layout .wc-block-components-title,
body.cbn-checkout .wc-block-components-title,
body.cbn-checkout .wp-block-woocommerce-checkout__title {
    margin-top: 0 !important;
}

/* El formulario conserva su aire interior con el borde eliminado. */
body.cbn-checkout .wc-block-components-form {
    padding-left: 22px !important;
    padding-right: 22px !important;
}

/* Si el contenedor ya trae padding propio, no se duplica. */
body.cbn-checkout .wc-block-components-sidebar-layout__content,
body.cbn-checkout .wc-block-components-panel__content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media only screen and (max-width: 767px) {
    body.cbn-checkout .wc-block-components-sidebar-layout,
    body.cbn-checkout .wp-block-woocommerce-checkout__order-summary-block,
    body.cbn-checkout .wc-block-components-panel,
    body.cbn-checkout .wc-block-components-card {
        border: 0 !important;
        padding: 22px 20px 26px !important;
        box-sizing: border-box !important;
    }

    body.cbn-checkout .wc-block-components-form {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media only screen and (max-width: 359px) {
    body.cbn-checkout .wc-block-components-sidebar-layout,
    body.cbn-checkout .wp-block-woocommerce-checkout__order-summary-block,
    body.cbn-checkout .wc-block-components-panel,
    body.cbn-checkout .wc-block-components-card {
        padding: 20px 16px 24px !important;
    }

    body.cbn-checkout .wc-block-components-form {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/*
 ------------------------------------------------------------
 21 · CHECKOUT · QUITAR TODOS LOS BORDES GRISES INTERNOS
 ------------------------------------------------------------
*/

/* En «Resum de la comanda» no debe quedar ningún borde gris:
   ni el contorno exterior ni las líneas internas de producto,
   cupón, subtotal y total. */
body.cbn-checkout .wc-block-components-sidebar-layout,
body.cbn-checkout .wp-block-woocommerce-checkout__order-summary-block,
body.cbn-checkout .wc-block-components-panel,
body.cbn-checkout .wc-block-components-card,
body.cbn-checkout .wc-block-components-sidebar-layout *,
body.cbn-checkout .wp-block-woocommerce-checkout__order-summary-block *,
body.cbn-checkout .wc-block-components-panel *,
body.cbn-checkout .wc-block-components-card * {
    border-color: transparent !important;
}

/* Los separadores horizontales visibles usan el color de la caja,
   por lo que desaparecen sin alterar los fondos ni el relleno. */
body.cbn-checkout .wc-block-components-sidebar-layout__content hr,
body.cbn-checkout .wp-block-woocommerce-checkout__order-summary-block hr,
body.cbn-checkout .wc-block-components-panel__content hr,
body.cbn-checkout .wc-block-components-card__content hr {
    border: 0 !important;
    background: transparent !important;
}
















#ship-to-different-address {
    margin: 25px 0 15px !important;
}

#ship-to-different-address label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
}

#ship-to-different-address-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #37442e;
}

.woocommerce-shipping-fields .shipping_address {
    margin-top: 20px;
}

/* =========================================
   CASABELLA NATURA — CHECKOUT CLÁSICO
   WooCommerce + Enfold
========================================= */

:root {
    --cbn-bg: #fbfaf5;
    --cbn-white: #ffffff;
    --cbn-green: #37442e;
    --cbn-olive: #a1a085;
    --cbn-border: #dedfd5;
    --cbn-text: #30392c;
    --cbn-muted: #73796b;
    --cbn-radius: 8px;
}

/* CONTENEDOR */
#top .entry-content > .woocommerce {
    max-width: 1180px;
    margin: 0 auto;
    color: var(--cbn-text);
}

#top .woocommerce form.checkout {
    width: 100%;
    margin: 0;
}

/* =========================================
   CUPÓN
========================================= */

#top .woocommerce-form-coupon-toggle {
    margin-bottom: 24px;
}

#top .woocommerce-form-coupon-toggle .woocommerce-info {
    padding: 17px 22px !important;
    margin: 0 !important;
    background: #f4f0e6 !important;
    border: 1px solid var(--cbn-border);
    border-radius: var(--cbn-radius);
    color: var(--cbn-text);
    font-size: 14px;
}

#top .woocommerce-form-coupon-toggle a {
    color: var(--cbn-green);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#top .woocommerce form.checkout_coupon {
    padding: 22px;
    margin: 12px 0 25px;
    border: 1px solid var(--cbn-border);
    border-radius: var(--cbn-radius);
    background: var(--cbn-white);
}

/* =========================================
   PAGAMENTO RÁPIDO — APPLE / GOOGLE PAY
========================================= */

#top .wcpay-express-checkout-wrapper {
    margin: 0 0 34px;
    padding: 0;
}

#top #wcpay-express-checkout-element {
    width: 100%;
    border-radius: 7px;
    overflow: hidden;
}

#top #wcpay-express-checkout-button-separator {
    margin: 22px 0 30px !important;
    color: var(--cbn-muted);
    font-size: 13px;
}

/* =========================================
   COLUMNAS DE FACTURACIÓN
========================================= */

#top .woocommerce form.checkout .col2-set {
    display: grid;
    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(0, 0.8fr);
    gap: 40px;
    width: 100%;
    margin: 0 0 42px;
}

#top .woocommerce form.checkout .col2-set::before,
#top .woocommerce form.checkout .col2-set::after {
    display: none;
}

#top .woocommerce form.checkout .col2-set .col-1,
#top .woocommerce form.checkout .col2-set .col-2 {
    width: 100%;
    min-width: 0;
    float: none;
    margin: 0;
    padding: 0;
}

/* =========================================
   ENCABEZADOS
========================================= */

#top .woocommerce-billing-fields > h3,
#top .woocommerce-additional-fields > h3,
#top #order_review_heading {
    margin: 0 0 26px !important;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--cbn-border);
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    color: var(--cbn-green);
}

/* =========================================
   CAMPOS DEL FORMULARIO
========================================= */

#top .woocommerce form.checkout .form-row {
    margin: 0 0 19px;
    padding: 0;
}

#top .woocommerce form.checkout .form-row-first {
    width: calc(50% - 9px);
    float: left;
}

#top .woocommerce form.checkout .form-row-last {
    width: calc(50% - 9px);
    float: right;
}

#top .woocommerce form.checkout .form-row-wide {
    width: 100%;
    clear: both;
}

/* Etiquetas */
#top .woocommerce form.checkout .form-row > label {
    display: block;
    margin-bottom: 9px;
    color: #566348;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    line-height: 1.6;
    text-transform: uppercase;
}

/* Asterisco obligatorio */
#top .woocommerce form.checkout .required {
    color: #89966f;
    font-weight: 700;
    text-decoration: none;
}

/* Inputs */
#top .woocommerce form.checkout .input-text,
#top .woocommerce form.checkout select,
#top .woocommerce form.checkout textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 15px;
    background: var(--cbn-white);
    border: 1px solid var(--cbn-border);
    border-radius: var(--cbn-radius);
    box-shadow: none;
    color: var(--cbn-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

#top .woocommerce form.checkout textarea {
    min-height: 140px;
    resize: vertical;
}

/* Placeholder */
#top .woocommerce form.checkout
.input-text::placeholder,
#top .woocommerce form.checkout
textarea::placeholder {
    color: #a3a79e;
    opacity: 1;
}

/* Focus */
#top .woocommerce form.checkout
.input-text:focus,
#top .woocommerce form.checkout
select:focus,
#top .woocommerce form.checkout
textarea:focus {
    outline: none;
    border-color: var(--cbn-olive);
    box-shadow: 0 0 0 3px
        rgba(161,160,133,.16);
}

/* Select2 países y provincias */
#top .woocommerce form.checkout
.select2-container {
    width: 100% !important;
}

#top .woocommerce form.checkout
.select2-selection--single {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 12px;
    border: 1px solid var(--cbn-border);
    border-radius: var(--cbn-radius);
    background: var(--cbn-white);
}

#top .woocommerce form.checkout
.select2-selection__rendered {
    padding: 0;
    color: var(--cbn-text);
    line-height: normal;
}

#top .woocommerce form.checkout
.select2-selection__arrow {
    height: 46px;
    right: 10px;
}

/* =========================================
   DIRECCIÓN DE ENVÍO DIFERENTE
========================================= */

#top .woocommerce-shipping-fields {
    clear: both;
    width: 100%;
    margin-top: 26px;
}

#top #ship-to-different-address {
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: none;
    font-size: 14px;
    font-weight: 400;
}

#top #ship-to-different-address label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--cbn-border);
    border-radius: var(--cbn-radius);
    background: #f4f0e6;
    color: var(--cbn-green);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition:
        background .2s ease,
        border-color .2s ease;
}

#top #ship-to-different-address label:hover {
    background: #eeecdf;
    border-color: var(--cbn-olive);
}

#top #ship-to-different-address-checkbox {
    appearance: auto !important;
    display: inline-block !important;
    position: static !important;
    flex: 0 0 auto;
    width: 19px !important;
    height: 19px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    accent-color: var(--cbn-green);
    cursor: pointer;
}

/* Campos desplegables */
#top .woocommerce-shipping-fields
.shipping_address {
    padding: 22px;
    margin-top: 16px;
    border: 1px solid var(--cbn-border);
    border-radius: var(--cbn-radius);
    background: var(--cbn-bg);
}

/* =========================================
   INFORMACIÓN ADICIONAL
========================================= */

#top .woocommerce-additional-fields {
    width: 100%;
}

#top #order_comments {
    min-height: 160px;
    background: var(--cbn-white);
}

/* =========================================
   RESUMEN DEL PEDIDO
========================================= */

#top #order_review_heading {
    clear: both;
    margin-top: 16px !important;
}

#top #order_review {
    width: 100%;
    margin-top: 8px;
}

#top #order_review table.shop_table {
    width: 100%;
    margin: 0 0 32px;
    border: 1px solid var(--cbn-border);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--cbn-radius);
    background: var(--cbn-white);
    overflow: hidden;
}

#top #order_review table.shop_table th,
#top #order_review table.shop_table td {
    padding: 17px 20px;
    border: none;
    border-bottom: 1px solid #e9e9e2;
    background: transparent;
    color: var(--cbn-text);
    font-size: 14px;
    line-height: 1.6;
}

#top #order_review table.shop_table thead th {
    background: #f4f0e6;
    color: #566348;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#top #order_review table.shop_table
.product-total {
    text-align: right;
}

#top #order_review table.shop_table
.product-quantity {
    color: var(--cbn-muted);
    font-weight: 400;
}

#top #order_review table.shop_table
.order-total th,
#top #order_review table.shop_table
.order-total td {
    padding: 22px 20px;
    border-bottom: none;
    background: #f4f0e6;
    color: var(--cbn-green);
    font-size: 18px;
    font-weight: 700;
}

#top #order_review table.shop_table
.order-total td {
    text-align: right;
}

/* =========================================
   MÉTODOS DE PAGO
========================================= */

#top #payment {
    padding: 24px;
    background: var(--cbn-bg);
    border: 1px solid var(--cbn-border);
    border-radius: 10px;
}

#top #payment ul.payment_methods {
    margin: 0;
    padding: 0 0 22px;
    border-bottom: 1px solid var(--cbn-border);
}

#top #payment ul.payment_methods > li {
    margin: 0 0 12px;
    padding: 16px 18px;
    border: 1px solid var(--cbn-border);
    border-radius: var(--cbn-radius);
    background: var(--cbn-white);
}

#top #payment ul.payment_methods > li:last-child {
    margin-bottom: 0;
}

#top #payment ul.payment_methods > li > label {
    color: var(--cbn-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#top #payment ul.payment_methods
input[type="radio"] {
    accent-color: var(--cbn-green);
    margin-right: 10px;
}

/* Caja de tarjeta/Klarna */
#top #payment div.payment_box {
    margin: 16px 0 0;
    padding: 18px;
    border: none;
    border-radius: 7px;
    background: #f7f7f2;
    box-shadow: none;
}

#top #payment div.payment_box::before {
    display: none;
}

/* No alterar los iframes seguros de Stripe */

/* Privacidad y condiciones */
#top #payment .woocommerce-privacy-policy-text {
    margin: 20px 0;
    color: var(--cbn-muted);
    font-size: 13px;
    line-height: 1.8;
}

#top #payment .woocommerce-privacy-policy-text a {
    color: var(--cbn-green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================
   BOTÓN FINALIZAR COMPRA
========================================= */

#top #payment .place-order {
    width: 100%;
    margin: 0;
    padding: 0;
}

#top #place_order {
    display: block;
    float: none;
    width: 100%;
    min-height: 54px;
    padding: 15px 24px;
    border: 1px solid var(--cbn-green);
    border-radius: var(--cbn-radius);
    background: var(--cbn-green);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    text-align: center;
    text-transform: none;
    cursor: pointer;
    transition:
        background .2s ease,
        transform .2s ease;
}

#top #place_order:hover {
    background: #4b5b40;
    border-color: #4b5b40;
    color: #fff;
    transform: translateY(-1px);
}

#top #place_order:focus-visible {
    outline: 3px solid var(--cbn-olive);
    outline-offset: 3px;
}

/* =========================================
   BOTÓN APLICAR CUPÓN
========================================= */

#top .woocommerce form.checkout_coupon button {
    min-height: 46px;
    padding: 10px 20px;
    border-radius: 7px;
    background: var(--cbn-green);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

/* =========================================
   RESPONSIVE — TABLET
========================================= */

@media (max-width: 989px) {
    #top .woocommerce form.checkout .col2-set {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    #top .woocommerce-additional-fields {
        margin-top: 0;
    }
}

/* =========================================
   RESPONSIVE — MÓVIL
========================================= */

@media (max-width: 767px) {

    #top .entry-content > .woocommerce {
        width: 100%;
    }

    #top .woocommerce form.checkout .col2-set {
        display: block;
        margin-bottom: 30px;
    }

    #top .woocommerce form.checkout
    .col2-set .col-1,
    #top .woocommerce form.checkout
    .col2-set .col-2 {
        width: 100%;
        margin: 0 0 28px;
    }

    #top .woocommerce form.checkout
    .form-row-first,
    #top .woocommerce form.checkout
    .form-row-last {
        float: none;
        width: 100%;
        clear: both;
    }

    #top .woocommerce-billing-fields > h3,
    #top .woocommerce-additional-fields > h3,
    #top #order_review_heading {
        font-size: 21px;
        margin-bottom: 22px !important;
    }

    #top .woocommerce form.checkout
    .input-text,
    #top .woocommerce form.checkout select,
    #top .woocommerce form.checkout textarea {
        min-height: 48px;
        font-size: 16px;
    }

    #top .woocommerce-shipping-fields
    .shipping_address {
        padding: 16px;
    }

    #top #ship-to-different-address label {
        padding: 14px;
        font-size: 13px;
        line-height: 1.5;
    }

    #top #order_review table.shop_table th,
    #top #order_review table.shop_table td {
        padding: 13px 12px;
        font-size: 13px;
    }

    #top #payment {
        padding: 16px;
    }

    #top #payment ul.payment_methods > li {
        padding: 14px 12px;
    }

    #top #payment div.payment_box {
        padding: 12px;
    }

    #top #place_order {
        min-height: 52px;
        font-size: 14px;
    }
}

/* =========================================
   ACCESIBILIDAD
========================================= */

@media (prefers-reduced-motion: reduce) {
    #top .woocommerce form.checkout *,
    #top #place_order {
        transition: none !important;
        animation: none !important;
    }
}