/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/

p {
	margin: 0;
	padding: 0;
}
p:not(:last-child) {
	margin-bottom: 2%;
}

body .qib-button-wrapper .minus.qib-button, body .qib-button-wrapper .plus.qib-button, .qib-button-wrapper {
	margin: 0!important;
	border-radius: 0;
}
.qib-button-wrapper button.qib-button, .qib-button-wrapper div.quantity.wqpmb_quantity, .qib-button-wrapper .quantity input.input-text.qty.text, .single_add_to_cart_button {
	min-height: 3vw;
}
.qib-button-wrapper .quantity input.input-text.qty.text {
    padding: 0 !important;
    width: 2vw;
}
.elementor-widget-woocommerce-menu-cart.elementor-menu-cart--cart-type-mini-cart .elementor-menu-cart__container {
	width: 30vw;
}


.copertina img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.copertina-verticale img {
    aspect-ratio: 9 / 16;
    object-fit: cover;
}


.elementor-10 .elementor-element.elementor-element-e58be17 #customer_details .input-text, .elementor-10 .elementor-element.elementor-element-e58be17 #customer_details .form-row textarea, .elementor-10 .elementor-element.elementor-element-e58be17 #customer_details .form-row select, .elementor-10 .elementor-element.elementor-element-e58be17 .e-woocommerce-login-anchor .input-text, .elementor-10 .elementor-element.elementor-element-e58be17 #coupon_code, .elementor-10 .elementor-element.elementor-element-e58be17 ::placeholder, .elementor-10 .elementor-element.elementor-element-e58be17 .select2-container--default .select2-selection--single, .select2-results__option, .elementor-widget-woocommerce-checkout-page .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 3vw;
}
.elementor-widget-woocommerce-checkout-page .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 3vw;
}
.select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0;
}
@media (min-width: 900px) {
	.woocommerce-billing-fields__field-wrapper {
	  display: flex;
	  flex-wrap: wrap;
	  row-gap: 2%;
	  column-gap: 5%;
	}
	.elementor-widget-woocommerce-checkout-page .woocommerce #customer_details .form-row {
		flex: 1;
		width: 30%;
		min-width: 30%;
	}	
}
.custom-switch {
  width: 40px;
  height: 20px;
  background: #c6c6c6;
  border-radius: 20px;
  position: relative;
  transition: background 0.3s;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}
#desidero_fattura {
	margin-bottom:20px; 
	display:flex; 
	align-items:center; 
	cursor:pointer;
}
#desidero_fattura:checked + .custom-switch {
  background: #4caf50;
}
.custom-switch::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  top: 1px;
  left: 1px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: left 0.3s;
}
#desidero_fattura:checked + .custom-switch::before {
  left: 21px;
}

    /* Toggle switch styles */
    .fattura-toggle {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        gap: 10px;
        user-select: none;
    }

    .fattura-toggle .switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 26px;
    }

    .fattura-toggle .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .fattura-toggle .slider {
        position: absolute;
        cursor: pointer;
        top: 0; left: 0;
        right: 0; bottom: 0;
        background-color: #ccc;
        transition: 0.4s;
        border-radius: 26px;
    }

    .fattura-toggle .slider:before {
        position: absolute;
        content: "";
        height: 20px; width: 20px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
    }

    .fattura-toggle input:checked + .slider {
        background-color: #4CAF50;
    }

    .fattura-toggle input:checked + .slider:before {
        transform: translateX(24px);
    }
