/*GENERALES*/

.woocommerce-checkout:not(.woocommerce-order-received) .col-12,
.woocommerce-checkout:not(.woocommerce-order-received) .col-lg-12,
.woocommerce-checkout:not(.woocommerce-order-received) .col-md-12 {
    padding-right: 0;
    padding-left: 0;
}

.woocommerce-billing-fields__field-wrapper #billing_country_field{
    display: none;
}

/*END GENERALES*/

.theme-woodmart :is(.checkout_coupon,.login.hidden-form){
    max-width: 100%;
}

.theme-woodmart.woocommerce-checkout #place_order{
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--wd-entities-title-font);
    min-height: 60px;
}

.woocommerce-checkout #place_order::before{
    content: '\f30d';
    font-family: 'Font Awesome 6 Pro';
    font-size: 15px;
    margin-right: 10px;
}

.woocommerce-checkout:not(.woocommerce-order-received) .whb-header,
.woocommerce-checkout:not(.woocommerce-order-received) .wd-prefooter,
.woocommerce-checkout:not(.woocommerce-order-received) .footer-container{
	display: none;
}

.woocommerce-checkout .checkout_coupon .button{
	height: 100%
}

.woocommerce-checkout label{
	font-weight: 500;
}

#ship-to-different-address {
    display: none;
}

.enova-hidden {
    display: none !important;
}

.page.woocommerce-checkout:not(.woocommerce-order-received) .main-page-wrapper {
    background-color: var(--bg-secondary);
}

.woocommerce-checkout .container {
    background-color: #fff;
    max-width: 1500px;
}

.woocommerce-checkout.woocommerce-order-received .container {
    background-color: initial;
}

.woocommerce-checkout .vc_column_container>.vc_column-inner {
    padding-left: initial;
    padding-right: initial;
}

.woocommerce-checkout .vc_row {
    margin-left: initial;
    margin-right: initial;
}

.checkout-steps-wrapper.vc_column_container,
.checkout-steps-wrapper-top {
    padding: 0 100px;
}

.checkout-steps-wrapper.vc_column_container {
    margin-top: 40px;
    margin-bottom: 40px;
    padding-top: 40px;
    border-top: 1px solid #f2f2f2;
}

#shipping_method li.active input:checked {
    border-color: var(--wd-primary-color);
}



/*CABECERA*/

.need-help-wrapper{
    margin: 0;
    position: absolute;
    top: 15px;
    right: 0;
    font-family: var(--wd-entities-title-font);
}

.woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout {
    max-width: calc(100% - 500px);
    min-width: 66.666666%;
    margin-top: 40px;
}

ul:is(.woocommerce-error, .woocommerce-message, .woocommerce-info) {
    width: 800px;
    max-width: 100%;
    margin: 30px auto 0 auto;
}

body.woocommerce-checkout {
    background-color: var(--bg-secondary);
}

.checkout-steps-wrapper-top :is(.woocommerce-form-coupon-toggle, .woocommerce-form-login-toggle)>div {
    font-weight: 500;
}

.checkout-steps-wrapper-top a.showcoupon,
.checkout-steps-wrapper-top a.showlogin {
    font-family: var(--wd-entities-title-font);
    line-height: 1.4;
}

.checkout-steps-wrapper-top :is(.woocommerce-form-coupon-toggle, .woocommerce-form-login-toggle)>div {
    margin-bottom: 0 !important;
    line-height: 1;
}

.checkout-steps-wrapper-top :is(.checkout_coupon, .login.hidden-form) {
    margin-bottom: 0px;
    margin-top: 30px;
}

.checkout-steps-wrapper-top h1 {
    font-size: 32px;
    margin: 0;
    line-height: 1;
}

.wd-button-wrapper a.back-to-cart:before {
    content: '\f060';
    font-family: 'Font Awesome 6 Pro';
    font-weight: 500;
    margin-right: 6px;
}

