#cart {
    width: 100%;
    height: auto;
    display: flex;
    gap: 24px;
    flex-direction: column;
}

#cart .cart-title h1.h4 {
    width: 100%;
    height: auto;
    font-weight: var(--zg-font-weight-bold);
    font-size: var(--zg-font-size-h2);
    line-height: 20px;
    color: var(--zg-color-text-primary);
    padding: 20px;
    margin: 0;
}

#cart .cart-grid {
    width: 100%;
    padding: 20px;
}

#cart .cart-grid-body {
    display: flex;
    gap: 24px;
    width: 100%;
    height: auto;
}

#cart-product-header {
    display: flex;
    padding: 8px 10px;
    gap: 20px;
    font-weight: var(--zg-font-weight-bold);
    border: 1px solid var(--zg-color-secondary);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    width: 100%;
    height: auto;
    color: var(--zg-color-text-primary);
    font-size: var(--zg-font-size-body-large);
}

#cart-product-header .cart-product {
    width: 50%;
    height: auto;
}

#cart-product-header .price-quantity {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 30%;
    height: auto;
}

#cart-product-header .cart-total-info {
    width: 20%;
    height: auto;
    text-align: center;
}

.product-info {
    width: 100%;
}

.product-info-cart {
    width: 100%;
    height: auto;
    display: flex;
    gap: 40px;
}

.product-line-info {
    width: 40%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-line-info-attr span {
    color: var(--zg-color-text-primary);
    font-size: var(--zg-font-size-body-small);
}

a[data-toggle="modal"] {
    color: var(--zg-color-text-primary);
    font-size: var(--zg-font-size-body-small);
}

a[data-toggle="modal"]:hover {
    color: var(--zg-color-hover-primary);
    text-decoration: none;
}

#cart .cart-overview {
    width: 100%;
    max-height: 550px;
    overflow-x: hidden;
    padding: 0;
}

.cart-product-shopping {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.cart-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    flex: 3;
}

.cart-items {
    padding: 0px;
}

ul.cart-items li.cart-item {
    width: 100%;
    height: auto;
    padding: 16px 24px;
    border-left: 1px solid var(--zg-color-secondary);
    border-right: 1px solid var(--zg-color-secondary);
    border-bottom: 1px solid var(--zg-color-secondary);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-line-name {
    width: 100%;
    height: auto;
    font-weight: var(--zg-font-weight-bold);
    font-size: var(--zg-font-size-body);
    color: var(--zg-color-text-primary);
    line-height: 20px;
    display: block;
}

.product-line-name:hover {
    color: var(--zg-color-hover-primary);
    text-decoration: none;
}

.product-line-reference {
    width: 100%;
    height: 20px;
    font-weight: var(--zg-font-weight-bold);
    font-size: var(--zg-font-size-body-small);
    line-height: 16px;
    color: var(--zg-color-text-primary);
    opacity: 0.8;
}

ul.cart-items li.cart-item>div.product-line-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    height: auto;
    align-items: center;
}

.product-line-grid-left {
    width: 20%;
}

.product-line-grid-body {
    width: 80%;
}

.product-line-grid-left img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    padding: 5px;
}

.product-price-line {
    display: flex;
    width: 60%;
    height: auto;
    justify-content: space-between;
    align-items: baseline;
}

.price span.product-price {
    height: auto;
    font-weight: var(--zg-font-weight-bold);
    font-size: var(--zg-font-size-body-large);
    line-height: 20px;
    color: var(--zg-color-text-primary);
    display: block;
}

.product-line-info-cart .current-price {
    display: flex;
    flex-direction: column;
}

.cart-product-quantity input.cart-line-product-quantity {
    border: 1px solid var(--zg-color-secondary);
    padding: 3px 10px;
    font-size: var(--zg-font-size-body);
    border-radius: 4px;
    color: var(--zg-color-text-primary);
}

