html, body {
    overflow-x: hidden !important;
}

.jet-woo-product-gallery__content {
    display: none !important;
}

.reverse-gallery .jet-woo-product-gallery-anchor-nav-items {
    display: flex;
    flex-direction: column-reverse;
}

#overlay-product-page {
    position: fixed; /* Sit on top of the page content */
    display: none; /* Hidden by default */
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
    z-index: 95; /* Specify a stack order in case you're using a different order for other elements */
    cursor: pointer; /* Add a pointer on hover */
}

.sp-container {
    /*font-weight: 300 !important;*/
}

#scalapayPopUpTrigger {
    font-size: 12px !important;
    margin-top: -10px !important;
    font-weight: 300 !important;
}

.title-upsell {
    color: #000000;
    font-family: "Poppins", Sans-serif;
    font-size: 1.12em;
    text-transform: uppercase;
    text-align: center;
    font-weight: 600;
    margin-top: 0;
}

.disabled-button {
    opacity: .4;
    cursor: not-allowed;
}

.gift-cards_form > h3 {
    margin-bottom: -2em;
}

.ywgc_select_amount_title, .ywgc_delivery_info_title {
    color: #000000;
    font-family: "Poppins", Sans-serif;
    font-size: 1.3em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gift-cards-list .ywgc-amount-buttons:focus {
    outline: none;
}

.gift-cards-list .ywgc-amount-buttons {
    padding: 10px 20px !important;
    background-color: #0b0b0b !important;
}

.gift-cards-list .ywgc-amount-buttons.selected_button {
    background-color: #808d13 !important;
}

#yith-wapo-container .dialog-close-button {
    opacity: 1;
    font-size: 20px;
    margin: 0;
    top: 90px;
    right: 20px;
}

.dialog-type-lightbox {
    position: fixed !important;
    top: 0px !important;
}

.gift_selected {
    color: #808d13 !important;
    font-weight: 700 !important;
}

.jet-woo-product-gallery__image-item {
    margin-top: 0 !important;
}

img.img-cultura {
    width: 40px;
    margin-right: 10px;
}

.img-add-to-cart {
    margin-right: 10px;
    top: 2px;
    position: relative;
    width: 12px;
}

.btn-fixed .elementor-button-icon {
    display: none;
}

.icon-product {
    margin-right: 5px;
    top: 0px;
    position: relative;
    font-size: 1.3em;
}

.variations th, .reset_variations {
    display: none !important;
}

.variations td, .variations td:hover {
    background-color: #fff !important;
}

.variations td.value {
    padding: 0 !important;
}

.woocommerce div.product form.cart .variations {
    margin-bottom: 30px !important;
}

.woocommerce div.product form.cart .variations select {
    border: 1px solid #CCCCD0;
    border-radius: 30px;
    font-size: 0.9em;
    background: url(https://www.frantoiomuraglia.it/wp-content/uploads/2021/12/arrow.svg) no-repeat right #F6F7F9;
    -webkit-appearance: none;
    background-position-x: 95%;
    color: #000000 !important;
    font-size: 0.8em !important;
    padding-top: 11px !important;
    padding-bottom: 10px !important;
    max-width: 50% !important;
    min-width: 50% !important;
}

.btn-open-gift-section {
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

.btn-open-gift-section,
.woocommerce div.product form.cart div.quantity {
    transition: opacity .7s;
    opacity: 1;
    margin: 0 30px 0 0;
}

.btn-open-gift-section.addOpacity,
.woocommerce div.product form.cart div.quantity.addOpacity {
    opacity: .2;
}

#js_gift_show {
    display: none;
    border: 1px solid #CCCCD0;
    border-radius: 30px;
    width: 50%;
    padding: 7px 15px 7px 15px !important;
    margin-bottom: 30px;
}

#js_gift_show .elementor-button-icon svg {
    width: 2em !important;
}

#js_gift_show .elementor-button-text {
    margin-left: 10px;
}

.in-stock {
    display: none !important;
}

img.img-upsell {
    width: 20px;
    margin-right: 5px;
}

#yith-wapo-container {
    display: none;
    width: 45% !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 200;
    height: 100vh;
    background-color: #fff;
    padding: 5% 20px 20px 20px;
    font-weight: bold;
}

.yith-wapo-block .clear {
    display: none !important;
}

.yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-product .yith-wapo-option label small.option-price {
    text-align: center;
}

.yith-wapo-block .options {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-content: center !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

.yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-product .yith-wapo-option img {
    height: 70px !important;
    margin-right: 0 !important;
    padding: 5px;
    border: 1px solid #CCCCD0;
    border-radius: 10px;
}

.wapo-addon-description {
    font-size: 0.8em !important;
    display: flex;
    align-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    flex: 1 0 100%;

}

.yith-wapo-block .yith-wapo-addon .options.per-row-1 .yith-wapo-option {
    max-width: 40% !important;
    flex: 40% !important;
}

.yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-product .yith-wapo-option label {
    min-width: unset !important;
    display: flex !important;
    align-items: center;
    position: relative !important;
    justify-content: space-between;
    padding: 0 !important;
    border: unset !important;
    align-content: center;
    flex-direction: column;
    height: 140px;
    line-height: 0.9em;
}

.yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-product .yith-wapo-option .product-container .product-name {
    font-size: 0.8em;
    font-weight: 400;
    text-align: center !important;
}

.yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-product .yith-wapo-option label:hover {
    border: unset !important;
}

.yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-product .yith-wapo-option label div {
    font-size: 0.7em;
    font-weight: 400;
    text-align: center !important;
}

.yith-wapo-option.selected img {
    border: 1px solid #3B3B3B !important;
}

.yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-product .yith-wapo-option.selected label div {
    text-decoration: underline;
}

.yith-wapo-option {
    flex: 1 0 25% !important;
    width: 20% !important;
    min-width: unset !important;
}

#wapo-total-price-table .all {
    width: 100%;
}

#wapo-total-price-table table th,
#wapo-total-price-table table td {
    border: 0 !important;
    font-size: 0.8em;
}

table tbody tr:hover > td,
table tbody tr:hover > th,
table tbody > tr:nth-child(odd) > td,
table tbody > tr:nth-child(odd) > th {
    background-color: #fff !important;
}

tr.wapo-product-price, tr.wapo-total-order #wapo-total-order-price {
    display: none;
}

.yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-product .yith-wapo-option.selected label:after {
    display: none !important;
}


a.btn-conferma-gift {
    background-color: #808d13;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.8em;
    font-weight: 400;
}

a.btn-conferma-gift:hover {
    color: #fff !important;
}

#js_gift_show .elementor-button-text {
    text-align: left;
    margin-left: 20px;
    text-transform: initial !important;
}

#js_gift_show .elementor-button-content-wrapper {
    align-items: center;
}

#js_gift_show .elementor-button .elementor-align-icon-left {
    font-size: 1.5em;
}

.woocommerce button.button.alt.disabled, .woocommerce button.button.alt.disabled:hover {
    background-color: #808d13 !important;
}

.woocommerce-variation-price {
    display: none !important;
}

.jet-woo-product-gallery-anchor-nav-items {
    max-width: calc(100% - 0%) !important;
}

.woocommerce div.product form.cart .button:before {
    content: "\e8e3";
    font-family: eicons;
    margin-right: 10px;
    font-size: 1.5em;
}

.wapo-total-options th:first-child{
    width: 25%;
}

/* Notify overwrite*/
.notiny-container-fluid-top .notiny-theme-wooac, .notiny-container-fluid-bottom .notiny-theme-wooac {
    max-width: 500px !important;
}

/* Button Add To Cart */
.single_add_to_cart_button {
    padding: 10px 30px 14px 30px !important;
}

.single_add_to_cart_button:before {
    top: 1px;
    position: relative;
}

/* YITH OVERRIDE */

.yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-product .yith-wapo-option .product-container {
    padding: 0 !important;
    flex-direction: row;
    min-width: 0;
    border: none;
    text-align: center;
    line-height: 0.9em;
}

.yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-product .yith-wapo-option.selected .product-container:after {
    display: none;
}

.yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-product .yith-wapo-option .product-container:hover,
.yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-product .yith-wapo-option.selected .product-container {
    border: none !important;
}

.yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-product .yith-wapo-option.selected .product-info {
    text-decoration: underline;
}

.yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-product .yith-wapo-option .product-container .product-info {
    margin-top: 10px;
    margin-left: 10px;
    text-align: left;
}


.section-product-info{
    z-index: 97 !important;
}

