/* Size & Fit tab, button and modal */
.dn-size-wrap { max-width: 900px; }
.dn-size-wrap h3 { margin: 0 0 8px; font-size: 24px; line-height: 32px; }
.dn-size-wrap h4 { margin: 22px 0 8px; font-size: 18px; line-height: 24px; font-weight: 900; }
.dn-size-wrap p { margin: 0 0 16px; font-size: 15px; line-height: 24px; }
.dn-size-table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.dn-size-table caption { caption-side: top; padding: 0 0 10px; text-align: left; font-size: 15px; font-weight: 700; }
.dn-size-table th,
.dn-size-table td { border: 1px solid var(--dn-line); padding: 9px 12px; text-align: left; }
.dn-size-table th { background: #f5f5f3; font-weight: 700; }
.dn-size-note { font-size: 13px !important; line-height: 20px !important; color: #6c6962; }

body.single-product .dn-size-trigger,
.dn-size-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #19322f !important;
  font-size: 14px;
  font-weight: 700;
  text-transform: none !important;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.dn-size-trigger:hover { color: var(--dn-green); }
.dn-size-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.dn-size-modal.is-open { display: flex; }
.dn-size-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.dn-size-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: 28px;
  border-radius: 10px;
  background: #fff;
}
.dn-size-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--dn-ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
body.dn-size-open { overflow: hidden; }
