/*
 * Casa Marcus - Header Popups
 * Version 0.1.0
 * Colores: #252666 / #ffb700
 */

/* Contenedor principal del carrito */
#desk_cart-wrapper .block-minicart {
    background: #ffffff;
    border: 1px solid #e8eaf0;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(20, 24, 65, 0.18);
    overflow: hidden;
}

/* Encabezado */
#desk_cart-wrapper .block-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 16px 18px;
    background: #252666;
    color: #ffffff;
}

#desk_cart-wrapper .block-title .text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

#desk_cart-wrapper .block-title .items-total {
    padding: 4px 9px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 12px;
}

/* Evitar duplicar el enlace del carrito */
#desk_cart-wrapper .block-title .action.viewcart {
    display: none;
}

/* Contenido */
#desk_cart-wrapper .block-content {
    padding: 16px 18px 20px;
}

#desk_cart-wrapper .minicart-items .product-item {
    padding: 14px 0;
    border-bottom: 1px solid #edf0f4;
}

#desk_cart-wrapper .product-item-photo img {
    border-radius: 8px;
    object-fit: contain;
}

#desk_cart-wrapper .product-item-name,
#desk_cart-wrapper .product-item-name a {
    color: #252666;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

/* Resumen */
#desk_cart-wrapper .cart-total {
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid #e8eaf0;
}

/* Boton principal */
#desk_cart-wrapper #top-cart-btn-checkout {
    width: 100%;
    min-height: 44px;
    border: 1px solid #ffb700;
    border-radius: 9px;
    background: #ffb700;
    color: #252666;
    font-weight: 700;
}

/* Boton secundario */
#desk_cart-wrapper .cart-total .action.button.secondary {
    display: block;
    width: 100%;
    min-height: 42px;
    border: 1px solid #252666;
    border-radius: 9px;
    background: #ffffff;
    color: #252666;
    text-align: center;
    font-weight: 600;
}

/* Estados interactivos */
#desk_cart-wrapper #top-cart-btn-checkout:hover {
    background: #e5a600;
    border-color: #e5a600;
}

#desk_cart-wrapper .cart-total .action.button.secondary:hover {
    background: #f3f3fa;
}

/* CM Popup Desktop Width v0.2 */

@media (min-width: 769px) {

    #desk_cart-wrapper .cdz-dd-content {
        width: 420px !important;
        max-width: calc(100vw - 24px) !important;
        box-sizing: border-box;
    }

    #desk_cart-wrapper .cdz-dd-content-inner,
    #desk_cart-wrapper .block-minicart {
        width: 100% !important;
        box-sizing: border-box;
    }

    #desk_cart-wrapper .minicart-items .product-item {
        width: 100%;
        box-sizing: border-box;
    }

}

/* CM Popup Product Layout v0.3 */

@media (min-width: 769px) {

    /* Distribucion principal del producto */
    #desk_cart-wrapper .minicart-items .product-item > .product.row {
        display: flex;
        align-items: center;
        gap: 14px;
        margin: 0;
    }

    /* Fotografia */
    #desk_cart-wrapper .minicart-items .product-item-left {
        flex: 0 0 88px;
        width: 88px;
        max-width: 88px;
        padding: 0;
        float: none;
    }

    #desk_cart-wrapper .minicart-items .product-item-photo img {
        width: 88px;
        height: 88px;
        object-fit: contain;
    }

    /* Informacion del producto */
    #desk_cart-wrapper .minicart-items .product-item-details {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        padding: 0;
        float: none;
    }

    #desk_cart-wrapper .minicart-items .product-item-details > .row {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin: 0;
    }

    /* Nombre del producto */
    #desk_cart-wrapper .minicart-items .product-info {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        padding: 0;
        float: none;
    }

    #desk_cart-wrapper .minicart-items .product-item-name {
        display: block;
        overflow-wrap: break-word;
        line-height: 1.45;
    }

    /* Precio y cantidad */
    #desk_cart-wrapper .minicart-items .product-item-actions {
        flex: 0 0 90px;
        width: 90px;
        max-width: 90px;
        padding: 0;
        float: none;
    }

}

/* CM Popup Product Details v0.4 */

@media (min-width: 769px) {

    /* Nombre y acciones en filas independientes */
    #desk_cart-wrapper .minicart-items .product-item-details > .row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    #desk_cart-wrapper .minicart-items .product-info,
    #desk_cart-wrapper .minicart-items .product-item-actions {
        flex: none;
        width: 100%;
        max-width: none;
    }

    /* Nombre con todo el espacio disponible */
    #desk_cart-wrapper .minicart-items .product-item-name {
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    /* Precio y cantidad */
    #desk_cart-wrapper .minicart-items .product-item-pricing {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 12px;
    }

    #desk_cart-wrapper .minicart-items .details-qty {
        margin: 0;
    }

}

/* CM Popup Item Actions v0.5 */

@media (min-width: 769px) {

    #desk_cart-wrapper .minicart-items .product-item-left {
        display: grid !important;
        grid-template-columns: 28px 28px;
        grid-template-rows: 88px 28px;
        justify-content: center;
        justify-items: center;
        align-content: start;
        gap: 6px;
    }

    #desk_cart-wrapper .minicart-items
    .product-item-left > .product-item-photo {
        grid-column: 1 / -1;
        grid-row: 1;
        position: static !important;
        display: block !important;
        width: 88px !important;
        height: 88px !important;
        margin: 0 !important;
    }

    #desk_cart-wrapper .minicart-items
    .product-item-left > .action.delete,
    #desk_cart-wrapper .minicart-items
    .product-item-left > .action.edit {
        position: static !important;
        inset: auto !important;
        transform: none !important;
        float: none !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 28px !important;
        height: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #252666;
        color: #ffffff;
        border-radius: 5px;
    }

    #desk_cart-wrapper .minicart-items
    .product-item-left > .action.delete {
        grid-column: 1;
        grid-row: 2;
    }

    #desk_cart-wrapper .minicart-items
    .product-item-left > .action.edit {
        grid-column: 2;
        grid-row: 2;
    }

}

/* CM Popup Close Button v0.6 */

@media (min-width: 769px) {

    /* Referencia para posicionar el cierre */
    #desk_cart-wrapper .block-minicart {
        position: relative;
    }

    /* Reservar espacio para la X */
    #desk_cart-wrapper .block-title {
        padding-right: 58px;
    }

    /* Reutilizar el cierre original de Codazon */
    #desk_cart-wrapper #btn-minicart-close {
        display: flex !important;
        position: absolute !important;
        top: 11px !important;
        right: 12px !important;
        left: auto !important;
        z-index: 30;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        min-width: 34px;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 6px;
        background: transparent !important;
        color: #ffffff !important;
        opacity: 1 !important;
        visibility: visible !important;
        cursor: pointer;
    }

    #desk_cart-wrapper #btn-minicart-close span {
        font-size: 0 !important;
    }

    #desk_cart-wrapper #btn-minicart-close::before {
        content: "\00d7";
        font-family: Arial, sans-serif !important;
        font-size: 27px !important;
        font-weight: 400;
        line-height: 1;
        color: #ffffff !important;
    }

    #desk_cart-wrapper #btn-minicart-close:hover {
        background: rgba(255, 255, 255, 0.15) !important;
    }

    #desk_cart-wrapper #btn-minicart-close:focus-visible {
        outline: 2px solid #ffb700;
        outline-offset: 2px;
    }

}

