/* Product size-guide drawer. Scoped to its own class so the theme shell is untouched. */

.htw-sg-overlay {
  position: fixed;
  inset: 0;
  z-index: 100040;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity .28s ease;
}

.htw-sg-overlay.is-open { opacity: 1; }
.htw-sg-overlay[hidden] { display: none; }

.htw-sg-drawer {
  position: fixed;
  z-index: 100041;
  top: 0;
  right: 0;
  width: min(560px, 100vw);
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: #111;
  box-shadow: -12px 0 32px rgba(0, 0, 0, .18);
  padding: 24px 24px 48px;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.22, .61, .36, 1);
  font-family: "IBM Plex Sans", Lato, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.htw-sg-drawer.is-open { transform: translateX(0); }
.htw-sg-drawer[hidden] { display: none; }

.htw-sg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e4e4e4;
}

.htw-sg-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.htw-sg-close {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid #e4e4e4;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.htw-sg-close:hover,
.htw-sg-close:focus-visible { color: #c8102e; }

.htw-sg-intro {
  margin: 14px 0 18px;
  color: #555;
  font-size: 13px;
}

.htw-sg-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.htw-sg-group {
  padding: 7px 13px;
  border: 1px solid #d8d8d8;
  border-radius: 2px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
}

.htw-sg-group.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.htw-sg-group:hover:not(.is-active) { border-color: #c8102e; color: #c8102e; }

.htw-sg-group-panel[hidden],
.htw-sg-chart[hidden] { display: none !important; }

.htw-sg-select-label {
  display: block;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #555;
}

.htw-sg-select {
  width: 100%;
  max-width: 100%;
  height: 42px;
  padding: 0 12px;
  margin-bottom: 18px;
  border: 1px solid #d8d8d8;
  border-radius: 2px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 13px;
}

.htw-sg-tablewrap {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 18px;
  border: 1px solid #e4e4e4;
}

.htw-sg-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 100%;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.htw-sg-table th,
.htw-sg-table td {
  padding: 8px 9px;
  border: 1px solid #e4e4e4;
  text-align: center;
  color: #111;
  vertical-align: middle;
}

.htw-sg-table tr:first-child th,
.htw-sg-table td:first-child,
.htw-sg-table th[scope="row"] {
  background: #f6f6f6;
  font-weight: 600;
  text-align: left;
  position: sticky;
  left: 0;
}

.htw-sg-subtitle {
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.htw-sg-tips ul {
  margin: 0 0 18px;
  padding-left: 18px;
  list-style: disc;
  font-size: 12px;
  color: #444;
}

.htw-sg-tips li { margin-bottom: 6px; }

.htw-sg-footnote {
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e4e4e4;
  color: #666;
  font-size: 12px;
}

.htw-sizeguide-tab .button {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #111;
  border-radius: 2px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}

.htw-sizeguide-tab .button:hover { background: #c8102e; border-color: #c8102e; }

body.htw-sg-locked { overflow: hidden; }

@media (max-width: 549px) {
  .htw-sg-drawer { padding: 18px 14px 40px; }
  .htw-sg-head h2 { font-size: 18px; }
}
