.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;
}

/* --- Size swatch styling (customised for this site's theme) ---
   Was: border #f1f1f1 (too faint) + hover/checked using var(--primary-color)
   which is undefined here -> white text on white -> buttons vanished. */
.dns-option .woocommerce-input-wrapper label {
  display: inline-block !important;
  padding: 9px 14px;
  border: solid 1.5px #cfcfcf;
  margin: 0 8px 8px 0;
  min-width: 58px;
  text-align: center;
  color: #222;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  line-height: 1.2;
  border-radius: 4px;

  -webkit-transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  -moz-transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  -o-transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.dns-option .woocommerce-input-wrapper label:hover {
  border-color: #111;
  background: #f5f5f5;
  color: #111;
}

.dns-option .woocommerce-input-wrapper input:checked + label {
  border-color: #111;
  background: #111;
  color: #fff;
}
/* keyboard focus ring (the real input is visually hidden) */
.dns-option .woocommerce-input-wrapper input:focus-visible + label {
  outline: 2px solid #111;
  outline-offset: 2px;
}
.sticky-add-to-cart--active .dns-option .woocommerce-input-wrapper label {
  padding: 3px 6px;
  min-width: 40px;
  margin: 0 4px 4px 0;
}
.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-btn a {
  color: inherit;
  text-decoration: none;
}

/* --- Size guide popup (thay cơ chế lightbox của Flatsome, không còn dùng) ---
   #size_chart ẩn mặc định; mở qua :target (no-JS) hoặc .is-open (JS). */
#size_chart.dns-size-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  padding: 24px;
}
#size_chart.dns-size-modal:target,
#size_chart.dns-size-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}
.dns-size-modal__overlay {
  position: absolute;
  inset: 0;
  display: block;
  background: rgba(0, 0, 0, 0.6);
}
.dns-size-modal__dialog {
  position: relative;
  max-width: min(680px, 92vw);
  max-height: 88vh;
  overflow: auto;
  padding: 16px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.dns-size-modal__dialog img {
  display: block;
  max-width: 100%;
  height: auto;
}
.dns-size-modal__close {
  position: absolute;
  top: 4px;
  right: 8px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #333;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.dns-size-modal__close:hover {
  color: #000;
}
body.dns-size-modal-open {
  overflow: hidden;
}

.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;
}
