/* ===== Size help modal ===== */

.size-help-lock {
  overflow: hidden !important;
}

.size-help-modal {
  display: none;
}

.size-help-modal.is-open {
  display: block;
}

.size-help-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 28, 25, 0.38);
  z-index: 9998;
}

.size-help-window {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  transform: translate(-50%, -50%);
  z-index: 9999;

  background: #fffaf5;
  border: 1px solid #ded3c7;
  border-radius: 0;
  box-shadow: 0 24px 80px rgba(30, 28, 25, 0.18);

  padding: 34px;
  box-sizing: border-box;
  color: #3f3934;
}

.size-help-close {
  position: absolute;
  top: 18px;
  right: 22px;

  width: 36px;
  height: 36px;

  border: none;
  background: transparent;
  color: #7b746c;

  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.size-help-window h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
}

.size-help-subtitle {
  margin: 0 0 22px;
  color: #7b746c;
  font-size: 16px;
  line-height: 1.35;
}

.size-help-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1.2fr;
  border: 1px solid #ded3c7;
  border-radius: 0;
  overflow: hidden;
  background: #ffffff;
}

.size-help-grid > div {
  padding: 12px 14px;
  border-bottom: 1px solid #eee5dc;
  border-right: 1px solid #eee5dc;
  font-size: 15px;
  font-weight: 600;
}

.size-help-grid > div:nth-child(3n) {
  border-right: none;
}

.size-help-grid > div:nth-last-child(-n+3) {
  border-bottom: none;
}

.size-help-head {
  background: #eee9e1;
  font-weight: 900 !important;
}

.size-help-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 0;
  background: #f3eee8;
  color: #7b746c;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 560px) {
  .size-help-window {
    padding: 26px 18px;
    border-radius: 0;
  }

  .size-help-window h2 {
    font-size: 26px;
  }

  .size-help-grid > div {
    padding: 10px 8px;
    font-size: 13px;
  }
}