.info-prodotto-added ul{
    margin-bottom: 15px;
}

.info-prodotto-added{
    font-size: 0.9em !important;
}

@media only screen and (max-width: 1280px) {
    #js_gift_show {
        width: 70% !important;
    }

    .woocommerce div.product form.cart .variations select {
        width: 70% !important;
        max-width: 70% !important;
    }

    #yith-wapo-container {
        padding-top: 20px !important;
    }

    .descrizione-prodotto, .div-prezzo-prodotto, .div-info-prodotto, .div-titolo-prodotto {
        margin-bottom: 10px !important;
    }

    .descrizione-prodotto p {
        font-size: 0.8em;
    }

    .woocommerce div.product form.cart .variations {
        margin-bottom: 30px !important;
    }
}

@media only screen and (max-width: 767px) {
    .yith-wapo-addon{
        padding: 0 !important;
        margin-bottom: 0 !important;
    }

    .yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-product .yith-wapo-option img {
        height: 50px !important;
    }

    #yith-wapo-container .dialog-close-button{
        top: 20px;
    }

    .wapo-total-options th:first-child{
        width: unset;
    }

    .yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-product .yith-wapo-option .product-container {
        flex-direction: column;
    }

    .yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-product .yith-wapo-option .product-container .product-info {
        text-align: center;
    }

    .yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-product .yith-wapo-option.selected .product-container:after {
        display: block;
        right: 26px;
        background-color: #808d13 !important;
    }

    .ywgc_select_amount_title, .ywgc_delivery_info_title {
        font-size: 1em !important;
    }

    .gift_card_template_button .gift_card_add_to_cart_button {
        margin-left: 0 !important;
    }

    .gift_card_template_button {
        margin-top: 0 !important;
    }

    .ywgc-recipient {
        max-width: 100% !important;
    }

    .ywgc-single-recipient .ywgc-recipient-name {
        margin-bottom: 0 !important;
    }

    .gift-card-content-editor label {
        width: 100%;
        text-align: left !important;
    }

    .gift-card-content-editor input,
    .gift-card-content-editor textarea {
        width: 100% !important;
        float: none !important;
    }

    .single_add_to_cart_button:before {
        top: 0;
    }

    .woocommerce div.product form.cart .variations select {
        width: 100% !important;
        max-width: 100% !important;
    }

    .woocommerce div.product form.cart .variations {
        margin-bottom: 30px !important;
    }

    #scalapayPopUpTrigger {
        margin-top: 0px !important;
    }

    .div-prezzo-prodotto {
        /*margin-bottom: 10px !important;*/
    }

    .descrizione-prodotto, .div-info-prodotto, .div-titolo-prodotto {
        margin-bottom: 20px !important;
    }

    .descrizione-prodotto p {
        font-size: 14px;
    }

    #js_gift_show {
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    #yith-wapo-container {
        width: 100% !important;
        padding-top: 20px;
    }

    #scalapayPopUpTrigger #sp-logo {
        bottom: 0 !important;
    }

    #scalapayPopUpTrigger #sp-icon {
        top: -8px !important;
        position: relative !important;
    }

    .btn-open-gift-section {
        margin-bottom: 30px !important;
    }

    .btn-fixed {
        padding-top: 15px;
        /*padding-bottom: 15px;*/
        /*border-top: 1px solid #ddd !important;*/
    }

    .btn-fixed:nth-child(2) {
        padding-top: 0;
        border-bottom: 1px solid #ddd !important;
    }

    .btn-fixed a {
        padding: 12px 0 !important;
    }

    .btn-fixed .elementor-button-icon {
        display: block;
    }

    .btn-fixed .elementor-button-text {
        text-align: left !important;
    }

    .title-product-xs {
        max-width: 65% !important;
        text-align: left !important;
    }

    .price-product-xs {
        max-width: 35% !important;
        text-align: right !important;
    }

    .price-product-xs .price {
        margin-bottom: 0;
    }

    .product-add-to-cart-xs {
        margin-top: 5px;
    }

    .woocommerce div.product.elementor .quantity .qty {
        padding: 5px !important;
    }

    .woocommerce div.product form.cart div.quantity {
        width: 20% !important;
        margin: 0 5% 0 0 !important;
    }

    .woocommerce div.product form.cart .button {
        width: 70% !important;
        float: right;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        padding: 9px 30px !important;
    }
}