/*
Theme Name:   L'Angolo Delle Idee
Description:  Tema Child per L'Angolo Delle Idee.
Author: 
Author URI: 
Template:  storefront
Version:  1.0
License:  GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* WM MOD: Fix "focused" link border color */
body a:focus, button:focus, 
body .button.alt:focus, 
body input:focus, 
body textarea:focus, 
body input[type="button"]:focus, 
body input[type="reset"]:focus, 
body input[type="submit"]:focus, 
body input[type="email"]:focus, 
body input[type="tel"]:focus, 
body input[type="url"]:focus, 
body input[type="password"]:focus, 
body input[type="search"]:focus {
    outline-color: #dddddd00;
}

/* Google Recaptcha V3 */
.grecaptcha-badge { visibility: hidden; }
/* Select2 Elementor */
.e-woo-select2-wrapper .select2-results__option:focus {
    color: #ffffff;
}
/* Fix Regoal CSS elementor che nasconde le label sulla tabella per il carrello wc in modalità desktop */
/* Ripristina le etichette dei totali su Desktop e Tablet */
@media (min-width: 769px) {
    .woocommerce table.shop_table_responsive.cart_totals tbody th,
    .woocommerce-page table.shop_table_responsive.cart_totals tbody th,
    .elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table_responsive tbody th, 
    .elementor-widget-woocommerce-cart .woocommerce-page .cart_totals table.shop_table_responsive tbody th {
        display: table-cell !important;
    }

    /* Allarga i th rispetto ai td solo per le righe successive alla spedizione */

    .woocommerce-cart table.shop_table tbody tr.woocommerce-shipping-totals ~ tr th {
        width: 50% !important;
        text-align: left;
    }
    .woocommerce-cart table.shop_table tbody tr.woocommerce-shipping-totals ~ tr td {
        width: 50% !important;
        text-align: right;
    }
    /*
    .woocommerce-cart table.shop_table tbody tr.woocommerce-shipping-totals {
        display: flex !important;
        width: 100% !important;
    }
    .woocommerce-cart table.shop_table tbody tr.woocommerce-shipping-totals.shipping > th {
        flex: 0 0 35% !important;
        max-width: 35% !important;
        width: 35% !important;
    }
    .woocommerce-cart table.shop_table tbody tr.woocommerce-shipping-totals.shipping > td {
        flex: 0 0 65% !important;
        max-width: 65% !important;
        width: 65% !important;
    }
    */
}


/* Advanced Woo Search Fix Style For Header */
header .searchMobile .aws-search-form {
	margin-bottom: 0px;
}

header .searchMobile .aws-show-clear .aws-search-field {
	font-family: "Yanone Kaffeesatz", Sans-serif;
	font-size: 20px;
	font-weight: 400;
	text-transform: uppercase;

	border-style: none;
	border-radius: 25px 5px 25px 5px !important;

	padding-block-end: 10px;
	padding-block-start: 10px;

	padding-bottom: 10px;
	padding-inline-end: 10px;
	padding-inline-start: 37px;

	padding-left: 37px;
	padding-right: 10px;
	padding-top: 10px;

	color: #806459;
}

header .searchMobile .aws-show-clear .aws-search-field:focus {
	color: #806459;
}

header .searchMobile[data-buttons-order="3"] .aws-search-form .aws-search-btn {
	border: none;
	background-color: transparent;

	position: absolute;
	left: 0;

	z-index: 999;

	bottom: 0;
	top: 0;
}

header .searchMobile .aws-search-btn_icon > i:is(svg),
header .searchMobile .aws-search-btn_icon > svg:is(svg) {
	fill: #806459;
}

/* YITH */
#billing_receiver_type_field .woocommerce-input-wrapper label {
    top: 0px;
}
/** Woocommerce */
body ul.products li.product .quantity button {
    border-radius: 15px;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
}

/* Btn Add to Cart: Icone Quantità +/- */
.woocommerce-cart-form table.cart .product-quantity .plus, 
.woocommerce-cart-form table.cart .product-quantity .minus,
.wcf-products-loop.wcf-product-table button.kootj-qty-btn.kootj-qty-plus,
.wcf-products-loop.wcf-product-table button.kootj-qty-btn.kootj-qty-minus {
    border-radius: 15px;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    color: #ffffff;
}
.products .added_to_cart.alt, 
.products .added_to_cart, 
.products .widget a.button.checkout {
    background-color: transparent;
    border-color: #EFE0C7;
    color: #EFE0C7;
}
.products .added_to_cart.alt:hover, 
.products .added_to_cart:hover, 
.products .widget a.button.checkout:hover {
    background-color: transparent;
    border: 1px solid #806459;
    color: #806459;
}
.woocommerce-cart-form table.cart .product-quantity .plus:hover, 
.woocommerce-cart-form table.cart .product-quantity .minus:hover,
.wcf-products-loop.wcf-product-table button.kootj-qty-btn.kootj-qty-plus:hover,
.wcf-products-loop.wcf-product-table button.kootj-qty-btn.kootj-qty-minus:hover {
    color: #B79469;
}
/* CARRELLO */
.elementor-widget-woocommerce-cart .woocommerce table.cart td.product-price,
.elementor-widget-woocommerce-cart .woocommerce table.cart td.product-quantity {
    padding-inline: 0 10px;
}
.elementor-widget-woocommerce-cart .woocommerce table.shop_table .product-remove a {
    display: block;
}
.woocommerce-cart-form ul.products li.product .quantity {
    float: left;
    display: inline-block;
    position: relative;
}
.elementor-widget-woocommerce-cart .woocommerce table.cart td.product-quantity {
    min-width: 130px;
}
.elementor-widget-woocommerce-cart .woocommerce .input-text.qty {
    text-align: center;
}