.product-line-info-cart .current-price .price {
    color: var(--zg-color-text-primary);
    font-size: var(--zg-font-size-body-large);
    font-weight: var(--zg-font-weight-bold);
    display: block;
    height: fit-content;
}

.product-line-info-cart .product-discount .regular-price {
    text-decoration-line: line-through;
    color: var(--zg-color-text-primary);
    opacity: 0.8;
    font-size: var(--zg-font-size-body-large);
    font-weight: var(--zg-font-weight-normal);
    line-height: 20px;
    margin: 0;
}

.product-price-line .has-discount {
    color: var(--zg-color-text-primary);
    font-size: var(--zg-font-size-body-large);
    font-weight: var(--zg-font-weight-normal);
    line-height: 20px;
    text-decoration-line: none;
}

input.cart-line-product-quantity.form-control {
    width: 30%;
    height: 30px;
}

.input-group.bootstrap-touchspin {
    display: flex;
    justify-content: center;
}

a.remove-from-cart {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--zg-color-text-secondary);
    width: 204px;
}

a.remove-from-cart:hover {
    color: var(--zg-color-hover-primary);
}

span.text-icon-remove {
    height: 20px;
    font-weight: var(--zg-font-weight-semibold);
    font-size: var(--zg-font-size-body);
    line-height: 20px;
}

.cart-product-quantity {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.cart-summary {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.cart-total-benefits {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    height: auto;
}

span.label.js-subtotal {
    font-size: var(--zg-font-size-body);
    font-weight: var(--zg-font-weight-bold);
    line-height: 20px;
    color: var(--zg-color-primary);
}

#cart-subtotal-shipping span.value {
    font-size: var(--zg-font-size-body-large);
    font-weight: var(--zg-font-weight-bold);
    line-height: 20px;
    color: var(--zg-color-text-secondary);
}

#cart-subtotal-products span.value {
    height: auto;
    font-weight: var(--zg-font-weight-bold);
    font-size: var(--zg-font-size-body-large);
    line-height: 20px;
    color: var(--zg-color-text-secondary);
}

.cart-summary-text {
    height: auto;
    font-size: var(--zg-font-size-h3);
    font-weight: var(--zg-font-weight-bold);
    line-height: 20px;
    color: var(--zg-color-text-primary);
}

.cart-detailed-totals.js-cart-detailed-totals {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--zg-color-secondary);
    padding: 22px 25px;
    border-radius: 4px;
}

#cart-subtotal-products {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--zg-color-secondary);
    padding-bottom: 8px;
    margin: 0;
}

.card-block.cart-detailed-subtotals.js-cart-detailed-subtotals {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

#cart-subtotal-shipping {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    margin: 0;
}

.cart-summary-line#cart-subtotal-shipping span.label {
    font-weight: var(--zg-font-weight-semibold);
}

.cart-summary-line span.label {
    font-size: var(--zg-font-size-body);
    font-weight: var(--zg-font-weight-bold);
    line-height: 20px;
    color: var(--zg-color-text-secondary);
}

div#cart-subtotal-discount {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
}

.cart-summary-line.cart-total {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
}

.cart-summary-line span.value {
    height: auto;
    font-weight: var(--zg-font-weight-bold);
    font-size: var(--zg-font-size-body-large);
    line-height: 20px;
    color: var(--zg-color-primary);
}

.cart-summary-line .cart-total .label {
    font-size: var(--zg-font-size-body);
    font-weight: var(--zg-font-weight-bold);
    line-height: 20px;
    color: var(--zg-color-primary);
}

.card-block.cart-summary-totals.js-cart-summary-totals {
    width: 100%;
    height: auto;
    line-height: 30px;
}

/* Bloque promo */
.block-promo {
    padding: 20px 0 20px 10px;
}