.wd-button-wrapper a.back-to-cart {
    background-color: transparent;
    color: #333;
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    height: auto;
    min-height: auto;
    width: auto;
    min-width: auto;
    margin-bottom: 40px;
}

.wd-button-wrapper a.back-to-cart:hover {
    background-color: transparent;
    box-shadow: none;
    color: #333;
    opacity: 0.8;
}

.checkout-steps-wrapper-top .c2 .wpb_wrapper,
.checkout-steps-wrapper-top .c2 .wpb_raw_code.wpb_content_element.wpb_raw_html {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 0;
}

.checkout-steps-wrapper-top>.c2>.wpb_wrapper .wpb_raw_code.wpb_content_element.wpb_raw_html>.wpb_wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.checkout-steps-wrapper-top {
    margin-top: 30px;
    max-width: calc(100% - 500px);
    min-width: 66.666666%;
}

.wd-rs-64296d4b9eab0>.vc_column-inner>.wpb_wrapper {
    row-gap: 30px;
}

.checkout-subheader .wpb_text_column.wpb_content_element,
.wpb-js-composer .checkout-subheader .wd-button-wrapper.inline-element {
    margin-bottom: 0;
}

.checkout-subheader {
    margin-bottom: 40px;
    padding-bottom: 40px;
}

.checkout-subheader:before {
    content: '';
    height: 1px;
    width: 1000px;
    position: absolute;
    background-color: #d9dadb;
    bottom: 0;
    left: -100px;
}

.wd-order-table > table > tfoot > tr.cart-discount-total > td,
tr.order-total strong .amount{
    font-family: var(--wd-title-font);
}

.secure-purchase span {
    text-align: right;
    color: var(--wd-primary-color);
    font-family: var(--wd-widget-title-font);
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    margin-bottom: 0;
    transform: translateY(-6px);
    -webkit-transform: translateY(-6px);
    gap: 8px;
}

.secure-purchase p{
    margin-bottom: 0;
}

.need-help p {
    text-align: right;
    font-weight: 500;
    margin-bottom: 0;
}

a.need-help{
    color:#333;
}

.enova-last.inline-element {
    margin-right: 0;
}

/*RESUMEN*/

.woocommerce-checkout .checkout-order-review {
    margin-top: -265px;
    background-color: var(--bg-secondary);
    padding: 0;
}

.woocommerce-checkout .checkout-order-review:before {
    content: '';
    height: 300vw;
    width: calc(100% + 1vh);
    position: absolute;
    background-color: var(--bg-secondary);
    background-repeat: no-repeat;
    top: -25%;
}

.woocommerce-checkout .checkout-order-review:after {
	display: none;
}

.woocommerce-checkout-review-order-table .woocommerce-shipping-totals.shipping {
    display: flex;
}



.woocommerce-checkout .woocommerce-checkout-review-order-table .woocommerce-shipping-totals.shipping.hide-shipping-cost {
    display: none !important;
}

.woocommerce-checkout-review-order-table ul.woocommerce-shipping-methods {
    margin-bottom: 0;
    padding: 0;
    position: relative;
}

.checkout-order-review>.vc_column-inner>.wpb_wrapper {
    padding: 30px;
}

.checkout-order-review>.vc_column-inner .wpb_text_column.wpb_content_element {
    margin-bottom: 20px;
}

.woocommerce-checkout-review-order-table tbody::-webkit-scrollbar {
    width: 5px;
}

.woocommerce-checkout-review-order-table tbody::-webkit-scrollbar-thumb {
    background-color: #dddddd;
}

.woocommerce-checkout-review-order-table tbody::-webkit-scrollbar-track {
    background-color: #eeeeee;
}

.woocommerce-checkout-review-order-table tbody {
    max-height: calc(100vh - 450px);
    overflow: auto;
}

.woocommerce-checkout-review-order-table {
    font-size: 16px;
}

