/**
 * Geeks Peptide Calculator
 * Front-end styles are intentionally scoped to .gpc-calculator so the
 * shortcode can be embedded in Elementor or any WordPress theme safely.
 */

.gpc-calculator {
  --gpc-primary: #0b7e87;
  --gpc-primary-dark: #075d66;
  --gpc-primary-dark: color-mix(in srgb, var(--gpc-primary), #000 28%);
  --gpc-primary-soft: #e8f7f7;
  --gpc-primary-soft: color-mix(in srgb, var(--gpc-primary) 10%, #fff);
  --gpc-accent: #7c3aed;
  --gpc-accent-soft: #f2edff;
  --gpc-ink: #182235;
  --gpc-muted: #667085;
  --gpc-border: #d8e1e8;
  --gpc-surface: #ffffff;
  --gpc-surface-alt: #f7fafb;
  --gpc-danger: #b42318;
  --gpc-danger-soft: #fff2f0;
  --gpc-warning: #9a6700;
  --gpc-warning-soft: #fff8e6;
  --gpc-success: #067647;
  --gpc-shadow: 0 22px 60px rgba(25, 46, 63, 0.11);
  --gpc-radius: 22px;
  --gpc-radius-sm: 13px;
  box-sizing: border-box;
  width: 100%;
  color: var(--gpc-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.gpc-calculator *,
.gpc-calculator *::before,
.gpc-calculator *::after {
  box-sizing: inherit;
}

.gpc-calculator [hidden] {
  display: none !important;
}

.gpc-calculator button,
.gpc-calculator input,
.gpc-calculator select {
  font: inherit;
}

.gpc-calculator button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.2;
  text-transform: none;
}

.gpc-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 38px);
  border: 1px solid rgba(11, 126, 135, 0.15);
  border-radius: var(--gpc-radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.075), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(11, 126, 135, 0.08), transparent 32%),
    var(--gpc-surface);
  box-shadow: var(--gpc-shadow);
}

.gpc-shell::before {
  position: absolute;
  z-index: -1;
  top: -110px;
  right: -95px;
  width: 270px;
  height: 270px;
  border: 38px solid rgba(11, 126, 135, 0.035);
  border-radius: 50%;
  content: "";
}

.gpc-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.gpc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--gpc-primary-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.095em;
  line-height: 1.2;
  text-transform: uppercase;
}

.gpc-eyebrow::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gpc-primary);
  box-shadow: 0 0 0 5px var(--gpc-primary-soft);
  content: "";
}

.gpc-title {
  max-width: 760px;
  margin: 0;
  color: var(--gpc-ink);
  font-size: clamp(1.65rem, 2.7vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.gpc-intro {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--gpc-muted);
  font-size: clamp(0.94rem, 1.4vw, 1.04rem);
}

.gpc-form fieldset {
  min-inline-size: 0;
  margin: 0;
  padding-inline: 0;
  border: 0;
}

.gpc-form legend {
  display: block;
  width: 100%;
  margin: 0 0 4px;
  padding: 0;
  color: var(--gpc-ink);
  font-size: 0.96rem;
  font-weight: 780;
  line-height: 1.4;
}

.gpc-header-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #cbe8e9;
  border-radius: 999px;
  color: var(--gpc-primary-dark);
  background: rgba(232, 247, 247, 0.8);
  font-size: 0.77rem;
  font-weight: 750;
  white-space: nowrap;
}

.gpc-header-badge::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gpc-success);
  box-shadow: 0 0 0 3px rgba(6, 118, 71, 0.12);
  content: "";
}

.gpc-mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 470px);
  margin-bottom: 24px;
  padding: 5px;
  border: 1px solid var(--gpc-border);
  border-radius: 14px;
  background: #eef3f5;
}

