/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

#step-wrapper-payment .payoneInput {
    font-family: 'PT Sans'; 
    border: 1px solid #ddd; 
    padding: 0 .75em; 
    height: 2.507em; 
    font-size: .97em; 
    color: #333; 
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

#step-wrapper-payment .payoneSelect {
    font-family: 'PT Sans' !important; 
    border: 1px solid #ddd !important; 
    padding: 0 .75em !important; 
    height: 2.507em !important; 
    font-size: .97em !important; 
    color: #333 !important; 
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1) !important;
}

#expireInput {
    display: -webkit-box;
    display: -moz-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

form.checkout .woocommerce-error{
    background: rgba(198, 112, 112, 0.242);
    padding: 1em;
    margin: 0 0 25px 0;
    font-weight: bold;
}

.hide_checkout_btn a.checkout{
    display: none;
}

/* Coupon form on the multistep checkout: only on the last step.
Hidden by default, which also covers the moment before Germanized has marked
the active step on the body - the checkout always starts on the address step,
so showing it by default would flash it on every page load. */
body.woocommerce-multistep-checkout .woocommerce-form-coupon-toggle {
    display: none;
}

body.woocommerce-multistep-checkout-active-address form.checkout_coupon,
body.woocommerce-multistep-checkout-active-payment form.checkout_coupon {
    display: none !important; /* Beats the inline style left by the toggle. */
}

body.woocommerce-multistep-checkout-active-order .woocommerce-form-coupon-toggle {
    display: block;
}

@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/
}

/* Custom checkout login */

ul.checkout-account-list, .col-inner ul.checkout-account-list,
ul.checkout-guest-list, .col-inner ul.checkout-guest-list
{
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em 0;
}

ul.checkout-account-list li, .col-inner ul.checkout-account-list li,
ul.checkout-guest-list li, .col-inner ul.checkout-guest-list li {
    margin: 0;
    padding: 0;
    font-size: 0.9em;
}

ul.checkout-account-list li:before, .col-inner ul.checkout-account-list li:before,
ul.checkout-guest-list li:before, .col-inner ul.checkout-guest-list li:before {
    margin: 0 0.5em;
    padding: 0;
}

ul.checkout-account-list li:before, .col-inner ul.checkout-account-list li:before {
    content: '\2714';
    color: green;
}

ul.checkout-guest-list li:before, .col-inner ul.checkout-guest-list li:before {
    content: '\2716';
    color: red;
}

.me-checkout-login button.woocommerce-form-login__submit,
.me-checkout-login button.woocommerce-form-register__submit,
.me-checkout-login a.woocommerce-form-guestlogin__submit
{
    font-size: 0.8em !important;
}

.me-checkout-login h3{
    font-size: 1.1em;
}

.me-checkout-login label[for="reg_data_privacy"]{
    padding-left: 0 !important;
}

.me-checkout-login p{
    font-size: 0.9em;
}

.me-checkout-login input.woocommerce-form__input{
    margin-bottom: 0;
}

.woocommerce-checkout-payment ul.payment_methods li label img{
    width: 40px;
}

.woocommerce-checkout-payment ul.payment_methods li.payment_method_bs_payone_paydirekt label img{
    width: 60px;
}

/* Hide review form on product pages */

#tab-reviews #review_form{
    display: none;
}

/* My Account pages */
.me--wc-account-introduction::before,
.me--wc-account-downloads-info-second::before {
    content: "🌱";
    font-size: 1.2em;
    margin-right: 0.1em;
}

.me--wc-account-list {
    padding-left: 1.5em;
    margin-bottom: 3em;
}

.me--wc-account-list-title::before {
    content: "👉";
    font-size: 1.2em;
    margin-right: 0.1em;
}

.me--wc-account-vouchers-info-second::before {
    content: "🌼";
    font-size: 1.2em;
    margin-right: 0.1em;
}

/* Widerruf button/revocation button */
.eu-owb-order-withdraw-from-contract-button {
    margin-top: 1em !important;
}

