/*Write here the updates for not default templates*/
#continue_to_checkout_tooltip_button_extended{
	width:100%;
}
#continue_to_checkout_tooltip_button_extended .fullWidthBtn .buttonSubmit,#continue_to_checkout_tooltip_button_extended .fullWidthBtn,.checkout_form_buttons_inner, .checkout_form_buttons_inner .buttonSubmit{
   width:100%;
   margin:0;
}
.cart-continue-PMain{
   z-index:999999;
}
.cart-continue-popP {
    background-color: #fafafa !important;
    width: 50%;
    text-align: center;
    position: fixed;
    top: 25%;
    left: 25%;
   z-index:9999999;
	max-width:800px;
}
.cart-continue-popP .enlighten-color1-text,.cart-continue-popP .modal-footP {
    padding: 2em 0px;
}
.modalaClass {
  -webkit-box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.2);
          box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.2);
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding: 24px;
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
.modalaClass h1, .modalaClass h2, .modalaClass h3, .modalaClass h4 {
  margin-top: 0;
}
.modalaClass .modala-content {
border-radius: 0 0 2px 2px;
    background-color: #fafafa;
    padding: 15px 6px;
    height: 6rem;
    width: 50%;
    text-align: center;
position:fixed;
top:30%;
left:25%;
}
.modala-close{
margin-right:1rem;
}
.shipping-address-setted{
color:#ff6551;
}
.modalaClass .modala-close {
  cursor: pointer;
}
.modalaClass .modala-footer {
  border-radius: 0 0 2px 2px;
  background-color: #fafafa;
  padding: 4px 6px;
  height: 6rem;
  width: 50%;
  text-align: center;
position:fixed;
top:45%;
left:25%;
}
.modalaClass .modala-footer .btn, .modalaClass .modala-footer .btn-large, .modalaClass .modala-footer .btn-small, .modalaClass .modala-footer .btn-flat {
  margin: 6px 0;
}
.modalaClass.modala-fixed-footer .modala-content {
  position: absolute;
  height: calc(100% - 56px);
  max-height: 100%;
  width: 100%;
  overflow-y: auto;
}
@media only screen and (max-width : 992px) {
  .modalaClass {
    width: 100%;
  }
.modala-close{
margin-right:0rem;
}
.modalaClass .modala-content {
border-radius: 0 0 2px 2px;
    background-color: #fafafa;
    padding: 15px 6px;
    height: 8rem;
    width: 90%;
    text-align: center;
position:fixed;
top:30%;
left:5%;
}
.modalaClass .modala-footer {
  padding: 4px 6px;
  height: 10rem;
  width: 90%;
  text-align: center;
position:fixed;
top:40%;
left:5%;
}
}
@media screen and (min-width: 200px) and (max-width: 768px) {
  .continue_to_checkout button{
    float:unset !important;
	width: 90%;
    font-size: 12px;
    margin: 11px auto;
  }
  .cart-continue-popP {
    width: 80% !important;
    left: 10% !important;
   }
   .cart-continue-popP .enlighten-color1-text, .cart-continue-popP .modal-footP {
		padding: 1em 0px !important;
	}
	.grey-button{
		margin-top:2rem !important;
	}
	.cart-list-items{
      display:none;
   }
}
.safe_checkout{
	display: flex !important;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}
.breadcrumb__li a{
	display: inline-block;
}
div#continue_to_checkout_tooltip_button button {
    width: 100%;
    margin: 0;
}
.modalaClass {
	display: none !important; /* Hidden by default */
}
.buttonSubmit.btn.btn-enlighten.grey-button{
	background-color: #e3e3e3;
  color: gray;
}
.paypal_payment{
width: 100%;
  margin-bottom: 5px;
  }
  #shipping_province{
    list-style-type: none;
  }
#submit {
    background: #5469d4;
    font-family: Arial, sans-serif;
    color: #fff;
    border-radius: 4px;
    border: 0;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    transition: all .2s ease;
    box-shadow: 0 4px 5.5px 0 rgba(0, 0, 0, .07);
    width: 100%;
 }
#submit:hover {
  filter: contrast(115%);
}

