:root {
    --summary-bg-color: white;
    --summary-border: 1px solid var(--grey);
    --summary-input-border: 1px solid var(--secondary-main-color);
}

/* CARRINHO */

.ui-dialog.ui-corner-all.ui-widget.ui-widget-content.ui-front.mage-dropdown-dialog {
    display: block !important;
}

#minicart_content_wrapper .paypal-express-in-context-mini-cart-container,
.checkout-cart-index .paypal-express-in-context-mini-cart-container {
    display: none !important;
}

[data-block="minicart"]:focus {
    box-shadow: unset;
}

.products-container .towishlist.action-towishlist {
    display: none !important;
}

.minicart-wrapper .action.showcart:before {
    content: unset !important;
}

.bag-icon svg {
    fill: white;
}

#minicart_container {
    position: fixed;
    right: -100%;
    top: 0;
    width: 0;
    background: white;
    height: 100vh;
    z-index: 6;
    transition: .25s;
}

.minicart-wrapper.active #minicart_container {
    width: 100%;
    right: 0;
}

#minicart_container :is(p, div, span) {
    font: normal normal normal var(--default-text-size)/var(--default-line-height) var(--default-font-family);
    color: var(--primary-text-color);
}

#minicart_container #mini_cart :is(p, div, span) {
    color: var(--primary-text-color-dark);
}

#minicart_container #mini_cart .product button span {
    color: var(--primary-text-color);
}

#minicart_container .title {
    margin-bottom: 30px;
}

#minicart_container .content-container .balance>div {
    background-color: #F1F9FF;
}

#minicart_container .content-container hr {
    background-color: #BDBDBD;
    opacity: .3;
    height: 2px;
}

#minicart_container .content-container .products-container {
    overflow: auto;
    max-height: 50vh;
}

.minicart-wrapper .action.showcart .counter.qty {
    height: 14px;
    min-width: 14px;
    border-radius: 25px;
    position: absolute;
    right: 11px;
    top: -3px;
    background-color: var(--info);
}

.minicart-wrapper .action.showcart .counter.qty.empty {
    display: none !important;
}

#minicart_container #mini_cart .product .qty-value button,
#custom_cart .product .qty-value button {
    padding: 0;
    background-color: unset;
    box-shadow: unset;
    color: var(--primary-text-color);
}

#minicart_container #mini_cart .product button span,
#custom_cart .product button span {
    color: var(--secondary-text-color);
}

#top_cart_btn_checkout {
    border-radius: 0;
/*     position: absolute; */
    left: 0;
    bottom: 0;
    opacity: 0;
    transition: .15s .25s;
}

.minicart-wrapper.active #top_cart_btn_checkout {
    opacity: 1;
    margin-bottom: 20px;
    border-radius: 4px;
    height: 55px;
}

#buttons-container .paypal-button-container {
    max-width: 100% !important;
}

.paypal.checkout.paypal-logo.paypal-express-in-context-mini-cart-container {
    margin-top: 10px;
}

/* TELA DE CARRINHO */

button#empty_cart_button {
    margin: 0;
    background: unset;
    text-decoration: underline;
}

button#empty_cart_button>span {
    font-weight: normal;
    text-decoration: underline;
    font-size: 14px;
    color: var(--primary-text-color-dark);
}

#custom_cart span {
    font-size: 14px;
}

.actions-toolbar .gift-options-cart-item,
.actions-toolbar .action-edit {
    display: none;
}

.actions-toolbar .action-delete {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.actions-toolbar .action-delete::before {
    content: "\f00d";
    font-size: 18px;
}

.actions-toolbar .action-delete span {
    font-size: 0 !important;
}

/* Sumario */

.cart-summary {
    border: var(--summary-border);
    background: var(--summary-bg-color);
    padding: 1px 30px 35px;
}

.cart-summary .block>.title:after {
    position: absolute;
    right: 0;
    top: unset;
}

.cart-summary .block>.title:after {
    font-size: inherit;
    content: 'Aplicar';
    text-decoration: underline;
    font-family: inherit;
}

.cart-summary .block.active>.title:after {
    content: 'Fechar';
}

.cart-summary .block>.title,
.cart-totals {
    border-top: unset;
}

.cart-summary .block>.title {
    padding-left: 0;
    font-size: 14px;
}

.cart-summary .block {
    border-bottom: 1px solid var(--grey);
    padding: 25px 0;
}

.cart-summary span {
    font-size: 14px;
}

.column.main .cart-summary .block>.title strong {
    font-size: inherit;
}

#cart-totals .table>:not(:first-child) {
    border-top: unset;
}

