/* =========================================================
   PAESE - MINI CART LATERAL
   ========================================================= */


/* ---------------------------------------------------------
   PANEL PRINCIPAL
   --------------------------------------------------------- */

.elementor-menu-cart__main {
    background: #fff;
    width: 420px;
    max-width: 100%;
    padding: 0;
}


/* ---------------------------------------------------------
   CABECERA
   --------------------------------------------------------- */

.elementor-menu-cart__main::before {
    content: "Carro de la compra";
    display: block;
    padding: 25px 30px;
    border-bottom: 1px solid #e8e8e8;

    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}


/* Botón cerrar */

.elementor-menu-cart__close-button {
    position: absolute;
    top: 24px;
    right: 25px;

    width: 18px;
    height: 18px;

    cursor: pointer;
    z-index: 10;
}


/* Crear X */

.elementor-menu-cart__close-button::before,
.elementor-menu-cart__close-button::after {
    content: "";
    position: absolute;

    top: 8px;
    left: 0;

    width: 18px;
    height: 1px;

    background: #222;
}

.elementor-menu-cart__close-button::before {
    transform: rotate(45deg);
}

.elementor-menu-cart__close-button::after {
    transform: rotate(-45deg);
}


/* ---------------------------------------------------------
   CONTENIDO
   --------------------------------------------------------- */

.elementor-menu-cart__main .widget_shopping_cart_content {
    padding: 0 30px 30px;
}


/* ---------------------------------------------------------
   PRODUCTOS
   --------------------------------------------------------- */

.elementor-menu-cart__products {
    padding: 25px 0 0;
}


/* Producto */

.elementor-menu-cart__product {
    position: relative;

    display: grid;

    grid-template-columns: 85px 1fr 25px;
    grid-template-rows: auto auto;

    column-gap: 15px;

    padding: 0 0 25px;
    margin-bottom: 25px;

    border-bottom: 1px solid #eeeeee;
}


/* ---------------------------------------------------------
   IMAGEN
   --------------------------------------------------------- */

.elementor-menu-cart__product-image {
    grid-column: 1;
    grid-row: 1 / span 2;

    width: 85px;
    height: 85px;

    overflow: hidden;
}

.elementor-menu-cart__product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* ---------------------------------------------------------
   NOMBRE
   --------------------------------------------------------- */

.elementor-menu-cart__product-name {
    grid-column: 2;
    grid-row: 1;

    padding: 0;
    margin: 0;

    font-size: 14px;
    line-height: 1.4;
}

.elementor-menu-cart__product-name a {
    color: #222;
    text-decoration: none;
}

.elementor-menu-cart__product-name a:hover {
    color: #222;
}


/* ---------------------------------------------------------
   PRECIO
   --------------------------------------------------------- */

.elementor-menu-cart__product-price {
    grid-column: 2;
    grid-row: 2;

    align-self: end;

    margin-top: 8px;
}

.elementor-menu-cart__product-price .quantity {
    font-size: 13px;
    color: #666;
}

.elementor-menu-cart__product-price .product-quantity {
    margin-right: 4px;
    color: #666;
}

.elementor-menu-cart__product-price .woocommerce-Price-amount {
    font-size: 14px;
    font-weight: 500;
    color: #222;
}


/* ---------------------------------------------------------
   ELIMINAR PRODUCTO
   --------------------------------------------------------- */

.elementor-menu-cart__product-remove {
    grid-column: 3;
    grid-row: 1;

    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}


/*
 * Elementor genera dos enlaces de eliminar.
 *
 * Dejamos visible únicamente el primero.
 */

.elementor-menu-cart__product-remove
.remove_from_cart_button {
    display: none;
}

.elementor-menu-cart__product-remove
.elementor_remove_from_cart_button {
    display: block;

    position: relative;

    width: 16px;
    height: 18px;

    font-size: 0;
    text-decoration: none;
}


/* Icono papelera */

.elementor-menu-cart__product-remove
.elementor_remove_from_cart_button::before {
    content: "×";

    display: block;

    width: 16px;
    height: 16px;

    font-size: 20px;
    line-height: 14px;

    font-weight: 300;

    color: #222;

    text-align: center;
}


/* ---------------------------------------------------------
   SUBTOTAL
   --------------------------------------------------------- */

.elementor-menu-cart__subtotal {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 5px 0 25px;

    border-top: 0;

    font-size: 14px;
}

.elementor-menu-cart__subtotal strong {
    font-weight: 600;
}

.elementor-menu-cart__subtotal
.woocommerce-Price-amount {
    font-weight: 600;
    color: #222;
}


/* ---------------------------------------------------------
   BOTONES
   --------------------------------------------------------- */

.elementor-menu-cart__footer-buttons {
    display: flex;

    gap: 10px;

    padding: 0;
}


/* Ambos botones */

.elementor-menu-cart__footer-buttons
.elementor-button {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 12px 15px;

    border: 1px solid #222;
    border-radius: 0;

    background: #fff;

    color: #222;

    font-size: 13px;
    font-weight: 500;

    text-decoration: none;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease;
}


/* Hover */

.elementor-menu-cart__footer-buttons
.elementor-button:hover {
    background: #222;
    border-color: #222;
    color: #fff;
}


/* ---------------------------------------------------------
   BOTÓN FINALIZAR COMPRA
   --------------------------------------------------------- */

.elementor-menu-cart__footer-buttons
.elementor-button--checkout {
    background: #222;
    border-color: #222;
    color: #fff;
}

.elementor-menu-cart__footer-buttons
.elementor-button--checkout:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 480px) {

    .elementor-menu-cart__main {
        width: 100%;
    }

    .elementor-menu-cart__main
    .widget_shopping_cart_content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .elementor-menu-cart__main::before {
        padding-left: 20px;
        padding-right: 20px;
    }

    .elementor-menu-cart__product {
        grid-template-columns: 75px 1fr 20px;
        column-gap: 12px;
    }

    .elementor-menu-cart__product-image {
        width: 75px;
        height: 75px;
    }

}