.tso .tqh-widget,
.tso .tqh-widget *,
.tso .tqh-size-step,
.tso .tqh-size-step * {
  box-sizing: border-box;
}

.tso .tqh-widget {
  --tqh-teal: var(--teal, #005655);
  --tqh-teal-deep: var(--teal-900, #012a29);
  --tqh-green: var(--green, #1ed760);
  --tqh-ink: var(--ink, #222);
  --tqh-muted: var(--muted, #5b5b56);
  --tqh-line: var(--line, #e4e4de);
  --tqh-soft: var(--soft, #f4f4ef);
  width: 100%;
  max-width: 430px;
  min-width: 0;
  padding: 22px;
  color: var(--tqh-ink);
  background: #fff;
  border: 1px solid var(--tqh-line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(1, 42, 41, .10);
  font-family: "Poppins", Arial, sans-serif;
}

.tso .tqh-heading h2,
.tso .tqh-path-title,
.tso .tqh-size-title {
  margin: 0;
  color: var(--tqh-teal-deep);
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 600;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.tso .tqh-heading h2 {
  font-size: 25px;
}

.tso .tqh-subtitle {
  margin: 8px 0 0;
  color: var(--tqh-muted);
  font-size: 13px;
  line-height: 1.5;
}

.tso .tqh-menu {
  display: grid;
  gap: 9px;
  margin-top: 17px;
}

.tso .tqh-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 54px;
  padding: 12px 15px;
  color: var(--tqh-teal-deep);
  background: #fff;
  border: 1px solid #d5dfda;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.tso .tqh-choice-label {
  font-family: "Oswald", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.tso .tqh-choice-arrow {
  flex: 0 0 auto;
  color: var(--tqh-teal);
  font-family: Arial, sans-serif;
  font-size: 27px;
  font-weight: 400;
  line-height: .7;
}

.tso .tqh-choice:hover {
  background: #f7faf8;
  border-color: var(--tqh-teal);
  transform: translateY(-1px);
}

.tso .tqh-choice:focus-visible,
.tso .tqh-back-menu:focus-visible,
.tso .tqh-button:focus-visible,
.tso .tqh-size-help summary:focus-visible,
.tso .tqh-size-field select:focus-visible {
  outline: 3px solid rgba(30, 215, 96, .65);
  outline-offset: 2px;
}

.tso .tqh-flow[hidden],
.tso .tqh-size-step[hidden],
.tso .tqh-size-group-wrap[hidden] {
  display: none !important;
}

.tso .tqh-flow {
  min-width: 0;
  margin-top: 16px;
}

.tso .tqh-back-menu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 3px 0;
  color: var(--tqh-teal);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: 600 11px/1.4 "Oswald", Arial, sans-serif;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.tso .tqh-back-menu::before {
  content: "‹";
  font: 400 20px/1 Arial, sans-serif;
}

.tso .tqh-path-title {
  margin-bottom: 8px;
  font-size: 17px;
}

.tso .tqh-form-slot {
  min-width: 0;
}

.tso .tqh-size-step {
  min-width: 0;
  margin-top: 12px;
  padding-top: 15px;
  border-top: 1px solid var(--tqh-line, #e4e4de);
  color: var(--tqh-ink, #222);
  font-family: "Poppins", Arial, sans-serif;
}

.tso .tqh-size-title {
  margin-bottom: 6px;
  font-size: 18px;
}

.tso .tqh-size-instructions {
  margin: 0 0 13px;
  color: var(--tqh-muted, #5b5b56);
  font-size: 12px;
  line-height: 1.45;
}

.tso .tqh-size-group {
  min-width: 0;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}

.tso .tqh-size-group legend {
  margin: 0 0 7px;
  padding: 0;
  color: var(--tqh-teal-deep, #012a29);
  font: 600 12px/1.25 "Oswald", Arial, sans-serif;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.tso .tqh-size-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tso .tqh-size-field {
  min-width: 0;
}

.tso .tqh-size-field label {
  display: block;
  min-height: 16px;
  margin: 0 0 4px;
  color: var(--tqh-muted, #5b5b56);
  font: 600 10px/1.2 "Oswald", Arial, sans-serif;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.tso .tqh-size-field select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 8px;
  color: var(--tqh-ink, #222);
  background: #fff;
  border: 1px solid #cbd6d1;
  border-radius: 4px;
  font: 500 13px/1.2 "Poppins", Arial, sans-serif;
}

.tso .tqh-size-summary {
  margin: 8px 0 12px;
  padding: 7px 9px;
  color: var(--tqh-teal-deep, #012a29);
  background: #f1f8f3;
  border-left: 3px solid var(--tqh-green, #1ed760);
  font-size: 11.5px;
  line-height: 1.4;
}

.tso .tqh-rear-toggle {
  margin: 10px 0 12px;
  padding: 10px 11px;
  color: var(--tqh-ink, #222);
  background: var(--tqh-soft, #f4f4ef);
  border: 1px solid var(--tqh-line, #e4e4de);
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.45;
}

.tso .tqh-rear-toggle label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font: 500 12px/1.45 "Poppins", Arial, sans-serif;
}

.tso .tqh-rear-toggle input[type="checkbox"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--tqh-teal, #005655);
}

.tso .tqh-size-group-wrap {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--tqh-line, #e4e4de);
}

.tso .tqh-size-help {
  margin: 13px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--tqh-line, #e4e4de);
}

.tso .tqh-size-help summary {
  width: fit-content;
  color: var(--tqh-teal, #005655);
  cursor: pointer;
  font: 600 11px/1.4 "Oswald", Arial, sans-serif;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.tso .tqh-size-help-content {
  margin-top: 9px;
  padding: 10px;
  background: #f7faf8;
  border: 1px solid #e0e9e3;
  border-radius: 5px;
}

.tso .tqh-size-help-content p {
  margin: 0 0 7px;
  color: var(--tqh-muted, #5b5b56);
  font-size: 11px;
  line-height: 1.45;
}

.tso .tqh-size-diagram {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.tso .tqh-size-error {
  margin: 10px 0 0;
  padding: 8px 10px;
  color: #7b1e1e;
  background: #fff4f1;
  border-left: 3px solid #c84b3f;
  font-size: 12px;
  line-height: 1.4;
}

.tso .tqh-size-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}

.tso .tqh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  color: #fff;
  background: var(--tqh-teal, #005655);
  border: 1px solid var(--tqh-teal, #005655);
  border-radius: 4px;
  cursor: pointer;
  font: 600 11px/1.25 "Oswald", Arial, sans-serif;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}

.tso .tqh-button:hover {
  background: var(--tqh-teal-deep, #012a29);
  border-color: var(--tqh-teal-deep, #012a29);
}

.tso .tqh-button--quiet {
  color: var(--tqh-teal, #005655);
  background: #fff;
  border-color: #cbd6d1;
}

.tso .tqh-button--quiet:hover {
  color: var(--tqh-teal-deep, #012a29);
  background: var(--tqh-soft, #f4f4ef);
  border-color: var(--tqh-teal, #005655);
}

@media (max-width: 390px) {
  .tso .tqh-widget {
    padding: 17px;
  }

  .tso .tqh-heading h2 {
    font-size: 23px;
  }

  .tso .tqh-size-controls {
    gap: 6px;
  }

  .tso .tqh-size-field label {
    font-size: 9.5px;
    letter-spacing: .025em;
  }

  .tso .tqh-size-field select {
    padding-right: 5px;
    padding-left: 6px;
    font-size: 12px;
  }

  .tso .tqh-button {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 10.5px;
  }
}

@media (max-width: 340px) {
  .tso .tqh-widget {
    padding: 15px;
  }

  .tso .tqh-size-controls {
    gap: 5px;
  }

  .tso .tqh-size-field label {
    font-size: 9px;
    letter-spacing: 0;
  }

  .tso .tqh-size-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tso .tqh-choice {
    transition: none;
  }
}