.elementor-widget-woocommerce-cart .woocommerce .wc-proceed-to-checkout .checkout-button {
    background-color: transparent;
}
.elementor-widget-woocommerce-cart .woocommerce .wc-proceed-to-checkout .checkout-button:hover {
    background-color: transparent;
}

/* Checkout */
.checkout.woocommerce-checkout #customer_details.col2-set,
.checkout.woocommerce-checkout #order_review.woocommerce-checkout-review-order,
.checkout.woocommerce-checkout #order_review_heading,
.checkout.woocommerce-checkout .e-checkout__order_review {
    width: 100%;
    display: inline-block;
}
.checkout.woocommerce-checkout table:not( .has-background ) th {
    background-color: #ffffff;
}
.woocommerce-checkout .elementor-widget-woocommerce-checkout-page .woocommerce-checkout .woocommerce-account-fields .form-row, 
.woocommerce-checkout .elementor-widget-woocommerce-checkout-page .woocommerce-checkout .woocommerce-billing-fields .form-row, 
.woocommerce-checkout .elementor-widget-woocommerce-checkout-page .woocommerce-checkout .woocommerce-shipping-fields .form-row {
    margin-bottom: 15px;
}
.checkout.woocommerce-checkout #billing_country_field  {
    padding-top: 15px;
}

/* Avvisi Woocommerce */
.woocommerce-notices-wrapper-custom{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .5);
    z-index: 9999;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
}
.elementor-widget-woocommerce-checkout-page .woocommerce-notices-wrapper-custom .woocommerce-info,
.elementor-widget-woocommerce-checkout-page .woocommerce-info {
    background-color: #3d9cd2;
    padding: 1em 2em 1em 3.5em;
}
.woocommerce-notices-wrapper-custom .woocommerce-error, 
.woocommerce-notices-wrapper-custom .woocommerce-info{
    cursor: pointer;
    width: calc(100% - 50px);
    max-width: 500px;
    font-size: 18px;
    line-height: 22px;
}

.woocommerce-error li{
    padding-bottom: 15px;
    border-bottom: solid thin #FFF;
    margin-bottom: 15px;
}

.woocommerce-error li:last-of-type{
    border-bottom: none;
    margin-bottom: 0;
}
/* Temmplate Pagine archivio prodotti */
/* Barn2 WPT Fix per compatibiltà con YITH Bundles */
.archive .col-add-to-cart .yith-wcpb-product-bundled-items,
.single-product .yith-wcpb-product-bundled-items .yith-wcpb-product-bundled-item-data__description {
    display: none;
}
.badge-preordine {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e86c00;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
}

/**
 * Template Singolo Prodotto
 */
/* Layout verticale per le nuove miniature */
.product-vertical-thumbs-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.product-vertical-thumb img {
    width: 100%;
    height: auto;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    -webkit-transition: opacity 0.3s;
    -o-transition: opacity 0.3s;
    transition: opacity 0.3s;
}

.product-vertical-thumb img:hover {
    opacity: 0.8;
}

/* Nascondi le vecchie miniature orizzontali */
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs {
    display: none !important;
}

/* Img product tag and packaging */
.product-tag-grid .elementor-image-box-img img{
    padding-left: 15px;
    padding-right: 15px;
}

.product-packaging-container {
    min-width: 20%;
    margin: 0 auto;
}

.prod-tags-left.elementor-widget-image-box.elementor-position-left .elementor-image-box-wrapper,
.product-packaging-container .product-packaging-img .elementor-image-box-wrapper {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    height: 100%;
}
.product-packaging-container .product-packaging-img .elementor-image-box-wrapper img{
    padding-right: 15px;
    padding-left: 15px;
}

@media only screen and (max-width:1024px) {
    .product-vertical-thumbs-wrapper {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
            -ms-flex-direction: row;
                flex-direction: row;
        -ms-flex-wrap: nowrap;
            flex-wrap: nowrap;
        width: 100%;
    }
    .product-vertical-thumb {
        width: 50%;
    }
}

