/* Carrito clásico de Blocksy. Solo escritorio; no sustituye la plantilla PHP. */
.dfs-cart-toolbar { display: none; }

body.woocommerce-cart .dfs-cart-notice-dialog {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: min(380px, calc(100% - 40px));
    max-width: 380px;
    max-height: min(82vh, 640px);
    margin: auto;
    padding: 26px 22px 20px;
    overflow: auto;
    border: 2px solid #c62828;
    border-radius: 16px;
    background: #faf5ec;
    color: #081c57;
    box-shadow: 4px 4px 0 #c62828;
}

body.woocommerce-cart .dfs-cart-notice-dialog::backdrop {
    background: rgba(8, 28, 87, .55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.woocommerce-cart .dfs-cart-notice-dialog h2 {
    margin: 0 36px 16px 0;
    color: #c62828;
    font-size: 20px;
}

body.woocommerce-cart .dfs-cart-notice-close {
    position: absolute;
    top: 8px;
    right: 10px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 1px solid #c62828;
    border-radius: 50%;
    background: #faf5ec;
    color: #c62828;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

body.woocommerce-cart .dfs-cart-notice-content > :first-child { margin-top: 0; }
body.woocommerce-cart .dfs-cart-notice-content > :last-child { margin-bottom: 0; }

@media (max-width: 767px) {
    /* Acerca el título a la cabecera, pero deja aire antes de la tarjeta. */
    body.woocommerce-cart #main-container {
        padding-top: 8px !important;
    }

    body.woocommerce-cart .hero-section {
        margin-top: 0 !important;
        padding-top: 4px !important;
        padding-bottom: 0 !important;
        min-height: 0 !important;
    }

    body.woocommerce-cart .hero-section .page-title,
    body.woocommerce-cart h1.page-title,
    body.woocommerce-cart h1.entry-title {
        margin-top: 0 !important;
        margin-bottom: 30px !important;
        font-size: clamp(36px, 9.5vw, 46px) !important;
        line-height: 1.08 !important;
    }
}

/* Colores editables del botón Vaciar carrito (insertado por el snippet). */
:root {
    --dfs-empty-cart-bg: #dce4ec;
    --dfs-empty-cart-color: #0b35c9;
    --dfs-empty-cart-border: #dce4ec;
    --dfs-empty-cart-hover-bg: #081c57;
    --dfs-empty-cart-hover-color: #fff;
}

/* Resumen compacto del carrito: filas alineadas en dos columnas. */
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.cart-subtotal,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.cart-discount {
    display: none !important;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals table.shop_table {
    table-layout: fixed;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total > td {
    display: block !important;
    width: auto !important;
    min-width: 0;
    padding: 12px 0 !important;
    border: 0 !important;
    text-align: left;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total > td {
    text-align: right;
}

body.woocommerce-cart .dfs-cart-total-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.woocommerce-cart .dfs-cart-total-label .fi,
body.woocommerce-cart .woocommerce-shipping-totals.shipping > th .fi {
    color: var(--theme-palette-color-1, #081c57);
    font-size: 16px;
    line-height: 1;
}

body.woocommerce-cart .cart_totals tr.dfs-cart-savings > th,
body.woocommerce-cart .cart_totals tr.dfs-cart-savings > td {
    color: var(--theme-palette-color-2, #0f47d7);
    font-weight: 600;
}

body.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals.shipping .woocommerce-shipping-methods,
body.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals.shipping .woocommerce-shipping-methods li,
body.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals.shipping .woocommerce-shipping-methods label {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    text-align: right;
}

body.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals.shipping input.shipping_method,
body.woocommerce-cart .cart_totals .woocommerce-shipping-destination,
body.woocommerce-cart .cart_totals .shipping-calculator-button,
body.woocommerce-cart .cart_totals .shipping-calculator-form {
    display: none !important;
}

body.woocommerce-cart .cart_totals tr.dfs-cart-more-shipping > td {
    padding: 0 0 12px !important;
    border: 0 !important;
    color: #626b7b;
    font-size: 12px;
    text-align: left !important;
}

body.woocommerce-cart .cart_totals tr.dfs-cart-coupon-trigger-row > td {
    padding: 12px 0 !important;
    border-top: 1px dashed rgba(18, 30, 54, .14);
    border-bottom: 1px dashed rgba(18, 30, 54, .14);
}

body.woocommerce-cart .dfs-cart-coupon-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--theme-palette-color-2, #0f47d7);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

body.woocommerce-cart .dfs-cart-coupon-trigger:hover,
body.woocommerce-cart .dfs-cart-coupon-trigger:focus-visible {
    color: var(--theme-palette-color-1, #081c57);
    text-decoration: underline;
}

body.woocommerce-cart .cart_totals tr.order-total > td {
    display: flex !important;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

body.woocommerce-cart .cart_totals .dfs-cart-original-total {
    color: #7b8493;
    font-size: .78em;
    font-weight: 400;
}

body.woocommerce-cart .dfs-cart-coupon-dialog {
    width: min(440px, calc(100vw - 32px));
    max-width: none;
    padding: 28px;
    box-sizing: border-box;
    border: 2px solid #081c57;
    border-radius: 22px;
    color: #081c57;
}

body.woocommerce-cart .dfs-cart-coupon-dialog::backdrop {
    background: rgba(8, 28, 87, .55);
}

body.woocommerce-cart .dfs-cart-coupon-dialog h2 {
    margin: 0 32px 18px 0;
    color: #081c57;
    font-size: 22px;
}

body.woocommerce-cart .dfs-cart-coupon-close {
    position: absolute;
    top: 12px;
    right: 14px;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: #081c57;
    font-size: 24px;
    cursor: pointer;
}

body.woocommerce-cart .dfs-cart-coupon-dialog .coupon {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    float: none !important;
    width: 100%;
    margin: 0 !important;
}

body.woocommerce-cart .dfs-cart-coupon-dialog input[name="coupon_code"] {
    min-width: 0;
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
}

body.woocommerce-cart .dfs-cart-coupon-dialog button[name="apply_coupon"] {
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid #081c57;
    border-radius: 999px;
    background: #081c57;
    color: #fff;
    white-space: nowrap;
}

@media (max-width: 520px) {
    body.woocommerce-cart .dfs-cart-coupon-dialog { padding: 24px 18px; }
    body.woocommerce-cart .dfs-cart-coupon-dialog .coupon { grid-template-columns: 1fr; }
}

/* Keep the no-rate shipping message on one line and prevent the theme's
   responsive data-title label from duplicating "Envío". */
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping.dfs-cart-shipping-pending-row > td[colspan="2"] {
    grid-column: 1 / -1 !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    width: 100% !important;
    box-sizing: border-box;
    text-align: left !important;
    white-space: nowrap;
    padding: 12px 0 18px !important;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .dfs-cart-shipping-pending-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    white-space: nowrap;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .dfs-cart-shipping-pending {
    margin-left: auto;
    color: #626b7b;
    font-size: .9em;
    font-weight: 400;
    text-align: right;
}

/* Mantener visibles los renglones propios del resumen en el layout móvil de Blocksy. */
/* Extiende las columnas a todo el ancho disponible de la tarjeta de totales. */
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals table.shop_table,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals table.shop_table > tbody {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.woocommerce-shipping-totals.shipping,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 2.2fr) minmax(96px, 1fr) !important;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.woocommerce-shipping-totals.shipping > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.woocommerce-shipping-totals.shipping > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total > td {
    width: 100% !important;
    box-sizing: border-box;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.woocommerce-shipping-totals.shipping > th {
    white-space: nowrap;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.woocommerce-shipping-totals.shipping > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings > td {
    justify-self: stretch;
    text-align: right !important;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-coupon-trigger-row > td {
    width: 100% !important;
    box-sizing: border-box;
    text-align: left !important;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .dfs-cart-coupon-trigger {
    display: inline-flex !important;
    justify-content: flex-start;
    margin: 0 auto 0 0 !important;
    text-align: left !important;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total > th { text-align: left !important; }
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total > td {
    justify-self: stretch;
    text-align: right !important;
}

body.woocommerce-cart .woocommerce-cart-form .empty-cart-button,
body.woocommerce-cart .woocommerce-cart-form .empty-cart-button:visited {
    display: inline-block !important;
    background: var(--dfs-empty-cart-bg) !important;
    color: var(--dfs-empty-cart-color) !important;
    border: 1.5px solid var(--dfs-empty-cart-border) !important;
    border-radius: var(--theme-button-border-radius, 14px) !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

body.woocommerce-cart .woocommerce-cart-form .empty-cart-button:hover,
body.woocommerce-cart .woocommerce-cart-form .empty-cart-button:focus-visible {
    background: var(--dfs-empty-cart-hover-bg) !important;
    color: var(--dfs-empty-cart-hover-color) !important;
    border-color: var(--dfs-empty-cart-hover-bg) !important;
}

@media (max-width: 768px) {
    body.woocommerce-cart .woocommerce-cart-form .empty-cart-button {
        display: block !important;
    }
}

body.woocommerce-cart .woocommerce-cart-form button[name="update_cart"],
body.woocommerce-cart .woocommerce-cart-form input[name="update_cart"] {
    display: none !important;
}

/* Botón principal del carrito, con el contraste y redondeo del resto del sitio. */
body.woocommerce-cart .ct-woocommerce-cart-form .wc-proceed-to-checkout .checkout-button,
body.woocommerce-cart .ct-woocommerce-cart-form .wc-proceed-to-checkout .checkout-button:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 13px 20px;
    box-sizing: border-box;
    color: #fff !important;
    background: var(--theme-palette-color-1, #081c57) !important;
    border: 1px solid var(--theme-palette-color-1, #081c57) !important;
    border-radius: 999px !important;
    text-align: center;
    font-weight: 600;
}
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .medusaa-cart-shipping-quote button.medusaa-cart-quote-submit,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .medusaa-cart-shipping-quote button.medusaa-cart-quote-submit:hover,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .medusaa-cart-shipping-quote button.medusaa-cart-quote-submit:focus-visible,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .medusaa-cart-shipping-quote button.medusaa-cart-quote-submit:disabled {
    border-radius: var(--theme-button-border-radius, 14px) !important;
}
body.woocommerce-cart .ct-woocommerce-cart-form .wc-proceed-to-checkout .checkout-button:hover,
body.woocommerce-cart .ct-woocommerce-cart-form .wc-proceed-to-checkout .checkout-button:focus-visible {
    color: #fff !important;
    background: var(--theme-palette-color-2, #0f47d7) !important;
    border-color: var(--theme-palette-color-2, #0f47d7) !important;
}

/* Ocultar controles nativos de cantidad de Blocksy en cualquier ancho. */
body.woocommerce-cart .quantity span.ct-increase,
body.woocommerce-cart .quantity span.ct-decrease,
body.woocommerce-cart span.ct-increase,
body.woocommerce-cart span.ct-decrease,
body.woocommerce-cart .quantity [class*="ct-increase"],
body.woocommerce-cart .quantity [class*="ct-decrease"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

body.woocommerce-cart .dfs-cart-remaining {
    color: #081c57 !important;
}

body.woocommerce-cart .woocommerce-cart-form__contents .product-remove a.remove .fi-sr-trash {
    color: inherit;
    line-height: 1;
}

body.woocommerce-cart .quantity input.qty::-webkit-outer-spin-button,
body.woocommerce-cart .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: none !important;
    margin: 0 !important;
}

body.woocommerce-cart .quantity input.qty {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    color: #383838 !important;
    -webkit-text-fill-color: #383838 !important;
    opacity: 1 !important;
}

body.woocommerce-cart .dfs-cart-share-dialog {
    position: relative;
    width: min(520px, calc(100% - 32px));
    max-height: min(88vh, 760px);
    overflow-y: auto;
    padding: 28px;
    border: 2px solid #081c57;
    border-radius: 22px;
    color: #383838;
    background: #fff;
    box-shadow: 0 18px 60px rgba(8, 28, 87, .2);
}
body.woocommerce-cart .dfs-cart-share-dialog::backdrop { background: rgba(8, 28, 87, .55); }
body.woocommerce-cart .dfs-cart-share-dialog h2 { margin: 0 36px 8px 0; color: #081c57; font-size: 22px; }
body.woocommerce-cart .dfs-cart-share-dialog > p { margin: 0 0 18px; color: #626b7b; }
body.woocommerce-cart .dfs-cart-share-dialog > .dfs-cart-share-description { text-align: justify; }
body.woocommerce-cart .dfs-cart-share-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #081c57;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
body.woocommerce-cart .dfs-cart-share-dialog label { display: block; margin: 0 0 12px; color: #081c57; font-size: 13px; }
body.woocommerce-cart .dfs-cart-share-dialog input:not([type="checkbox"]),
body.woocommerce-cart .dfs-cart-share-dialog select {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    margin-top: 5px;
    padding: 9px 11px;
    border: 1px solid #cbd1df;
    border-radius: 8px;
    background: #fff;
    color: #383838;
}
body.woocommerce-cart .dfs-cart-share-dialog [hidden] { display: none !important; }
body.woocommerce-cart .dfs-cart-share-customer-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
body.woocommerce-cart .dfs-cart-share-customer-fields label { min-width: 0; }
body.woocommerce-cart .dfs-cart-share-customer-fields input { min-width: 0; }
body.woocommerce-cart .dfs-cart-share-customer-fields label.is-missing { color: #c62828 !important; }
body.woocommerce-cart .dfs-cart-share-customer-fields label.is-missing input { border-color: #c62828 !important; }
body.woocommerce-cart .dfs-cart-share-final-order-toggle { margin: 0 0 12px !important; }
body.woocommerce-cart .dfs-cart-share-final-fields { margin: 0; }
body.woocommerce-cart .dfs-cart-share-final-instructions { margin: 0 0 10px !important; color: #383838 !important; font-size: 14px; }
body.woocommerce-cart .dfs-cart-share-required-mark,
body.woocommerce-cart .dfs-cart-share-field-error { color: #c62828 !important; }
body.woocommerce-cart .dfs-cart-share-field-error { display: block; margin-top: 4px; font-size: 12px; }
body.woocommerce-cart .dfs-cart-share-generate { margin: 0 0 12px; }
body.woocommerce-cart .dfs-cart-share-existing-summary { margin: 0 0 12px !important; padding: 10px 12px; border-left: 3px solid #0f47d7; border-radius: 6px; background: #f3f6ff; color: #081c57 !important; font-size: 13px; }
body.woocommerce-cart .dfs-cart-share-existing-actions { display: grid; gap: 8px; margin: 0 0 12px; }
body.woocommerce-cart .dfs-cart-share-existing-actions .button { width: 100%; min-height: 44px; border-radius: var(--theme-button-border-radius, 12px); }
body.woocommerce-cart .dfs-cart-share-existing-actions .dfs-cart-share-update-existing { background: var(--theme-palette-color-2, #0f47d7); color: #fff; }
body.woocommerce-cart .dfs-cart-share-existing-actions .dfs-cart-share-create-new { border: 1px solid #081c57; background: #fff; color: #081c57; }
body.woocommerce-cart .dfs-cart-share-address-row,
body.woocommerce-cart .dfs-cart-share-result-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.woocommerce-cart .dfs-cart-share-result-actions .dfs-cart-share-open { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
body.woocommerce-cart .dfs-cart-share-feedback { min-height: 1.4em; margin: 8px 0; color: #b00020; font-size: 13px; }
body.woocommerce-cart .dfs-cart-share-feedback.is-success { color: #16803c; }
body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-consent { display: flex; align-items: flex-start; gap: 8px; }
body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-consent input[type="checkbox"] { display: inline-block; width: 18px; min-width: 18px; min-height: 18px; margin: 2px 0 0; }
body.woocommerce-cart .dfs-cart-share-generate,
body.woocommerce-cart .dfs-cart-share-result-actions .button {
    width: 100%;
    min-height: 44px;
    border-radius: var(--theme-button-border-radius, 12px);
    background: var(--theme-palette-color-2, #0f47d7);
    color: #fff;
}
body.woocommerce-cart .dfs-cart-share-result-actions .dfs-cart-share-copy,
body.woocommerce-cart .dfs-cart-share-result-actions .dfs-cart-share-native {
    border: 1px solid #07205D !important;
    background: #ffffff !important;
    color: #07205D !important;
    box-shadow: none !important;
}
body.woocommerce-cart .dfs-cart-share-result-actions .dfs-cart-share-copy:hover,
body.woocommerce-cart .dfs-cart-share-result-actions .dfs-cart-share-copy:focus-visible,
body.woocommerce-cart .dfs-cart-share-result-actions .dfs-cart-share-native:hover,
body.woocommerce-cart .dfs-cart-share-result-actions .dfs-cart-share-native:focus-visible {
    border-color: #0647DF !important;
    background: #ffffff !important;
    color: #07205D !important;
}
body.woocommerce-cart .dfs-cart-share-result-actions .dfs-cart-share-open {
    border: 1px solid #07205D !important;
    background: #07205D !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
body.woocommerce-cart .dfs-cart-share-result-actions .dfs-cart-share-open:hover,
body.woocommerce-cart .dfs-cart-share-result-actions .dfs-cart-share-open:focus-visible {
    border-color: #0647DF !important;
    background: #0647DF !important;
    color: #ffffff !important;
}
body.woocommerce-cart .dfs-cart-share-generate:disabled {
    background: #d8dce5 !important;
    border-color: #d8dce5 !important;
    color: #737b8b !important;
    opacity: 1 !important;
    cursor: not-allowed;
    box-shadow: none !important;
}
body.woocommerce-cart .dfs-cart-share-result > p { color: #626b7b; font-size: 13px; }
body.woocommerce-cart .dfs-cart-share-result > .dfs-cart-share-record-id { overflow-wrap: anywhere; color: #081c57; font-weight: 600; }
body.woocommerce-cart .dfs-cart-share-result > .dfs-cart-share-result-status { color: #16803c; }
body.woocommerce-cart .dfs-cart-share-result > .dfs-cart-share-recommendation { margin: 10px 0; padding: 10px 12px; border-left: 3px solid var(--theme-palette-color-2, #0f47d7); border-radius: 6px; background: #f3f6ff; color: #081c57; }
@media (max-width: 560px) {
    body.woocommerce-cart .dfs-cart-share-dialog {
        padding: 20px 16px;
    }
    body.woocommerce-cart .dfs-cart-share-customer-fields { gap: 8px; }
    body.woocommerce-cart .dfs-cart-share-customer-fields label { font-size: 12px; }
    body.woocommerce-cart .dfs-cart-share-final-instructions { font-size: 13px; }
    body.woocommerce-cart .dfs-cart-share-address-row,
    body.woocommerce-cart .dfs-cart-share-result-actions { grid-template-columns: 1fr; gap: 8px; }
}

body.woocommerce-cart .woocommerce-cart-form__contents .product-name > a,
body.woocommerce-cart .woocommerce-cart-form__contents .product-name > a:visited,
body.woocommerce-cart .woocommerce-cart-form__contents .product-name > a:hover,
body.woocommerce-cart .woocommerce-cart-form__contents .product-name > .price,
body.woocommerce-cart .woocommerce-cart-form__contents .product-name > .price * {
    color: #383838 !important;
    -webkit-text-fill-color: #383838 !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: none !important;
}

body.woocommerce-cart .woocommerce-cart-form__contents .product-name > a,
body.woocommerce-cart .woocommerce-cart-form__contents .product-name > a * {
    display: block !important;
    position: relative !important;
    z-index: 5 !important;
    width: auto !important;
    height: auto !important;
    min-height: 1.5em !important;
    max-height: 1.5em !important;
    flex: 0 0 auto !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    text-indent: 0 !important;
    clip: auto !important;
    clip-path: none !important;
    overflow: hidden !important;
}

body.woocommerce-cart .woocommerce-cart-form__contents .product-name > a {
    background: transparent !important;
    box-shadow: none !important;
}

body.woocommerce-cart .woocommerce-cart-form__contents .product-name > .price,
body.woocommerce-cart .woocommerce-cart-form__contents .product-name > .price del,
body.woocommerce-cart .woocommerce-cart-form__contents .product-name > .price del *,
body.woocommerce-cart .woocommerce-cart-form__contents .product-name > .price > .woocommerce-Price-amount,
body.woocommerce-cart .woocommerce-cart-form__contents .product-name > .price > .woocommerce-Price-amount *,
body.woocommerce-cart .woocommerce-cart-form__contents .product-name .yaydp-cart-item-price .price,
body.woocommerce-cart .woocommerce-cart-form__contents .product-name .yaydp-cart-item-price .price * {
    font-size: 14px !important;
    line-height: 1.5 !important;
    opacity: 1 !important;
}

body.woocommerce-cart .woocommerce-cart-form__contents .product-name .yaydp-cart-item-price .price,
body.woocommerce-cart .woocommerce-cart-form__contents .product-name .yaydp-cart-item-price .price * {
    color: #383838 !important;
    -webkit-text-fill-color: #383838 !important;
}

body.woocommerce-cart .woocommerce-cart-form__contents .product-name .yaydp-cart-item-quantity {
    display: none !important;
}

@media (min-width: 1000px) {
    body.woocommerce-cart .ct-woocommerce-cart-form {
        --dfs-cart-line: rgba(18, 30, 54, .12);
        display: grid;
        grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
        gap: 28px;
        align-items: start;
    }

    body.woocommerce-cart .ct-woocommerce-cart-form > .woocommerce-cart-form {
        min-width: 0;
        width: 100%;
        margin: 0;
    }

    .dfs-cart-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        min-height: 52px;
        padding: 10px 20px;
        margin-bottom: 24px;
        background: #fff;
        border: 2px solid #081c57;
        border-radius: 24px;
    }

    .dfs-cart-toolbar strong { font-size: 15px; font-weight: 600; }
    .dfs-cart-share-placeholder { text-align: right; }
    .dfs-cart-share-label {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 8px;
        border: 0 !important;
        border-radius: 12px;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--theme-palette-color-2, #0f47d7);
        font-size: 14px;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
    }
    .dfs-cart-share-label:focus-visible { outline: 2px solid var(--theme-palette-color-2, #0f47d7); outline-offset: 3px; }
    .dfs-cart-share-label .fi {
        color: inherit;
        font-size: 18px;
        line-height: 1;
    }

    body.woocommerce-cart .ct-woocommerce-cart-form table.woocommerce-cart-form__contents {
        display: block;
        width: 100%;
        margin: 0;
        border: 2px solid #081c57 !important;
        border-radius: 26px !important;
        background: #fff;
        border-spacing: 0;
        overflow: hidden;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents > thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    body.woocommerce-cart .woocommerce-cart-form__contents > tbody {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item {
        display: grid;
        grid-template-columns: 160px minmax(0, 1fr) minmax(130px, 165px) 24px;
        grid-template-rows: 24px 21px 18px 38px;
        column-gap: 18px;
        row-gap: 12px;
        height: 200px;
        box-sizing: border-box;
        align-content: center;
        padding: 18px 20px;
        border: 0;
        border-bottom: 1px dashed var(--dfs-cart-line);
        border-radius: 0;
        margin: 0 14px;
        background: #fff;
        align-items: start;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item > td {
        display: block;
        min-width: 0;
        width: auto;
        padding: 0;
        margin: 0;
        border: 0;
        text-align: left;
        background: transparent;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item > .product-thumbnail {
        grid-column: 1;
        grid-row: 1 / 5;
        width: 160px;
        align-self: center;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .product-thumbnail .ct-media-container,
    body.woocommerce-cart .woocommerce-cart-form__contents .product-thumbnail img {
        width: 160px;
        height: 160px;
        border-radius: 18px;
        object-fit: contain;
        background: #fff;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item > .product-name {
        display: contents;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .product-name > a {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.5;
        font-size: 15px;
        text-decoration: none;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .product-name > .price {
        grid-column: 2;
        grid-row: 2;
        align-self: center;
        display: block !important;
        margin: 0;
        font-size: 14px;
        line-height: 1.5;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .product-name > .price.dfs-cart-empty-price {
        display: none !important;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .product-name > p:empty {
        display: none !important;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .product-name > .yaydp-cart-item-price {
        grid-column: 2;
        grid-row: 2 / 4;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 21px 18px;
        row-gap: 12px;
        align-self: stretch;
        min-width: 0;
        height: 51px;
        margin: 0;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .product-name > .yaydp-cart-item-price > div {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        align-items: center;
        min-width: 0;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .product-name .yaydp-cart-item-price .price {
        display: inline-flex !important;
        align-items: baseline;
        gap: 5px;
        margin: 0;
        font-size: 14px;
        line-height: 1.5;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .product-name > .yaydp-cart-item-price > .dfs-yay-discount-note {
        grid-column: 1;
        grid-row: 2;
        align-self: center;
        justify-self: start;
        margin: 0;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .product-mobile-actions { display: none !important; }
    body.woocommerce-cart .woocommerce-cart-form__contents .variation {
        margin: 0;
        font-size: 12px;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item > .product-quantity {
        grid-column: 2;
        grid-row: 4;
        align-self: center;
        display: flex;
        align-items: center;
        gap: 12px;
        z-index: 2;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item > .product-quantity::before {
        content: none;
        display: none;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .product-quantity .quantity {
        display: inline-flex;
        vertical-align: middle;
        margin: 0;
        align-items: center;
        width: auto;
        height: 38px;
        padding: 0 4px;
        background: #fff;
        border: 1.5px solid var(--theme-palette-color-1, #0f47d7);
        border-radius: 8px;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item > .product-subtotal {
        grid-column: 3;
        grid-row: 1 / 5;
        align-self: stretch;
        text-align: right;
        font-size: 17px;
        font-weight: 600;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-rows: 24px 21px 18px 38px;
        row-gap: 12px;
        align-content: center;
        white-space: nowrap;
        position: relative;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item > .product-subtotal::before {
        grid-column: 1 / -1;
        grid-row: 3;
        align-self: center;
        justify-self: end;
        content: attr(data-title);
        display: inline-block;
        font-size: 12px;
        font-weight: 400;
        margin: 0;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .product-subtotal > .price {
        grid-column: 1 / -1;
        grid-row: 4;
        align-self: center;
        justify-self: end;
        display: inline-flex;
        align-items: baseline;
        gap: 5px;
        margin: 0;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .product-subtotal del {
        display: inline;
        font-size: 12px;
        font-weight: 400;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .product-subtotal > del {
        grid-column: 2;
        grid-row: 4;
        align-self: center;
        justify-self: end;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .product-subtotal > .woocommerce-Price-amount.amount {
        grid-column: 3;
        grid-row: 4;
        align-self: center;
        justify-self: end;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .quantity input.qty {
        width: 38px;
        height: 34px;
        padding: 0;
        border: 0;
        background: #fff;
        color: var(--theme-palette-color-8, #081c57);
        text-align: center;
        box-shadow: none;
        outline: none !important;
        -webkit-appearance: none;
        -moz-appearance: textfield;
        font-family: inherit;
        text-indent: 0;
        min-width: 38px;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .quantity input.qty::-webkit-outer-spin-button,
    body.woocommerce-cart .woocommerce-cart-form__contents .quantity input.qty::-webkit-inner-spin-button {
        -webkit-appearance: none;
        appearance: none;
        display: none;
        margin: 0;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .quantity .ct-increase,
    body.woocommerce-cart .woocommerce-cart-form__contents .quantity .ct-decrease,
    body.woocommerce-cart .woocommerce-cart-form__contents .quantity .ct-quantity-plus,
    body.woocommerce-cart .woocommerce-cart-form__contents .quantity .ct-quantity-minus {
        display: none !important;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .quantity [class*="increase"],
    body.woocommerce-cart .woocommerce-cart-form__contents .quantity [class*="decrease"],
    body.woocommerce-cart .woocommerce-cart-form__contents .quantity [class*="quantity-plus"],
    body.woocommerce-cart .woocommerce-cart-form__contents .quantity [class*="quantity-minus"] {
        display: none !important;
    }
    body.woocommerce-cart .ct-woocommerce-cart-form span.ct-increase,
    body.woocommerce-cart .ct-woocommerce-cart-form span.ct-decrease,
    body.woocommerce-cart .woocommerce-cart-form span.ct-increase,
    body.woocommerce-cart .woocommerce-cart-form span.ct-decrease {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .quantity input.qty {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        font-size: 14px !important;
        line-height: 34px !important;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .quantity > button:not(.dfs-qty-button) {
        display: none !important;
    }
    body.woocommerce-cart .dfs-qty-button {
        width: 28px;
        height: 34px;
        padding: 0;
        border: 0;
        background: #fff;
        color: var(--theme-palette-color-1, #0f47d7);
        font-size: 20px;
        line-height: 1;
        cursor: pointer;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .quantity input.qty:hover,
    body.woocommerce-cart .woocommerce-cart-form__contents .quantity input.qty:focus,
    body.woocommerce-cart .woocommerce-cart-form__contents .quantity input.qty:active {
        border: 0 !important;
        outline: none !important;
        box-shadow: none !important;
    }
    body.woocommerce-cart .dfs-cart-remaining {
        display: inline-flex;
        align-items: center;
        margin-left: 0;
        color: #081c57 !important;
        font-size: 12px;
        white-space: nowrap;
    }
    body.woocommerce-cart .dfs-yay-discount-note {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        margin-left: 5px;
        color: var(--theme-palette-color-2, #0f47d7);
        font-size: 12px;
        font-weight: 600;
    }
    body.woocommerce-cart .dfs-yay-discount-note i { color: inherit; }
    body.woocommerce-cart .yaydp-tooltip-icon { display: none !important; }
    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item > .product-remove {
        grid-column: 4;
        grid-row: 1;
        justify-self: end;
        align-self: center;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .actions {
        display: block;
        width: 100%;
        padding: 18px 20px;
        border: 0;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents tr:has(> .actions) {
        display: block;
        margin: 0 14px;
        border: 0;
    }
    body.woocommerce-cart .woocommerce-cart-form__contents .actions .coupon {
        float: none;
        margin-bottom: 12px;
    }

    body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals {
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 24px;
        background: #fff;
        border: 2px solid #081c57 !important;
        border-radius: 22px !important;
        box-shadow: none;
    }
    body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals > h2 {
        margin: 0 0 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--dfs-cart-line);
        font-size: 19px;
    }
    body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals table { margin-bottom: 16px; }
    body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .wc-proceed-to-checkout { padding-bottom: 0; }
}

body.woocommerce-cart .cart_totals tr.dfs-cart-savings th,
body.woocommerce-cart .cart_totals tr.dfs-cart-savings td {
    color: var(--theme-palette-color-2, #0f47d7);
    font-weight: 600;
}
body.woocommerce-cart .cart_totals tr.dfs-cart-coupon-row > td {
    padding: 14px 0 !important;
    border-top: 1px dashed rgba(18, 30, 54, .12);
}
body.woocommerce-cart .dfs-cart-coupon-slot .coupon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin: 0;
}
body.woocommerce-cart .dfs-cart-coupon-slot .coupon input[name="coupon_code"] {
    min-width: 0;
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
}
body.woocommerce-cart .dfs-cart-coupon-slot .coupon button[name="apply_coupon"] {
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid #081c57;
    border-radius: var(--theme-button-border-radius, 12px);
    background: #081c57;
    color: #fff;
    white-space: nowrap;
}
body.woocommerce-cart .cart_totals tr.dfs-cart-more-shipping td {
    padding-top: 0 !important;
    color: #626b7b;
    font-size: 12px;
}

@media (min-width: 1200px) {
    body.woocommerce-cart .woocommerce-cart-form__contents .dfs-yay-discount-note {
        white-space: nowrap;
    }
}

/* Carrito compacto: conserva el orden de información de escritorio. */
@media (max-width: 999px) {
    html.dfs-cart-share-scroll-lock,
    body.dfs-cart-share-scroll-lock { overflow: hidden !important; overscroll-behavior: none !important; }
    body.dfs-cart-share-scroll-lock { position: fixed !important; top: var(--dfs-share-page-scroll-top, 0px) !important; left: 0 !important; right: 0 !important; width: 100% !important; }

    body.woocommerce-cart .dfs-cart-share-dialog {
        position: fixed !important;
        top: var(--dfs-dialog-top, 50%) !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        inset: var(--dfs-dialog-top, 50%) auto auto 50% !important;
        transform: translateX(-50%) !important;
        box-sizing: border-box;
        width: min(520px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
        max-height: var(--dfs-dialog-max-height, calc(100vh - 24px)) !important;
        margin: 0 !important;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.woocommerce-cart .ct-woocommerce-cart-form {
        display: flex;
        flex-direction: column;
        gap: 16px;
        min-width: 0;
        overflow: visible !important;
    }

    body.woocommerce-cart .ct-woocommerce-cart-form > .woocommerce-cart-form {
        order: 1;
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    body.woocommerce-cart .cart-collaterals {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        width: 100%;
        min-width: 0;
        margin: 0;
        overflow: visible !important;
    }

    body.woocommerce-cart .ct-woocommerce-cart-form table.woocommerce-cart-form__contents {
        display: block !important;
        width: 100%;
        margin: 0;
        border: 2px solid #081c57 !important;
        border-radius: 24px !important;
        border-spacing: 0;
        overflow: hidden;
        background: #fff;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents > thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    body.woocommerce-cart .woocommerce-cart-form__contents > tbody {
        display: flex !important;
        flex-direction: column;
        width: 100%;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item {
        display: grid !important;
        grid-template-columns: clamp(76px, 23vw, 100px) minmax(0, 1fr) 20px;
        grid-template-rows: auto auto auto auto minmax(30px, auto) auto;
        column-gap: 10px;
        row-gap: 4px;
        height: auto !important;
        min-height: 158px;
        box-sizing: border-box;
        align-content: center;
        align-items: center;
        padding: 14px 12px 16px;
        margin: 0 10px;
        border: 0 !important;
        border-bottom: 1px dashed rgba(18, 30, 54, .16) !important;
        border-radius: 0;
        background: #fff;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item:last-of-type {
        border-bottom: 0 !important;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item > td {
        display: block;
        min-width: 0;
        width: auto;
        padding: 0;
        margin: 0;
        border: 0;
        text-align: left;
        background: transparent;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item > .product-thumbnail {
        grid-column: 1;
        grid-row: 1 / 7;
        width: clamp(76px, 23vw, 100px);
        align-self: center;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents .product-thumbnail .ct-media-container,
    body.woocommerce-cart .woocommerce-cart-form__contents .product-thumbnail img {
        display: block;
        width: clamp(76px, 23vw, 100px);
        height: clamp(76px, 23vw, 100px);
        border-radius: 14px;
        object-fit: contain;
        background: #fff;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item > .product-name {
        display: contents;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents .product-name > a {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        display: block !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: ellipsis;
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents .product-name > .price:not(.dfs-cart-empty-price) {
        grid-column: 2;
        grid-row: 2;
        align-self: center;
        display: block !important;
        margin: 0;
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents .product-name > .price.dfs-cart-empty-price,
    body.woocommerce-cart .woocommerce-cart-form__contents .product-name > p:empty {
        display: none !important;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents .product-name > .yaydp-cart-item-price {
        grid-column: 2;
        grid-row: 2 / 5;
        display: contents !important;
        min-width: 0;
        margin: 0;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents .product-name > .yaydp-cart-item-price > div {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        align-items: center;
        min-width: 0;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents .product-name .yaydp-cart-item-price .price {
        display: inline-flex !important;
        align-items: baseline;
        gap: 4px;
        margin: 0;
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents .product-name > .yaydp-cart-item-price > .dfs-yay-discount-note {
        grid-column: 2;
        grid-row: 3 / 5;
        align-self: start;
        justify-self: start;
        max-width: 100%;
        margin: 0;
        display: block;
        overflow: hidden;
        color: var(--theme-palette-color-2, #0f47d7);
        font-size: 10px;
        line-height: 1.25;
        white-space: normal;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents .product-name > .yaydp-cart-item-price > .dfs-yay-discount-note .fi {
        color: inherit;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item:not(:has(.dfs-yay-discount-note)) {
        grid-template-rows: auto auto minmax(30px, auto) auto;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item:not(:has(.dfs-yay-discount-note)) > .product-thumbnail {
        grid-row: 1 / 5;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents .product-name .product-mobile-actions {
        display: none !important;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item > .product-quantity {
        grid-column: 2;
        grid-row: 5;
        align-self: center;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 4px;
        min-width: 0;
        z-index: 2;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item > .product-quantity::before {
        content: none;
        display: none;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents .product-quantity .quantity {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        width: auto;
        height: 32px;
        margin: 0;
        padding: 0 3px;
        border: 1.5px solid var(--theme-palette-color-1, #0f47d7);
        border-radius: 8px;
        background: #fff;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents .quantity input.qty {
        display: block !important;
        width: 26px;
        min-width: 26px;
        height: 28px;
        padding: 0;
        border: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
        background: #fff;
        color: #383838 !important;
        font-size: 13px !important;
        line-height: 28px !important;
        text-align: center;
        -webkit-appearance: none;
        -moz-appearance: textfield;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents .quantity .dfs-qty-button {
        display: inline-flex;
        flex: 0 0 18px;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 28px;
        padding: 0;
        border: 0 !important;
        border-radius: 0;
        background: #fff !important;
        box-shadow: none !important;
        color: var(--theme-palette-color-1, #0f47d7) !important;
        font-size: 16px;
        line-height: 1;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents .dfs-cart-remaining {
        display: inline-flex;
        align-items: center;
        margin: 0;
        color: #081c57 !important;
        font-size: 9px;
        line-height: 1.3;
        white-space: nowrap;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item > .product-subtotal {
        grid-column: 2 / 4;
        grid-row: 6;
        align-self: center;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: baseline;
        justify-content: stretch;
        gap: 8px;
        min-width: 0;
        margin: 0;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item > .product-subtotal::before {
        content: attr(data-title);
        grid-column: 1;
        grid-row: 1;
        display: block;
        margin: 0;
        font-size: 11px;
        font-weight: 400;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents .product-subtotal > .price {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        display: inline-flex;
        align-items: baseline;
        gap: 4px;
        margin: 0;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents .product-subtotal del,
    body.woocommerce-cart .woocommerce-cart-form__contents .product-subtotal del * {
        font-size: 10px !important;
        font-weight: 400;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item:not(:has(.dfs-yay-discount-note)) > .product-quantity {
        grid-row: 3;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item:not(:has(.dfs-yay-discount-note)) > .product-subtotal {
        grid-row: 4;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents tr.cart_item > .product-remove {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        align-self: start;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents .product-remove a.remove {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 24px;
        color: #081c57 !important;
        font-size: 17px;
        text-decoration: none;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents .product-remove a.remove .fi-sr-trash {
        color: inherit;
        line-height: 1;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents .actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: auto;
        padding: 14px 12px;
        border: 0;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents tr:has(> .actions) {
        display: block !important;
        margin: 0 10px;
        border: 0;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents .actions .coupon {
        float: none;
        margin: 0 0 10px;
    }

    body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals {
        order: 1;
        position: relative;
        z-index: 1;
        flex: 0 0 auto;
        height: auto;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        margin: 0;
        padding: 18px 16px;
        border: 2px solid #081c57 !important;
        border-radius: 22px !important;
        background: #fff;
        box-shadow: none;
    }

    body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals > h2 {
        margin: 0 0 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(18, 30, 54, .12);
        font-size: 18px;
    }

    body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals table {
        width: 100%;
        margin: 0 0 14px;
    }

    body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals th,
    body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals td {
        padding: 10px 0 !important;
    }

    body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.woocommerce-shipping-totals.shipping {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.woocommerce-shipping-totals.shipping > th,
    body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.woocommerce-shipping-totals.shipping > td {
        display: block !important;
        width: 100%;
        box-sizing: border-box;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .woocommerce-shipping-methods,
    body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .woocommerce-shipping-methods li {
        display: grid !important;
        gap: 8px;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .woocommerce-shipping-methods li > label {
        display: flex !important;
        align-items: flex-start;
        gap: 8px;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .woocommerce-shipping-methods {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .woocommerce-shipping-methods input.shipping_method {
        display: inline-block !important;
        position: static !important;
        width: 18px;
        height: 18px;
        margin: 0;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .wc-proceed-to-checkout {
        padding: 12px 0 0;
    }

    body.woocommerce-cart .ct-woocommerce-cart-form .checkout-button {
        width: 100%;
        margin: 0;
    }

    body.woocommerce-cart .dfs-cart-toolbar {
        position: static !important;
        inset: auto !important;
        transform: none !important;
        z-index: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        min-height: 50px;
        box-sizing: border-box;
        padding: 8px 14px;
        margin: 72px 0 24px !important;
        border: 2px solid #081c57;
        border-radius: 24px !important;
        background: #fff;
    }

    body.woocommerce-cart .dfs-cart-toolbar strong {
        font-size: 13px;
        font-weight: 600;
    }

    body.woocommerce-cart .dfs-cart-share-label {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 6px 8px;
        border: 0 !important;
        border-radius: 12px;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--theme-palette-color-2, #0f47d7);
        font-family: inherit;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }

    body.woocommerce-cart .dfs-cart-share-label .fi {
        color: inherit;
        font-size: 17px;
        line-height: 1;
    }
}

/* Anchos finales del resumen compacto. */
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals table.shop_table,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals table.shop_table > tbody {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.woocommerce-shipping-totals.shipping,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 2.2fr) minmax(96px, 1fr) !important;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.woocommerce-shipping-totals.shipping > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.woocommerce-shipping-totals.shipping > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total > td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total > th {
    text-align: left !important;
    white-space: nowrap;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.woocommerce-shipping-totals.shipping > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total > td {
    justify-self: stretch;
    text-align: right !important;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings .dfs-cart-total-label .fi {
    color: #198754 !important;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-coupon-trigger-row > td {
    width: 100% !important;
    box-sizing: border-box;
    text-align: left !important;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .dfs-cart-coupon-trigger {
    display: inline-flex !important;
    justify-content: flex-start;
    margin: 0 auto 0 0 !important;
    text-align: left !important;
}

/* Ultima capa: preservar las filas compactas frente a los estilos responsive del tema. */
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.cart-subtotal,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.cart-discount { display: none !important; }

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals table.shop_table,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals table.shop_table > tbody {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 2.2fr) minmax(96px, 1fr) !important;
    align-items: center;
    column-gap: 12px;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total > td {
    display: block !important;
    width: 100% !important;
    min-width: 0;
    padding: 12px 0 !important;
    border: 0 !important;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total > td {
    justify-self: stretch;
    text-align: right !important;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total > th {
    text-align: left !important;
    white-space: nowrap;
}

@media (max-width: 999px) {
    body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row > td[data-title]::before,
    body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-savings > td[data-title]::before,
    body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total > td[data-title]::before {
        display: none !important;
        content: none !important;
    }
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping > td[colspan="2"] {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: minmax(0, 2.2fr) minmax(96px, 1fr) !important;
    align-items: center;
    column-gap: 12px;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 6px 0 2px !important;
    box-sizing: border-box;
    text-align: left !important;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping .ct-shipping-heading {
    grid-column: 1;
    grid-row: 1;
    justify-self: start !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping .dfs-cart-total-label {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 8px;
    width: auto !important;
    color: inherit;
    white-space: nowrap;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping .woocommerce-shipping-methods {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    text-align: right !important;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping .woocommerce-shipping-methods li,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping .woocommerce-shipping-methods li > label {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping .woocommerce-shipping-methods label,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping .woocommerce-shipping-methods .woocommerce-Price-amount {
    pointer-events: none !important;
    cursor: default !important;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping input.shipping_method,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .woocommerce-shipping-destination,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .shipping-calculator-button,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .shipping-calculator-form { display: none !important; }

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-more-shipping > td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    padding: 0 0 12px !important;
    border: 0 !important;
    text-align: left !important;
    color: #626b7b;
    font-size: 12px;
    line-height: 1.3;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-coupon-trigger-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    width: 100% !important;
    box-sizing: border-box;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-coupon-trigger-row > td[colspan="2"] {
    grid-column: 1 / -1;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    padding: 6px 0 !important;
    text-align: left !important;
    border-top: 1px dashed rgba(18, 30, 54, .14) !important;
    border-bottom: 1px dashed rgba(18, 30, 54, .14) !important;
}
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-coupon-trigger-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    width: 100% !important;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .dfs-cart-coupon-trigger {
    display: inline-flex !important;
    justify-content: flex-start;
    margin: 0 auto 0 0 !important;
    text-align: left !important;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total > td {
    display: flex !important;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 999px) {
    body.woocommerce-cart .ct-woocommerce-cart-form {
        gap: 24px !important;
        height: auto !important;
        min-height: 0 !important;
        align-content: start !important;
    }

    body.woocommerce-cart .ct-woocommerce-cart-form .woocommerce-cart-form {
        margin-bottom: 0 !important;
    }

    body.woocommerce-cart .cart-collaterals {
        display: flex !important;
        flex: 0 0 auto !important;
        flex-direction: column !important;
        align-self: stretch !important;
        align-items: stretch !important;
        gap: 24px !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.woocommerce-cart .cart-collaterals .dfs-cart-toolbar {
        order: 2 !important;
    }

    body.woocommerce-cart .cart_totals {
        display: block !important;
        position: static !important;
        z-index: auto !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
    }

    body.woocommerce-cart .cart_totals table.shop_table,
    body.woocommerce-cart .cart_totals table.shop_table > tbody {
        height: auto !important;
        min-height: 0 !important;
    }

    body.woocommerce-cart .cart_totals table.shop_table {
        margin-bottom: 0 !important;
    }

    body.woocommerce-cart .cart_totals tr.order-total {
        grid-template-columns: minmax(0, 1fr) max-content !important;
    }

    body.woocommerce-cart .cart_totals tr.order-total > td {
        flex-wrap: nowrap !important;
        gap: 6px;
        white-space: nowrap;
    }

    body.woocommerce-cart .cart_totals .dfs-cart-original-total,
    body.woocommerce-cart .cart_totals tr.order-total > td > strong {
        flex: 0 0 auto;
    }

    body.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
        margin: 12px 0 0 !important;
        padding: 0 !important;
    }

    body.woocommerce-cart .cart-collaterals .dfs-cart-toolbar {
        display: flex !important;
        position: static !important;
        inset: auto !important;
        transform: none !important;
        z-index: auto !important;
        width: 100%;
        flex: 0 0 auto !important;
        box-sizing: border-box;
        padding: 8px 14px;
        margin: 0 !important;
    }

    /* The cart toolbar is a direct child of this flex wrapper, not cart-collaterals. */
    body.woocommerce-cart .ct-woocommerce-cart-form > .dfs-cart-toolbar {
        order: 2 !important;
        margin: 0 !important;
    }
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .dfs-cart-original-total {
    color: #7b8493;
    font-size: .78em;
    font-weight: 400;
}

/* Keep both cart values together, like the crossed-out and current total. */
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row {
    grid-template-columns: minmax(0, 1fr) max-content !important;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row > td {
    display: flex !important;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .dfs-cart-original-value,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row > td > strong {
    flex: 0 0 auto;
    white-space: nowrap;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .dfs-cart-original-value {
    color: #7b8493;
    font-size: .78em;
    font-weight: 400;
}

body.woocommerce-cart .dfs-cart-coupon-dialog {
    position: fixed;
    inset: 0;
    width: min(440px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 28px;
    box-sizing: border-box;
    border: 2px solid #081c57;
    border-radius: 22px;
    color: #081c57;
}

body.woocommerce-cart .dfs-cart-coupon-dialog::backdrop { background: rgba(8, 28, 87, .55); }
body.woocommerce-cart .dfs-cart-coupon-dialog h2 { margin: 0 32px 18px 0; color: #081c57; font-size: 22px; }
body.woocommerce-cart .dfs-cart-coupon-close {
    position: absolute;
    top: 12px;
    right: 14px;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: #081c57;
    font-size: 24px;
    cursor: pointer;
}
body.woocommerce-cart .dfs-cart-coupon-dialog .coupon {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    float: none !important;
    width: 100%;
    margin: 0 !important;
}
body.woocommerce-cart .dfs-cart-coupon-dialog input[name="coupon_code"] {
    min-width: 0;
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
}
body.woocommerce-cart .dfs-cart-coupon-dialog button[name="apply_coupon"] {
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid #081c57;
    border-radius: 999px;
    background: #081c57;
    color: #fff;
    white-space: nowrap;
}

@media (max-width: 520px) {
    body.woocommerce-cart .dfs-cart-coupon-dialog { padding: 24px 18px; }
    body.woocommerce-cart .dfs-cart-coupon-dialog .coupon { grid-template-columns: 1fr; }
}
/* Tarjetas del carrito: sin contorno, con sombra suave en cualquier pantalla. */
body.woocommerce-cart .ct-woocommerce-cart-form table.woocommerce-cart-form__contents,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals,
body.woocommerce-cart .dfs-cart-toolbar {
    border: 0 !important;
    background: #fff !important;
    box-shadow: 0 10px 26px rgba(8, 28, 87, .12) !important;
}

/* Compartir carrito y botones con esquinas moderadas. */
body.woocommerce-cart .dfs-cart-toolbar {
    border-radius: 15px !important;
}

body.woocommerce-cart .dfs-cart-share-label {
    border-radius: 10px !important;
}

body.woocommerce-cart .woocommerce-cart-form .empty-cart-button,
body.woocommerce-cart .ct-woocommerce-cart-form .wc-proceed-to-checkout .checkout-button,
body.woocommerce-cart .dfs-cart-share-dialog .button {
    border-radius: 15px !important;
}

/* Mantener Vaciar carrito a la derecha, también tras refrescar la lista. */
body.woocommerce-cart .woocommerce-cart-form__contents .actions .empty-cart-button {
    display: block !important;
    width: max-content !important;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: 0 !important;
    align-self: flex-end;
    float: none !important;
    text-align: center;
}

/* Resumen: importes y conceptos oscuros; cupón en azul principal. */
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row .dfs-cart-total-label,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row .fi,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row .woocommerce-Price-amount,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.dfs-cart-value-row .woocommerce-Price-amount bdi,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping .dfs-cart-total-label,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping .fi,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping .woocommerce-shipping-methods label,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping .woocommerce-Price-amount,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.shipping .woocommerce-Price-amount bdi,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total > th,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total > td,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total .woocommerce-Price-amount,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals tr.order-total .woocommerce-Price-amount bdi {
    color: var(--theme-palette-color-2, #081c57) !important;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .dfs-cart-coupon-trigger,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .dfs-cart-coupon-trigger .fi {
    color: var(--theme-palette-color-1, #0b35c9) !important;
}

/* Los importes anteriores tachados conservan su jerarquía secundaria. */
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .dfs-cart-original-value,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .dfs-cart-original-value .woocommerce-Price-amount,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .dfs-cart-original-value bdi,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .dfs-cart-original-total,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .dfs-cart-original-total .woocommerce-Price-amount,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals .dfs-cart-original-total bdi {
    color: #7b8493 !important;
}

/* Colores de la cápsula: navegación oscura y acción de compartir azul. */
body.woocommerce-cart .dfs-cart-toolbar strong {
    color: var(--theme-palette-color-4, #081c57) !important;
}

body.woocommerce-cart .dfs-cart-toolbar .dfs-cart-share-label,
body.woocommerce-cart .dfs-cart-toolbar .dfs-cart-share-label .fi {
    color: var(--theme-palette-color-1, #0b35c9) !important;
}

body.woocommerce-cart .dfs-cart-toolbar .dfs-cart-share-label:focus-visible {
    outline-color: var(--theme-palette-color-1, #0b35c9);
}

/* Ventana de compartir: misma superficie blanca y esquinas moderadas que el carrito. */
body.woocommerce-cart .dfs-cart-share-dialog {
    border: 0 !important;
    border-radius: 15px !important;
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    color-scheme: light;
    color: var(--theme-palette-color-4, #081c57) !important;
    box-shadow: 0 18px 48px rgba(8, 28, 87, .22) !important;
}

body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals > h2,
body.woocommerce-cart .dfs-cart-share-dialog h2 {
    color: var(--theme-palette-color-4, #081c57) !important;
}

body.woocommerce-cart .dfs-cart-share-dialog > p,
body.woocommerce-cart .dfs-cart-share-dialog label,
body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-final-instructions,
body.woocommerce-cart .dfs-cart-share-dialog input:not([type="checkbox"]),
body.woocommerce-cart .dfs-cart-share-dialog select {
    color: var(--theme-palette-color-4, #081c57) !important;
}

body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-close {
    border: 0 !important;
    border-radius: 8px !important;
    background: #dce4ec !important;
    color: var(--theme-palette-color-4, #081c57) !important;
    box-shadow: none !important;
}

body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-close:hover,
body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-close:focus-visible {
    background: var(--theme-palette-color-2, #081c57) !important;
    color: #fff !important;
}

body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-generate,
body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-update-existing,
body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-result-actions .dfs-cart-share-open {
    border: 0 !important;
    border-radius: 15px !important;
    background: var(--theme-palette-color-1, #0b35c9) !important;
    color: #fff !important;
}

body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-generate:not(:disabled):hover,
body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-generate:not(:disabled):focus-visible,
body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-update-existing:hover,
body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-update-existing:focus-visible,
body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-result-actions .dfs-cart-share-open:hover,
body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-result-actions .dfs-cart-share-open:focus-visible {
    background: var(--theme-palette-color-2, #081c57) !important;
    color: #fff !important;
}

body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-create-new,
body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-result-actions .dfs-cart-share-copy,
body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-result-actions .dfs-cart-share-native {
    border: 0 !important;
    border-radius: 15px !important;
    background: #dce4ec !important;
    color: var(--theme-palette-color-4, #081c57) !important;
}

body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-create-new:hover,
body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-create-new:focus-visible,
body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-result-actions .dfs-cart-share-copy:hover,
body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-result-actions .dfs-cart-share-copy:focus-visible,
body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-result-actions .dfs-cart-share-native:hover,
body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-result-actions .dfs-cart-share-native:focus-visible {
    background: var(--theme-palette-color-2, #081c57) !important;
    color: #fff !important;
}

body.woocommerce-cart .dfs-cart-share-dialog .dfs-cart-share-generate:disabled {
    background: #d8dce5 !important;
    color: #737b8b !important;
}