#submit:disabled {
  opacity: 0.5;
  cursor: default;
}
@media only screen and (max-width: 600px) {
  #payment-stripe {
    width: 80vw;
    min-width: initial;
  }
}
/* Checkout the wizard full width of page mobile.
** For all top templates  
** Date: 14-10-2024
*/

@media only screen and (max-width: 600px) {
	.top.onestepcheckout-top .col.l9 {
		width: 100% !important;
	}
	
	.sub-top-container .col.l10.wizard-fashon {
		width: 100% !important;
	}
}
.review-block.billing {
    margin-bottom: 1rem;
}
#mobile_sort_open{
	display: block;
	float: right;
}
#sort_mobile {
	display:none;
   /* margin-left: -80px; */
   width: 120px;
   height: 50px;
   /* position: fixed; */
   float: right;
}

.wizard__step--ongoing{
  background-color: #eee;
  color: #3ba43b;
}

.gpsr_list {
  list-style-type: none;
  padding: 0;
}

.gpsr_list li {
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 5px;
  background-color: #f9f9f9;
  max-width: 250px;
}

.gpsr_list li:hover {
  background-color: #eaeaea;
}

.info-box {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 10px;
  background-color: #f1f1f1;
  margin-top: -1px; /* Avoid gap between li and info-box */
}

.info-box.open {
  max-height: 100%; /* Adjust according to content */
  padding: 10px;
}
/*#imageGallery {
    height: auto !important;
}*/
#banner-slider {
    height: auto !important;
}
@media screen and (max-width: 600px) {
.product-info__imagescol{
  padding-right: 0px !important;
}
}
/* Galleria principale */
/*.product-swiper { //old mode
  width: 100%;
  background-color: white; 
  margin-bottom: 15px;
  transition: height 0.3s ease;
}*/
.product-swiper { /*new mode*/
  width: 100%;
  max-width: 100%;
  height: 900px; /* 👈 altezza fissa */
  background-color: white;
  margin-bottom: 15px;
  transition: height 0.3s ease;
  position: relative;
}
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white; /* barre visibili */
}

/*.product-swiper .swiper-slide { // old mode
  display: flex;
  justify-content: center;
  align-items: center;
}*/
.product-swiper .swiper-slide {/*new mode*/
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
}

/*.swiper-main-img { //old mode
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background-color: white; 
  display: block;
  margin: auto;
}*/
.swiper-main-img {/*new mode*/
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  background-color: white;
  display: block;
  margin: auto;
}

/* Galleria thumbnail */
.thumbs-swiper {
  height: 100px;
  box-sizing: border-box;
  padding: 10px 0;
  position: relative;
}

.thumbs-swiper .swiper-slide {
  width: 100px;
  height: 100px;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.3s;
}

.thumbs-swiper .swiper-slide-thumb-active {
  opacity: 1;
}

.thumbs-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pulsanti di navigazione thumbnails */
.thumbs-button-prev {
  left: 0;
}