/* CM Popup Desktop Alignment v0.7 */
@media (min-width: 769px) {
    #desk_cart-wrapper .block-minicart {
        left: 0 !important;
        right: auto !important;
    }
}

/* CM Popup Adaptive Product List v0.8 */
@media (min-width: 769px) {
    #desk_cart-wrapper .minicart-items-wrapper {
        height: auto !important;
        max-height: min(520px, calc(100vh - 360px)) !important;
        overflow-y: auto !important;
    }
}

/* CM Minicart Desktop v1.0 - Product Layout */
@media (min-width: 769px) {

    /* Espaciado compacto */
    #desk_cart-wrapper .block-content {
        padding-top: 8px !important;
    }

    #desk_cart-wrapper .minicart-items-wrapper {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    #desk_cart-wrapper .cart-total {
        margin-top: 6px !important;
    }

    /* Distribucion principal */
    #desk_cart-wrapper .minicart-items .product-item > .product.row {
        display: grid !important;
        grid-template-columns: 76px minmax(0, 1fr) 92px 26px;
        grid-template-rows: auto auto;
        column-gap: 8px;
        row-gap: 10px;
        align-items: start;
        margin: 0 !important;
        padding: 0 !important;
    }

    #desk_cart-wrapper .minicart-items .product-item-left,
    #desk_cart-wrapper .minicart-items .product-item-details,
    #desk_cart-wrapper .minicart-items .product-item-details > .row,
    #desk_cart-wrapper .minicart-items .product-item-actions,
    #desk_cart-wrapper .minicart-items .product-item-pricing {
        display: contents !important;
    }

    /* Imagen */
    #desk_cart-wrapper .minicart-items
    .product-item-left > .product-item-photo {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 76px !important;
        height: 76px !important;
        background: #f8f9fb;
        border-radius: 12px;
        overflow: hidden;
    }

    #desk_cart-wrapper .minicart-items .product-item-photo img {
        width: 76px !important;
        height: 76px !important;
        object-fit: contain;
    }

    /* Nombre */
    #desk_cart-wrapper .minicart-items .product-info {
        grid-column: 2;
        grid-row: 1 / 3;
        min-width: 0;
    }

    #desk_cart-wrapper .minicart-items .product-item-name {
        font-size: 13px;
        line-height: 1.4;
        font-weight: 600;
    }

    /* Precio */
    #desk_cart-wrapper .minicart-items .price-container {
        grid-column: 3 / 5;
        grid-row: 1;
        justify-self: end;
        text-align: right;
        white-space: nowrap;
    }

    #desk_cart-wrapper .minicart-items .price-container .price {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #252666;
    }

    /* Cantidad */
    #desk_cart-wrapper .minicart-items .details-qty {
        grid-column: 3;
        grid-row: 2;
        width: 92px;
        margin: 0 !important;
        justify-self: end;
    }

    #desk_cart-wrapper .minicart-items .details-qty > .label {
        display: none !important;
    }

    #desk_cart-wrapper .minicart-items .cdz-qty-box {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        width: 92px !important;
        height: 36px !important;
        border: 1px solid #cfd5e2;
        border-radius: 9px;
        background: #ffffff;
        overflow: hidden;
    }

    #desk_cart-wrapper .minicart-items .cdz-qty-box .m-btn {
        position: static !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 26px !important;
        height: 34px !important;
        flex: 0 0 26px;
        background: transparent !important;
        border: 0 !important;
        transform: none !important;
        font-size: 0 !important;
        cursor: pointer;
    }

    #desk_cart-wrapper .minicart-items .cdz-qty-box .m-btn::before {
        font-family: Arial, sans-serif !important;
        font-size: 20px !important;
        font-weight: 400;
        color: #252666;
        line-height: 1;
    }

    #desk_cart-wrapper .minicart-items .m-minus::before {
        content: "\2212" !important;
    }

    #desk_cart-wrapper .minicart-items .m-plus::before {
        content: "+" !important;
    }

    #desk_cart-wrapper .minicart-items .cdz-qty-box .m-btn::after {
        content: none !important;
    }

    #desk_cart-wrapper .minicart-items .cdz-qty-box input {
        position: static !important;
        flex: 1 1 0;
        min-width: 0;
        width: 38px !important;
        height: 34px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        text-align: center;
        font-size: 16px;
        -moz-appearance: textfield;
        appearance: textfield;
    }

    #desk_cart-wrapper .cdz-qty-box input::-webkit-inner-spin-button,
    #desk_cart-wrapper .cdz-qty-box input::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    /* Boton eliminar */
    #desk_cart-wrapper .minicart-items
    .product-item-left > .action.delete {
        grid-column: 4;
        grid-row: 2;
        display: flex !important;
        width: 26px !important;
        height: 36px !important;
        align-items: center;
        justify-content: center;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    #desk_cart-wrapper .minicart-items
    .product-item-left > .action.delete::before {
        content: "" !important;
        display: block;
        width: 22px;
        height: 22px;
        background: #252666;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6M10 10v7M14 10v7'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6M10 10v7M14 10v7'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    #desk_cart-wrapper .minicart-items
    .product-item-left > .action.delete::after {
        content: none !important;
    }

    /* Ocultar editar solamente en escritorio */
    #desk_cart-wrapper .minicart-items
    .product-item-left > .action.edit {
        display: none !important;
    }
}

/* CM Minicart Desktop v1.1 - Final Details */
@media (min-width: 769px) {

    /* Bordes redondeados */
    #desk_cart-wrapper .cdz-dd-content,
    #desk_cart-wrapper .cdz-dd-content-inner,
    #desk_cart-wrapper .block-minicart {
        border-radius: 16px !important;
    }

    /* Contenedor del resumen */
    #desk_cart-wrapper .cart-total {
        background: #ffffff !important;
        border: 0 !important;
        padding: 0 !important;
        margin-top: 12px !important;
    }

    /* Tarjeta independiente del subtotal */
    #desk_cart-wrapper .cart-total .subtotal {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 18px !important;
        margin: 0 0 18px !important;
        background: linear-gradient(120deg, #f3f5fb, #eceff7) !important;
        border: none !important;
        border-radius: 14px !important;
    }

    #desk_cart-wrapper .cart-total .subtotal .label {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #252666 !important;
        text-transform: none !important;
    }

    #desk_cart-wrapper .cart-total .subtotal .price-container {
        margin-left: auto !important;
        text-align: right;
    }

    #desk_cart-wrapper .cart-total .subtotal .price {
        font-size: 22px !important;
        font-weight: 700 !important;
        color: #252666 !important;
    }

    /* Distribucion de botones */
    #desk_cart-wrapper .cart-total .primary.layout-column {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* Boton Ir a pagar */
    #desk_cart-wrapper #top-cart-btn-checkout {
        order: 1;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 12px;
        min-height: 52px;
        border-radius: 12px !important;
        font-size: 15px;
        text-transform: none !important;
    }

    /* Boton Ver y editar carrito */
    #desk_cart-wrapper .cart-total .action.button.secondary {
        order: 2;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 12px;
        min-height: 50px;
        border: 2px solid #252666 !important;
        border-radius: 12px !important;
        font-size: 15px;
        text-transform: none !important;
    }

    /* Iconos */
    #desk_cart-wrapper #top-cart-btn-checkout::before,
    #desk_cart-wrapper .cart-total .action.button.secondary::before {
        content: "" !important;
        display: inline-block !important;
        width: 23px !important;
        height: 23px !important;
        flex: 0 0 23px;
        background: #252666 !important;
        -webkit-mask-position: center;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-size: contain;
        mask-position: center;
        mask-repeat: no-repeat;
        mask-size: contain;
    }

    /* Icono bolsa de compra */
    #desk_cart-wrapper #top-cart-btn-checkout::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h16l-1 13H5L4 8Z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3Cpath d='M12 12v5M9.5 14.5h5'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h16l-1 13H5L4 8Z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3Cpath d='M12 12v5M9.5 14.5h5'/%3E%3C/svg%3E");
    }

    /* Icono carrito */
    #desk_cart-wrapper .cart-total .action.button.secondary::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 2h3l3 14h13l3-11H5'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 2h3l3 14h13l3-11H5'/%3E%3C/svg%3E");
    }
}