.checkout-order-review tr.cart_item .product-total .amount,
.checkout-order-review tr.cart-subtotal .amount,
.checkout-order-review tr.shipping .amount {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.wd-checkout-prod-total.product-total {
    align-self: flex-start;
    line-height: 1.3;
}

strong.product-quantity:before {
    content: 'Cantidad:';
    font-weight: 500;
}

.checkout-order-review .wd-checkout-prod-title>:is(a, span) br {
    display: none;
}

.checkout-order-review .wd-checkout-prod-title>:is(a, span) {
    font-family: var(--wd-entities-title-font);
    margin-bottom: 4px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    row-gap: 6px;
}

.checkout-order-review .wd-checkout-prod-title a {
    color: var(--wd-text-color);
    margin-bottom: 6px;
}

.checkout-order-review span.product-variation-detail,
.checkout-order-review .product-quantity {
    font-size: 13px;
    opacity: 0.7;
    font-family: var(--wd-entities-title-font);
}

.checkout-order-review .wd-checkout-prod-title {
    font-size: 16px;
    flex-direction: column;
}

.checkout-order-review .woocommerce-checkout-review-order-table thead tr {
    border-width: 1px;
}

.checkout-order-review h3 {
    font-size: 30px;
}

.checkout-order-review .wd-checkout-prod {
    align-items: flex-start;
}

.theme-woodmart .wd-checkout-prod-img {
    -webkit-margin-end: 15px;
            margin-inline-end: 15px;
}

.theme-woodmart .wd-checkout-prod-img img {
    width: 100px;
    max-width: 100px;
    border-radius: 5px;
    padding: 5px;
    background-color: #fff;
}

.woocommerce-checkout-review-order-table tr.shipping ul.woocommerce-shipping-methods {
    pointer-events: none;
    list-style: none;
}

.woocommerce-checkout-review-order-table tr.shipping ul.woocommerce-shipping-methods li {
    margin-bottom: 0;
}


.checkout-steps-wrapper-top .wpb_single_image img {
    max-width: 180px;
}

.checkout-order-review>.vc_column-inner {
    z-index: 2 !important;
    padding-top: 0 !important;
}

.checkout-order-review .wd-order-table.wd-wpb {
    margin-bottom: 0;
}

.wd-wpb.wd-rs-642960141ee20 {
    margin-bottom: 0;
    transform: translateY(-36px);
    -webkit-transform: translateY(-36px);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    -moz-column-gap: 10px;
         column-gap: 10px;
}

.wd-wpb.wd-rs-642960141ee20 .form-row-first {
    flex-grow: 1;
    margin-bottom: 0;
}

.wd-wpb.wd-rs-642960141ee20 .form-row-last {
    margin-bottom: 0;
    width: auto;
}

.wd-wpb.wd-rs-642960141ee20 .form-row-first input {
    height: 50px;
    min-height: 50px;
    background-color: var(--bg-secondary);
    border: 2px solid #d8d8d8;
    transition: all .15s ease-in-out;
}

.wd-wpb.wd-rs-642960141ee20 .form-row-first input:focus {
    border: 2px solid var(--wd-primary-color);
}

/*STEPS*/

.checkout-steps-wrapper h3 {
    font-size: 28px;
}

.checkout-steps-wrapper span.step-subtitle {
    color: var(--wd-primary-color);
    font-family: var(--wd-entities-title-font);
}

.checkout-steps-wrapper>.vc_column-inner>.wpb_wrapper .wd-wpb {
    margin-bottom: 80px;
}

.woocommerce-checkout input[type="number"] {
    text-align: left;
    padding: 0 15px;
}

/*INPUTS DE LOS FORMULARIOS*/

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

    .woocommerce-billing-fields__field-wrapper,
    .woocommerce-shipping-fields__field-wrapper {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        -moz-column-gap: 15px;
             column-gap: 15px;
    }

    .enova-form-row-100 {
        width: 100%;
    }
    
    .enova-form-row-50 {
        width: calc(50% - 7.5px);
    }

    .enova-form-row-33 {
        width: calc(33.333333% - 10px);
    }

    .enova-form-row-25 {
        width: calc(25% - 11.5px);
    }

}