#cart-totals table tr.totals.sub,
#cart-totals table .grand.totals {
    line-height: 28px;
    border-color: transparent;
}

.checkout-methods-items .action.primary.checkout span {
    text-transform: uppercase;
}

.checkout-methods-items .nav.item {
    justify-content: center;
}

.checkout-methods-items .nav.item a {
    color: inherit;
    text-decoration: underline;
    font-weight: normal;
}

.products-container #custom_cart .product .cart-price .price {
    font-weight: bold;
}

.cart-summary .primary button span,
.cart-summary ul.checkout button.primary span {
    font-weight: 600;
}

#block-shipping>div.title {
    padding: 25px 45px 25px 0;
}

.items.methods .item-options span.price {
    font-weight: 600;
}

/* Cupom de desconto */

#discount-coupon-form .label {
    padding: 10px 0px;
}

#discount-coupon-form .label span {
    font-size: 12px;
    font-weight: bold;
}

#discount-coupon-form .fieldset.coupon .field {
    width: 60%;
}

#discount-coupon-form .fieldset.coupon .actions-toolbar {
    width: 40%;
}

#discount-coupon-form .fieldset.coupon .actions-toolbar .primary,
#discount-coupon-form .fieldset.coupon .actions-toolbar .primary button {
    width: 100%;
}

#discount-coupon-form .fieldset.coupon .actions-toolbar .primary button span {
    text-transform: uppercase;
}

#discount-coupon-form input {
    border: var(--summary-input-border);
}

#discount-coupon-form .actions-toolbar button {
    border-radius: 0;
    min-width: unset;
}

.cart-summary .block .fieldset {
    margin: 0;
}

#block-discount.block.active {
    padding-bottom: 35px;
}

#discount-coupon-form input::placeholder {
    color: var(--primary-text-color) !important;
}

/* Totais */

.grand.totals strong,
.grand.totals strong span.price {
    font-weight: bold !important;
}

tr {
    border-style: hidden !important;
}

/*  */

@media screen and (min-width: 768px) {

    button#empty_cart_button {
        padding-left: 0;
    }

    /* Espaçamento de containers */

    .cart-container {
        display: flex;
    }

    .cart-container .products-container {
        width: 65%;
        padding-right: 30px;
    }

    .cart-container .cart-summary {
        width: 35%;
        margin-top: 10px;
    }

    /* Header do carrinho */

    .header-products {
        width: 65%;
        padding-right: 30px;
    }

    .header-summary {
        width: 35%;
    }
}

/*  */

@media screen and (min-width: 1200px) {
    /* CARRINHO */

    .bag-icon svg {
        width: 24px;
        height: 24px;
    }

    .minicart-wrapper.active #minicart_container {
        width: 50%;
        right: 0;
        padding: 80px 20px 80px 120px;
        background: rgba(255, 255, 255, 0.95);
    }

    #minicart_content_wrapper {
        max-width: calc((var(--default-screen-max-width) * 0.5) - 140px);
    }

    #top_cart_btn_checkout {
        position: static;
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    button#top_cart_btn_checkout {
        width: 75rem !important;
        margin-left: 15px;
    }

    #minicart_container .content-container .products-container,
    #minicart_container .items-total {
        width: 75rem;
    }

    #btn_minicart_close {
        position: absolute;
        left: 74rem;
    }
}


@media (max-width: 768px) {
    button#top_cart_btn_checkout {
        margin-left: 15px;
        margin-right: 15px;
        width: calc(100% - 30px) !important;
    }
}
