#gsp-dialog,#gsp-dialog *,.gsp-launch{font-family:Assistant,Arial,sans-serif!important;box-sizing:border-box}
#gsp-dialog{color:#fff;background:#0a0a0a;border:0;border-radius:22px;padding:44px 24px 22px;width:calc(100% - 24px);max-width:520px;max-height:calc(100dvh - 32px);overflow-y:auto;margin:auto;box-shadow:0 20px 70px #0007;text-align:right}
#gsp-dialog::backdrop{background:rgba(0,0,0,.65)}
#gsp-dialog .gsp-close{position:absolute;top:8px;left:12px;width:36px;height:36px;background:transparent;color:white;border:0;padding:0;font-size:30px;line-height:1;cursor:pointer}
.gsp-launch{display:inline-flex!important;align-items:center;gap:6px;background:transparent!important;color:#111!important;border:0!important;box-shadow:none!important;padding:3px 0!important;margin:0 12px 0 0!important;font-size:13px!important;font-weight:600!important;line-height:1.5!important;letter-spacing:0!important;text-transform:none!important;cursor:pointer;text-decoration:underline;text-underline-offset:3px;vertical-align:middle}
.gsp-launch svg{width:19px;height:19px;flex-shrink:0}
#gsp-dialog h2{font-family:Assistant,Arial,sans-serif!important;font-size:30px;line-height:1.2;font-weight:800;color:#fff;margin:0 0 28px;text-align:center}
#gsp-dialog .gsp-field{margin:0 0 24px}#gsp-dialog label{display:flex;justify-content:space-between;align-items:center;font-size:18px;color:white;font-weight:700;margin-bottom:18px}
#gsp-dialog .gsp-value{font-size:23px;direction:ltr}#gsp-dialog .gsp-range{display:block;direction:rtl;width:100%;height:8px;margin:14px 0;padding:0;border:0;appearance:none;-webkit-appearance:none;background:transparent;cursor:pointer}
#gsp-dialog .gsp-range::-webkit-slider-runnable-track{height:8px;background:white;border-radius:99px}
#gsp-dialog .gsp-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:26px;height:26px;margin-top:-9px;border-radius:50%;background:white;border:3px solid #111;box-shadow:0 0 0 1px #888}
#gsp-dialog .gsp-range::-moz-range-track{height:8px;background:white;border-radius:99px}
#gsp-dialog .gsp-range::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:white;border:3px solid #111;box-shadow:0 0 0 1px #888}
#gsp-dialog .gsp-range-scale{display:flex;justify-content:space-between;direction:ltr;font-size:13px;color:#bbb;margin-top:14px}
#gsp-dialog .gsp-fit-label{display:block;color:white;font-size:18px;font-weight:700;margin-bottom:10px}
#gsp-dialog .gsp-fit{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#gsp-dialog .gsp-fit button{padding:12px 8px;background:transparent;color:white;border:1px solid #777;border-radius:12px;font-size:17px;font-weight:700;cursor:pointer}
#gsp-dialog .gsp-fit button.active{background:#efff00;color:#111;border-color:#efff00}
#gsp-dialog .gsp-submit{width:100%;background:#efff00;color:#111;border:0;border-radius:12px;padding:14px;font-size:19px;font-weight:800;cursor:pointer}
#gsp-dialog .gsp-result{display:none;background:white;color:#111;border-radius:16px;text-align:center;padding:20px;margin-top:20px}
#gsp-dialog .gsp-result.show{display:block}#gsp-dialog .gsp-result small{display:block;font-size:16px;color:#555}
#gsp-dialog .gsp-result-size{font-size:56px;font-weight:800;line-height:1.2;direction:ltr}#gsp-dialog .gsp-result p{font-size:16px;color:#555;line-height:1.5;margin:8px 0 0}
#gsp-dialog .gsp-full{display:block;width:fit-content;margin:20px auto 0;color:white;font-size:14px;text-decoration:underline;text-underline-offset:4px}
#gsp-dialog button:focus-visible,#gsp-dialog a:focus-visible,.gsp-launch:focus-visible{outline:2px solid #888;outline-offset:4px}
#gsp-dialog .gsp-range:focus-visible{outline:2px solid #fff;outline-offset:8px}
@media(max-width:480px){#gsp-dialog{padding:44px 18px 20px}#gsp-dialog h2{font-size:27px}.gsp-launch{font-size:12px!important;margin-right:8px!important}}

#gsp-dialog .gsp-disclaimer{margin:18px 0 0;padding:0;color:#ccc;text-align:center;font-size:clamp(10px,2.7vw,12px);font-weight:400;line-height:1.5;white-space:nowrap}
#gsp-dialog .gsp-disclaimer + .gsp-full{margin-top:8px}

/* Glory Street Baggy Pants – dedicated chart, independent of shirt calculator */
#gsp-dialog.gsp-pants-dialog { max-width: 750px; padding: 38px 26px 26px; }
#gsp-dialog .gsp-pants-chart h2 { font-size: clamp(24px, 3vw, 30px); margin: 4px 28px 10px; }
#gsp-dialog .gsp-pants-intro { color:#d5d5d5; text-align:center; font-size:14px; line-height:1.65; margin:0 auto 23px; max-width:540px; }
#gsp-dialog .gsp-pants-summary { display:grid; grid-template-columns:minmax(0, 235px) minmax(0, 1fr); gap:18px; align-items:stretch; margin-bottom:24px; }
#gsp-dialog .gsp-pants-illustration { background:#f5f5f5; border-radius:15px; padding:10px 8px 7px; color:#333; text-align:center; min-width:0; }
#gsp-dialog .gsp-pants-illustration svg { width:100%; max-width:245px; height:auto; display:block; margin:auto; }
#gsp-dialog .gsp-pants-illustration-caption { font-size:11px; line-height:1.4; margin:0 2px 5px; color:#555; }
#gsp-dialog .gsp-pants-details { background:#181818; border:1px solid #353535; border-radius:15px; padding:16px; min-width:0; margin:0 0 24px; }
#gsp-dialog .gsp-pants-details h3 { color:#fff; font-size:19px; font-weight:750; line-height:1.3; margin:0 0 12px; }
#gsp-dialog .gsp-pants-details dl { margin:0; }
#gsp-dialog .gsp-pants-details dl>div { display:flex; justify-content:space-between; gap:8px; padding:7px 0; border-bottom:1px solid #303030; font-size:14px; line-height:1.5; }
#gsp-dialog .gsp-pants-details dt { color:#bdbdbd; font-weight:400; }
#gsp-dialog .gsp-pants-details dd { color:#fff; font-weight:700; margin:0; text-align:left; }
#gsp-dialog .gsp-pants-key { display:grid; grid-template-columns:1fr 1fr; gap:12px 10px; align-self:center; margin:0; padding:15px 12px; background:#181818; border:1px solid #353535; border-radius:15px; font-size:12px; color:#eee; min-width:0; }
#gsp-dialog .gsp-pants-key span { display:flex; align-items:center; gap:5px; white-space:nowrap; }
#gsp-dialog .gsp-pants-key b { display:inline-grid; place-items:center; width:22px; height:22px; background:#eee; border-radius:50%; color:#111; font-family:Arial,sans-serif; font-size:12px; flex:none; }
#gsp-dialog .gsp-pants-section-title, #gsp-dialog .gsp-pants-howto h3 { color:#fff; font-size:20px; font-weight:750; line-height:1.4; margin:0 0 12px; }
#gsp-dialog .gsp-pants-table-scroll { width:100%; max-width:100%; overflow-x:auto; border:1px solid #494949; border-radius:12px; -webkit-overflow-scrolling:touch; }
#gsp-dialog .gsp-pants-table { table-layout:fixed; border-collapse:collapse; border-spacing:0; margin:0; width:100%; min-width:515px; background:#151515; color:#fff; text-align:center; direction:rtl; }
#gsp-dialog .gsp-pants-table th, #gsp-dialog .gsp-pants-table td { border:0; border-bottom:1px solid #373737; padding:12px 5px; font-size:14px; line-height:1.4; text-align:center; vertical-align:middle; background:transparent; color:inherit; }
#gsp-dialog .gsp-pants-table thead th { background:#2a2a2a; font-weight:700; color:#fff; }
#gsp-dialog .gsp-pants-table thead span { font-size:11px; opacity:.7; }
#gsp-dialog .gsp-pants-table tbody th { font-weight:800; color:#fff; }
#gsp-dialog .gsp-pants-table tbody tr:nth-child(even) { background:#202020; }
#gsp-dialog .gsp-pants-table tbody tr:last-child th, #gsp-dialog .gsp-pants-table tbody tr:last-child td { border-bottom:0; }
#gsp-dialog .gsp-pants-hint { color:#bcbcbc; font-size:12px; line-height:1.6; margin:11px 0 24px; }
#gsp-dialog .gsp-pants-howto { border-top:1px solid #373737; padding-top:19px; }
#gsp-dialog .gsp-pants-howto ol { margin:0; padding:0 22px 0 0; }
#gsp-dialog .gsp-pants-howto li { color:#e9e9e9; padding:0 2px 0 0; margin:0 0 9px; font-size:14px; line-height:1.65; }
#gsp-dialog .gsp-pants-howto li::marker { font-weight:700; }
#gsp-dialog .gsp-pants-howto strong { color:#fff; font-weight:700; }
#gsp-dialog .gsp-pants-note { font-size:12px; color:#bdbdbd; border-top:1px solid #333; line-height:1.6; text-align:center; padding-top:15px; margin:20px 0 0; }
@media (max-width:590px) {
  #gsp-dialog.gsp-pants-dialog { padding:40px 14px 18px; }
  #gsp-dialog .gsp-pants-summary { grid-template-columns:1fr; gap:12px; }
  #gsp-dialog .gsp-pants-illustration svg { max-width:190px; }
  #gsp-dialog .gsp-pants-illustration { padding:4px 10px; }
  #gsp-dialog .gsp-pants-details { padding:14px; }
  #gsp-dialog .gsp-pants-key { font-size:12px; }
  #gsp-dialog .gsp-pants-table th, #gsp-dialog .gsp-pants-table td { font-size:13px; padding:11px 3px; }
}


/* Glory Street - short pants size chart (only on shorts products) */
#gsp-dialog.gsp-shorts-dialog {
  max-width: 810px;
  padding: 38px 24px 25px;
  color: #fff;
  background: #0a0a0a;
}
#gsp-dialog.gsp-shorts-dialog .gsp-shorts-chart h2 {
  font-size: clamp(23px, 3.4vw, 29px);
  line-height: 1.3;
  margin: 4px 30px 9px;
  color: #fff;
  text-align: center;
}
#gsp-dialog .gsp-shorts-intro {
  text-align: center;
  color: #c9c9c9;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 20px;
}
#gsp-dialog .gsp-shorts-demo {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  margin-bottom: 24px;
}
#gsp-dialog .gsp-shorts-illustration {
  border-radius: 13px;
  background: #f2f2f2;
  padding: 7px 10px;
  min-width: 0;
  text-align: center;
}
#gsp-dialog .gs-sg-figure {
  display: block;
  width: 100%;
  max-width: 255px;
  height: auto;
  margin: 0 auto;
}
#gsp-dialog .gs-sg-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 7px;
  padding: 14px 12px;
  background: #181818;
  border: 1px solid #303030;
  border-radius: 13px;
}
#gsp-dialog .gs-sg-key {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  min-width: 0;
  text-align: right;
}
#gsp-dialog .gs-sg-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-weight: 800;
  font-size: 12px;
}
#gsp-dialog .gs-sg-key strong {display:block;color:#fff;font-size:13px;font-weight:800;line-height:1.4}
#gsp-dialog .gs-sg-key small {display:block;color:#bdbdbd;font-size:11px;line-height:1.4}
#gsp-dialog .gsp-shorts-table-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  margin-bottom:10px;
}
#gsp-dialog .gsp-shorts-table-heading h3 {font-size:19px;color:#fff;font-weight:800;line-height:1.3;margin:0}
#gsp-dialog .gsp-shorts-table-heading span {font-size:11px;color:#c8c8c8;white-space:nowrap}
#gsp-dialog .gsp-shorts-table-scroll {
  overflow-x:auto;
  max-width:100%;
  -webkit-overflow-scrolling:touch;
  border:1px solid #404040;
  border-radius:12px;
}
#gsp-dialog .gs-sg-table {
  width:100%;
  min-width:340px;
  table-layout:fixed;
  border-collapse:collapse;
  border-spacing:0;
  margin:0;
  direction:rtl;
  color:#fff;
  background:#151515;
  text-align:center;
}
#gsp-dialog .gs-sg-table th,
#gsp-dialog .gs-sg-table td {
  display:table-cell;
  padding:12px 3px;
  font-size:12px;
  line-height:1.35;
  text-align:center;
  vertical-align:middle;
  white-space:normal;
  border:0;
  border-left:1px solid #343434;
  border-bottom:1px solid #343434;
  color:#fff;
  background:transparent;
}
#gsp-dialog .gs-sg-table thead th {font-size:12px;background:#2a2a2a;font-weight:800;}
#gsp-dialog .gs-sg-table td:first-child {font-weight:900;}
#gsp-dialog .gs-sg-table tr:nth-child(even) {background:#1e1e1e;}
#gsp-dialog .gs-sg-table tbody tr:last-child td {border-bottom:0;}
#gsp-dialog .gs-sg-table th:last-child,
#gsp-dialog .gs-sg-table td:last-child {border-left:0;}
#gsp-dialog .gs-sg-th-number {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:17px;
  height:17px;
  line-height:1;
  border-radius:50%;
  background:#eee;
  color:#111;
  font-size:10px;
  margin-left:3px;
}
#gsp-dialog .gs-sg-label-desktop {display:inline}
#gsp-dialog .gs-sg-label-mobile {display:none}
#gsp-dialog .gs-sg-note {
  color:#ccc;
  font-size:12px;
  line-height:1.65;
  padding:12px 0 0;
  margin:13px 0 0;
  border-top:1px solid #333;
}
#gsp-dialog .gs-sg-note strong {color:#fff}
@media (max-width:600px) {
  #gsp-dialog.gsp-shorts-dialog {padding:40px 12px 20px;}
  #gsp-dialog .gsp-shorts-demo {grid-template-columns:1fr;gap:11px;margin-bottom:19px;}
  #gsp-dialog .gsp-shorts-illustration {padding:2px 10px;}
  #gsp-dialog .gs-sg-figure {max-width:195px;}
  #gsp-dialog .gs-sg-legend {gap:10px 7px;padding:12px 10px;}
  #gsp-dialog .gs-sg-key strong {font-size:12px;}
  #gsp-dialog .gs-sg-key small {font-size:10px;}
  #gsp-dialog .gs-sg-number {width:22px;height:22px;font-size:11px;}
  #gsp-dialog .gsp-shorts-table-heading h3 {font-size:17px;}
  #gsp-dialog .gsp-shorts-table-heading span {font-size:10px;}
  #gsp-dialog .gs-sg-table {min-width:310px;}
  #gsp-dialog .gs-sg-table th,
  #gsp-dialog .gs-sg-table td {padding:10px 1px;font-size:10.5px;}
  #gsp-dialog .gs-sg-table thead th {font-size:10px;line-height:1.25;}
  #gsp-dialog .gs-sg-th-number {display:flex;margin:0 auto 4px;width:14px;height:14px;font-size:9px;}
  #gsp-dialog .gs-sg-label-desktop {display:none}
  #gsp-dialog .gs-sg-label-mobile {display:block}
  #gsp-dialog .gs-sg-note {font-size:11px;}
}