@media screen and (max-width: 1023px){

    .enova-form-row-100 {
        width: 100%;
    }
    
    .enova-form-row-50 {
        width: 100%;
    }

    p.shipping_despacho .woocommerce-input-wrapper{
        flex-wrap: wrap;
        height: auto;
    }

    .shipping_despacho .woocommerce-input-wrapper label.radio{
        width: 100%;
        height: 60px;
    }

    p.shipping_despacho .input-radio:is([value="Envío"], [value="Boleta"], [value="Realizador del pedido"]){
        top: 20px;
    }

    p.shipping_despacho .input-radio:is([value="Retiro"], [value="Factura"], [value="Otra persona"]){
        top: calc(50% + 27px);
        left: 25px;
    }

    p.shipping_despacho label[for="shipping_despacho_Retiro"]:before{
        transform: initial;
        margin-right: 15px;
        width: 23px;
    }

}

/*ESTILOS PARA LOS CAMPOS TIPO RADIO BUTTON*/

label[for="shipping_despacho_Retiro"]:before {
    content: '';
    background-image: url(/wp-content/uploads/2023/04/shipping-method-pickup-icon_v2.svg);
    background-repeat: no-repeat;
    width: 21px;
    min-width: 21px;
    height: 19px;
    margin-right: 7px;
    transform: translateX(-8px);
    -webkit-transform: translateX(-8px);
}

label[for="shipping_despacho_Envío"]:before {
    content: '';
    background-image: url(/wp-content/uploads/2023/04/shipping-method-icon_v2.svg);
    background-repeat: no-repeat;
    width: 23px;
    min-width: 23px;
    height: 17px;
    margin-right: 15px;
}

.input-radio:is([value="Retiro"], [value="Factura"], [value="Otra persona"]) {
    position: absolute;
    top: calc(50% - 10px);
    left: calc(50% + 25px);
}

.input-radio:is([value="Envío"], [value="Boleta"], [value="Realizador del pedido"]) {
    position: absolute;
    top: calc(50% - 10px);
    left: 25px;
}

/*INPUTS DE TIENDAS*/

#shipping_tiendas_field .input-radio:nth-child(1) {
    position: absolute;
    top: 22px;
    left: 25px;
}

#shipping_tiendas_field .input-radio:nth-child(3) {
    position: absolute;
    top: 95px;
    left: 25px;
}

#shipping_tiendas_field .input-radio:nth-child(5) {
    position: absolute;
    top: 168px;
    left: 25px;
}

/*INPUTS DE TIENDAS*/

label.radio.tiendas:before {
    content: '';
    background-image: url(/wp-content/uploads/2023/04/shipping-method-pickup-icon_v2.svg);
    background-repeat: no-repeat;
    width: 21px;
    height: 19px;
    margin-right: 15px;
}

#shipping_tiendas_field .woocommerce-input-wrapper {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    position: relative;
}

.shipping_despacho .woocommerce-input-wrapper,
#billing_comprobante_field .woocommerce-input-wrapper {
    height: 60px;
    display: flex;
    flex-direction: row;
    position: relative;
    gap: 15px;
}

.woocommerce-input-wrapper .input-radio:checked+label.radio {
    border: 2px solid var(--wd-primary-color);
}

.checkout-steps-wrapper #shipping_method li {
    position: relative;
}

.checkout-steps-wrapper #shipping_method .amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    position: absolute;
    right: 25px;
    font-family: var(--wd-widget-title-font);
}

.checkout-steps-wrapper #shipping_method .amount:before {
    content: 'Costo';
    font-size: 88%;
    color: var(--wd-primary-color);
    opacity: 0.65;
}

.checkout-steps-wrapper ul#shipping_method label {
    padding-right: 25px;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.checkout-steps-wrapper #shipping_method li input.shipping_method:checked+label {
    border: 2px solid var(--wd-primary-color);
    pointer-events: none;
}