.block-promo .cart-voucher {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.block-promo .promo-code .alert-danger {
    position: relative;
    display: none;
    margin-top: 1.25rem;
    color: var(--zg-color-white);
    background: var(--zg-color-error);
}

.block-promo .promo-input {
    width: 100%;
    height: auto;
    color: var(--zg-color-text-primary);
    border: 1px solid var(--zg-color-secondary);
}

.block-promo .promo-input+button {
    text-transform: capitalize;
    background-color: var(--zg-color-primary);
    margin: 4px 0 0 0;
    font-size: var(--zg-font-size-body-small);
}

.block-promo input.promo-input {
    width: 100%;
    height: auto;
    border: 1px solid var(--zg-color-secondary);
    border-radius: 4px;
    padding: 16px 20px;
    background: transparent;
    font-size: var(--zg-font-size-body);
    font-weight: var(--zg-font-weight-semibold);
    line-height: 20px;
}

.block-promo .promo-input+button:hover {
    background-color: var(--zg-color-hover-primary);
}

.block-promo .cart-summary-line .label,
.block-promo .promo-name {
    margin-bottom: 0;
    color: var(--zg-color-text-primary);
}

.block-promo .promo-name .cart-summary-line {
    display: flex;
    justify-content: space-between;
}

.block-promo .promo-name .cart-summary-line div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.block-promo .promo-name .cart-summary-line div span {
    font-size: var(--zg-font-size-body);
}

.block-promo .promo-name .cart-summary-line div a span {
    font-size: var(--zg-font-size-body-large);
}

.block-promo .promo-name .cart-summary-line .label {
    font-weight: var(--zg-font-weight-semibold);
    color: var(--zg-color-text-primary);
    font-size: var(--zg-font-size-body);
}

.block-promo .promo-name .cart-summary-line span {
    color: var(--zg-color-text-primary);
    font-weight: var(--zg-font-weight-normal);
}

.block-promo .promo-code-button {
    display: block;
    text-align: center
}

.block-promo .promo-code-button a {
    color: var(--zg-color-text-primary);
    font-size: var(--zg-font-size-body-small);
    text-decoration: none;
}

.block-promo .promo-code-button a:hover {
    color: var(--zg-color-hover-primary);
}

.block-promo .promo-code-button.with-discounts {
    display: none
}

.block-promo .promo-code-button.cancel-promo {
    margin: 10px 0;
    color: var(--zg-color-text-primary);
}

.block-promo .promo-code-button.cancel-promo[aria-expanded=true] {
    display: block;
    padding: 0;
}

.block-promo.promo-highlighted {
    padding: 0 1rem;
    margin-bottom: 0;
    text-align: center
}

input.promo-input:hover {
    border-color: var(--zg-color-primary);
    transition: all 0.3s ease-in-out;
}

input.promo-input:focus {
    border-color: var(--zg-color-primary);
    outline: none;
    transition: all 0.3s ease-in-out;
}

.checkout.cart-detailed-actions.js-cart-detailed-actions.card-block {
    width: 100%;
    height: auto;
}

.checkout .text-sm-center a.btn.btn-primary {
    width: 100%;
    height: auto;
    border: 1px solid var(--zg-color-primary);
    border-radius: 4px;
    padding: 10px 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    background: var(--zg-color-white);
    color: var(--zg-color-primary);
    font-size: var(--zg-font-size-body-large);
    font-weight: var(--zg-font-weight-bold);
    line-height: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.checkout .text-sm-center a.btn.btn-primary:hover {
    background: var(--zg-color-hover-primary);
    border-color: var(--zg-color-hover-primary);
    color: var(--zg-color-white);
}

a.button-continue {
    width: 240px;
    height: 44px;
    border: 1px solid var(--zg-color-primary);
    border-radius: 4px;
    padding: 10px 20px;
    font-size: var(--zg-font-size-body-large);
    font-weight: var(--zg-font-weight-bold);
    line-height: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    color: var(--zg-color-primary);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;

}

a.button-continue:hover {
    color: var(--zg-color-white);
    background-color: var(--zg-color-hover-primary);
    border-color: var(--zg-color-hover-primary);
}

.benefits-checkout {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.benefit-checkout-item {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    gap: 8px;
    color: var(--zg-color-text-primary);
}

.benefit-checkout-text {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.benefit-checkout-text .text-bold {
    width: 100%;
    height: auto;
    font-size: var(--zg-font-size-body-large);
    font-weight: var(--zg-font-weight-bold);
    line-height: 20px;
}

.benefit-checkout-text .text-description {
    width: 100%;
    height: auto;
    font-size: var(--zg-font-size-body);
    font-weight: var(--zg-font-weight-regular);
    line-height: 16px;
}

.cart-product-quantity .qty-control {
    width: 15px;
    height: 15px;
    background-color: var(--zg-color-primary);
}

.cart-product-quantity .qty-control.up {
    border-radius: 0 0 4px 0;
}

.cart-product-quantity .qty-control.down {
    border-radius: 0 4px 0 0;
}

.cart-product-quantity .qty-control .control-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.cart-product-quantity .qty-controls .material-symbols-outlined {
    color: var(--zg-color-white);
    font-size: var(--zg-font-size-body-small);
    user-select: none;
    /* Evita la selección de texto*/
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.empty-cart-message {
    border-left: 1px solid var(--zg-color-secondary);
    border-right: 1px solid var(--zg-color-secondary);
    border-bottom: 1px solid var(--zg-color-secondary);
}

.empty-cart-message p {
    text-align: center;
    padding: 15px;
    font-size: var(--zg-font-size-body);
    margin: 0;
    color: var(--zg-color-text-primary);
}

/* Modal */

#cart .customization-modal .modal-content {
    background-color: var(--zg-color-white);
    border-radius: 4px;
    background-clip: padding-box;
    border: none;
    outline: none;
}

.customization-modal .modal-content .modal-body {
    padding: 20px;
    height: auto;
}

#cart .customization-modal .product-customization-line {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    height: auto;
}

#cart .customization-modal .label-text-customization {
    width: 100%;
    height: auto;
    font-weight: var(--zg-font-weight-semibold);
    font-size: var(--zg-font-size-body);
    line-height: 20px;
    color: var(--zg-color-text-primary);
}

#cart .customization-modal .label-text-customization.value {
    width: 100%;
    height: auto;
    border: 1px solid var(--zg-color-secondary);
    border-radius: 4px;
    padding: 5px 10px;
}

#cart .customization-modal .text-custom {
    height: auto;
    font-size: var(--zg-font-size-body);
    line-height: 20px;
    color: var(--zg-color-text-primary);
}