/* CM Account Dropdown v1.0 */
@media (min-width: 769px) {

    .authorization-style-01 .account-wrapper.cm-account-ready .cdz-dd-content {
        width: 420px !important;
        max-width: calc(100vw - 24px) !important;
        padding: 0 !important;
        border: 1px solid #e8eaf0;
        border-radius: 18px !important;
        background: #fff;
        box-shadow: 0 16px 40px rgba(20,24,65,.18);
        overflow: hidden !important;
        box-sizing: border-box;
    }

    .authorization-style-01 .cm-account-preview {
        display: flex !important;
        flex-direction: column;
        width: 100% !important;
        max-height: calc(100vh - 110px);
        padding: 0 !important;
        box-sizing: border-box;
        border-radius: 18px !important;
        background: #fff !important;
        overflow-y: auto;
    }

    /* Encabezado */
    .cm-account-preview .cm-account-header {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 17px 20px;
        min-height: 64px;
        box-sizing: border-box;
        background: #252666;
        color: #fff;
        font-size: 19px;
        order: 0;
    }

    .cm-account-preview .cm-account-close {
        margin-left: auto;
        background: transparent;
        border: 0;
        color: #fff;
        font-size: 30px;
        line-height: 1;
        cursor: pointer;
    }

    /* Tarjeta de bienvenida */
    .cm-account-preview .account-info-summary {
        display: flex !important;
        align-items: center;
        gap: 15px;
        margin: 20px 18px 12px !important;
        padding: 18px 15px !important;
        background: #f0f2f8 !important;
        border: 0 !important;
        border-radius: 14px !important;
        order: 1;
    }

    .cm-account-preview .info-summary-top {
        flex: 0 0 68px;
        padding: 0 !important;
        margin: 0 !important;
    }

    .cm-account-preview .icon-account {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 68px !important;
        height: 68px !important;
        border-radius: 50%;
        background: #123c87 !important;
        color: #fff !important;
    }

    .cm-account-preview .icon-account::before,
    .cm-account-preview .icon-account::after {
        content: none !important;
    }

    .cm-account-preview .cm-account-avatar-svg {
        width: 42px;
        height: 42px;
    }

    .cm-account-preview .info-summary-bottom {
        flex: 1;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
    }

    .cm-account-preview .md-content {
        padding: 0 !important;
        margin: 0 !important;
    }

    .cm-account-preview .md-content .title {
        margin: 0 !important;
        line-height: 1.35;
    }

    .cm-account-preview .md-content .title a {
        font-size: 21px !important;
        font-weight: 700 !important;
        color: #252666 !important;
        text-decoration: none !important;
        text-transform: none !important;
    }

    .cm-account-preview .md-content .title::after {
        content: "Cliente registrado";
        display: block;
        margin-top: 5px;
        font-size: 14px;
        font-weight: 400;
        color: #596173;
    }

    /* Navegacion */
    .cm-account-preview .acount-menu {
        order: 2;
        margin: 5px 20px 0 !important;
        padding: 0 !important;
        background: #fff;
    }

    .cm-account-preview .account-menu-items {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none;
    }

    .cm-account-preview .account-menu-items > li {
        display: block !important;
        float: none !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid #e4e8f0;
    }

    .cm-account-preview .account-menu-items > li > a {
        display: block !important;
        position: relative;
        box-sizing: border-box;
        width: 100% !important;
        min-height: 64px;
        padding: 20px 32px 18px 55px !important;
        color: #171c3e !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        line-height: 26px;
        text-decoration: none !important;
        text-transform: none !important;
        background: transparent !important;
    }

    .cm-account-preview .account-menu-items > li > a::before,
    .cm-account-preview .account-menu-items > li > a::after {
        content: none !important;
    }

    /* Iconos */
    .cm-account-preview .account-menu-items .cm-account-icon,
    .cm-account-preview .cm-account-chevron {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 25px;
        height: 25px;
        color: #252666;
    }

    .cm-account-preview .account-menu-items .cm-account-icon {
        left: 12px;
    }

    .cm-account-preview .cm-account-chevron {
        right: 4px;
        width: 20px;
        height: 20px;
    }

    /* Contadores dinamicos */
    .cm-account-preview .account-menu-items .link.wishlist .label,
    .cm-account-preview .account-menu-items .link.compare .counter.qty {
        display: none !important;
    }

    .cm-account-preview .cm-account-count {
        display: inline-block;
        margin-left: 8px;
        padding: 0 8px;
        border-radius: 9px;
        background: #e9ecf4;
        color: #252666;
        font-size: 13px;
        line-height: 27px;
        vertical-align: middle;
    }

    /* Cerrar sesion */
    .cm-account-preview .cm-account-logout {
        order: 3;
        margin: 26px 20px 22px !important;
        padding: 0 !important;
    }

    .cm-account-preview .cm-account-logout a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 13px;
        min-height: 54px;
        width: 100%;
        box-sizing: border-box;
        border-radius: 12px;
        background: #e9ebf3 !important;
        color: #252666 !important;
        font-size: 17px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        box-shadow: none !important;
        border: 0 !important;
    }
}

