:root {
  --primary-color: #dc9814;
}
.product-info span.amount {
  color: #d40000;
}
.dns-option {
  display: block;
  margin: 0px auto 7px;
}

.dns-option > label {
  display: block;
  font-weight: 700;
}

.dns-option .woocommerce-input-wrapper input {
  position: absolute;
  visibility: hidden;
}

.dns-option .woocommerce-input-wrapper label {
  display: inline-block !important;
  padding: 6px 10px;
  border: solid 1px #f1f1f1;
  margin-right: 5px;
  min-width: 80px;
  text-align: center;
  font-weight: 400;
  font-size: 15px;
  cursor: pointer;
  line-height: 1.2;
  border-radius: 4px;
  background-color: #fff;

  -webkit-transition: all 0.3s 0.01s ease-in;
  -moz-transition: all 0.3s 0.01s ease-in;
  -o-transition: all 0.3s 0.01s ease-in;
  transition: all 0.3s 0.01s ease-in;
}
.dns-option .woocommerce-input-wrapper label:hover {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: #fff;
}

.dns-option .woocommerce-input-wrapper input:checked + label {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: #fff;
}
.sticky-add-to-cart--active .dns-option .woocommerce-input-wrapper label {
  padding: 2px 3px;
  min-width: 40px;
}
.dns-warning {
  display: none;
}
@media screen and (max-width: 550px) {
  .sticky-add-to-cart--active .dns-option {
    display: none;
  }
  .sticky-add-to-cart--active .dns-warning {
    display: block;
  }
}

#size-chart-btn {
  text-decoration: underline;
  display: inline-block;
  font-size: 16px;
  text-transform: capitalize;
  color: #000;
  font-weight: 400;
  padding-left: 36px;
  cursor: pointer;
  background-image: url(../image/icon_size_chart.jpg);
  background-repeat: no-repeat;
  background-position: 0 5px;
  /* margin-bottom: 15px; */
}
#size-chart-btn a:hover {
  color: #000;
}

/* Size Chart Modal/Lightbox Styles */
#size_chart {
  display: none;
}

/* For non-Flatsome themes - custom modal */
#size_chart.dns-modal-open {
  display: flex !important;
  position: fixed;
  z-index: 99999999 !important;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 0;
  align-items: center;
  justify-content: center;
  animation: dnsModalFadeIn 0.3s ease-in-out;
}

@keyframes dnsModalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#size_chart .dns-modal-content {
  position: relative;
  background-color: #fff;
  margin: 20px auto;
  padding: 40px 20px 20px 20px;
  max-width: 90%;
  max-height: 90vh;
  width: auto;
  border-radius: 5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  overflow: auto;
  animation: dnsModalZoomIn 0.3s ease-in-out;
}

@keyframes dnsModalZoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

#size_chart .dns-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #333;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  background: #fff;
  width: 36px;
  height: 36px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#size_chart .dns-modal-close:hover,
#size_chart .dns-modal-close:focus {
  color: #fff;
  background: #d40000;
  transform: rotate(90deg);
}

#size_chart img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 80px);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* Prevent body scroll when modal is open */
body.dns-modal-active {
  overflow: hidden !important;
}

/* Hide or lower z-index of sticky headers when modal is open */
body.dns-modal-active header,
body.dns-modal-active .site-header,
body.dns-modal-active .header-wrapper,
body.dns-modal-active [class*="sticky"],
body.dns-modal-active .sticky-header {
  z-index: 99 !important;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  #size_chart .dns-modal-content {
    max-width: 95%;
    max-height: 95vh;
    padding: 35px 10px 10px 10px;
  }
  
  #size_chart img {
    max-height: calc(95vh - 60px);
  }
}

.VariationColor__Wrapper {
  display: flex;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
  max-width: 400px;
  margin-top: 8px;
  margin-top: 8px;
}
.VariationColor__wrapper--variable {
  margin-bottom: 24px;
  margin-bottom: 0px;
}
[role="button"] {
  cursor: pointer;
}
.VariationColor__swatch--item {
  height: 32px;
  height: 32px;
  width: 32px;
  width: 32px;
  margin-right: 8px;
  margin-right: 8px;
  margin-bottom: 8px;
  margin-bottom: 8px;
  position: relative;
  cursor: pointer;
}
.ColorSwatch__selectedLight {
  position: relative;
}
.ColorSwatch__colorSwatch {
  border-radius: 50%;
  height: 100%;
  width: 100%;
  border: 2px solid transparent;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ColorSwatch__tick {
  width: 50%;
  height: 50%;
}

.ColorSwatch__selected:after,
.ColorSwatch__selectedLight:after {
  position: absolute;
  top: 1px;
  left: 1px;
  bottom: 1px;
  right: 1px;
  border-radius: 50%;
  content: "";

  border: 2px solid #fff;
}
.ColorSwatch__colorSwatch {
  border-radius: 50%;
  height: 100%;
  width: 100%;
  border: 2px solid transparent;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ColorSwatch__selectedLight.ColorSwatch__bordered--white {
  border: 2px solid #40354e;
}
.ColorSwatch__bordered--white {
  border: 2px solid #f2f2f6;
}

.woo-variation-swatches
  .variable-items-wrapper
  .variable-item:not(.radio-variable-item) {
  box-shadow: unset;
  border: #e2e2e2 1px solid;
  border-radius: 3px;
}
.product-info .woocommerce-variation-add-to-cart,
form.cart {
  gap: 7px;
}
.form-row.dns-option-size{
  margin-top: 10px;
}
.form-row.dns-option-size label {
  font-weight: 400;
}