.eu-owb-order-withdraw-from-contract-button a {
    padding: 0px !important;
}

form .eu-owb-notice-wrapper p.woocommerce-message {
    margin-bottom: 0 !important;
    padding:.5em;
    border: 2px solid #58ab27;
}

form .eu-owb-form-fields .woocommerce-info.notice {
    padding:.5em;
    border: 2px solid #58ab27;
}

form .eu-owb-notice-wrapper p.woocommerce-error.notice {
    padding:.5em;
    border: 2px solid #ff8513;
}

/* Multistep payment checkout: always show the payment box (description) of every method */
.woocommerce-multistep-checkout #step-wrapper-payment #payment li.wc_payment_method > div.payment_box {
    display: block !important;
}

/* ... but reveal the credit card form only once that method is selected */
.woocommerce-multistep-checkout #step-wrapper-payment #payment li.wc_payment_method > div.payment_box.payment_method_bs_payone_creditcard > fieldset {
    display: none;
}

.woocommerce-multistep-checkout #step-wrapper-payment #payment li.wc_payment_method > input#payment_method_bs_payone_creditcard:checked ~ div.payment_box.payment_method_bs_payone_creditcard > fieldset {
    display: block;
}

/* Styling for multistep checkout */
#step-wrapper-address .woocommerce-shipping-fields {
    padding-top: 8px;
}

/* Styling for Product Page */

/* Ratings block */
.single-product {
    
    .woocommerce-product-rating {
        border-bottom: 1px solid rgba(216, 216, 216, 0.85);
        padding-bottom: .6em;
        flex-wrap: wrap;
        display: flex;
        align-items: center;
        gap: .5em;
        margin-bottom: 1.5em;
        
        .star-rating {
            margin: 0;
        }
        
        .wc-gzd-additional-info.wc-gzd-rating-authenticity-status {
            display: flex;
            align-items: center;
            
            > a {
                display: flex;
                padding-left: .3em;
                align-items: center;
                padding-top: .1em;
                
                &::after {
                    content: "";
                    display: inline-block;
                    width: 1em;
                    height: 1em;
                    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%2358ab27' stroke-width='2' stroke-linecap='square' stroke-miterlimit='10'%3E%3Cpath d='M4.49998 21.5L14.9999 11L14.5 11.5'/%3E%3Cpath d='M9 11L15 11L15 17'/%3E%3Cpath d='M11 22L18 22C19.1046 22 20 21.1046 20 20L20 4C20 2.89543 19.1046 2 18 2L6 2C4.89543 2 4 2.89543 4 4L4 15'/%3E%3C/g%3E%3C/svg%3E");
                    background-size: 1em 1em;
                    background-repeat: no-repeat;
                    margin-left: .3em;
                    margin-bottom: .1em;
                }
            }
        }
        
        .woocommerce-review-link {
            display: flex;
            
            .count {
                display: inline-block !important;
                padding-right: .2em;
            }
        }
    }
    
    .price-wrapper .price {
        margin-bottom: .4em !important;
    }
} /* Closing .single-product */

/* Custom Testimonial Slider on Garden Product Page */
@media only screen and (max-width: 800px) {
    .me--testimonial-custom {
        .testimonial-meta {
            .testimonial-name {
                font-size: 1.5em !important;
            }
        }
    }
    
    .product-type-variable_garden {
        .slider-wrapper {
            .flickity-page-dots {
                display: none !important;
            }
        }
    }
}

.product-type-variable_garden {
    .slider-wrapper {
        .testimonial-text div.text,
        .testimonial-text {
            font-size: 19.1875px !important;
            text-align: left !important;
            line-height: 1.4 !important;
            
            p, p span {
                font-size: 100% !important;
            }
        }
        
        .me--testimonial-custom {
            text-align: left !important;
        }
        
        @media screen and (max-width: 849px) {
            .text-box.y50.x90 {
                transform: translate(10%,-50%) !important;
            }
            
            .flickity-viewport {
                height: 250px !important;

                .banner {
                    min-height: 250px !important;
                }
            }
        }

        @media screen and (min-width: 600px) and (max-width: 849px) {
            .text-box.y50.x90 {
                transform: translate(-5%,-50%) !important;
            }
        }
        
        @media screen and (min-width: 850px) {
            .text-box.x90.y50 {
                top: 50%;
                transform: translate(-7%,-50%) !important;
            }
        }
    }
}