/* CM Account Dropdown v1.1 - Visitantes */
@media (min-width: 769px) {

    /* Ocultar navegacion cuando no hay sesion */
    .authorization-style-01 .cm-account-guest .acount-menu {
        display: none !important;
    }

    /* Contenedor del formulario */
    .cm-account-preview.cm-account-guest .account-info-summary {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px;
        margin: 20px 18px 12px !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }

    .cm-account-guest .info-summary-top,
    .cm-account-guest .info-summary-bottom {
        flex: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Tarjeta de inicio de sesion */
    .cm-account-guest .info-summary-top {
        background: #f0f2f8 !important;
        border-radius: 14px !important;
        overflow: hidden;
    }

    .cm-account-guest .info-summary-top .block-content {
        padding: 0 !important;
        margin: 0 !important;
    }

    .cm-account-guest .info-summary-top form {
        padding: 20px 18px !important;
        margin: 0 !important;
    }

    .cm-account-guest form .fieldset {
        margin: 0 0 14px !important;
        padding: 0 !important;
    }

    .cm-account-guest form .field {
        margin-bottom: 14px !important;
    }

    /* Etiquetas */
    .cm-account-guest form .label {
        display: block;
        margin-bottom: 6px;
        color: #252666 !important;
        font-size: 13px;
        font-weight: 600;
        text-transform: none !important;
    }

    /* Correo y contrasena */
    .cm-account-guest form input[type="email"],
    .cm-account-guest form input[type="password"] {
        display: block !important;
        width: 100% !important;
        height: 44px !important;
        padding: 10px 12px !important;
        border: 1px solid #ccd2df !important;
        border-radius: 9px !important;
        background: #ffffff !important;
        box-sizing: border-box;
        font-size: 14px;
    }

    .cm-account-guest form input:focus {
        border-color: #252666 !important;
        outline: 2px solid rgba(37, 38, 102, 0.12);
    }

    /* Acciones */
    .cm-account-guest form .actions-toolbar {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px;
        margin: 0 !important;
    }

    .cm-account-guest form .actions-toolbar .primary,
    .cm-account-guest form .actions-toolbar .secondary {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        text-align: center;
    }

    /* Boton iniciar sesion */
    .cm-account-guest form button[type="submit"] {
        display: block !important;
        width: 100% !important;
        min-height: 46px !important;
        padding: 10px !important;
        border: none !important;
        border-radius: 10px !important;
        background: #252666 !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        text-transform: none !important;
        cursor: pointer;
    }

    /* Recuperar contrasena */
    .cm-account-guest form .action.remind {
        display: inline-block;
        color: #596173 !important;
        font-size: 13px !important;
        text-decoration: none !important;
        text-transform: none !important;
    }

    /* Registro de clientes */
    .cm-account-guest .info-summary-bottom {
        padding: 16px 12px !important;
        border-radius: 12px;
        background: #e9ebf3 !important;
        box-sizing: border-box;
    }

    .cm-account-guest .info-summary-bottom .md-content,
    .cm-account-guest .info-summary-bottom p {
        margin: 0 !important;
        padding: 0 !important;
        text-align: center;
    }

    .cm-account-guest .create-account-question {
        color: #596173 !important;
        font-size: 13px;
        text-transform: none !important;
    }

    .cm-account-guest .create-account-link {
        color: #252666 !important;
        font-size: 13px;
        font-weight: 700;
        text-transform: none !important;
    }
}

/* CM Wishlist Dropdown v1.2 - Compact */
@media (min-width: 769px) {

    /* Contenedor */
    .cm-wishlist-ready {
        width: 420px !important;
        max-width: calc(100vw - 24px) !important;
        border-radius: 16px !important;
        background: #fff !important;
        overflow: hidden !important;
        box-sizing: border-box;
        box-shadow: 0 16px 40px rgba(20,24,65,.18);
    }

    .cm-wishlist-ready .cdz-dd-content-inner,
    .cm-wishlist-ready .mini-list {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    /* Encabezado */
    .cm-wishlist-ready .mini-list .block-top,
    .cm-wishlist-ready .mini-list .block-title {
        background: #252666 !important;
    }

    .cm-wishlist-ready .mini-list .block-title {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 12px 14px !important;
        margin: 0 !important;
        min-height: 58px !important;
        box-sizing: border-box;
        color: #fff !important;
    }

    .cm-wishlist-ready .block-title::before,
    .cm-wishlist-ready .block-title::after {
        content: none !important;
        display: none !important;
    }

    .cm-wishlist-ready .cm-wishlist-heart {
        width: 25px;
        height: 25px;
        flex: 0 0 25px;
        color: #fff;
    }

    .cm-wishlist-ready .block-title strong {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #fff !important;
        text-transform: none !important;
        white-space: nowrap;
    }

    .cm-wishlist-ready .block-title strong + span,
    .cm-wishlist-ready .block-title .details {
        display: none !important;
    }

    .cm-wishlist-ready .block-title > span {
        color: #fff !important;
        font-size: 12px !important;
        text-transform: none !important;
        white-space: nowrap;
    }

    .cm-wishlist-ready .cm-wishlist-close {
        margin-left: auto !important;
        padding: 0 5px !important;
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 27px;
        cursor: pointer;
        flex-shrink: 0;
    }

    /* Lista compacta */
    .cm-wishlist-ready .mini-list > .block-content {
        padding: 4px 16px !important;
        max-height: min(520px, calc(100vh - 240px));
        overflow-y: auto !important;
    }

    .cm-wishlist-ready .product-items {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .cm-wishlist-ready .product-item {
        display: block !important;
        padding: 4px 0 !important;
        margin: 0 !important;
        min-height: 0 !important;
        border-bottom: 1px solid #e8eaf0;
    }

    .cm-wishlist-ready .product-item:last-child {
        border-bottom: 0;
    }

    /* Distribucion de productos */
    .cm-wishlist-ready .product-item-info {
        display: grid !important;
        grid-template-columns: 70px minmax(0,1fr) 38px 28px;
        gap: 8px !important;
        align-items: center;
        width: 100% !important;
        margin: 0 !important;
        min-height: 0 !important;
    }

    .cm-wishlist-ready .product-item-left,
    .cm-wishlist-ready .product-item-details {
        display: contents !important;
    }

    /* Imagen */
    .cm-wishlist-ready .product-item-image {
        grid-column: 1;
        grid-row: 1;
        display: block !important;
        width: 70px !important;
        height: 70px !important;
        border-radius: 11px;
        background: #f3f5fa;
        overflow: hidden;
    }

    .cm-wishlist-ready .product-item-image img {
        width: 70px !important;
        height: 70px !important;
        object-fit: contain;
    }

    /* Nombre y precio */
    .cm-wishlist-ready .product-item-details > .col-xs-14 {
        grid-column: 2;
        grid-row: 1;
        float: none !important;
        width: auto !important;
        min-width: 0;
        padding: 0 !important;
    }

    .cm-wishlist-ready .product-item-name {
        display: block !important;
        margin-bottom: 3px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        overflow: visible !important;
        max-height: none !important;
    }

    .cm-wishlist-ready .product-item-link,
    .cm-wishlist-ready .product-item-link span {
        display: block !important;
        color: #252666 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.4;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        overflow-wrap: anywhere;
        -webkit-line-clamp: unset !important;
        text-decoration: none !important;
    }

    .cm-wishlist-ready .product-item-price {
        margin: 0 !important;
        line-height: 1.2 !important;
    }

    .cm-wishlist-ready .product-item-price .price {
        font-size: 17px !important;
        font-weight: 700 !important;
        color: #ffb700 !important;
    }

    /* Agregar al carrito */
    .cm-wishlist-ready .product-item-details > .col-xs-10 {
        grid-column: 3;
        grid-row: 1;
        float: none !important;
        width: auto !important;
        padding: 0 !important;
    }

    .cm-wishlist-ready .qty-box {
        display: none !important;
    }

    .cm-wishlist-ready button.tocart {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        border: 1px solid #cdd3e2 !important;
        border-radius: 9px !important;
        background: #fff !important;
        color: #252666 !important;
        box-shadow: none !important;
    }

    /* Eliminar */
    .cm-wishlist-ready .product-item-left > .btn-remove {
        grid-column: 4;
        grid-row: 1;
        position: static !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 28px !important;
        height: 38px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: #252666 !important;
        font-size: 0 !important;
        box-shadow: none !important;
    }

    .cm-wishlist-ready .product-item-left > .btn-remove::before {
        content: "" !important;
        display: block !important;
        width: 22px !important;
        height: 22px !important;
        background: #252666 !important;
        font-family: initial !important;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6M10 10v7M14 10v7'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6M10 10v7M14 10v7'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    .cm-wishlist-ready .product-item-left > .btn-remove::after {
        content: none !important;
    }

    /* Boton inferior */
    .cm-wishlist-ready .cm-wishlist-footer {
        padding: 12px 16px 18px;
        background: #fff;
    }

    .cm-wishlist-ready .cm-wishlist-footer a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 46px;
        border: 2px solid #252666;
        border-radius: 10px;
        color: #252666;
        background: #fff;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
    }
}

/* CM Account Dropdown Compact v1.2 */
@media (min-width: 769px) {

    /* Encabezado */
    .cm-account-preview:not(.cm-account-guest) .cm-account-header {
        min-height: 56px !important;
        padding: 12px 18px !important;
        font-size: 17px !important;
    }

    /* Tarjeta de bienvenida */
    .cm-account-preview:not(.cm-account-guest) .account-info-summary {
        gap: 12px !important;
        margin: 12px 18px 8px !important;
        padding: 12px 14px !important;
    }

    .cm-account-preview:not(.cm-account-guest) .info-summary-top {
        flex: 0 0 54px !important;
    }

    .cm-account-preview:not(.cm-account-guest) .icon-account {
        width: 54px !important;
        height: 54px !important;
    }

    .cm-account-preview:not(.cm-account-guest) .cm-account-avatar-svg {
        width: 34px !important;
        height: 34px !important;
    }

    .cm-account-preview:not(.cm-account-guest) .md-content .title a {
        font-size: 18px !important;
    }

    .cm-account-preview:not(.cm-account-guest) .md-content .title::after {
        font-size: 12px !important;
        margin-top: 2px !important;
    }

    /* Navegacion compacta */
    .cm-account-preview:not(.cm-account-guest) .acount-menu {
        margin-top: 0 !important;
    }

    .cm-account-preview:not(.cm-account-guest) .account-menu-items > li > a {
        min-height: 50px !important;
        padding: 11px 30px 11px 49px !important;
        font-size: 15px !important;
        line-height: 26px !important;
    }

    .cm-account-preview:not(.cm-account-guest) .account-menu-items .cm-account-icon {
        width: 22px !important;
        height: 22px !important;
        left: 12px !important;
    }

    .cm-account-preview:not(.cm-account-guest) .cm-account-chevron {
        width: 18px !important;
        height: 18px !important;
    }

    .cm-account-preview:not(.cm-account-guest) .cm-account-count {
        font-size: 12px !important;
        line-height: 23px !important;
        padding: 0 7px !important;
    }

    /* Cerrar sesion */
    .cm-account-preview:not(.cm-account-guest) .cm-account-logout {
        margin: 14px 20px 16px !important;
    }

    .cm-account-preview:not(.cm-account-guest) .cm-account-logout a {
        min-height: 46px !important;
        font-size: 15px !important;
    }
}

/* CM Minicart Desktop Compact v1.2 */
@media (min-width: 769px) {

    /* Lista de productos */
    #desk_cart-wrapper .minicart-items-wrapper {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    #desk_cart-wrapper .minicart-items .product-item {
        padding: 6px 0 !important;
        margin: 0 !important;
    }

    /* Distribucion compacta */
    #desk_cart-wrapper .minicart-items .product-item > .product.row {
        grid-template-columns: 64px minmax(0,1fr) 92px 28px !important;
        column-gap: 8px !important;
        row-gap: 4px !important;
        align-items: center !important;
    }

    /* Fotografias */
    #desk_cart-wrapper .minicart-items
    .product-item-left > .product-item-photo {
        width: 64px !important;
        height: 64px !important;
        border-radius: 10px !important;
    }

    #desk_cart-wrapper .minicart-items .product-item-photo img {
        width: 64px !important;
        height: 64px !important;
        object-fit: contain;
    }

    /* Nombre y precio */
    #desk_cart-wrapper .minicart-items .product-item-name {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    #desk_cart-wrapper .minicart-items .price-container .price {
        font-size: 16px !important;
    }

    /* Cantidad horizontal */
    #desk_cart-wrapper .minicart-items .details-qty {
        width: 92px !important;
    }

    #desk_cart-wrapper .minicart-items .cdz-qty-box {
        width: 92px !important;
        height: 32px !important;
    }

    #desk_cart-wrapper .minicart-items .cdz-qty-box .m-btn {
        height: 30px !important;
    }

    #desk_cart-wrapper .minicart-items .cdz-qty-box input {
        height: 30px !important;
        font-size: 14px !important;
    }

    /* Papelera */
    #desk_cart-wrapper .minicart-items
    .product-item-left > .action.delete {
        width: 28px !important;
        height: 32px !important;
    }

    /* Subtotal */
    #desk_cart-wrapper .cart-total {
        margin-top: 8px !important;
    }

    #desk_cart-wrapper .cart-total .subtotal {
        padding: 14px !important;
        margin-bottom: 12px !important;
    }

    #desk_cart-wrapper .cart-total .subtotal .price {
        font-size: 20px !important;
    }

    /* Botones inferiores */
    #desk_cart-wrapper .cart-total .primary.layout-column {
        gap: 8px !important;
    }

    #desk_cart-wrapper #top-cart-btn-checkout {
        min-height: 46px !important;
    }

    #desk_cart-wrapper .cart-total .action.button.secondary {
        min-height: 44px !important;
    }

    #desk_cart-wrapper .block-content {
        padding-bottom: 12px !important;
    }
}

