.size-guide-entry {
  display: flex;
  justify-content: flex-start;
  margin-block: -2px 2px;
}

.size-guide-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  padding: 3px 0 5px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: #c72f54;
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  cursor: pointer;
}

.size-guide-trigger:hover {
  color: #8f1735;
}

.size-guide-trigger span {
  font-size: 1rem;
}

.size-guide-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.size-guide-dialog::backdrop {
  background: rgba(21, 27, 24, .48);
  backdrop-filter: blur(2px);
}

.size-guide-panel {
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border: 1px solid rgba(23, 32, 28, .12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(23, 32, 28, .24);
}

.size-guide-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid #e8e9e5;
}

.size-guide-panel header span {
  color: #7b817d;
  font-size: .76rem;
}

.size-guide-panel h2 {
  margin: 3px 0 0;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
}

.size-guide-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #dedfdb;
  border-radius: 50%;
  background: #f7f7f4;
  color: #17201c;
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.size-guide-content {
  max-height: calc(100dvh - 126px);
  padding: 24px;
  overflow: auto;
}

.size-guide-diagram {
  display: block;
  width: min(100%, 520px);
  max-height: 330px;
  margin: 0 auto 20px;
  object-fit: contain;
  border-radius: 16px;
}

.size-guide-instructions {
  max-width: 720px;
  margin: 0 auto 22px;
  color: #59615c;
  line-height: 1.95;
  text-align: center;
}

.size-guide-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e3df;
  border-radius: 14px;
}

.size-guide-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  text-align: center;
}

.size-guide-table th,
.size-guide-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e8e9e5;
  white-space: nowrap;
}

.size-guide-table thead th {
  background: #f3f3ef;
  color: #27302b;
  font-size: .84rem;
}

.size-guide-table thead small {
  display: block;
  margin-top: 4px;
  color: #7b817d;
  font-size: .68rem;
  font-weight: 500;
}

.size-guide-table tbody th {
  color: #c72f54;
  font-weight: 900;
}

.size-guide-table tbody tr:last-child th,
.size-guide-table tbody tr:last-child td {
  border-bottom: 0;
}

.size-guide-table tbody tr:nth-child(even) {
  background: #fafaf7;
}

@media (max-width: 650px) {
  .size-guide-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .size-guide-panel {
    max-height: calc(100dvh - 20px);
    border-radius: 16px;
  }

  .size-guide-panel > header {
    padding: 16px;
  }

  .size-guide-content {
    max-height: calc(100dvh - 98px);
    padding: 16px;
  }

  .size-guide-diagram {
    max-height: 250px;
  }

  .size-guide-table th,
  .size-guide-table td {
    padding: 12px;
  }
}