label.shipping_despacho:not(.radio),
label.tiendas:not(.radio),
h4.shipping-methods-title {
    display: block;
    margin-bottom: var(--wd-tags-mb);
    color: var(--wd-title-color);
    text-transform: var(--wd-title-transform);
    font-weight: var(--wd-title-font-weight);
    font-style: var(--wd-title-font-style);
    font-family: var(--wd-title-font);
    line-height: 1;
    font-size: 18px;
}

label.shipping_despacho:not(.radio, [for="Envío"]), h4.shipping-methods-title {
    margin-top: 10px;
}

span.description {
    margin-top: 5px;
    display: block;
}

.woocommerce-checkout .required {
    display: none;
}

/*START - MENSAJES PERSONALIZADOS PARA CADA MÉTODO DE ENVÍO*/

.checkout-steps-wrapper #shipping_method input+label:after{
    content: '';
    line-height: 1.3;
    width: 100%;
    font-size: 92%;
    opacity: 0.7;
}


/*END - MENSAJES PERSONALIZADOS PARA CADA MÉTODO DE ENVÍO*/

.checkout-steps-wrapper #shipping_method input.shipping_method {
    position: absolute !important;
    top: calc(50% - 10px);
    left: 25px;
    margin: 0;
}

.woocommerce-input-wrapper label.radio.tiendas,
.checkout-steps-wrapper ul#shipping_method label {
    width: 100%;
    height: -webkit-max-content;
    height: -moz-max-content;
    height: max-content;
    padding: 22px 60px;
}

.woocommerce-input-wrapper label.radio,
.checkout-steps-wrapper #shipping_method label {
    display: flex !important;
    padding: 0 60px;
    width: 50%;
    height: 100%;
    margin-right: 0 !important;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--bg-secondary);
    color: var(--wd-text-color);
    border-radius: 5px;
    border: 2px solid #fff;
    transition: all .25s ease;
    line-height: 1;
    cursor: pointer;
}

.input-radio:before,
.checkout-steps-wrapper #shipping_method li input.shipping_method:before {
    content: '';
    background-color: var(--wd-primary-color);
    border-radius: 50%;
    display: block;
    height: 12px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    -webkit-transform: translate(-50%, -50%) scale(0);
    width: 12px;
    transition: all .25s ease-in;
}

.input-radio,
.checkout-steps-wrapper #shipping_method input.shipping_method {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background-color: transparent;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: inline-block;
    height: 20px;
    margin-right: 10px;
    position: relative;
    vertical-align: middle;
    width: 20px;
    z-index: 2;
    cursor: pointer;
}

.payment_box .mp-checkout-custom-container{
    padding: 0 !important;
}

.payment_methods.methods .payment_box.payment_method_woo-mercado-pago-custom{
    margin: 20px 0;
}

.payment_method_woo-mercado-pago-custom img{
    display: none !important;
}

.input-radio:checked {
    background-color: #f2f2f2;
    border-color: var(--wd-primary-color);
    margin-inline-end: 10px;
}

.input-radio:checked::before,
.checkout-steps-wrapper #shipping_method li input.shipping_method:checked:before {
    transform: translate(-50%, -50%) scale(1) !important;
    -webkit-transform: translate(-50%, -50%) scale(1) !important;
    background-color: var(--wd-primary-color);
}

.input-radio:focus,
.checkout-steps-wrapper #shipping_method input.shipping_method:focus {
    outline: none;
}

.woocommerce-checkout .ui-widget.ui-widget-content {
    z-index: 3 !important;
}

.thwcfe-optional label span {
    display: none;
}

.checkout-steps-wrapper #shipping_method li input:not(:checked) .woocommerce-shipping-totals.shipping {
    display: none;
}

.checkout-logo.inline-element {
    width: 100%;
}