/* CM Minicart Mobile v1.0 - Header y productos */
@media (max-width: 768px) {

    /* Encabezado azul */
    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .block-minicart .block-title {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        min-height: 54px !important;
        margin: -10px -10px 10px !important;
        padding: 10px 16px !important;
        background: #252666 !important;
        border-radius: 14px 14px 0 0 !important;
        box-sizing: border-box !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .block-title .text {
        color: #fff !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .block-title .items-total {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        margin: 0 !important;
        padding: 5px 10px !important;
        border-radius: 20px !important;
        background: rgba(255,255,255,.16) !important;
        color: #fff !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .block-title .items-total * {
        color: #fff !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .block-title .action.viewcart {
        display: none !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .cm-mobile-close {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: auto !important;
        padding: 0 !important;
        width: 32px !important;
        height: 32px !important;
        border: 0 !important;
        background: transparent !important;
        color: #fff !important;
        font-size: 29px !important;
        line-height: 1 !important;
        cursor: pointer !important;
    }

    /* Listado con altura dinamica desde JS */
    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .minicart-items-wrapper {
        height: auto !important;
        max-height: min(360px, calc(100dvh - 320px)) !important;
        padding: 6px 10px !important;
        overflow-y: auto !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .minicart-items .product-item {
        padding: 7px 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid #e9edf4 !important;
    }

    /* Fotografia izquierda, detalles derecha */
    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .minicart-items
    .product-item > .product.row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        min-height: 66px !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .minicart-items
    .product.row > .product-item-left {
        flex: 0 0 58px !important;
        width: 58px !important;
        max-width: 58px !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        position: static !important;
        transform: none !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .product-item-photo {
        display: block !important;
        width: 58px !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .product-item-photo img {
        width: 58px !important;
        height: 64px !important;
        object-fit: contain !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .minicart-items
    .product.row > .product-item-details {
        flex: 1 1 0% !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        position: static !important;
        transform: none !important;
    }

    /* Nombre y precio */
    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .product-item-details > .row {
        display: grid !important;
        grid-template-columns: minmax(0,1fr) 116px !important;
        gap: 6px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .product-item-details
    > .row > .product-info {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        position: static !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .product-item-details
    > .row > .product-item-actions {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 116px !important;
        max-width: 116px !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        position: static !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .product-item-name {
        font-size: 12px !important;
        line-height: 1.3 !important;
        overflow-wrap: anywhere !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .product-item-pricing {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 5px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .price-container {
        align-self: flex-end !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .price-container .price {
        font-size: 15px !important;
        font-weight: 700 !important;
    }

    /* Controles horizontales */
    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .details-qty {
        display: flex !important;
        justify-content: flex-start !important;
        width: 90px !important;
        height: 32px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .cdz-qty-box {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 90px !important;
        height: 32px !important;
        border: 1px solid #d3dbee !important;
        border-radius: 9px !important;
        background: #fff !important;
        overflow: hidden !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .cdz-qty-box > * {
        position: relative !important;
        float: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 30px !important;
        min-height: 30px !important;
        box-shadow: none !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .cdz-qty-box .m-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 30px !important;
        min-width: 30px !important;
        border: 0 !important;
        background: transparent !important;
        color: #252666 !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .cdz-qty-box input {
        flex: 1 1 auto !important;
        width: 30px !important;
        min-width: 0 !important;
        border: 0 !important;
        text-align: center !important;
        font-size: 14px !important;
        color: #252666 !important;
    }

    /* Papelera */
    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .action.edit {
        display: none !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .minicart-items
    .product-item .action.delete {
        position: absolute !important;
        top: 34px !important;
        right: 0 !important;
        bottom: auto !important;
        left: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 26px !important;
        height: 30px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 8px !important;
        background-color: #f1f3f9 !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23252666' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 10v7'/%3E%3Cpath d='M14 10v7'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 18px 18px !important;
        font-size: 0 !important;
        color: transparent !important;
        cursor: pointer !important;
        z-index: 3 !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .minicart-items
    .product-item .action.delete::before,
    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .minicart-items
    .product-item .action.delete::after,
    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .minicart-items
    .product-item .action.delete > * {
        display: none !important;
        content: none !important;
    }
}

/* CM Minicart Mobile v1.0 - Subtotal y botones */
@media (max-width: 768px) {

    /* Contenedor inferior */
    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .cart-total {
        background: #fff !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 6px 8px 9px !important;
        margin: 0 !important;
    }

    /* Tarjeta subtotal */
    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .cart-total .subtotal {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        background: #eef0f9 !important;
        border-radius: 14px !important;
        padding: 12px 13px !important;
        margin: 0 0 9px !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .cart-total .subtotal .label,
    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .cart-total .subtotal strong {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #252666 !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .cart-total .subtotal .price {
        font-size: 19px !important;
        font-weight: 700 !important;
        color: #252666 !important;
        white-space: nowrap !important;
    }

    /* Distribucion de botones */
    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .cart-total .actions,
    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .cart-total .primary.layout-column {
        background: transparent !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .cart-total .primary.layout-column {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    /* Boton amarillo: Ir a pagar */
    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) #top-cart-btn-checkout {
        order: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
        min-height: 44px !important;
        padding: 9px 14px !important;
        background: #ffb700 !important;
        border: 0 !important;
        border-radius: 11px !important;
        color: #252666 !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        text-transform: none !important;
        box-shadow: none !important;
    }

    /* Boton secundario: Ver y editar carrito */
    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .cart-total .action.button.secondary {
        order: 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
        min-height: 42px !important;
        padding: 9px 14px !important;
        background: #fff !important;
        border: 2px solid #252666 !important;
        border-radius: 11px !important;
        color: #252666 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-transform: none !important;
        box-shadow: none !important;
    }

    /* El cierre se controla desde la X del encabezado */
    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) #btn-minicart-close {
        display: none !important;
    }

    /* Iconos de ambos botones */
    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) #top-cart-btn-checkout::before,
    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .cart-total .action.button.secondary::before {
        content: "" !important;
        display: inline-block !important;
        flex: 0 0 20px !important;
        width: 20px !important;
        height: 20px !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;
        font-family: initial !important;
    }

    /* Bolsa de compra */
    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) #top-cart-btn-checkout::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23252666' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h16l-1 13H5L4 8Z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3Cpath d='M12 11v6M9 14h6'/%3E%3C/svg%3E") !important;
    }

    /* Carrito */
    :is(#mobi_cart-wrapper, #mb-bottom-toolbar) .cart-total .action.button.secondary::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23252666' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.5 14h12l3-10H6'/%3E%3C/svg%3E") !important;
    }
}

/* CM Mobile Confirm v1.0 */
@media (max-width: 768px) {

    /* Ventana centrada */
    .modal-popup.confirm._show {
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100dvh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 16px !important;
        box-sizing: border-box !important;
    }

    /* Contenedor compacto */
    .modal-popup.confirm .modal-inner-wrap {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 380px !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100dvh - 32px) !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        background: #fff !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 12px 35px rgba(0,0,0,.18) !important;
    }

    /* Encabezado */
    .modal-popup.confirm .modal-header {
        position: relative !important;
        width: 100% !important;
        min-height: 42px !important;
        height: auto !important;
        padding: 10px 16px !important;
        box-sizing: border-box !important;
    }

    /* Boton X */
    .modal-popup.confirm .modal-header .action-close {
        top: 8px !important;
        right: 10px !important;
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 9px !important;
        background: #f1f3f9 !important;
        box-shadow: none !important;
    }

    .modal-popup.confirm .modal-header .action-close::before {
        color: #252666 !important;
        font-size: 20px !important;
        line-height: 32px !important;
    }

    /* Mensaje */
    .modal-popup.confirm .modal-content {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 10px 20px 18px !important;
        box-sizing: border-box !important;
        flex: 0 1 auto !important;
        overflow-y: auto !important;
        color: #252666 !important;
        font-size: 15px !important;
        line-height: 1.5 !important;
    }

    /* Botones */
    .modal-popup.confirm .modal-footer {
        position: static !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 10px !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 8px 20px 20px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        background: #fff !important;
    }

    .modal-popup.confirm .modal-footer button {
        float: none !important;
        margin: 0 !important;
        min-height: 44px !important;
        padding: 10px 18px !important;
        border-radius: 9px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    /* Cancelar */
    .modal-popup.confirm .modal-footer .action-secondary {
        background: #fff !important;
        border: 1px solid #252666 !important;
        color: #252666 !important;
    }

    /* Confirmar */
    .modal-popup.confirm .modal-footer .action-primary {
        background: #252666 !important;
        border: 1px solid #252666 !important;
        color: #fff !important;
    }
}

/* CM Mobile - Ocultar acceso superior al carrito */
@media (max-width: 768px) {
    #mobi_cart-wrapper {
        display: none !important;
    }
}

/* CM Header Desktop v1.0 - Logotipo y buscador */
@media (min-width: 769px) {

    /* Distribucion del encabezado */
    .header-panel-left {
        width: 25% !important;
        max-width: 25% !important;
        flex: 0 0 25% !important;
        box-sizing: border-box !important;
    }

    .header-panel-center {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
        box-sizing: border-box !important;
    }

    .header-panel-right {
        width: 25% !important;
        max-width: 25% !important;
        flex: 0 0 25% !important;
        box-sizing: border-box !important;
    }

    /* Logotipo compacto */
    .header-panel-left .logo {
        width: calc(100% - 20px) !important;
        max-width: 320px !important;
    }

    .header-panel-left .logo img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Buscador */
    .header-panel-center .block-search {
        height: 56px !important;
        background: #f3f5f9 !important;
        border: 1px solid #dbe3ef !important;
        border-radius: 30px !important;
        box-sizing: border-box !important;
    }

    .header-panel-center #search_mini_form {
        position: relative !important;
        height: 100% !important;
    }

    .header-panel-center #search {
        height: 54px !important;
        padding: 0 68px 0 22px !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 30px !important;
    }

    /* Boton de busqueda */
    .header-panel-center #search_mini_form .actions {
        position: absolute !important;
        top: 4px !important;
        right: 4px !important;
        left: auto !important;
        width: 46px !important;
        height: 46px !important;
    }

    .header-panel-center .action.search {
        position: static !important;
        width: 46px !important;
        height: 46px !important;
        border-radius: 50% !important;
        background: #129fd6 !important;
    }
}

/* CM Header Desktop v1.0 - Barra azul */
@media (min-width: 769px) {

    /* Distribucion general */
    .menu-area {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        min-height: 60px !important;
    }

    .menu-area > .header-vertical-menu-wrap {
        display: none !important;
    }

    /* Cuatro enlaces centrados */
    .menu-area > .header-menu-wrap {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: max-content !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        z-index: 2 !important;
    }

    .menu-area .cdz-navigation,
    .menu-area .groupmenu {
        width: max-content !important;
    }

    .menu-area .groupmenu {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .menu-area .groupmenu > li > .menu-link {
        font-size: 15px !important;
        font-weight: 600 !important;
        text-transform: none !important;
        white-space: nowrap !important;
    }

    /* Cotizador y telefono */
    .menu-area > .header-phone {
        position: relative !important;
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        margin-left: auto !important;
        padding: 0 12px 0 0 !important;
        float: none !important;
        z-index: 1 !important;
        box-sizing: border-box !important;
    }

    .menu-area > .header-phone > div {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
    }

    .menu-area .header-phone .telephone {
        margin: 0 !important;
        text-align: left !important;
        white-space: nowrap !important;
    }

    /* Nuevo boton Cotizador */
    .menu-area .header-phone
    a[href*="cotizador.casamarcus.com"] {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
        min-height: 42px !important;
        padding: 0 12px !important;
        border: 0 !important;
        border-radius: 9px !important;
        background: #ffb700 !important;
        color: #252666 !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
    }

    .menu-area .header-phone
    a[href*="cotizador.casamarcus.com"] img {
        display: none !important;
    }

    .menu-area .header-phone
    a[href*="cotizador.casamarcus.com"]::before {
        content: "" !important;
        display: block !important;
        width: 22px !important;
        height: 22px !important;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23252666' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='18' rx='2'/%3E%3Crect x='9' y='2' width='6' height='4' rx='1'/%3E%3Cpath d='m8 12 2 2 4-4M8 18h8'/%3E%3C/svg%3E") center / contain no-repeat !important;
    }

    .menu-area .header-phone
    a[href*="cotizador.casamarcus.com"]::after {
        content: "Cotizador" !important;
    }
}

/* CM Mobile Search v1.0 - Casa Marcus */
@media (max-width: 768px) {

    /* Contenedor exterior */
    .block-search {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    /* Formulario redondeado */
    #search_mini_form {
        position: relative !important;
        width: 100% !important;
        height: 56px !important;
        background: #f3f5f9 !important;
        border: 1px solid #dbe3ef !important;
        border-radius: 30px !important;
        box-sizing: border-box !important;
        box-shadow: none !important;
    }

    /* Campo de busqueda y alineacion vertical */
    #search_mini_form #search {
        width: 100% !important;
        height: 54px !important;
        padding: 0 65px 0 18px !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 30px !important;
        box-shadow: none !important;
        font-size: 13px !important;
        text-transform: none !important;
        transform: translateY(-10px) !important;
    }

    /* Placeholder */
    #search_mini_form #search::placeholder {
        color: #667085 !important;
        opacity: 1 !important;
        text-transform: none !important;
    }

    /* Posicion del boton */
    #search_mini_form .actions {
        position: absolute !important;
        top: 5px !important;
        right: 5px !important;
        left: auto !important;
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
        z-index: 2 !important;
    }

    /* Boton turquesa */
    #search_mini_form .action.search {
        position: static !important;
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        background: #129fd6 !important;
        color: #ffffff !important;
        border: 0 !important;
        border-radius: 50% !important;
        box-shadow: none !important;
    }

    #search_mini_form .action.search::before {
        color: #ffffff !important;
    }
}

/* CM Mobile Quote v1.0 - Casa Marcus */

/* Oculto fuera de la version movil */
#cm-mobile-quote-v1 {
    display: none !important;
}

@media (max-width: 768px) {

    /* Contenedor del encabezado */
    #header-middle .header-panel-left {
        position: relative !important;
    }

    /* Boton Cotizar */
    #cm-mobile-quote-v1 {
        position: absolute !important;
        top: 50% !important;
        right: -10px !important;
        transform: translateY(-50%) !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;

        width: auto !important;
        height: 36px !important;
        padding: 0 9px !important;
        margin: 0 !important;

        background: #ffb700 !important;
        color: #252666 !important;
        border: 0 !important;
        border-radius: 9px !important;

        font-size: 12px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        z-index: 10 !important;
    }

    #cm-mobile-quote-v1 svg {
        flex-shrink: 0 !important;
    }
}

