.stretch-eze-size-chart-button {
  margin-top: 12px;
}

body.size-chart-modal-open {
  overflow: hidden;
}

#size-chart[hidden] {
  display: none !important;
}

#size-chart {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

#size-chart .modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
}

/* === SIZE CHART MODAL === */
#size-chart .modal__content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #f5f5f5;
  border-radius: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  padding: 40px 30px;
  width: 90%;
  max-width: 700px;
  height: 90vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  z-index: 10000;
  font-family: 'Nunito', sans-serif !important;
  overflow: auto;
}

#size-chart .size-chart-container {
  width: 100%;
}

/* Close button */
#size-chart .modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #EF1A65;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  line-height: 36px;
  text-align: center;
  z-index: 10001;
}

#size-chart .modal__close:hover,
#size-chart .modal__close:focus {
  background: #d01356;
  color: #fff;
}

/* Heading */
#size-chart h2 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 44px 24px;
  text-align: center;
  line-height: 1.2;
}

/* Bars container */
#size-chart .size-chart-diagram {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* Bars */
#size-chart .size-bar {
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  padding: 14px 18px;
  border-radius: 8px;
  text-align: left;
  line-height: 1.3;
  box-sizing: border-box;
}

/* Bar colors + varying widths */
#size-chart .size-xl { background: #0095D4; width: 100%; }
#size-chart .size-l  { background: #0095D4; width: 85%; }
#size-chart .size-m  { background: #0095D4; width: 70%; }
#size-chart .size-s  { background: #0095D4; width: 55%; }
#size-chart .size-xs { background: #0095D4; width: 40%; }

/* Bottom note */
#size-chart .size-note {
  font-size: 14px;
  color: #444;
  margin-top: 20px;
  text-align: center;
  line-height: 1.4;
}

/* === Responsive tweaks === */
@media (max-width: 768px) {
  #size-chart .modal__content {
    width: 95%;
    height: 90vh;
    padding: 24px 20px;
    border-radius: 28px;
  }

  #size-chart h2 {
    font-size: 28px;
    margin-bottom: 18px;
  }

  #size-chart .size-bar {
    font-size: 18px;
    padding: 12px;
    text-align: center;
  }

  #size-chart .size-note {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  #size-chart .modal__content {
    width: 95%;
    height: 90vh;
    padding: 20px 16px;
    border-radius: 20px;
  }

  #size-chart h2 {
    font-size: 24px;
  }

  #size-chart .size-bar {
    font-size: 16px;
    padding: 10px;
  }

  #size-chart .size-note {
    font-size: 12px;
  }
}
