.repz-size-trigger {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
  color: #050505;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
}

.repz-size-trigger__fit {
  color: #050505;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.repz-size-trigger__sep {
  color: #cfcfcf;
}

.repz-size-trigger__button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: #4e3f48;
  padding: 0 0 2px;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  cursor: pointer;
}

.repz-size-trigger .repz-size-trigger__button:hover,
.repz-size-trigger .repz-size-trigger__button:focus,
.repz-size-trigger__button--standalone:hover,
.repz-size-trigger__button--standalone:focus {
  background: #050505 !important;
  color: #ffffff !important;
  border-color: #050505 !important;
  text-decoration: none;
  outline: none;
}

.repz-size-trigger__button:focus-visible {
  outline: 2px solid #050505;
  outline-offset: 4px;
}

.repz-size-trigger__button--standalone {
  display: inline-flex;
  margin: 8px 0;
}

.repz-size-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  font-family: inherit;
}

.repz-size-modal.is-open,
.repz-size-modal[aria-hidden="false"] {
  display: block;
}

.repz-size-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.58);
}

.repz-size-modal__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - 36px);
  max-width: 780px;
  max-height: calc(100vh - 44px);
  overflow: auto;
  transform: translate(-50%, -50%);
  background: #ffffff;
  color: #050505;
  border: 1px solid #e7e7e7;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.24);
}

.repz-size-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e7e7e7;
  border-radius: 0;
  background: #ffffff;
  color: #050505;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.repz-size-modal__close:hover,
.repz-size-modal__close:focus {
  border-color: #050505;
  outline: none;
}

body.repz-size-modal-open {
  overflow: hidden;
}

.repz-size-content {
  padding: 34px;
}

.repz-size-content__header {
  padding-right: 48px;
  margin-bottom: 24px;
}

.repz-size-content__kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #e53935;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.repz-size-content__header h2 {
  margin: 0 0 8px;
  color: #050505;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.repz-size-content__header p {
  max-width: 620px;
  margin: 0;
  color: #666666;
  font-size: 14px;
  line-height: 1.6;
}

.repz-size-content__chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}

.repz-size-content__chip {
  min-width: 58px;
  height: 54px;
  padding: 0 14px;
  border: 1px solid #d9d9d9;
  border-radius: 7px;
  background: #ffffff;
  color: #565056;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.repz-size-content .repz-size-content__chip:hover,
.repz-size-content .repz-size-content__chip:focus,
.repz-size-content .repz-size-content__chip.is-active {
  background: #050505 !important;
  border-color: #050505 !important;
  color: #ffffff !important;
  outline: none;
}

.repz-size-content .repz-size-content__chip.is-active {
  border-width: 2px;
}

.repz-size-content__table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e7e7e7;
}

.repz-size-content__table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  background: #ffffff;
}

.repz-size-content__table th,
.repz-size-content__table td {
  padding: 16px 18px;
  border-right: 1px solid #e7e7e7;
  border-bottom: 1px solid #e7e7e7;
  text-align: center;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.3;
}

.repz-size-content__table th:last-child,
.repz-size-content__table td:last-child {
  border-right: 0;
}

.repz-size-content__table tr:last-child th,
.repz-size-content__table tr:last-child td {
  border-bottom: 0;
}

.repz-size-content__table thead th {
  background: #050505;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.repz-size-content__table tbody th {
  background: #fafafa;
  color: #050505;
  text-align: left;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.repz-size-content__table tbody td {
  color: #202020;
  font-weight: 700;
}

.repz-size-content__table [data-repz-col].is-highlighted {
  background: #fff7f7;
}

.repz-size-content__table thead [data-repz-col].is-highlighted {
  background: #e53935;
  color: #ffffff;
}

.repz-size-content__note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e7e7e7;
  color: #777777;
  font-size: 13px;
  line-height: 1.6;
}

.repz-size-inline {
  width: 100%;
  margin: 28px 0;
  border: 1px solid #e7e7e7;
  background: #ffffff;
}

.repz-size-inline .repz-size-content {
  padding: 28px;
}

@media (max-width: 640px) {
  .repz-size-trigger {
    margin: 10px 0 14px;
    font-size: 13px;
  }

  .repz-size-modal__panel {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    max-height: 90vh;
    transform: none;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .repz-size-content {
    padding: 26px 18px 22px;
  }

  .repz-size-content__header {
    padding-right: 46px;
    margin-bottom: 20px;
  }

  .repz-size-content__header h2 {
    font-size: 24px;
  }

  .repz-size-content__header p {
    font-size: 13px;
  }

  .repz-size-content__chips {
    gap: 8px;
  }

  .repz-size-content__chip {
    min-width: 50px;
    height: 48px;
    font-size: 17px;
  }

  .repz-size-content__table {
    min-width: 500px;
  }

  .repz-size-content__table th,
  .repz-size-content__table td {
    padding: 14px 15px;
    font-size: 13px;
  }

  .repz-size-content__table-scroll::after {
    content: "Desliza para ver todas las tallas →";
    display: block;
    padding: 9px 0 0;
    color: #999999;
    font-size: 12px;
  }

  .repz-size-inline .repz-size-content {
    padding: 22px 16px;
  }
}

/* v1.0.2: Mobile-first size guide cards for complete visibility on phones. */
.repz-size-content__mobile-grid {
  display: none;
}

.repz-size-content__mobile-card {
  border: 1px solid #e7e7e7;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.repz-size-content__mobile-card h3 {
  margin: 0;
  padding: 12px 14px;
  background: #050505;
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.repz-size-content__mobile-card dl {
  margin: 0;
}

.repz-size-content__mobile-measure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border-top: 1px solid #e7e7e7;
}

.repz-size-content__mobile-measure dt,
.repz-size-content__mobile-measure dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
}

.repz-size-content__mobile-measure dt {
  color: #050505;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.repz-size-content__mobile-measure dd {
  color: #202020;
  font-weight: 800;
  white-space: nowrap;
}

.repz-size-content__mobile-card.is-highlighted {
  border-color: #050505;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.repz-size-content__mobile-card.is-highlighted h3 {
  background: #e53935;
  color: #ffffff;
}

@media (max-width: 640px) {
  .repz-size-modal__panel {
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    border: 1px solid #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
  }

  .repz-size-content {
    padding: 24px 16px 20px;
  }

  .repz-size-content__header {
    padding-right: 50px;
    margin-bottom: 18px;
  }

  .repz-size-content__kicker {
    margin-bottom: 7px;
    font-size: 10px;
  }

  .repz-size-content__header h2 {
    font-size: 24px;
    line-height: 1.02;
  }

  .repz-size-content__header p {
    max-width: none;
    font-size: 13px;
    line-height: 1.55;
  }

  .repz-size-modal__close {
    top: 14px;
    right: 12px;
    width: 42px;
    height: 36px;
    font-size: 24px;
  }

  .repz-size-content__chips {
    gap: 8px;
    margin-bottom: 18px;
  }

  .repz-size-content__chip {
    min-width: 48px;
    height: 46px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 700;
  }

  .repz-size-content__table-scroll {
    display: none;
  }

  .repz-size-content__table-scroll::after {
    content: none !important;
    display: none !important;
  }

  .repz-size-content__mobile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
  }

  .repz-size-content__note {
    margin-top: 16px;
    padding-top: 14px;
    font-size: 12px;
    line-height: 1.55;
  }

  .repz-size-inline .repz-size-content {
    padding: 22px 14px;
  }
}

@media (min-width: 421px) and (max-width: 640px) {
  .repz-size-content__mobile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