/* Pantallas muy estrechas */
@media (max-width: 360px) {

    #cm-mobile-quote-v1 span {
        display: none !important;
    }

    #cm-mobile-quote-v1 {
        width: 38px !important;
        padding: 0 !important;
    }
}

/* CM Mobile Header v1.1 - Ajustes aprobados */
@media (max-width: 768px) {

    /* Logotipo */
    #header-middle .header-panel-left .logo img {
        transform: scale(1.18) !important;
        transform-origin: center center !important;
    }

    /* Buscador compacto y equilibrado */
    #search_mini_form {
        height: 50px !important;
        margin-top: 4px !important;
        margin-bottom: 14px !important;
        top: -8px !important;
    }

    #search_mini_form #search {
        height: 48px !important;
    }

    /* Boton turquesa */
    #search_mini_form .actions {
        top: 5px !important;
        right: 5px !important;
        width: 40px !important;
        height: 40px !important;
    }

    #search_mini_form .action.search {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 360px) {
    #header-middle .header-panel-left .logo img {
        transform: scale(1.08) !important;
    }
}

/* CM Header Responsive v1.0 */
@media (min-width: 769px) and (max-width: 1159px) {
    .menu-area .header-phone .telephone {
        display: none !important;
    }
}

/* CM-AUTH-MODAL-RESPONSIVE-V1 */
/* Casa Marcus - Acceso de clientes, escritorio y movil */