.thumbs-button-next {
  right: 0;
}
.thumbs-button-prev,
.thumbs-button-next {
  position: absolute;
  top: 73%;
  transform: translateY(-50%);
  z-index: 10;
  width: 24px;
  height: 24px;
  background-color: transparent;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Pulsanti di navigazione Swiper principale */
.swiper-button-next,
.swiper-button-prev {
  color: var(--enlighten-color);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 18px;
}

/* Comportamento responsive */
@media screen and (max-width: 600px) {
  .product-swiper {
    max-height: 80vh;
    overflow: hidden;
  }

  .product-swiper .swiper-slide img {
    max-height: 80vh;
    object-fit: contain;
  }
}
@media screen and (max-width: 600px) {
  .thumbs-swiper {
    display: none !important;
  }
}
@media screen and (max-width: 600px) {
  .thumbs-swiper,
  .thumbs-button-prev,
  .thumbs-button-next {
    display: none !important;
  }
}
/* Per PhotoSwipe (reset) */
.pswp__img {
  max-height: none !important;
  object-fit: contain !important;
}
.zoom-hover-wrapper {
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
}

.swiper-main-img {
  transition: transform 0.2s ease;
  will-change: transform;
  pointer-events: none; /* evita conflitti con anchor */
}

/* Disattiva lo zoom su dispositivi touch */
@media (hover: none) {
  .swiper-main-img {
    transform: none !important;
  }
}
.zoom-hover-wrapper a{
cursor: zoom-in;
}
.product-info__imagescol.col.s12.m6 {
    padding-right: 1rem !important;
}
/* Container principale */
#cart__shipping-method {
  font-family: 'Arial', sans-serif;
  max-width: 600px;
  margin: 20px auto;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Titolo della sezione */
#cart__shipping-method__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

/* Contenitore per le opzioni di spedizione */
.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Stile per ciascuna opzione */
.shipping-option {
  display: flex;
  align-items: center;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

/* Stato hover e selezionato */
.shipping-option:hover,
.shipping-option.selected {
  border-color: #1e88e5;
  background: #f0f8ff;
}

/* Stile per radio e checkbox */
.shipping-option input[type="radio"],
.shipping-option input[type="checkbox"] {
  margin-right: 12px;
  transform: scale(1.2);
  accent-color: #1e88e5;
}

/* Informazioni sul metodo */
.method-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* Etichetta metodo */
.method-info .method-label {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

/* Prezzo spedizione */
.method-info .shipping-price {
  font-size: 16px;
  font-weight: 600;
  color: #1e88e5;
}

/* Messaggi in caso di metodo di spedizione non disponibile */
.shipping-unavailable {
  text-align: center;
  margin-top: 20px;
}

/* Contenitore principale delle opzioni di spedizione */
.shipping-options {
  font-family: 'Arial', sans-serif;
  max-width: 600px;
  margin: 20px auto;
  background: #f9f9f9;
  padding: 15px;
  /*border-radius: 5px;*/
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Gruppo per ogni metodo di spedizione */
.shipping-method-group {
  margin-bottom: 5px;
}

/* Stile per il metodo di spedizione principale (radio) */
.shipping-option {
  display: flex;
  align-items: center;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.shipping-option:hover,
.shipping-option.selected {
  border-color: #1e88e5;
  background: #f0f8ff;
}

/* Radio: posizionato a sinistra */
.shipping-option input[type="radio"] {
  margin-right: 12px;
  transform: scale(1.2);
  accent-color: #1e88e5;
  opacity:1;
  position:inherit;
}

/* Informazioni del metodo */
.method-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.method-info .method-label {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}
.method-info .shipping-price {
  font-size: 16px;
  font-weight: 600;
  color: #1e88e5;
}

/* Contenitore per le opzioni extra (COD, Assicurazioni) */
.optional-options {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 30px;
}

/* Stile per ciascuna opzione extra */
.optional-option {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.optional-option:hover,
.optional-option.selected {
  border-color: #1e88e5;
  background: #e8f4fd;
}

/* Checkbox delle opzioni extra */
.optional-option input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.1);
  accent-color: #1e88e5;
}

/* Label e prezzo delle opzioni extra */
.optional-label {
  font-size: 14px;
  color: #333;
}
.optional-price {
  font-size: 14px;
  font-weight: bold;
  color: #1e88e5;
  margin-left: auto;
}

/* Messaggio in caso di spedizione non disponibile */
.shipping-unavailable {
  text-align: center;
  margin-top: 20px;
}
.wizard{
  display:none !important;
}
.first-row-bottom{
  display: none;
}
.payment_method_outer .payment_method, .payment_method_outer .cod_payment_method{
  width: 100% !important;
}

/* 1️⃣ Mantieni input + bottone sempre in una sola riga senza interferenze */
.coupon-code {
  display: flex;
  flex-wrap: nowrap; /* mai andare a capo */
  align-items: stretch;
  width: 100%;
}
.coupon-code input[type="text"],
.coupon-code input[type="text"]#coupons_token {
  flex: 1;
  /*padding: 10px 12px;*/
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  padding-left: 5px;
  margin:0px;
  height: 100%;

}
.coupon-code input[type="text"] {
  flex: 1 1 auto; /* si espande ma lascia spazio al bottone */
}

.coupon-code input[readonly] {
  background: #f8f8f8;
  color: #777;
  cursor: not-allowed;
}

.coupon-btn {
  background: green;
  color: #fff;
  font-weight: bold;
  border: none;
  /*border-radius: 6px;*/
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.3s ease;
  height: 100%;
  flex: 0 0 auto; /* bottone NON si allunga, mantiene larghezza naturale */

}

.coupon-btn:hover {
  background: green;
}

.coupon-message {
  flex-basis: 100%; /* manda il messaggio a nuova riga */
  margin-top: 8px;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
}

.coupon-message.success {
  background: #eaffea;
  border: 1px solid #3aaa3a;
  color: #167316;
}

.coupon-message.error {
  background: #ffeaea;
  border: 1px solid #e74c3c;
  color: #b30000;
}
#coupons-messages{
	margin-top:1rem;
}

.coupon-code {
  display: flex;
  flex-wrap: wrap; /* permette al bottone di andare sotto se non c’è spazio */
  align-items: stretch;
  width: 100%;
  gap: 0; /* nessuno spazio extra */
}

/* L’input deve avere una larghezza minima */
.coupon-code input[type="text"] {
  flex: 1 1 auto;         /* cresce ma può restringersi */
  min-width: 120px;       /* NON andare mai sotto questa larghezza */
  border: 1px solid #ccc;
  padding-left: 5px;
  margin: 0;
  height: 100%;
  font-size: 14px;
}

/* Bottone mantiene la sua dimensione naturale */
.coupon-btn {
  flex: 0 0 auto; /* non si allarga, mantiene larghezza */
  padding: 10px 16px;
  color: #fff;
  font-weight: bold;
  border: none;
  height: 100%;
  cursor: pointer;
  transition: background 0.3s ease;
  margin: 0;
}
@media screen and (min-width: 601px) and (max-width: 803px) {
	#coupons-messages{
margin-top:3.5rem;
	}
	.coupon-btn{
		flex: 1 0 auto;
		margin-top: 0.5rem;
	}
}
@media screen and (min-width: 1100px){
  .coupon-code input[type="text"]{
    min-width: 180px;
  }
}
@media screen and (min-width: 700px){
  .coupon-btn{
    flex: 1 0 auto;
  }
  }

/* ---------- [ Floating labels over server-prefilled fields ] ---------- */

/*!
 * Materialize lifts a floating label out of the input only while the label
 * carries the .active class, and JavaScript is what puts it there. The pass that
 * does it for fields that already hold a value when the page loads -
 * M.updateTextFields() - never runs on the storefront: the copy inside the
 * bundled Materialize is commented out, and the only other call site sits inside
 * the GOOGLE_REVIEWS block of templates/enlighten.php, so it fires on the few
 * stores that show the Google reviews badge and nowhere else.
 *
 * It showed up in the one-step checkout. While the buyer types, the label
 * behaves - Materialize toggles .active on focus and on change - but as soon as
 * the form is re-rendered from the session (back from the review step, a
 * validation bounce, a return from PayPal) the label sat at rest on top of the
 * value and the two strings overlapped, unreadable.
 *
 * Fixed in CSS rather than in JavaScript because the state is already in the
 * markup: mxp_draw_input_field() writes value="..." only when the value is not
 * empty, so [value]:not([value=""]) means exactly "the server prefilled this
 * field". It cannot react to typing - the attribute keeps whatever the server
 * printed, no matter what the user does - which is why it does not interfere
 * with the :focus and .active rules that own the interactive case.
 *
 * Two rules, not one selector list, because both DOM orders exist in the
 * checkout: the shipping block prints the input before its label (sibling rule),
 * while the billing block and the telephone/address fields print the label first
 * (:has() rule, needed because CSS has no backwards sibling combinator). They
 * are kept separate on purpose - a browser without :has() support would discard
 * the whole rule if the two selectors shared one list.
 */
.input-field > input[value]:not([value=""]):not([type="hidden"]):not(.browser-default) ~ label:not(.label-icon) {
  -webkit-transform: translateY(-14px) scale(0.8);
          transform: translateY(-14px) scale(0.8);
  -webkit-transform-origin: 0 0;
          transform-origin: 0 0;
}

.input-field:has(> input[value]:not([value=""]):not([type="hidden"]):not(.browser-default)) > label:not(.label-icon) {
  -webkit-transform: translateY(-14px) scale(0.8);
          transform: translateY(-14px) scale(0.8);
  -webkit-transform-origin: 0 0;
          transform-origin: 0 0;
}