/* Align layout of buttons on Garden Pages, in Cart and Checkout and Login Page */
/* GARDEN PAGE */
.product-type-variable_garden {
    a.button {
        border-radius: 0 !important;
    }
    
    .woocommerce-tabs li {
        margin-right: 1em !important;
        a {
            font-size: 1em !important;
            text-transform: none !important;
            letter-spacing: 0 !important;
        }
    }
    
    .variations {
        
        tbody > tr {
            display: flex;
            flex-direction: column;
        } 
        
        label, .ux-swatches {
            font-size: 1.1em !important;
        }
        
        .ux-swatch {
            border-radius: 0 !important;
            padding: .7em 1.3em !important;
            
            .ux-swatch--label {
                font-size: 1em !important;
            }
        }
        
        .reset_variations {
            font-size: .8em !important;
            padding: 1em 1em 1em 0 !important;
            position: relative !important;
            display: block !important;
        }
    }
    
    .product-info p.stock {
        font-size: 1em !important;
        margin-bottom: 1em !important;
    }
    
    .flickity-viewport, .product-gallery {
        .badge-container .badge-inner {
            padding: 0 1em !important;
        }
    }
}

/* CART */
.woocommerce-cart-form {
    .button:not(.ux-quantity__button), button {
        font-size: 1em !important;
        padding: 0.09em 1.2em !important;
    }
    
    .button.button-continue-shopping {
        padding-bottom: 0.2em !important;
    }
    
    .woocommerce-Price-amount {
        font-size: 1.1em !important;
    }
}

.cross-sell {
    ul li {
        font-size: .9em !important;
    }
}