.title-checkout {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.woocommerce-checkout-payment li.wc_payment_method input.input-radio{
    display: none;
}

.woocommerce-checkout-payment li.wc_payment_method label{
    display: flex;
    padding: 25px;
    width: 100%;
    height: 100%;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--bg-secondary);
    color: var(--wd-text-color);
    border-radius: 5px;
    transition: all .25s ease;
    line-height: 1;
    cursor: pointer;
    flex-wrap: wrap;
    position: relative;
    border: 2px solid #fff;
}

.woocommerce-checkout-payment li.wc_payment_method.payment_method_bacs label:before{
    content: '';
    background-image: url('/wp-content/uploads/2023/04/building-columns-regular-2-1.svg');
    width: 20px;
    height: 20px;
    margin-right: 15px;
    background-repeat: no-repeat;
    background-size: contain;
}

.woocommerce-checkout-payment li.wc_payment_method.payment_method_woo-mercado-pago-custom label:before{
    content: '';
    background-image: url('/wp-content/uploads/2023/05/credit-card-regular_V1.svg');
    width: 20px;
    height: 20px;
    margin-right: 15px;
    background-repeat: no-repeat;
    background-size: contain;
}

.woocommerce-checkout-payment li.wc_payment_method input:checked + label{
    border: 2px solid var(--wd-primary-color);
}

.woocommerce-checkout-payment .payment_methods .payment_box{
    margin: 20px 20px 0 30px;
    padding: 0;
    background-color: initial;
    box-shadow: none;
    border-radius: initial;
}

.woocommerce-checkout-payment .payment_methods .payment_box p{
    line-height: 1.6;
}

.payment_methods .payment_box:before{
    display: none;
}

.woocommerce-shipping-fields #shipping_method{
    margin-bottom: 20px;
    width: 100%;
}

.woocommerce-shipping-fields{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.shipping_address{
    width: 100%;
}

@media screen and (max-width: 480px) {

    .need-help-wrapper{
        display: none;
    }

}


@media screen and (max-width: 1024px) {

    .checkout-order-review:before {
        display: none;
    }

    .checkout-steps-wrapper-top {
        width: 100%;
    }

    .checkout-steps-wrapper.vc_column_container,
    .checkout-steps-wrapper-top {
        padding: 0 20px;
    }

    .checkout-steps-wrapper-top{
        max-width: initial;
        min-width: initial;
    }

    .checkout-steps-wrapper.vc_column_container {
        padding-top: 40px;
    }

    .checkout-f1>div {
        width: 100%;
    }

    .checkout-order-review {
        margin-top: 30px;
    }

    .checkout-steps-wrapper>.vc_column-inner>.wpb_wrapper .wd-wpb {
        margin-bottom: 60px;
    }

    .checkout-steps-wrapper>.vc_column-inner>.wpb_wrapper .wd-payment-methods.wd-wpb{
        margin-bottom: 0;
    }

    ul:is(.woocommerce-error, .woocommerce-message, .woocommerce-info) {
        margin: initial;
        margin-bottom: 30px;
    }

    .checkout-steps-wrapper.vc_column_container {
        margin-top: 0;
        border-top: 0;
    }

    .checkout-steps-wrapper-top :is(.checkout_coupon, .login.hidden-form) {
        margin-bottom: 30px;
    }

    .checkout-steps-wrapper-top h1 {
        font-size: 32px;
    }

    .checkout-order-review>.vc_column-inner>.wpb_wrapper{
        padding: 30px 20px;  
    }

    .woocommerce-checkout-review-order-table tfoot tr:last-child{
        margin-bottom: -15px;
    }

    .checkout-order-review h3,
    .checkout-steps-wrapper h3{
        font-size: 24px;
    }
    
    .woocommerce-checkout .woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout{
    	min-width: 100%;
        max-width: 100%;
        padding: 0 20px;
    }
    
    .woocommerce-checkout .checkout-order-review{
    	margin-top: 30px;
    }

}