@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body.archive .customizer-button {
  width: 100%;
  max-width: 100% !important;
}

.customizer-popup * {
  font-family: Poppins !important;
}

/*tab*/
.step {
  display: none;
}

.step.active {
  display: block;
}

.nav-pills .nav-link.active {
  background-color: orange !important;
}

.nav-pills .nav-link {

  color: white;
  background-color: darkgray;
  margin: 10px;
}

.nav-pills .nav-link:hover {
  background-color: lightsalmon;
  color: white;
}

.step2-input {
  width: 3.2rem;
}

.step2-size {
  background: black;
  color: white;
  border-radius: 0.2rem;
  text-align: center;
}

.step2-color {
  background: lightgreen;
}

.ts-butn {
  width: 100%;
  border: none;
  color: white;
  font-weight: 700;
  padding: 0.4rem;
  border-radius: 0.5rem;
}

.ts-back-butn {
  background: lightgreen;
}

.ts-next-butn {
  background: orange;
}

.step2-link-style {
  text-decoration: none;
  color: black;
}

/*step no five css*/
.cus-tooltip:after {
  content: "";
  display: inline-block;
  width: 15px;
  height: 50px;
  background: transparent url("images/tooltip.png") 0 50% no-repeat;
}

.steps {
  background: #f2fbff;
}

.steps img {
  width: 100%;
}

.steps h5 {
  background: #baedff;
  font-weight: bold;
  padding: 6px;
}

.cus-font11 {
  font-size: 11px;
  color: #444444;
}

.cus-font14 {
  font-size: 11px;
  color: #444444;
}



button.single_add_to_cart_button.button.alt {
  background: #44b6e7 !important;
}

/* .whb-column.whb-col-center.whb-visible-lg {
      display: flex;
      flex-direction: column;
    }*/

.woocommerce-notices-wrapper {
  display: none;
}

.mr-l-10 {
  margin-left: 10px;
  margin-top: 4rem !important;
}

.cus-prnt-sec {
  position: relative;
  width: 100%;
  text-align: left;

}

.cus-right-sec {
  position: sticky;
  max-height: 800px;
  top: 0;

}

#step4stempa {
  display: none;

}

#imballo-section-img {

  display: none;
}

#imballo-section {
  display: none;
}

a {

  text-decoration: none !important;
}

.customizer-popup {
  display: none;
  position: fixed;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0, 0, 0, 0.5);
  /* semi-transparent black overlay */
  z-index: 99999 !important;
  /* make sure it's on top of other content */
  /* Fix for Safari positioning issues */
  transform: none !important;
  -webkit-transform: none !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.customizer-content {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  padding: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  width: 85%;
  overflow: auto;
  height: 80%;
  max-width: 1300px;
  max-height: 90vh;
  /* Fix for Safari container constraints */
  box-sizing: border-box;
}