.gpc-mode-button,
.gpc-calculator [data-gpc-mode] {
  min-height: 44px;
  padding: 9px 16px;
  border: 0;
  border-radius: 10px;
  color: #596579;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font-weight: 750;
  line-height: 1.2;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.gpc-mode-button:hover,
.gpc-calculator [data-gpc-mode]:hover {
  color: var(--gpc-ink);
}

.gpc-mode-button.is-active,
.gpc-calculator [data-gpc-mode].is-active,
.gpc-calculator [data-gpc-mode][aria-selected="true"] {
  color: var(--gpc-primary-dark);
  background: var(--gpc-surface);
  box-shadow: 0 4px 14px rgba(26, 48, 64, 0.1);
}

.gpc-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
  align-items: start;
  gap: clamp(18px, 2.5vw, 30px);
}

.gpc-panel {
  min-width: 0;
  border: 1px solid var(--gpc-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.gpc-panel--inputs {
  padding: clamp(18px, 2.7vw, 30px);
}

.gpc-panel--syringe {
  padding: clamp(18px, 2.7vw, 30px);
}

.gpc-panel--results {
  position: sticky;
  top: 24px;
  overflow: hidden;
}

.gpc-panel-heading {
  margin: 0 0 4px;
  color: var(--gpc-ink);
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.gpc-panel-copy {
  margin: 0 0 20px;
  color: var(--gpc-muted);
  font-size: 0.9rem;
}

.gpc-form fieldset.gpc-step {
  position: relative;
  padding: 0 0 24px 45px;
}

.gpc-step:not(:last-child)::after {
  position: absolute;
  top: 34px;
  bottom: 3px;
  left: 16px;
  width: 1px;
  background: linear-gradient(var(--gpc-border), rgba(216, 225, 232, 0.25));
  content: "";
}

.gpc-form fieldset.gpc-step:last-child {
  padding-bottom: 0;
}

.gpc-step-number {
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border: 1px solid #b9dfe1;
  border-radius: 50%;
  color: var(--gpc-primary-dark);
  background: var(--gpc-primary-soft);
  font-size: 0.81rem;
  font-weight: 850;
}

.gpc-step-title,
.gpc-field-label {
  display: block;
  margin: 0 0 4px;
  color: var(--gpc-ink);
  font-size: 0.96rem;
  font-weight: 760;
  line-height: 1.35;
}

.gpc-step > legend {
  min-height: 33px;
}

.gpc-step > .gpc-help:first-of-type {
  margin-top: 0;
}

.gpc-step-hint,
.gpc-field-hint {
  display: block;
  margin: 0 0 11px;
  color: var(--gpc-muted);
  font-size: 0.79rem;
  line-height: 1.4;
}

.gpc-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gpc-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.gpc-choice,
.gpc-calculator [data-gpc-set],
.gpc-calculator [data-gpc-custom] {
  position: relative;
  display: inline-flex;
  min-width: 70px;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--gpc-border);
  border-radius: 11px;
  color: #344054;
  background: var(--gpc-surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.2;
  text-align: center;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.gpc-choice:hover,
.gpc-calculator [data-gpc-set]:hover,
.gpc-calculator [data-gpc-custom]:hover {
  border-color: #90c9cd;
  color: var(--gpc-primary-dark);
  background: #fbfefe;
  transform: translateY(-1px);
}

.gpc-choice.is-active,
.gpc-calculator [data-gpc-set].is-active,
.gpc-calculator [data-gpc-set][aria-pressed="true"],
.gpc-calculator [data-gpc-custom].is-active,
.gpc-calculator [data-gpc-custom][aria-pressed="true"] {
  border-color: var(--gpc-primary);
  color: var(--gpc-primary-dark);
  background: var(--gpc-primary-soft);
  box-shadow: 0 0 0 3px rgba(11, 126, 135, 0.1);
}

.gpc-choice.is-active::after,
.gpc-calculator [data-gpc-set].is-active::after,
.gpc-calculator [data-gpc-set][aria-pressed="true"]::after {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--gpc-primary);
  content: "\2713";
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.gpc-syringe-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gpc-choice--syringe,
.gpc-syringe-option {
  min-height: 85px;
  flex-direction: column;
  padding: 12px 10px 10px;
}

.gpc-mini-syringe {
  position: relative;
  display: block;
  width: min(94%, 112px);
  height: 20px;
}

.gpc-mini-syringe::before {
  position: absolute;
  top: 5px;
  right: 13px;
  bottom: 3px;
  left: 19px;
  border: 1px solid #8495a8;
  border-radius: 2px 5px 5px 2px;
  background: repeating-linear-gradient(90deg, transparent 0 10px, #8a98a8 10px 11px);
  content: "";
}

.gpc-mini-syringe::after {
  position: absolute;
  top: 8px;
  left: 0;
  width: 20px;
  height: 1px;
  background: #75869a;
  box-shadow: 82px -4px 0 2px #d4dde4, 86px -7px 0 0 #75869a, 86px 2px 0 0 #75869a;
  content: "";
}

.gpc-choice-main {
  display: block;
  font-weight: 800;
}

.gpc-choice-sub {
  display: block;
  color: var(--gpc-muted);
  font-size: 0.7rem;
  font-weight: 620;
}

.gpc-custom-wrap,
.gpc-input-row {
  display: flex;
  align-items: stretch;
  gap: 9px;
  margin-top: 10px;
}

.gpc-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gpc-field {
  min-width: 0;
}

.gpc-control-wrap {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: stretch;
}

.gpc-input,
.gpc-select,
.gpc-calculator [data-gpc-field] {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid var(--gpc-border);
  border-radius: 11px;
  outline: 0;
  color: var(--gpc-ink);
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
  font-size: 0.94rem;
  line-height: 1.2;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.gpc-select,
.gpc-calculator select[data-gpc-field] {
  padding-right: 34px;
  cursor: pointer;
}

.gpc-input:hover,
.gpc-select:hover,
.gpc-calculator [data-gpc-field]:hover {
  border-color: #aebdc9;
}

.gpc-input:focus,
.gpc-select:focus,
.gpc-calculator [data-gpc-field]:focus {
  border-color: var(--gpc-primary);
  box-shadow: 0 0 0 4px rgba(11, 126, 135, 0.11);
}

.gpc-input[aria-invalid="true"],
.gpc-select[aria-invalid="true"],
.gpc-calculator [data-gpc-field][aria-invalid="true"] {
  border-color: var(--gpc-danger);
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.09);
}

.gpc-control-wrap .gpc-input,
.gpc-control-wrap .gpc-calculator [data-gpc-field] {
  padding-right: 60px;
}

.gpc-input-suffix {
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--gpc-muted);
  font-size: 0.76rem;
  font-weight: 730;
  pointer-events: none;
  transform: translateY(-50%);
}

.gpc-field-error {
  display: block;
  min-height: 0;
  margin-top: 5px;
  color: var(--gpc-danger);
  font-size: 0.76rem;
  font-weight: 620;
}

.gpc-custom-field {
  display: block;
  margin-top: 11px;
  padding: 11px;
  border: 1px solid #cfe0e6;
  border-radius: 12px;
  background: var(--gpc-surface-alt);
}

.gpc-dose-custom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, 0.38fr);
  align-items: end;
  gap: 10px;
}

.gpc-custom-field > span,
.gpc-dose-custom-grid label > span,
.gpc-weight-grid label > span {
  display: block;
  margin: 0 0 6px;
  color: #445064;
  font-size: 0.76rem;
  font-weight: 740;
  line-height: 1.35;
}

.gpc-dose-unit-help {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.gpc-help {
  margin: 4px 0 12px;
  color: var(--gpc-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.gpc-weight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(88px, 0.42fr) minmax(0, 1.4fr);
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}

.gpc-weight-grid label {
  min-width: 0;
}

.gpc-help-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid #d7e9f7;
  border-radius: 11px;
  color: #31546a;
  background: #f3f9fd;
  font-size: 0.78rem;
  line-height: 1.45;
}

.gpc-help-box::before {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #83b9d8;
  border-radius: 50%;
  content: "i";
  font-family: Georgia, serif;
  font-size: 0.72rem;
  font-weight: 800;
}

.gpc-errors {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #f2c7c2;
  border-radius: 11px;
  color: var(--gpc-danger);
  background: var(--gpc-danger-soft);
  font-size: 0.82rem;
  font-weight: 650;
}

.gpc-errors:empty {
  display: none;
}

.gpc-errors ul {
  margin: 5px 0 0;
  padding-left: 19px;
}

.gpc-result-top {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2.5vw, 30px);
  color: #fff;
  background: linear-gradient(135deg, var(--gpc-primary-dark), var(--gpc-primary) 62%, #1499a2);
}

.gpc-result-top::after {
  position: absolute;
  right: -40px;
  bottom: -74px;
  width: 190px;
  height: 190px;
  border: 28px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
}

.gpc-result-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.gpc-result-label::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #88f0e6;
  box-shadow: 0 0 0 4px rgba(136, 240, 230, 0.15);
  content: "";
}

.gpc-result-sentence {
  position: relative;
  z-index: 1;
  min-height: 2.7em;
  margin: 0;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 780;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.gpc-result-sentence strong {
  color: #bbfff9;
  font-size: 1.12em;
  font-weight: 900;
}

.gpc-result-body {
  padding: clamp(18px, 2.5vw, 28px);
}

.gpc-result-placeholder {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  padding: 26px;
  border: 1px dashed #bfd0d9;
  border-radius: 14px;
  color: var(--gpc-muted);
  background: var(--gpc-surface-alt);
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
}

.gpc-visual {
  min-height: 210px;
  margin-bottom: 18px;
  padding: 6px 3px 0;
}

.gpc-visual svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.gpc-syringe-svg .gpc-svg-shell {
  fill: #fbfdfe;
  stroke: #9bacb9;
  stroke-width: 2;
}

.gpc-syringe-svg .gpc-svg-inner {
  fill: #f5fafb;
  stroke: #d2dde3;
  stroke-width: 1;
}

.gpc-syringe-svg .gpc-svg-fluid {
  fill: url(#gpc-fluid-gradient);
  opacity: 0.92;
  transition: width 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gpc-syringe-svg .gpc-svg-tick {
  stroke: #5c6c7b;
  stroke-width: 1.35;
}

.gpc-syringe-svg .gpc-svg-tick--major {
  stroke: #263747;
  stroke-width: 2;
}

.gpc-syringe-svg .gpc-svg-number {
  fill: #344054;
  font-family: inherit;
  font-size: 16px;
  font-weight: 720;
}

.gpc-syringe-svg .gpc-svg-marker {
  stroke: var(--gpc-accent);
  stroke-width: 3;
}

.gpc-syringe-svg .gpc-svg-marker-dot {
  fill: var(--gpc-accent);
  stroke: #fff;
  stroke-width: 3;
}

.gpc-syringe-svg .gpc-svg-callout {
  fill: var(--gpc-accent);
  filter: drop-shadow(0 4px 5px rgba(73, 34, 138, 0.2));
}

.gpc-syringe-svg .gpc-svg-callout-text {
  fill: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 830;
}

.gpc-syringe-svg .gpc-svg-hardware {
  fill: #dfe8ed;
  stroke: #8799a7;
  stroke-width: 1.5;
}

.gpc-syringe-svg .gpc-svg-needle {
  stroke: #7f919e;
  stroke-width: 2;
}

.gpc-syringe-svg.is-over-capacity .gpc-svg-fluid,
.gpc-syringe-svg.is-over-capacity .gpc-svg-marker-dot,
.gpc-syringe-svg.is-over-capacity .gpc-svg-callout {
  fill: var(--gpc-danger);
}

.gpc-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.gpc-metric {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e1e8ed;
  border-radius: 11px;
  background: var(--gpc-surface-alt);
}

.gpc-metric-label {
  display: block;
  margin-bottom: 3px;
  color: var(--gpc-muted);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
}

.gpc-metric-value {
  display: block;
  overflow-wrap: anywhere;
  color: var(--gpc-ink);
  font-size: 1rem;
  font-weight: 820;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.gpc-capacity-warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 0 0;
  padding: 11px 12px;
  border: 1px solid #efd99b;
  border-radius: 11px;
  color: var(--gpc-warning);
  background: var(--gpc-warning-soft);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.4;
}

.gpc-capacity-warning::before {
  content: "\26A0";
  font-size: 1rem;
  line-height: 1.1;
}

.gpc-result-note,
.gpc-disclaimer {
  color: var(--gpc-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.gpc-result-note {
  margin: 15px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e5ebef;
}

.gpc-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0 0;
  padding: 13px 15px;
  border: 1px solid #e3e9ee;
  border-radius: 12px;
  background: rgba(247, 250, 251, 0.88);
}

.gpc-disclaimer::before {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 5px;
  color: var(--gpc-primary-dark);
  background: var(--gpc-primary-soft);
  content: "!";
  font-size: 0.72rem;
  font-weight: 900;
}

.gpc-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
}

.gpc-reset,
.gpc-calculator [data-gpc-reset] {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 0;
  border-radius: 9px;
  color: var(--gpc-muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.79rem;
  font-weight: 710;
  text-decoration: underline;
  text-decoration-color: #bac6cf;
  text-underline-offset: 3px;
}

.gpc-reset:hover,
.gpc-calculator [data-gpc-reset]:hover {
  color: var(--gpc-primary-dark);
  background: var(--gpc-primary-soft);
}

.gpc-calculator button:focus-visible,
.gpc-calculator input:focus-visible,
.gpc-calculator select:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.28);
  outline-offset: 2px;
}

.gpc-sr-only,
.gpc-calculator [data-gpc-status] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.gpc-calculator.is-calculating .gpc-result-body {
  opacity: 0.72;
}

.gpc-calculator.is-valid .gpc-panel--results {
  border-color: rgba(11, 126, 135, 0.38);
}

/* Renderer-specific syringe capacity cards. */
.gpc-syringe-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.gpc-syringe-choice,
.gpc-calculator .gpc-syringe-choice[data-gpc-set] {
  display: grid;
  grid-template-columns: 66px minmax(110px, 1fr);
  grid-template-rows: auto auto;
  min-height: 90px;
  align-items: center;
  justify-content: stretch;
  gap: 4px 13px;
  padding: 13px 14px;
  text-align: left;
}

.gpc-syringe-label {
  grid-column: 1;
  grid-row: 1 / 3;
  color: inherit;
  font-size: 1rem;
  font-weight: 850;
  white-space: nowrap;
}

.gpc-syringe-art {
  position: relative;
  display: block;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 26px;
  min-width: 110px;
}

.gpc-syringe-needle {
  position: absolute;
  top: 12px;
  left: 0;
  width: 15%;
  height: 1px;
  background: #66788a;
}

.gpc-syringe-needle::after {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 7px;
  height: 5px;
  border: 1px solid #758797;
  border-radius: 1px;
  background: #dce5ea;
  content: "";
}

.gpc-syringe-barrel {
  position: absolute;
  top: 4px;
  right: 18%;
  bottom: 4px;
  left: 15%;
  overflow: hidden;
  border: 1px solid #8798a6;
  border-radius: 3px 6px 6px 3px;
  background: linear-gradient(180deg, #fff, #edf4f6);
}

.gpc-syringe-barrel::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(28, 174, 183, 0.7), rgba(116, 224, 218, 0.46));
  content: "";
}

.gpc-syringe-ticks {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(46, 61, 74, 0.72) 8px 9px, transparent 9px 12px);
  mask-image: linear-gradient(180deg, #000 0 42%, transparent 42% 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0 42%, transparent 42% 100%);
}

.gpc-syringe-plunger {
  position: absolute;
  top: 10px;
  right: 1px;
  width: 18%;
  height: 7px;
  border: 1px solid #8798a6;
  border-radius: 1px;
  background: #dce5ea;
}

.gpc-syringe-plunger::after {
  position: absolute;
  top: -6px;
  right: 0;
  width: 5px;
  height: 17px;
  border: 1px solid #8798a6;
  border-radius: 2px;
  background: #dce5ea;
  content: "";
}

.gpc-syringe-units {
  grid-column: 2;
  grid-row: 2;
  color: var(--gpc-muted);
  font-size: 0.7rem;
  font-weight: 640;
}

.gpc-syringe-choice.is-active .gpc-syringe-barrel::before,
.gpc-syringe-choice[aria-pressed="true"] .gpc-syringe-barrel::before {
  width: 0;
}

/* Original, unbranded vial cues echo the reference layout without copying assets. */
.gpc-step--vial > legend,
.gpc-step--water > legend {
  padding-right: 38px;
}

.gpc-step-product-icon {
  position: absolute;
  top: -5px;
  right: 1px;
  width: 22px;
  height: 29px;
  border: 1px solid #8798a6;
  border-radius: 4px 4px 6px 6px;
  box-shadow: inset 0 -7px 10px rgba(39, 59, 72, 0.08);
}

.gpc-step-product-icon::before {
  position: absolute;
  top: -5px;
  left: 3px;
  width: 14px;
  height: 5px;
  border: 1px solid #728491;
  border-radius: 2px 2px 0 0;
  background: #c7d1d7;
  content: "";
}

.gpc-step-product-icon::after {
  position: absolute;
  right: 2px;
  bottom: 6px;
  left: 2px;
  height: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.82);
  content: "";
}

.gpc-step-product-icon--vial {
  background: linear-gradient(180deg, #60413f, #8d5a50);
}

.gpc-step-product-icon--water {
  background: linear-gradient(180deg, rgba(220, 247, 250, 0.75), rgba(95, 192, 202, 0.38));
}

/* Full-width result section emitted by the shortcode renderer. */
.gpc-results {
  position: relative;
  overflow: hidden;
  margin-top: clamp(20px, 3vw, 32px);
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--gpc-border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(247, 250, 251, 0.55), rgba(255, 255, 255, 0.96)),
    var(--gpc-surface);
}

.gpc-results::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gpc-primary), var(--gpc-accent), color-mix(in srgb, var(--gpc-primary) 55%, #fff));
  content: "";
}

.gpc-result-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.gpc-result-heading .gpc-eyebrow {
  margin-bottom: 5px;
}

.gpc-result-heading h3 {
  margin: 0;
  color: var(--gpc-ink);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 820;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.gpc-results .gpc-result-sentence {
  min-height: 0;
  margin: 0 0 20px;
  padding: 15px 17px;
  border: 1px solid color-mix(in srgb, var(--gpc-primary) 25%, #fff);
  border-left: 4px solid var(--gpc-primary);
  border-radius: 12px;
  color: var(--gpc-ink);
  background: var(--gpc-primary-soft);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.48;
}

.gpc-results .gpc-result-sentence strong {
  color: var(--gpc-primary-dark);
}

.gpc-results .gpc-visual {
  min-height: 0;
  margin: 0 0 18px;
  padding: 4px 0;
  border: 1px solid #e1e9ed;
  border-radius: 14px;
  background: #fff;
}

.gpc-results .gpc-visual svg {
  max-height: 250px;
  padding: 8px 10px 0;
}

/* Lightweight no-JS/first-paint syringe; replaced by the live SVG. */
.gpc-visual-syringe {
  position: relative;
  width: min(76%, 650px);
  height: 66px;
  margin: 76px auto 62px;
  border: 2px solid #93a5b2;
  border-radius: 7px;
  background: linear-gradient(180deg, #fff, #f2f7f9);
}

.gpc-visual-syringe::before {
  position: absolute;
  top: 31px;
  right: 100%;
  width: 14%;
  height: 2px;
  background: #7e919f;
  content: "";
}

.gpc-visual-fill {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 9px;
  width: 3.333%;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, var(--gpc-primary), color-mix(in srgb, var(--gpc-primary) 48%, #fff));
}

.gpc-visual-scale {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 19px, #485b6a 19px 21px, transparent 21px 24px);
  mask-image: linear-gradient(180deg, #000 0 40%, transparent 40% 100%);
}

.gpc-visual-plunger {
  position: absolute;
  top: 23px;
  left: 100%;
  width: 13%;
  height: 16px;
  border: 2px solid #8496a4;
  border-left: 0;
  background: #e0e8ed;
}

.gpc-visual-plunger::after {
  position: absolute;
  top: -14px;
  right: -8px;
  width: 8px;
  height: 40px;
  border: 2px solid #8496a4;
  border-radius: 2px;
  background: #e0e8ed;
  content: "";
}

.gpc-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gpc-result-card {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #e0e7ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(31, 48, 60, 0.035);
}

.gpc-result-card .gpc-result-label {
  position: static;
  display: block;
  margin: 0 0 4px;
  color: var(--gpc-muted);
  font-size: 0.69rem;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}

.gpc-result-card .gpc-result-label::before {
  display: none;
}

.gpc-result-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--gpc-ink);
  font-size: 1.04rem;
  font-weight: 840;
  letter-spacing: -0.018em;
  line-height: 1.28;
}

.gpc-result-card--primary {
  border-color: color-mix(in srgb, var(--gpc-primary) 38%, #fff);
  background: var(--gpc-primary-dark);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--gpc-primary) 19%, transparent);
}

.gpc-result-card--primary .gpc-result-label {
  color: rgba(255, 255, 255, 0.76);
}

.gpc-result-card--primary strong {
  color: #fff;
}

.gpc-results .gpc-capacity-warning {
  grid-column: 1 / -1;
  margin: -5px 0 18px;
}

.gpc-screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

@media (max-width: 880px) {
  .gpc-layout {
    grid-template-columns: 1fr;
  }

  .gpc-panel--results {
    position: static;
  }

  .gpc-visual {
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
  }

  .gpc-syringe-choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gpc-syringe-choice,
  .gpc-calculator .gpc-syringe-choice[data-gpc-set] {
    grid-template-columns: 1fr;
    grid-template-rows: auto 28px auto;
    min-height: 126px;
    text-align: center;
  }

  .gpc-syringe-label,
  .gpc-syringe-art,
  .gpc-syringe-units {
    grid-column: 1;
  }

  .gpc-syringe-label {
    grid-row: 1;
  }

  .gpc-syringe-art {
    grid-row: 2;
  }

  .gpc-syringe-units {
    grid-row: 3;
  }
}

@media (max-width: 600px) {
  .gpc-shell {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .gpc-header {
    display: block;
  }

  .gpc-header-badge {
    margin-top: 13px;
  }

  .gpc-mode-switch {
    width: 100%;
  }

  .gpc-mode-button,
  .gpc-calculator [data-gpc-mode] {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 0.8rem;
  }

  .gpc-panel--inputs,
  .gpc-panel--syringe,
  .gpc-results,
  .gpc-result-body,
  .gpc-result-top {
    padding: 17px 14px;
  }

  .gpc-form fieldset.gpc-step {
    padding-left: 39px;
  }

  .gpc-step-number {
    width: 29px;
    height: 29px;
  }

  .gpc-step:not(:last-child)::after {
    left: 14px;
  }

  .gpc-syringe-options,
  .gpc-choice-grid {
    grid-template-columns: 1fr;
  }

  .gpc-syringe-choices {
    grid-template-columns: 1fr;
  }

  .gpc-syringe-choice,
  .gpc-calculator .gpc-syringe-choice[data-gpc-set] {
    grid-template-columns: 66px minmax(110px, 1fr);
    grid-template-rows: auto auto;
    min-height: 84px;
    text-align: left;
  }

  .gpc-syringe-label {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .gpc-syringe-art,
  .gpc-syringe-units {
    grid-column: 2;
  }

  .gpc-syringe-art {
    grid-row: 1;
  }

  .gpc-syringe-units {
    grid-row: 2;
  }

  .gpc-choice--syringe,
  .gpc-syringe-option {
    min-height: 58px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 9px 12px;
    text-align: left;
  }

  .gpc-mini-syringe {
    width: 95px;
    flex: 0 0 auto;
  }

  .gpc-input-grid {
    grid-template-columns: 1fr;
  }

  .gpc-weight-grid {
    grid-template-columns: minmax(0, 1fr) minmax(82px, 0.45fr);
  }

  .gpc-weight-grid label:nth-child(3) {
    grid-column: 1 / -1;
  }

  .gpc-custom-wrap,
  .gpc-input-row {
    flex-wrap: wrap;
  }

  .gpc-choice-group .gpc-choice,
  .gpc-choice-group [data-gpc-set],
  .gpc-choice-group [data-gpc-custom] {
    flex: 1 1 calc(33.333% - 8px);
  }

  .gpc-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .gpc-visual {
    min-height: 150px;
    margin-bottom: 8px;
  }

  .gpc-results .gpc-visual {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .gpc-results .gpc-visual svg {
    width: 650px;
    min-width: 650px;
  }

  .gpc-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gpc-result-heading {
    align-items: center;
  }
}

@media (max-width: 390px) {
	.gpc-dose-custom-grid {
		grid-template-columns: 1fr;
	}

  .gpc-metrics {
    grid-template-columns: 1fr;
  }

  .gpc-choice-group .gpc-choice,
  .gpc-choice-group [data-gpc-set],
  .gpc-choice-group [data-gpc-custom] {
    flex-basis: calc(50% - 8px);
  }

  .gpc-syringe-choices {
    grid-template-columns: 1fr;
  }

  .gpc-syringe-choice,
  .gpc-calculator .gpc-syringe-choice[data-gpc-set] {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
    min-height: 82px;
    text-align: left;
  }

  .gpc-syringe-label {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .gpc-syringe-art,
  .gpc-syringe-units {
    grid-column: 2;
  }

  .gpc-syringe-art {
    grid-row: 1;
  }

  .gpc-syringe-units {
    grid-row: 2;
  }

  .gpc-result-grid {
    grid-template-columns: 1fr;
  }

  .gpc-result-heading {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gpc-calculator *,
  .gpc-calculator *::before,
  .gpc-calculator *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .gpc-calculator [data-gpc-set],
  .gpc-calculator [data-gpc-custom],
  .gpc-calculator [data-gpc-mode] {
    border: 1px solid ButtonText;
  }

  .gpc-calculator [aria-pressed="true"] {
    outline: 3px solid Highlight;
    outline-offset: 2px;
  }

  .gpc-syringe-svg .gpc-svg-marker,
  .gpc-syringe-svg .gpc-svg-marker-dot {
    stroke: Highlight;
  }
}

@media print {
  .gpc-calculator .gpc-shell {
    padding: 14px;
    border: 1px solid #aab5bd;
    box-shadow: none;
  }

  .gpc-calculator .gpc-layout,
  .gpc-calculator .gpc-mode-switch,
  .gpc-calculator .gpc-reset,
  .gpc-calculator .gpc-disclaimer {
    display: none !important;
  }

  .gpc-calculator .gpc-results {
    margin-top: 0;
    padding: 16px;
    border: 1px solid #aab5bd;
    background: #fff !important;
  }

  .gpc-calculator .gpc-result-sentence,
  .gpc-calculator .gpc-result-card--primary {
    color: #111;
    background: #e9f5f5 !important;
    print-color-adjust: exact;
  }

  .gpc-calculator .gpc-result-card--primary strong,
  .gpc-calculator .gpc-result-card--primary .gpc-result-label {
    color: #111;
  }
}
