/* Override WooCommerce */

.woocommerce .col2-set .col-1,
.woocommerce-page .col2-set .col-1,
.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-2{
    max-width: unset;
    padding: 0;
}

/* Carrito y usuario en cabecera */

.header-myaccount-contents,
.header-cart-contents{
    display: flex;
    align-items: center;
}
.header-cart-contents-icon{
}
.header-cart-contents-count{
    margin-left: 3px;
}
.header-cart-contents-count.count-0{
    display: none;
}

/* Filtros bloque (atributos y precio) */

.wp-block-woocommerce-attribute-filter,
.wp-block-woocommerce-price-filter{
    border-bottom:1px solid #E4E4E4;
    margin-bottom: 1rem;
}

.wp-block-woocommerce-attribute-filter h3,
.wp-block-woocommerce-price-filter h3{
    text-transform: unset;
    font-size: 1rem;
    cursor: pointer;
}
.wp-block-woocommerce-attribute-filter h3::after,
.wp-block-woocommerce-price-filter h3::after{
    float: right;
    font-family: 'Font Awesome 5 Pro';
    content: "\f068";
    color: #E4E4E4;
}
.wp-block-woocommerce-attribute-filter.hide h3::after,
.wp-block-woocommerce-price-filter.hide h3::after{
    content: "\f067";
}

.wp-block-woocommerce-attribute-filter > div,
.wp-block-woocommerce-price-filter > div{
    margin-bottom: 1rem;
}