.close-popup {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

.close-popup.crossicon {
  width: 5%;
  /* display: flex; */
  float: right;
  padding: 0px;
  text-align: center;
  padding: 4px 7px;
  font-family: cursive;
  font-weight: 600;
  position: absolute;
  right: 6px;
  top: -4px;
}

input.step2-input.small_input {
  width: 70px;
  width: 100%;
  height: 25px;
}

.qty_colorinput {
  width: 50px;
  height: 25px;
  margin: unset;
}


/*************ts_all product*******************/
* {
  padding: 0;
  margin: 0;
}

img.ts-shirt-image {
  width: 100%;
  height: 100%;
}

.ts-shirt-name {
  text-decoration: none;
  color: lightgray;
}

.ts-shirt-name:hover {
  color: white;
}

.ts-prgph-clr {
  background: #eee;
}

.ts-img-butn {
  border: none;
  background: #00ccff;
  padding: 0.3rem;
  color: white;
  font-weight: 500;
  font-size: 14px;
  width: 28%;
  padding: 15px 10px 15px 10px !important;
  max-width: 180px !important;
}

.ts-shirt-srch {
  text-decoration: none;
  color: black;
  font-size: 14px;
}

.ts-clr-main-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

span.ts-shirt-srch-styl {
  background: gray;
  padding: 1px 16px 2px 8px;
  border-radius: 0px 16px 0px 0px;
  color: white;
}

.box {
  width: 15px;
  height: 15px;
  margin: 0 2px;
  margin-bottom: 3px;
  border: 1px solid #000;
}

.box:nth-child(1) {
  background-color: white;
}

.box:nth-child(2) {
  background-color: blue;
}

.box:nth-child(3) {
  background-color: green;
}

.box:nth-child(4) {
  background-color: red;
}

.box:nth-child(5) {
  background-color: blue;
}

.box:nth-child(6) {
  background-color: green;
}

/* Pagination container */
.pagination {
  margin-top: 20px;
  text-align: center;
}

/* Pagination links */
.pagination .page-numbers {
  display: inline-block;
  padding: 5px 10px;
  margin: 0 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
  color: #333;
  text-decoration: none;
}

/* Current page link */
.pagination .page-numbers.current {
  background-color: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

/* Hover effect */
.pagination .page-numbers:hover {
  background-color: #f5f5f5;
}

/* Previous and Next links */
.pagination .prev,
.pagination .next {
  display: inline-block;
  padding: 5px 10px;
  margin: 0 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
  color: #333;
  text-decoration: none;
}

/* Disabled previous and next links */
.pagination .prev.disabled,
.pagination .next.disabled {
  color: #ccc;
  cursor: default;
}

.custom-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

/* Hover effect */
.custom-btn:hover {
  background-color: #0056b3;
  color: #fff;
}

.product-successmes {
  text-align: center;
  margin-top: 25px;
  margin-bottom: 25px;
  font-size: 18px;
  font-weight: 600;
  font-family: sans-serif;
}

/* Center align pagination */
@media screen and (min-width: 768px) {
  .pagination {
    text-align: center;
  }
}

/********************************/
.col-lg-4 {
  flex: 1 1 auto;
  /* Let the columns grow equally */
}

.color-cell {
  display: flex;
  align-items: center;
  background: #dff6fe;
  margin: 2px;
}

i.primary {
  width: 100%;
  border: 1px solid;
}

span.colorSquareCell.color.square {
  width: 45px;
  height: 45px;
  position: relative;
  margin-right: 1px;
  display: flex;
}

td.color-size-cell {
  background: #f2fbff;
  /* margin: 2px; */
  border: 3px solid #fff;
}

.main-img {
  border: 9px solid white;
  box-shadow: 0px 0px 3px 2px gray;
  width: 100%;
}

.font-size {
  font-size: 12px;
}

.ts-sect1 {
  background: #ebedec;
}

.ts-sect2 {
  background: #d9dbda;
}

.ts-sect3 {
  background: #b81e09;
  color: white;
}

.link-styl {
  display: flex;
  text-decoration: none;
  color: black;
  padding: 0;
}

.list-sty {
  font-size: 12px;
  padding: 0;
}

.ts-list-styl {
  display: flex;
  list-style: none;
  padding: 0;
  margin-bottom: 0;
  font-size: 12px;
  margin: unset;
}

.ts-list-styl li {
  width: 16%;
  margin: 6px 5px 0px 0px;
  text-align: center;
  padding: 6px;
}

.ts-head li {
  background: #dff6fe;
  font-weight: bold;
}

.list-base li,
.list-height li {
  background: #f2fcfc;
}

.first-li {
  background: #dff6fe !important;
  width: 280px !important;
}

.font-back-clr {
  background: #00ccff;
}

.butn-main-sec {
  position: relative;
  text-decoration: none;
  color: white;
  border: none;
}

.butn-torna {
  position: absolute;
  top: 4px;
  left: 30px;
  margin: 0;
}

.accordian_text {
  cursor: pointer;
}

.active .accordian_text {
  content: 'NASCONDI DISPONIBILITÀ';
}

.active .accordian_text {
  color: #c21a1a !important;
}

@media (max-width: 768px) {
  .customizer-content {
    width: 98%;
  }
}

@media (max-width: 576px) {
  .close-popup.crossicon {
    width: 8%;
  }
}

@media screen and (min-width: 576px) and (max-width: 992px) {
  .butn-main-sec {
    font-size: 12px;
  }
}

.hj-img {
  margin: 0 auto !important;
}

table.variations label:after {

  content: "" !important;
}

.wd-compare-btn.product-compare-button.wd-action-btn.wd-style-text.wd-compare-icon {
  display: none !important;
}

nav.woocommerce-breadcrumb {
  display: none !important;
}

tr:has(th:contains("Brand")) {
  display: none !important;
}

.hide-section {
  display: none;
}


input.step2-input.small_input {
  border: 1px solid gray;
}

input.step2-input.small_input:focus {
  border: 2px solid gray;
}



input[type="radio"],
input[type="checkbox"] {

  border: 1px solid black !important;
}

button.ts-next-butn.ts-butn.step3cls {
  background: black;
  color: white;
}

/* Custom styling for alignment without modifying Bootstrap */
.custom-header,
.custom-qty,
.custom-title,
.custom-price,
.custom-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Consistent padding and text alignment */
.custom-title small,
.custom-price small,
.total-price h2,
.total-price-value {
  text-align: left;
  padding-left: 10px;
}

/*.total-price-value{
  display: none;
}*/
/* Alignment for the total price section */
.total-price {
  /*    display: flex;*/
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
}

/* Specific alignment and spacing for elements */
.custom-qty p,
.custom-header p {
  font-weight: bold;
  padding-left: 10px;
}

/* Safari-specific fixes for popup modal */
@supports (-webkit-appearance: none) {
  .customizer-popup {
    /* Override any parent container constraints in Safari */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    /* Ensure it's not contained by any parent */
    transform: none !important;
    -webkit-transform: none !important;
    /* Force hardware acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Ensure it's above everything */
    z-index: 999999 !important;
  }

  .customizer-content {
    /* Ensure content is properly centered in Safari */
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    -webkit-transform: translate(-50%, -50%) !important;
    /* Prevent content from being constrained */
    max-width: min(90vw, 1200px) !important;
    max-height: min(90vh, 800px) !important;
    width: 85% !important;
    height: 80% !important;
    /* Force proper box model */
    box-sizing: border-box !important;
    /* Ensure scrollability */
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* Additional Safari-specific positioning fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .customizer-popup {
    /* Force full viewport coverage */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    /* Remove any transforms that might constrain positioning */
    transform: none !important;
    -webkit-transform: none !important;
    /* Ensure proper stacking */
    z-index: 999999 !important;
  }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
  .customizer-popup {
    /* iOS Safari viewport units fix */
    height: 100vh !important;
    min-height: 100vh !important;
    /* Prevent zoom on input focus */
    touch-action: manipulation;
  }

  .customizer-content {
    /* Prevent iOS Safari zoom issues */
    touch-action: manipulation;
    /* Better scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    /* Prevent content from being cut off */
    padding-bottom: env(safe-area-inset-bottom, 20px);
  }
}

/* Prevent body scrolling when popup is open */
body.popup-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

/* Safari-specific body scroll fix */
@supports (-webkit-appearance: none) {
  body.popup-open {
    /* Prevent background scrolling in Safari */
    overflow: hidden !important;
    -webkit-overflow-scrolling: auto !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
  }
}