/* ==========================================================================
   Modish Nova — Interactive Size Chart Modal Styles (Enqueued ONLY when _kn_sizechart exists)
   ========================================================================== */

.mn-sc-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 1900;
}

.mn-sc-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(94vw, 720px);
  max-height: 86vh;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  z-index: 1910;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mn-sc-backdrop[hidden],
.mn-sc-modal[hidden] {
  display: none !important;
}

.mn-sc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  flex-shrink: 0;
}

.mn-sc-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0;
  letter-spacing: 0.04em;
}

.mn-sc-subtitle {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 3px 0 0;
}

.mn-sc-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mn-sc-unit-pill {
  display: inline-flex;
  background: #f3f4f6;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
}

.mn-sc-unit-btn {
  border: none;
  background: transparent;
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mn-sc-unit-btn.is-active {
  background: #111111;
  color: #ffffff;
}

.mn-sc-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #111111;
  cursor: pointer;
  padding: 2px 6px;
}

.mn-sc-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
}

.mn-sc-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
}

.mn-sc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: center;
  min-width: 420px;
}

.mn-sc-table thead th {
  background: #111111;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 11px 14px;
  white-space: nowrap;
}

.mn-sc-table tbody th,
.mn-sc-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}

.mn-sc-table tbody th {
  font-weight: 800;
  background: #fafafa;
  color: #111111;
}

.mn-sc-table tbody tr:nth-child(even) td {
  background: #fcfcfc;
}

.mn-sc-note {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: #6b7280;
  font-style: italic;
}