.wp-block-woocommerce-attribute-filter input[type='checkbox'] {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
.wp-block-woocommerce-attribute-filter input[type='checkbox'] + label:before {
    font-family: 'Font Awesome 5 Pro';
    display: inline-block;
    content: "\f111";
    font-size: 1.2rem;
    color: #E4E4E4;
    font-weight: 700;
    margin-right: 0.5rem;
}
.wp-block-woocommerce-attribute-filter input[type='checkbox']:checked + label {
    color: #000;
    text-decoration: underline;
}
.wp-block-woocommerce-attribute-filter input[type='checkbox']:checked + label:before {
    content: "\f058";
    color: #81b700;
}

.wc-block-components-price-slider .wc-block-components-price-slider__range-input-wrapper{
    box-shadow: unset;
    height: 1px;
    background: #E4E4E4;
    margin-bottom: 19px;
    z-index: 2;
}
.wc-block-components-price-slider .wc-block-components-price-slider__range-input-wrapper .wc-block-components-price-slider__range-input-progress{
    --range-color: #81b700;
    height: 1px;
}
.wc-block-components-price-slider .wc-block-components-price-slider__range-input{
    top: -1px;
}
.wc-block-components-price-slider .wc-block-components-price-slider__range-input::-moz-range-thumb{
    background: #E4E4E4;
    width: 19.2px;
    height: 19.2px;
    border-radius: 50%;
}
.wc-block-components-price-slider .wc-block-components-price-slider__range-input::-webkit-slider-thumb {
    background: #E4E4E4;
    width: 19.2px;
    height: 19.2px;
    border-radius: 50%;
}
.wc-block-components-price-slider .wc-block-components-price-slider__range-input.wc-block-components-price-slider__range-input--min::-moz-range-thumb,
.wc-block-components-price-slider .wc-block-components-price-slider__range-input.wc-block-components-price-slider__range-input--max::-moz-range-thumb{
    transform: unset;
}

.wc-block-components-price-slider .wc-block-components-price-slider__controls .wc-block-components-price-slider__amount{
    border-width: 0;
    border-radius: 0;
}

/* Listado productos - Defecto */
.woocommerce ul.products li.product{
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Listado productos - Bloque */

.wc-block-grid__products{
    margin-left: -1rem;
    margin-right: -1rem;
}
.wc-block-grid.has-2-columns .wc-block-grid__product{
    flex: 1 0 calc(50% - 2rem);
    max-width: calc(50% - 2rem);

    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin: 0 1rem 2rem 1rem;
    border: 0;
}

/* Productos relacionados */
.woocommerce div.product .related.products ul.products{
    display: flex;
    margin-left: -1rem;
    margin-right: -1rem;
}
.woocommerce div.product .related.products ul.products li.product{
    float: none;
    flex: 1 0 calc(25% - 2rem);
    max-width: calc(25% - 2rem);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin: 0 1rem 2rem 1rem;
    border: 0;
}

/* Carrito */

.woocommerce .woocommerce_page_title{
    margin-bottom: 2rem;
    text-align: center;
}
.woocommerce .woocommerce_page_title .far{
    display: block;
}

.woocommerce table.shop_table th{
    font-weight: 500;
}
.woocommerce-cart table.cart .product-thumbnail{
    width: 100px;
}
.woocommerce-cart table.cart img {
    width: 100px;
    border-radius: 50%;
}
.woocommerce-cart table.cart .product-name a{
    color: #000;
    font-weight: 500;
}
.woocommerce-cart table.cart input{
    border: 1px solid #E4E4E4;
    border-radius: 2rem;
}
.woocommerce-cart table.cart .product-remove{
    width: 50px;
    text-align: center;
}
.woocommerce-cart table.cart .product-remove a.remove{
    margin:0 auto;
    font-size: 1.6rem;
    line-height: 0.8em;
}

.woocommerce-cart table.cart td.actions .coupon .input-text{
    min-width: 190px;
}

.woocommerce table.shop_table{
    margin-bottom: 0;
    border-bottom-right-radius: 0;
}
.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th{
    font-weight: 500;
}
.woocommerce-cart .cart-collaterals .cart_totals{
    width: 43%;
}
.woocommerce-cart .cart-collaterals .cart_totals h2{
    display: none;
}
.woocommerce-cart .cart-collaterals .cart_totals table{
    border-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 5px;
    background: #E6E6E6;
}
.woocommerce-cart .cart-collaterals .cart_totals table tr th{
    width: 50%;
}
.woocommerce-cart .cart-collaterals .cart_totals table tr td{
    text-align: right;
}
.woocommerce-cart .cart-collaterals .cart_totals table .order-total{
    font-size: 0.9375rem;
    color: #000;
}

.woocommerce-cart .cart-collaterals .cart_totals .shipping-calculator-form .form-row > span{
    display: block;
    width: 100%;
}
.woocommerce-cart .cart-collaterals .cart_totals .shipping-calculator-form input[type='text']{
    border:0;
    border-radius: 5px;
    padding: 0.5rem 0.8rem;
}

    /* Checkout */

.woocommerce-checkout .woocommerce .col2-set .col-1,
.woocommerce-checkout .woocommerce .col2-set .col-2{
    float: none;
    width: 100%;
    padding: 0;
}
.woocommerce-checkout .woocommerce .woocommerce-checkout{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.woocommerce-checkout .woocommerce .woocommerce-checkout > #customer_details{
    flex: 0 1 calc(45% - 2rem);
    margin-right: 2rem;
}
.woocommerce-checkout .woocommerce .woocommerce-checkout > #customer_details + div{
    flex: 0 1 55%;
}

.woocommerce-checkout .woocommerce #customer_details .form-row,
.woocommerce-account .woocommerce-MyAccount-content .form-row{
    padding: 0 0.5rem 0.8rem 0.5rem;
    margin: 0;
}
.woocommerce-checkout .woocommerce #customer_details .form-row label,
.woocommerce-account .woocommerce-MyAccount-content .form-row label {
    line-height: 1.4;
    margin: 0 0 0.125rem 0;
    display: block;
    width: 100%;
}
.woocommerce-checkout .woocommerce #customer_details .form-row .woocommerce-input-wrapper,
.woocommerce-account .woocommerce-MyAccount-content .form-row .woocommerce-input-wrapper {
    display: block;
    width: 100%;
}
.woocommerce-checkout .woocommerce #customer_details .form-row input.input-text,
.woocommerce-checkout .woocommerce #customer_details .form-row textarea,
.woocommerce-checkout .woocommerce #customer_details .form-row select,
.woocommerce-account .woocommerce-MyAccount-content .form-row input.input-text,
.woocommerce-account .woocommerce-MyAccount-content .form-row textarea,
.woocommerce-account .woocommerce-MyAccount-content .form-row select {
    border:1px solid #E4E4E4;
    border-radius: 5px;
    padding: 0.5rem 0.8rem;
}

.woocommerce-checkout .woocommerce .woocommerce-billing-fields__field-wrapper{
    background: #F7F7F7;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    padding: 1rem 0.5rem 0 0.5rem;
}
.woocommerce-checkout .woocommerce .woocommerce-additional-fields{
    background: #F7F7F7;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 0 0.5rem 0.5rem 0.5rem;
}
.woocommerce-checkout .woocommerce .woocommerce-additional-fields h3{
    display: none;
}

.woocommerce-checkout .woocommerce .shop_table.woocommerce-checkout-review-order-table{
    margin-bottom: 1.5rem;
}
.woocommerce-checkout .woocommerce .shop_table.woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce .shop_table.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout .woocommerce .shop_table.woocommerce-checkout-review-order-table tfoot td{
    font-weight: 700;
}

.woocommerce-checkout #payment ul.payment_methods,
.woocommerce-checkout #payment div.form-row{
    padding: 1rem;
}
.woocommerce-checkout #payment ul.payment_methods li input{
    margin-right: 0.5rem;
}
.woocommerce-checkout #payment ul.payment_methods li label{
    width: calc(100% - 2rem);
}
.woocommerce-checkout #payment .payment_method_paypal .about_paypal{
    line-height: 2rem;
}
.woocommerce-checkout #payment .woocommerce-privacy-policy-text{
    font-size: 0.8rem;
}