.modal-popup.popup-authentication .modal-inner-wrap {
    width: min(860px, calc(100vw - 40px)) !important;
    max-width: 860px !important;
    max-height: calc(100dvh - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 55px rgba(17,24,55,.2) !important;
}

.modal-popup.popup-authentication .modal-content {
    padding: 26px !important;
    border: 0 !important;
}

.modal-popup.popup-authentication .modal-content::before {
    content: "Bienvenido a Casa Marcus";
    display: block;
    margin: 0 0 22px;
    padding: 0 40px 16px 0;
    border-bottom: 1px solid #edf0f5;
    color: #252666;
    font-size: 23px;
    line-height: 1.3;
    font-weight: 700;
}

.modal-popup.popup-authentication .block-authentication {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
    align-items: stretch !important;
    width: 100% !important;
    margin: 0 !important;
}

.modal-popup.popup-authentication .block-authentication::before,
.modal-popup.popup-authentication .block-authentication::after,
.modal-popup.popup-authentication .block-customer-login::before,
.modal-popup.popup-authentication .block-customer-login::after,
.modal-popup.popup-authentication .block-new-customer::before,
.modal-popup.popup-authentication .block-new-customer::after {
    content: none !important;
    display: none !important;
}

.modal-popup.popup-authentication .block-authentication > .block {
    display: flex !important;
    flex-direction: column !important;
    float: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 22px !important;
    border: 1px solid #e7eaf2 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.modal-popup.popup-authentication .block-customer-login {
    grid-column: 1 !important;
    grid-row: 1 !important;
    background: #fff !important;
}

.modal-popup.popup-authentication .block-new-customer {
    grid-column: 2 !important;
    grid-row: 1 !important;
    background: #f7f8fc !important;
}

.modal-popup.popup-authentication .block-title {
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: 0 !important;
}

.modal-popup.popup-authentication .block-title strong {
    color: #252666 !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

.modal-popup.popup-authentication .block-content {
    width: 100% !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.modal-popup.popup-authentication .fieldset {
    margin: 0 0 10px !important;
}

.modal-popup.popup-authentication .field {
    margin-bottom: 15px !important;
}

.modal-popup.popup-authentication input.input-text {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 44px !important;
    padding: 10px 12px !important;
    border: 1px solid #d9deea !important;
    border-radius: 8px !important;
    background: #fff !important;
    font-size: 14px !important;
}

.modal-popup.popup-authentication input.input-text:focus {
    border-color: #252666 !important;
    box-shadow: 0 0 0 2px rgba(37,38,102,.10) !important;
}

.modal-popup.popup-authentication .actions-toolbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
    margin-top: 22px !important;
}

.modal-popup.popup-authentication .actions-toolbar > .primary {
    order: 1 !important;
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.modal-popup.popup-authentication .actions-toolbar .action.primary,
.modal-popup.popup-authentication .block-customer-login .action.action-login {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 11px 16px !important;
    background: #252666 !important;
    border: 1px solid #252666 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.modal-popup.popup-authentication .actions-toolbar .action.primary:hover,
.modal-popup.popup-authentication .block-customer-login .action.action-login:hover {
    background: #35378c !important;
    border-color: #35378c !important;
}

.modal-popup.popup-authentication .actions-toolbar > .secondary {
    order: 2 !important;
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
}

.modal-popup.popup-authentication .actions-toolbar .secondary a {
    color: #252666 !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

/* Boton de cierre */

.modal-popup.popup-authentication .modal-header {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    left: auto !important;
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 40 !important;
}

.modal-popup.popup-authentication .modal-header .action-close {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f0f2f8 !important;
    border: 1px solid #dfe3ee !important;
    border-radius: 8px !important;
    color: #252666 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-popup.popup-authentication .action-close::before {
    color: #252666 !important;
    opacity: 1 !important;
}

/* Movil: una columna y ventana centrada */

@media (max-width: 768px) {
    .modal-popup.popup-authentication.modal-slide._show {
        position: fixed !important;
        inset: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 12px !important;
        overflow: hidden !important;
        z-index: 10050 !important;
    }

    .modal-popup.popup-authentication.modal-slide .modal-inner-wrap {
        position: relative !important;
        inset: auto !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 0 1 auto !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 420px !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100dvh - 24px) !important;
        margin: 0 auto !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        transform: none !important;
        border-radius: 14px !important;
    }

    .modal-popup.popup-authentication .modal-content {
        flex: 0 1 auto !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 17px !important;
        overflow: visible !important;
    }

    .modal-popup.popup-authentication .modal-content::before {
        margin-bottom: 14px !important;
        padding-right: 40px !important;
        font-size: 18px !important;
        line-height: 1.35 !important;
    }

    .modal-popup.popup-authentication .block-authentication {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .modal-popup.popup-authentication .block-authentication > .block {
        width: 100% !important;
        height: auto !important;
        padding: 16px !important;
        margin: 0 !important;
    }

    .modal-popup.popup-authentication .block-customer-login {
        order: 1 !important;
    }

    .modal-popup.popup-authentication .block-new-customer {
        order: 2 !important;
    }

    .modal-popup.popup-authentication .block-title strong {
        font-size: 16px !important;
    }

    .modal-popup.popup-authentication .actions-toolbar {
        margin-top: 16px !important;
    }

    .modal-popup.popup-authentication .modal-header {
        top: 10px !important;
        right: 10px !important;
    }
}



/* ==================================================
   CM-MINICART-REMOVE-CONFIRM-V1
   Casa Marcus - Confirmacion eliminar producto
   Desktop + Mobile
================================================== */

.modal-popup.confirm.cm-minicart-remove-confirm._show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Ventana */

.modal-popup.confirm.cm-minicart-remove-confirm
.modal-inner-wrap {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 440px !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: calc(100dvh - 40px) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 18px 55px rgba(20,25,60,.20) !important;
}

/* Encabezado */

.modal-popup.confirm.cm-minicart-remove-confirm
.modal-header {
    position: relative !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 24px 24px 8px !important;
    box-sizing: border-box !important;
}

/* Titulo e icono */

.modal-popup.confirm.cm-minicart-remove-confirm
.modal-title {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding-right: 30px !important;
    border: 0 !important;
    color: #252666 !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.modal-popup.confirm.cm-minicart-remove-confirm
.modal-title::before {
    content: "" !important;
    display: block !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background: #fff0f1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c6283e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M5 6l1 14h12l1-14M10 10v6M14 10v6'/%3E%3C/svg%3E")
        center / 23px 23px no-repeat !important;
}

/* Boton cerrar */

.modal-popup.confirm.cm-minicart-remove-confirm
.modal-header .action-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: #f3f4f8 !important;
    box-shadow: none !important;
}

.modal-popup.confirm.cm-minicart-remove-confirm
.modal-header .action-close::before {
    color: #252666 !important;
    font-size: 18px !important;
    line-height: 34px !important;
}

/* Mensaje */

.modal-popup.confirm.cm-minicart-remove-confirm
.modal-content {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 12px 24px 20px !important;
    box-sizing: border-box !important;
    color: #626b7c !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    text-align: left !important;
    overflow-y: auto !important;
}

/* Botones */

.modal-popup.confirm.cm-minicart-remove-confirm
.modal-footer {
    position: static !important;
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 24px 24px !important;
    box-sizing: border-box !important;
    background: #fff !important;
}

.modal-popup.confirm.cm-minicart-remove-confirm
.modal-footer button {
    float: none !important;
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 10px 8px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    box-shadow: none !important;
}

/* Cancelar */

.modal-popup.confirm.cm-minicart-remove-confirm
.modal-footer .action-secondary {
    background: #fff !important;
    border: 1px solid #dce0e9 !important;
    color: #252666 !important;
}

/* Eliminar producto */

.modal-popup.confirm.cm-minicart-remove-confirm
.modal-footer .action-primary {
    background: #c6283e !important;
    border: 1px solid #c6283e !important;
    color: #fff !important;
}

.modal-popup.confirm.cm-minicart-remove-confirm
.modal-footer .action-primary:hover {
    background: #a91f32 !important;
    border-color: #a91f32 !important;
}

/* Accesibilidad */

.modal-popup.confirm.cm-minicart-remove-confirm
button:focus-visible {
    outline: 2px solid #252666 !important;
    outline-offset: 3px !important;
}

/* Mobile */

@media (max-width: 600px) {

    .modal-popup.confirm.cm-minicart-remove-confirm
    .modal-header {
        padding: 20px 18px 8px !important;
    }

    .modal-popup.confirm.cm-minicart-remove-confirm
    .modal-title {
        font-size: 17px !important;
    }

    .modal-popup.confirm.cm-minicart-remove-confirm
    .modal-content {
        padding: 12px 18px 18px !important;
    }

    .modal-popup.confirm.cm-minicart-remove-confirm
    .modal-footer {
        padding: 0 18px 20px !important;
        gap: 10px !important;
    }
}