/* CHECKOUT */
.woocommerce-multistep-checkout {
    ul.nav-wizard li.active {
        background: #58ab27 !important;
        
        a {
            background: #58ab27 !important;
            color: #ffffff !important;
            font-weight: bold !important;
        }
        
        &::after {
            border-color: #58ab27 !important;
        }
    }
    
    /* ADDRESS FORM PAGE */
    #order_garden_name_field {
        margin-top: -4px !important;
    }
    
    /* PAYMENT PAGE */
    #step-wrapper-payment .woocommerce-checkout-payment {
        ul.payment_methods {
            li.payment_method_bs_payone_safeinvoice,
            li.payment_method_bs_payone_creditcard {
                label img {
                    width: 32px !important;
                    padding-left: 5px !important;
                }
            }
        }
        
        .payment_box.payment_method_bs_payone_creditcard {
            input[type="text"] {
                background-color: #fff !important;
                border: 1px solid #ddd !important;
                border-radius: 0 !important;
                box-shadow: inset 0 1px 2px rgba(0,0,0,.1) !important;
                color: #333 !important;
                font-size: .97em !important;
                height: 2.55em !important;
                max-width: 100% !important;
                padding: 0 .75em !important;
                transition: color .3s,border .3s,background .3s,opacity .3s !important;
                vertical-align: middle !important;
                width: 50% !important;

                @media (max-width: 768px) {
                    width: 100% !important;
                    height: 2.75em !important;
                }
            }
            
            .payoneSelect {
                background-image: none !important;
                width: 50% !important;
                height: 2.78em !important;

                @media (max-width: 768px) {
                    width: 100% !important;
                     height: 2.85em !important;
                }
            }

            #cardpan > iframe {
                width: 50% !important;

                @media (max-width: 768px) {
                    width: 100% !important;
                }
            }
            
            #expireInput > span {
                width: 12% !important;

                @media (max-width: 768px) {
                    width: 30% !important;
                }

                @media (max-width: 768px) {
                    > iframe {
                        height: 40px !important;
                    }
                }
            }
        }
    }
    
    /* ORDER OVERVIEW PAGE */
    .woocommerce-checkout-review-order {
        
        .wc-gzd-checkbox-placeholder-legal,
        .wc-gzd-checkbox-placeholder-data-download,
        .wc-gzd-checkbox-placeholder-order_garden_terms {
            color: #6b6b6b !important;
            font-size: 1.1em !important;
            width: 95% !important;
        }

        .woocommerce-gzd-order_gaertnerbrief-checkbox-text {
            font-size: 17.4063px !important;
            display: inline-block !important;

            @media (max-width: 768px) {
                font-size: 15.8281px !important;
                line-height: 1.6 !important;
            }
        }

        .wc-gzd-popover-wrapper .wc-gzd-popover-trigger img.wc-gzd-legal-guarantee-image-preview {
            max-width: 250px !important;
            height: auto !important;
        }
        
        .shop_table thead tr th {
            padding: .5em 1em !important;
            color: #525252 !important;
            border-color: #525252 !important;
        }
        
        .shop_table tr td {
            padding: 1em .5em !important;
            color: #525252 !important;
            border-color: #d6d6d6 !important;
        }
        
        .shop_table tfoot tr th {
            border-color: #d6d6d6 !important;
        }
        
        .shop_table tfoot tr.order-total th,
        .shop_table tfoot tr.order-total td {
            border-color: #525252 !important;
        }
        
        .shop_table {
            background-color: #ffffff !important;
            padding: 1em !important;
            margin-top: 1em !important;

            @media (max-width: 768px) {
                font-size: 100% !important;
            }
            
            th {
                margin-bottom: 1em !important;
            }
            
            .wc-gzd-cart-item-name-wrapper {
                color:#525252 !important;
            }
            
            .me--checkout-garden-name {
                color: #525252 !important;
                margin: 0 0 0 1em !important;
                
                strong {
                    margin-right: .5em !important;
                }
            }
            
            .me--checkout-garden-name-value {
                color: #525252 !important;
            }

            .wc-gzd-item-defect-description p, .wc-gzd-item-desc p {
                @media (max-width: 768px) {
                    font-size: 1em !important;
                }
            }
        }
        
    }
    
    .step-buttons {
        margin-top: 2.5em !important;

        @media (max-width: 768px) {
            display: flex !important;
            flex-direction: column-reverse !important;
            align-items: center !important;
        }
        
        .prev-step-button {
            background-color: #fff !important;
            color: #9c9c9c !important;
            border: 2px solid #9c9c9c !important;
            padding: .18em 1.2em !important;
            text-transform: uppercase !important;
            letter-spacing: .03em !important;
            min-height: 39.24px !important;
            line-height: 1.85em !important;
            font-weight: bolder !important;
            transition: color .3s,border .3s,background .3s,opacity .3s !important;
            font-size: 17.625px !important;
            display: inline-block !important;

            @media (max-width: 768px) {
                max-width: 300px !important;
                padding: .25em 1.2em !important;
                font-size: 90% !important;
                min-height: 39.24px !important;
                line-height: 2.1em !important;
            }
            
            &:hover {
                background-color: #9c9c9c !important;
                color: #fff !important;
            }
        }

        .next-step-button {
            @media (max-width: 768px) {
                margin-right: 0 !important;
                margin-bottom: 1.5em !important;
            }
        }
    }
}

/* LOGIN AREA */
.me-checkout-login button.woocommerce-form-login__submit, 
.me-checkout-login button.woocommerce-form-register__submit {
    font-size: 1em !important;
    margin-top: .5em !important;
}

.me-checkout-login a.woocommerce-form-guestlogin__submit {
    font-size: .9em !important;
}

.me-checkout-login h3 {
    margin-bottom: .7em !important;
}