.select2-container .select2-selection--single{
    height: 34px;
}
.select2-container--default .select2-selection--single {
    border: 1px solid #E4E4E4;
    border-radius: 5px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered{
    line-height: 34px;
    padding-left: 0.8rem;
    color: #000;
}
.select2-container--default .select2-selection--single .select2-selection__arrow{
    height: 33px;
}

.woocommerce-checkout .woocommerce .woocommerce-checkout > .woocommerce-NoticeGroup{
    flex: 0 0 100%;
}

/* Order */

.woocommerce-order-received .woocommerce .woocommerce-thankyou-order-received::before{
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    font-family: 'Font Awesome 5 Pro';
    font-weight: 400;
    content: "\f0d1";
    display: block;
}
.woocommerce-order-received .woocommerce .woocommerce-thankyou-order-received{
    text-align: center;
    margin: 0 0 2rem 0;
}

.woocommerce-order-received .woocommerce .woocommerce-thankyou-order-received .woocommerce-notice-p{
    display: block;
    max-width: 960px;
    margin: 1rem auto 0 auto;

    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    color: #707070;
    line-height: 1.5;
    font-weight: 400;
}

.woocommerce-order-received .woocommerce ul.order_details{
    margin: 0 0 2rem 0;
    border: 1px solid #E4E4E4;
    border-radius: 5px;
    padding: 1rem 1rem 0 1rem;
    background: #F7F7F7;
}
.woocommerce-order-received .woocommerce ul.order_details li{
    border-right: 1px solid #E4E4E4;
    margin-bottom: 1rem;
}
.woocommerce-order-received .woocommerce ul.order_details li:last-of-type{
    border-right: 0;
    margin-right: 0;
}

.woocommerce-order-received .woocommerce .woocommerce-bacs-bank-details .wc-bacs-bank-details-account-name{
    display: none;
}
.woocommerce-order-received .woocommerce .woocommerce-bacs-bank-details ul.order_details{
    background: transparent;
}
.woocommerce-order-received .woocommerce .woocommerce-bacs-bank-details ul.order_details li{
    border-right: 0;
    min-width: 30%;
}

.woocommerce-order-received .woocommerce .woocommerce-order-details tfoot tr:last-child th,
.woocommerce-order-received .woocommerce .woocommerce-order-details tfoot tr:last-child td,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order-details tfoot tr:last-child th,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order-details tfoot tr:last-child td{
    font-weight: 700;
}

.woocommerce-order-received .woocommerce .woocommerce-customer-details address,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details address{
    display: flex;
    padding: 1rem 1rem 0 1rem;
}
.woocommerce-order-received .woocommerce .woocommerce-customer-details address p,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details address p{
    flex: 1 1 30%;
    margin: 0 0 1rem 0;
    padding: 0;
}
.woocommerce-order-received .woocommerce .woocommerce-customer-details .woocommerce-customer-details--phone,
.woocommerce-order-received .woocommerce .woocommerce-customer-details .woocommerce-customer-details--email,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-customer-details--phone,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-customer-details--email {
    text-align: center;
}
.woocommerce-order-received .woocommerce .woocommerce-customer-details .woocommerce-customer-details--phone::before,
.woocommerce-order-received .woocommerce .woocommerce-customer-details .woocommerce-customer-details--email::before,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-customer-details--phone::before,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-customer-details--email::before {
    display: block;
    position: relative;
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
}

/* Account */
.woocommerce-account article .entry-header,
.woocommerce-account article .entry-content,
.woocommerce-account article .entry-footer{
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-header{
    margin: 0 auto 3.5rem auto;
    max-width: 40rem;
    text-align: center;
}
.woocommerce-account .woocommerce-MyAccount-header > div {
    width: 5.625rem;
    height: 5.625rem;
    font-size: 2.6rem;
    color: #fff;
    background: #81b700;
    margin: 0 auto 0.8rem auto;
    border-radius: 50%;
    line-height: 5.6rem;
    font-weight: 600;
}
.woocommerce-account .woocommerce-MyAccount-header > p,
.woocommerce-account .woocommerce-MyAccount-header > p a{
    font-weight: 500;
}
.woocommerce-account .woocommerce-MyAccount-header > p:nth-child(2) {
    font-size: 1rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation{
    margin-right: 2rem;
    width: calc(30% - 2rem);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul{
    padding: 0;
    margin: 0;
    list-style: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a{
    display: block;
    background: #F7F7F7;
    padding: 0.7rem 1.5rem;
    border-radius: 2rem;
    margin: 0 0 1rem 0;
    color: #707070;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:before{
    font-family: 'Font Awesome 5 Pro';
    content: "";
    color: #707070;
    display: inline-block;
    margin-right: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    min-width: 1rem;

}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard a:before {
    content: "\f015";
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--orders a:before {
    content: "\f5ce";
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-address a:before {
    content: "\f3c5";
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-account a:before {
    content: "\f044";
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:before {
    content: "\f506";
}

.woocommerce-account .woocommerce-MyAccount-content .col-1{
    float: none;
    width: auto;
    max-width: unset;
    padding: 0;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm{
    background: #F7F7F7;
    border-radius: 5px;
    padding: 1rem 0.5rem;
    margin-bottom: 1rem;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields p:not(.form-row),
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm p:not(.form-row){
    margin: 0;
    padding: 0.2rem 0.5rem 0 0.5rem;
    text-align: right;
}

/* Login / Registro */
.woocommerce form.login,
.woocommerce form.register{
    max-width: 25rem;
    margin: 0 auto 2rem auto;
    background: #F7F7F7;
    border-radius: 5px;
    border: 0;
    text-align: center;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}
.woocommerce form.login h2,
.woocommerce form.register h2{
    line-height: 1.2em;
    font-size: 1.4rem;
    color: #000;
}
.woocommerce form.login .form-row,
.woocommerce form.register .form-row{
    padding: 0;
    margin: 0 0 1rem 0;
}
.woocommerce form.login .woocommerce-form-row label,
.woocommerce form.register .woocommerce-form-row label{
    display: none;
}
.woocommerce form.login .woocommerce-form-row input,
.woocommerce form.register .woocommerce-form-row input{
    width: 100%;
    border: 0;
    border-radius: 5px;
    background: #fff;
    text-align: center;
    padding: 0.8rem 0;
}
.woocommerce form.login .woocommerce-form-row .password-input,
.woocommerce form.register .woocommerce-form-row .password-input{
    display: block;
    width: 100%;
}
.woocommerce form.login .woocommerce-form-row .password-input .show-password-input,
.woocommerce form.register .woocommerce-form-row .password-input .show-password-input{
    top: 0.8rem;
}
.woocommerce form.login .woocommerce-form-row .password-input .show-password-input::after,
.woocommerce form.register .woocommerce-form-row .password-input .show-password-input::after{
    font-family: 'Font Awesome 5 Pro';
    content: "\f06e";
    font-weight: 100;
    font-size: 1rem;
}
.woocommerce form.login .woocommerce-form-row .password-input .show-password-input.display-password::after,
.woocommerce form.register .woocommerce-form-row .password-input .show-password-input.display-password::after{
    content: "\f070";
}

.woocommerce form.login .form-row .woocommerce-form-login__rememberme{
    display: block;
    width: 100%;
}
.woocommerce form.login .form-row .woocommerce-form-login__submit,
.woocommerce form.register .form-row .woocommerce-form-register__submit{
    float: none;
    display: block;
    width: 100%;
    margin: 0;
    text-align: center;
}

/*** Filtros berocket ***/
aside .berocket_single_filter_widget{
    padding: 0;
    margin: 0;
}
aside .berocket_single_filter_widget .bapf_body{
    margin-bottom: 1rem;
}
aside .berocket_single_filter_widget .bapf_sfilter{
    border-bottom: 1px solid #E4E4E4;
    margin-bottom: 1rem;
}

aside .berocket_single_filter_widget .bapf_head h3{
    text-transform: unset;
    font-size: 1rem;
    cursor: pointer;
}
aside .berocket_single_filter_widget .bapf_head h3:after{
    float: right;
    font-family: 'Font Awesome 5 Pro';
    content: "\f068";
    color: #E4E4E4;

    border:0;
    margin: 0;
    width: auto;
}
aside .berocket_single_filter_widget .hide .bapf_head h3:after{
    content: "\f067";
}
aside .berocket_single_filter_widget .bapf_body input[type='checkbox'] {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
aside .berocket_single_filter_widget .bapf_body input[type='checkbox'] + label:before {
    font-family: 'Font Awesome 5 Pro';
    display: inline-block;
    content: "\f111";
    font-size: 1.2rem;
    color: #E4E4E4;
    font-weight: 700;
    margin-right: 0.5rem;
}
aside .berocket_single_filter_widget .bapf_body input[type='checkbox']:checked + label {
    color: #000;
    text-decoration: underline;
}
aside .berocket_single_filter_widget .bapf_body input[type='checkbox']:checked + label:before {
    content: "\f058";
    color: #81b700;
}

/*** Media queries ***/
@media (max-width: 768px) {
    /* Cart */
    .woocommerce-cart .cart-collaterals .cart_totals{
        float: right;
    }
    .woocommerce table.shop_table td{
        border-top: 0;
    }
    .woocommerce table.shop_table tr{
        border-top: 1px solid rgba(0,0,0,.1);
    }
    .woocommerce-cart table.cart .product-remove{
        width: unset;
    }
    .woocommerce-cart table.cart .product-remove a.remove{
        display: inline-block;
        margin: 0;
    }
    /* Checkout */
    .woocommerce-checkout .woocommerce .woocommerce-checkout{
        flex-direction: column;
    }
    .woocommerce-checkout .woocommerce .woocommerce-checkout > :nth-child(1){
        margin: 0 0 2rem 0;
    }
    /* Order */
}
@media (max-width: 575px) {
    /* Cart */
    .woocommerce-cart .cart-collaterals .cart_totals{
        float: none;
        width: 100%;
    }
    .woocommerce-cart table.cart td.actions .coupon .input-text{
        min-width: unset;
    }
    /* Checkout */

    /* Order */
    .woocommerce-order-received .woocommerce ul.order_details li {
        width: 100%;
        border: 0;
    }
    .woocommerce-order-received .woocommerce .woocommerce-customer-details address{
        flex-direction: column;
    }
    .woocommerce-order-received .woocommerce .woocommerce-customer-details .woocommerce-customer-details--phone,
    .woocommerce-order-received .woocommerce .woocommerce-customer-details .woocommerce-customer-details--email{
        text-align: left;
    }
    .woocommerce-order-received .woocommerce .woocommerce-customer-details .woocommerce-customer-details--phone::before,
    .woocommerce-order-received .woocommerce .woocommerce-customer-details .woocommerce-customer-details--email::before{
        display: inline-block;
        margin-right: 1rem;
        vertical-align: middle;
    }
}