@media only screen and (max-width: 767px) {
    #cart .cart-grid {
        padding: 10px;
    }

    #cart .cart-grid-body {
        flex-direction: column;
    }
}

@media only screen and (max-width: 425px) {
    #cart .cart-title h1.h4 {
        font-size: var(--zg-font-size-h3);
        padding: 10px 0;
    }

    #cart-product-header {
        display: none;
    }

    ul.cart-items li.cart-item {
        border: 1px solid var(--zg-color-secondary);
        padding: 4px;
    }

    ul.cart-items li.cart-item>div.product-line-grid {
        gap: 10px;
    }

    .product-line-grid-left {
        width: 25%;
    }

    .product-line-grid-body {
        width: 75%;
    }

    .product-info-cart {
        flex-direction: column;
        gap: 10px;
    }

    .product-line-info {
        width: 100%;
    }

    .product-price-line {
        width: 100%;
    }

    .product-line-name {
        font-size: var(--zg-font-size-body-small);
    }

    .product-price-line .has-discount,
    .product-line-info-cart .product-discount .regular-price,
    .product-line-info-cart .current-price .price {
        font-size: var(--zg-font-size-body);
        margin: 0;
    }

    .price span.product-price {
        font-size: var(--zg-font-size-body);
    }

    .product-price-line {
        align-items: center;
    }

    .remove-from-cart .material-symbols-outlined {
        font-size: var(--zg-font-size-h3);
    }

    span.text-icon-remove {
        font-size: var(--zg-font-size-body-small);
    }
}