/* 
 Theme Name:   Twenty Twenty-four child
 Theme URI:    
 Description:  
 Author:       admin
 Author URI:   https://www.cast-shop1.it
 Template:     twentytwentyfour
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

 /* == Add your own styles below this line ==
--------------------------------------------*/
/* header responsive */
.budget-widget .progress-info--container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
}

/* hide elements */
body .wc-block-grid.wp-block-product-new.wc-block-product-new,
.wp-block-woocommerce-empty-cart-block>h2:last-of-type {
  display: none;
}

body .visibile,
.wp-block-woocommerce-empty-cart-block h2.visibile {
  display: block !important;
}

/* budget bar component */
.progress {
  border: 1px solid black;
  overflow: hidden;
  justify-content: flex-start;
  border-radius: 100px;
  align-items: center;
  position: relative;
  padding: 0 5px;
  display: flex;
  height: 40px;
  /* width: 500px; */
}

.progress-value {
  box-shadow: 0 10px 40px -10px #fff;
  border-radius: 100px;
  height: 30px;
  min-width: 1rem;
}

.pop-up-prodotto {
  opacity: 0;
  transition: all;
}

.visualizza-pop-up.pop-up-prodotto {
  opacity: 1;
}

#popup-overlay-prodotto {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.visualizza-pop-up#popup-overlay-prodotto {
  opacity: 1;
  pointer-events: all;
}

.popup-banner-prodotto {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  z-index: 10000;
  text-align: center;
}

.popup-close-prodotto {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.popup-content-prodotto {
  font-size: 18px;
  color: #333;
}

.woocommerce-cart .wp-block-woocommerce-cart-order-summary-totals-block {
  display: flex;
  flex-direction: column;
}

.woocommerce-cart .wp-block-woocommerce-cart-order-summary-totals-block .wp-block-woocommerce-cart-order-summary-fee-block.wc-block-components-totals-wrapper {
  order: 3;
}

.items-taglia-array {
  display: flex;
  flex-wrap: wrap;
}

.item-extra-taglia {
  width: 18%;
  padding-right: 10px;
}

.item-extra-taglia label {
  font-size: 11px;
}

.woocommerce-view-order .woocommerce td.product-name .wc-item-meta {
  padding-left: 0;
}

.woocommerce-view-order .woocommerce td.product-name .wc-item-meta p {
  margin-top: 0;
}

.pp_content_container #ywcars_form_reason {
  width: 100%;
  margin-top: 20px;
  border-radius: 10px;
}

.ywcars_form_qty, .ywcars_taglia_sostituzione {
  border-radius: 7px;
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none;
  width: 60px;
  border-radius: 14px;
  height: max-content;
  padding: 2px;
  padding-left: 10px;
  padding-right: 10px;
  border: 1px solid light-dark(rgb(118, 118, 118), rgb(133, 133, 133));
}

.ywcars_ddt_spedizione, .ywcars_ddt_spedizione-data, .ywcars_ddt_spedizione_data {
  border-radius: 7px;
}

.ywcars_ddt_spedizione_data {
  width: calc(138px + var(--wvs-single-product-item-width));
}

.block-sostituzione-taglia label {
  display: flex;
  align-items: center;
  border-radius: 14px;
  height: max-content;
  padding: 2px;
}

.pp_content_container #ywcars_submit_button {
  outline: none;
  background-color: #005937;
  color: white;
  padding: 10px 20px;
  text-align: center;
  display: inline-block;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--medium);
  width: 100%;
  text-align: center;
  display: flex;
  margin: 0 auto;
}

body div.pp_woocommerce .pp_close:before {
  top: 40%;
  left: 0;
  transform: translateY(-100%);
}

.pp_content_container h2.ywcars_order_title {
  font-size: 1.6em;
}

.pp_content_container form .ywcars_block:last-child {
  margin-bottom: 0;
}

/* 
#ywcars_form_reason {
  padding-left: 10px;
  padding-right: 10px;
} */
/* body .pp_content_container .pp_left {
  padding-left: 20px;
  padding-right: 20px;
} */
/* body div.pp_pic_holder {
  width: max-content !important;
} */
/* nuovo codice per yith resi */
body tr.order_item td.product-name .ywcars_button_refund, .ywcars_button_refund_container.ywcars_button_refund_disabled.ywcars_whole_order, .ywcars_button_refund_container.ywcars_whole_order {
  display: none;
}

body .no-focus:focus {
  outline-width: 0;
}

#ywcars_submit_button_ns, #ywcars_submit_button_ns_inactive {
  width: 100%;
  margin-bottom: 40px;
  font-size: 18px;
  text-transform: uppercase;
}

#ywcars_submit_button_ns:disabled {
  cursor: not-allowed !important;
}

body.reso-loading {
  position: relative;
}

.reso-loading::before {
  width: 100%;
  height: 100%;
  background: #000000e0;
  position: absolute;
  content: '';
  z-index: 1;
}

.reso-loading::after {
  content: '';
  width: 48px;
  height: 48px;
  border: 5px solid #FFF;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  top: 50%;
  left: 50%;
  position: fixed;
  z-index: 2;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.page-id-3456 h1 {
  margin-bottom: 100px;
}

@media screen and (max-width: 1480px) {
  .item-extra-taglia {
    width: 46%;
    padding-right: 10px;
  }
}

@media screen and(min-width:782) and (max-width: 1180px) {
  .item-extra-taglia {
    width: 50%;
    padding-right: 10px;
  }
}

@media screen and (max-width: 781px) {
  .item-extra-taglia {
    width: 48%;
    padding-right: 2%;
  }

  .page-id-3456 h1 {
    margin-bottom: 50px;
  }
}

@media screen and (max-width: 1024px) {
  header.wp-block-template-part>.is-nowrap {
    flex-wrap: wrap !important;
    justify-content: stretch !important;
  }

  header.wp-block-template-part>.is-nowrap>div {
    width: 100%;
    justify-content: space-between;
  }

  .budget-widget .progress-info--container {
    flex-flow: column;
    gap: 2px;
  }
}

@media screen and (min-width: 1200px) {
  .woocommerce-page table.woocommerce-MyAccount-orders.shop_table td {
    min-width: 100px;
  }
}