/* Sai Sports Size Guide: matched to the shop theme (Poppins, black buttons, green #7fd41d accent, grey table borders) */
.saisg-trigger-wrap { margin: .5rem 0 0; }
.product-variants-item .saisg-trigger-wrap { display: block; margin: .5rem 0 .25rem; }

.saisg-trigger {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: none;
  border: 0;
  border-bottom: 2px solid #7fd41d;
  padding: 0 0 1px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  line-height: 1.4;
}
.saisg-trigger:hover, .saisg-trigger:focus-visible { color: #43b754; outline: none; }
.saisg-icon { flex: 0 0 auto; }

/* Pop-up */
.saisg-modal[hidden] { display: none; }
.saisg-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.saisg-backdrop { position: absolute; inset: 0; background: rgba(27, 26, 27, .7); }
.saisg-dialog {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 980px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px 24px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.saisg-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 2px solid #7fd41d;
  margin-bottom: 14px;
  padding-bottom: 8px;
}
.saisg-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  line-height: 1.3;
}
.saisg-head h2 span { display: block; font-size: 13px; text-transform: none; font-weight: 400; color: #555; margin-top: 2px; }
.saisg-close {
  background: #1b1a1b;
  color: #fff;
  border: 0;
  width: 34px;
  height: 34px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.saisg-close:hover, .saisg-close:focus-visible { background: #43b754; outline: none; }
body.saisg-open { overflow: hidden; }

/* Table */
.saisg { font-size: 13px; color: #000; }
.saisg-units { display: inline-flex; margin: 0 0 10px; border: 1px solid #d8d8d8; }
.saisg-unit {
  background: #f6f6f6;
  border: 0;
  padding: 5px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  cursor: pointer;
}
.saisg-unit.is-active { background: #1b1a1b; color: #fff; }
.saisg-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.saisg-scroll:focus-visible { outline: 2px solid #7fd41d; }
.saisg-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 640px;
}
.saisg-table th, .saisg-table td {
  border: 4px solid #f1f1f1;
  padding: 8px 6px;
  text-align: center;
  white-space: nowrap;
  font-size: 13px;
}
.saisg-table thead th { font-weight: 700; background: #fff; }
.saisg-table tbody th {
  text-align: left;
  font-weight: 700;
  white-space: normal;
  min-width: 150px;
  max-width: 230px;
  text-transform: uppercase;
  font-size: 12px;
}
.saisg-table .saisg-corner { text-align: left; }
.saisg-table tbody th, .saisg-table .saisg-corner {
  position: sticky;
  left: 0;
  background: #fafafa;
  z-index: 1;
}
.saisg-table .is-selected { background: #eefadf; }
.saisg-table thead th.is-selected { background: #7fd41d; color: #000; }
.saisg-note { margin: 10px 0 0; color: #555; font-size: 12px; }

/* Tab version: no extra frame */
.tab-pane .saisg { padding-top: 6px; }

@media (max-width: 575px) {
  .saisg-dialog { padding: 14px 14px 18px; }
  .saisg-table tbody th { min-width: 120px; }
}
