/**
 * ZD Guia de Tallas - front
 * @author Z Digital
 */
.zdsc {
  --zdsc-accent: #111827;
  margin: 14px 0;
}
.zdsc-modal {
  --zdsc-accent: #111827;
}
.zdsc svg,
.zdsc-modal svg {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.zdsc-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--zdsc-accent);
  background: none;
  border: 0;
  cursor: pointer;
}
.zdsc--link .zdsc-trigger span {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.zdsc--link .zdsc-trigger:hover span {
  text-decoration-thickness: 2px;
}
.zdsc--outline .zdsc-trigger,
.zdsc--button .zdsc-trigger {
  padding: 10px 16px;
  border: 1.5px solid var(--zdsc-accent);
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.zdsc--outline .zdsc-trigger:hover,
.zdsc--button .zdsc-trigger {
  color: #fff;
  background: var(--zdsc-accent);
}
.zdsc--button .zdsc-trigger:hover {
  opacity: 0.9;
}

/* Ventana */
.zdsc-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.zdsc-modal[hidden] {
  display: none;
}
.zdsc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.zdsc-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 48px);
  color: #1f2937;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.45);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.zdsc-modal.is-visible .zdsc-backdrop {
  opacity: 1;
}
.zdsc-modal.is-visible .zdsc-dialog {
  opacity: 1;
  transform: none;
}
.zdsc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px 24px;
  border-bottom: 1px solid #eef0f3;
}
.zdsc-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}
.zdsc-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #334155;
  background: #f1f5f9;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.zdsc-close:hover {
  background: #e2e8f0;
}
.zdsc-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 24px 0;
  overflow-x: auto;
}
.zdsc-tab {
  padding: 8px 14px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  color: #475569;
  background: #f1f5f9;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.zdsc-tab.is-active {
  color: #fff;
  background: var(--zdsc-accent);
}
.zdsc-body {
  padding: 18px 24px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.zdsc-pane {
  display: none;
}
.zdsc-pane.is-active {
  display: block;
}
.zdsc-subtitle {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}
.zdsc-content {
  font-size: 14px;
  line-height: 1.55;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.zdsc-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.zdsc-content table {
  width: 100%;
  min-width: 420px;
  margin: 8px 0 16px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}
.zdsc-content th,
.zdsc-content td {
  padding: 10px 12px;
  text-align: center;
  border: 0;
  border-bottom: 1px solid #eef0f3;
}
.zdsc-content thead th,
.zdsc-content tr:first-child th {
  font-weight: 700;
  color: #fff;
  background: var(--zdsc-accent);
}
.zdsc-content tbody tr:nth-child(even) td {
  background: #f8fafc;
}
.zdsc-content tr:last-child td {
  border-bottom: 0;
}
.zdsc-content td:first-child,
.zdsc-content th:first-child {
  font-weight: 600;
  text-align: left;
}
html.zdsc-lock,
html.zdsc-lock body {
  overflow: hidden;
}
@media (max-width: 575px) {
  .zdsc-modal {
    align-items: flex-end;
    padding: 0;
  }
  .zdsc-dialog {
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .zdsc-dialog,
  .zdsc-backdrop {
    transition: none;
  }
}
