.astros-size-guide-action {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 12px 0 18px;
}

.astros-size-guide-trigger {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: #181818;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  letter-spacing: 0.01em;
  line-height: 1;
  min-height: 42px;
  padding: 0 17px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.astros-size-guide-trigger:hover,
.astros-size-guide-trigger:focus-visible {
  background: #181818;
  color: #fff;
  transform: translateY(-1px);
}

.astros-size-guide-trigger:focus-visible,
.astros-size-guide-close:focus-visible,
.astros-size-guide-done:focus-visible {
  outline: 3px solid rgba(25, 105, 255, 0.35);
  outline-offset: 3px;
}

.astros-size-guide-trigger svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 19px;
}

.astros-size-guide-hint {
  color: #6a6a6a;
  font-size: 13px;
  line-height: 1.35;
}

.astros-size-guide-modal[hidden] {
  display: none;
}

.astros-size-guide-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 999999;
}

.astros-size-guide-backdrop {
  background: rgba(10, 10, 10, 0.76);
  inset: 0;
  position: absolute;
}

.astros-size-guide-dialog {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  max-width: 960px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.astros-size-guide-header {
  align-items: center;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  padding: 20px 22px;
}

.astros-size-guide-header h2 {
  color: #181818;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
  margin: 2px 0 0;
}

.astros-size-guide-eyebrow {
  color: #777;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0;
  text-transform: uppercase;
}

.astros-size-guide-close {
  align-items: center;
  appearance: none;
  background: #f1f1f1;
  border: 0;
  border-radius: 50%;
  color: #181818;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
  padding: 0;
}

.astros-size-guide-close:hover {
  background: #181818;
  color: #fff;
}

.astros-size-guide-close svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
  width: 21px;
}

.astros-size-guide-content {
  background: #fafafa;
  min-height: 120px;
  overflow: auto;
  padding: clamp(18px, 4vw, 38px);
  text-align: center;
}

.astros-size-guide-content img {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.astros-size-guide-content--table {
  background: #f5f5f5;
  text-align: left;
}

.astros-size-guide-product-name {
  color: #555;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.astros-size-guide-table-scroll {
  border-radius: 8px;
  max-width: 100%;
  overflow-x: auto;
}

.astros-size-guide-table-scroll:focus-visible {
  outline: 3px solid rgba(25, 105, 255, 0.35);
  outline-offset: 3px;
}

.astros-size-guide-table {
  background: #fff;
  border-collapse: collapse;
  color: #181818;
  margin: 0;
  min-width: 560px;
  width: 100%;
}

.astros-size-guide-table th,
.astros-size-guide-table td {
  border: 1px solid #dedede;
  font-size: 15px;
  line-height: 1.25;
  padding: 14px 18px;
  text-align: center;
  white-space: nowrap;
}

.astros-size-guide-table thead th {
  background: #181818;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.astros-size-guide-table th:first-child {
  min-width: 150px;
  text-align: left;
}

.astros-size-guide-table tbody th {
  font-weight: 700;
}

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

.astros-size-guide-footer {
  align-items: center;
  border-top: 1px solid #e8e8e8;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 16px 22px;
}

.astros-size-guide-footer p {
  color: #666;
  font-size: 13px;
  margin: 0;
}

.astros-size-guide-done {
  appearance: none;
  background: #181818;
  border: 1px solid #181818;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  min-height: 42px;
  padding: 0 18px;
}

.astros-size-guide-done:hover {
  background: #333;
}

html.astros-size-guide-is-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .astros-size-guide-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .astros-size-guide-modal {
    align-items: flex-end;
    padding: 0;
  }

  .astros-size-guide-dialog {
    border-radius: 18px 18px 0 0;
    max-height: 92vh;
  }

  .astros-size-guide-header {
    padding: 17px 18px;
  }

  .astros-size-guide-content {
    padding: 20px 14px;
  }

  .astros-size-guide-content--table {
    padding-left: 14px;
    padding-right: 0;
  }

  .astros-size-guide-content--table::after {
    color: #777;
    content: 'Deslizá horizontalmente para ver todos los talles';
    display: block;
    font-size: 11px;
    margin: 10px 14px 0 0;
    text-align: center;
  }

  .astros-size-guide-table-scroll {
    border-radius: 8px 0 0 8px;
  }

  .astros-size-guide-table th,
  .astros-size-guide-table td {
    font-size: 14px;
    padding: 12px 15px;
  }

  .astros-size-guide-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    text-align: center;
  }

  .astros-size-guide-done {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .astros-size-guide-trigger {
    transition: none;
  }
}