/* Layout generale 20% / 80% */
.prod-tags-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    gap: 24px;
}

.prod-tags-left {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 20%;
            flex: 0 0 20%;
    max-width: 20%;
    min-width: 0;
}

.prod-tags-right {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 80%;
            flex: 0 0 80%;
    max-width: 80%;
    min-width: 0;
}

/* Griglia tag dentro la colonna destra */
.prod-tags-right .my-product-tags-grid {
    display: -ms-grid !important;
    display: grid !important;
    -ms-grid-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: start;
    justify-items: center;
}

.prod-tags-right .my-product-tag-item {
    width: 100%;
    min-width: 0;
    height: 100%;
}

.prod-tags-right .my-product-tag-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    width: 100%;
    text-decoration: none;
    text-align: center;
    height: 100%;
}

.prod-tags-right .my-product-tag-thumb {
    margin: 0 0 10px;
    text-align: center;
}

.prod-tags-right .my-product-tag-thumb img {
    display: inline-block;
    width: 100%;
    max-width: 90px; /* icona */
    height: auto;
}

.prod-tags-right .my-product-tag-content {
    text-align: center;
}

.prod-tags-right .my-product-tag-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
}

.prod-tags-right .my-product-tag-title span {
    margin-bottom: 0px;
    font-family: "Yanone Kaffeesatz", Sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 17px;
    letter-spacing: 0.3px;
    color: #806459;
}

.prod-tags-right .elementor-shortcode,
.prod-tags-right .elementor-shortcode .my-product-tags-grid
{
    height: 100%;
}

/* Tablet e mobile */
@media (max-width: 767px) {
    .prod-tags-right .my-product-tags-grid {
        -ms-grid-columns: (minmax(0, 1fr))[4];
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .prod-tags-right .my-product-tag-thumb img {
        max-width: 80px;
    }
}
/* 20/80 anche su mobile */
@media (max-width: 479px) {
    .prod-tags-row {
        gap: 16px;
    }

    .prod-tags-left {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 20%;
                flex: 0 0 20%;
        max-width: 20%;
    }

    .prod-tags-right {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 80%;
                flex: 0 0 80%;
        max-width: 80%;
    }

    /*
    .prod-tags-right .my-product-tags-grid {
        -ms-grid-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
    */

    .prod-tags-right .my-product-tag-thumb img {
        max-width: 70px;
    }

    .prod-tags-right .my-product-tag-title {
        font-size: 14px;
    }
}

/* ********************** *
 * Account Clienti Guida  *
 * ********************** */
 .woocommerce-MyAccount-content h1, 
 .woocommerce-MyAccount-content h2, 
 .woocommerce-MyAccount-content h3, 
 .woocommerce-MyAccount-content h4, 
 .woocommerce-MyAccount-content h5{
    font-family: 'Yanone Kaffeesatz', sans-serif;
    color: #806459;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 300;
}
.woocommerce-MyAccount-content .guida > a:first-child {
    border-top-left-radius: 25px;
    border-top-right-radius: 5px;
}
.woocommerce-MyAccount-content .guida > a:last-child {
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 5px
}
.woocommerce-MyAccount-content .guida .column{
  width: 100%;
  /* height: 100%; */
  float: left;
  display: flex;
  align-items: center;
  text-transform: uppercase;
}

.woocommerce-MyAccount-content .guida .text-area{
  padding: 0 20px;
  font-weight: 100;
  float: left;
  display: flex;
}

.woocommerce-MyAccount-content .guida .icon-btn{
  width: 100px;
  background-color: rgba(255, 255, 255, .3);
  float: left;
  display: flex;
}

.woocommerce-MyAccount-content .guida .column {
  background-color: #806459;
  color: #FFFFFF;
}

.woocommerce-MyAccount-content .guida .column:nth-child(even){
  background-color: #74594E;
  color: #FFFFFF;
}
/*
.woocommerce-MyAccount-content .guida .offerte{
  background-color: #D40000!important;
  color: #FFFFFF !important;
}
*/

.woocommerce-MyAccount-content .guida .column div {
    color: #ffffff;
}

.woocommerce-MyAccount-content .size-20{
  font-size: 20px;
}

.woocommerce-MyAccount-content .font-yanone{
  font-family: 'Yanone Kaffeesatz', sans-serif;
}

/* Switch grglia tabellare per le pagine archivio */
/* .kootj-image-zoom-tooltip {*/
.kootj-image-preview {
    position: absolute;
    z-index: 999999;
    display: none;
    pointer-events: none;
    background: #fff;
    padding: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    max-width: 300px;
}

/* .kootj-image-zoom-tooltip.is-visible { */
.kootj-image-preview.is-visible {
    display: block;
}

/* .kootj-image-zoom-tooltip img {*/
    .kootj-image-preview img {
    display: block;
    max-width: 280px;
    max-height: 280px;
    width: auto;
    height: auto;
}