body:has(#iontmax-sweat-test-app) article.pageArticleDetail > header[itemprop="headline"],
body:has(#iontmax-sweat-test-app) article.pageArticleDetail > header[itemprop="headline"] h1 {
  display: none !important;
}

#iontmax-sweat-test-app,
#iontmax-sweat-test-app * {
  box-sizing: border-box;
}

#iontmax-sweat-test-app {
  width: 100%;
  max-width: 100%;
  min-height: 80vh;
}

.iontmax-st {
  width: 100%;
  max-width: 100%;
  min-height: 80vh;
  margin: 0;
  padding: 24px 0 44px 0;
  font-family: inherit;
  color: #111;
  display: flex;
  justify-content: center;
}

.iontmax-st__shell {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
}

.iontmax-st__intro,
.iontmax-st__form,
.iontmax-st__loading,
.iontmax-st__error,
.iontmax-st__success {
  width: 100%;
  border: 1px solid #e7e7e7;
  border-radius: 22px;
  background: #fff;
}

.iontmax-st__intro {
  margin: 0 0 20px 0;
  padding: 28px;
}

.iontmax-st__eyebrow {
  margin: 0 0 10px 0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d8007f;
}

.iontmax-st__intro h1 {
  margin: 0 0 12px 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  font-weight: 950;
  color: #000;
}

.iontmax-st__intro p {
  max-width: 780px;
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #333;
}

.iontmax-st__loading,
.iontmax-st__error,
.iontmax-st__success,
.iontmax-st__form {
  padding: 28px;
}

.iontmax-st__loading {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 140px;
}

.iontmax-st__loader {
  width: 38px;
  height: 38px;
  border: 4px solid #f0f0f0;
  border-top-color: #d8007f;
  border-radius: 999px;
  flex: 0 0 auto;
  animation: iontmaxStSpin 0.8s linear infinite;
}

@keyframes iontmaxStSpin {
  to {
    transform: rotate(360deg);
  }
}

.iontmax-st__loading strong {
  display: block;
  margin-bottom: 5px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
  color: #000;
}

.iontmax-st__loading span {
  display: block;
  color: #666;
  font-size: 15px;
  line-height: 1.4;
}

.iontmax-st__error {
  display: none;
  border-color: #ffc7c7;
  background: #fff4f4;
  color: #9a0000;
  font-weight: 800;
  line-height: 1.55;
}

.iontmax-st__success {
  display: none;
  border-color: #d6f0dc;
  background: #f5fff7;
  color: #111;
}

.iontmax-st__success h2 {
  margin: 0 0 10px 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 950;
  color: #000;
}

.iontmax-st__success p {
  margin: 0 0 10px 0;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.iontmax-st__success-result {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff3fa;
  color: #d8007f;
  font-size: 14px;
  font-weight: 900;
}

.iontmax-st__section {
  margin: 0 0 22px 0;
  padding: 24px;
  border: 1px solid #ececec;
  border-radius: 20px;
  background: #fff;
}

.iontmax-st__section:last-child {
  margin-bottom: 0;
}

.iontmax-st__section-title {
  margin: 0 0 16px 0;
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.18;
  font-weight: 950;
  color: #000;
}

.iontmax-st__section-hint {
  margin: -6px 0 18px 0;
  font-size: 15px;
  line-height: 1.55;
  color: #666;
}

.iontmax-st__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.iontmax-st__grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.iontmax-st__field {
  min-width: 0;
}

.iontmax-st__field--full {
  grid-column: 1 / -1;
}

.iontmax-st__field label,
.iontmax-st__label {
  display: block;
  margin: 0 0 8px 0;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 900;
  color: #111;
}

.iontmax-st__required {
  color: #d8007f;
}

.iontmax-st__field input,
.iontmax-st__field select {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 2px solid #e6e6e6;
  border-radius: 15px;
  background: #fff;
  color: #111;
  font-size: 16px;
  font-family: inherit;
}

.iontmax-st__field input:focus,
.iontmax-st__field select:focus {
  outline: none;
  border-color: #d8007f;
}

.iontmax-st__field input::placeholder {
  color: #aaa;
}

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

.iontmax-st__radio-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.iontmax-st__option {
  position: relative;
  display: block;
  width: 100%;
  cursor: pointer;
}

.iontmax-st__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.iontmax-st__option-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e6e6e6;
  border-radius: 15px;
  background: #fff;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.iontmax-st__option:hover .iontmax-st__option-box {
  border-color: #d8007f;
  transform: translateY(-1px);
}

.iontmax-st__option input:checked + .iontmax-st__option-box {
  border-color: #d8007f;
  background: #fff3fa;
}

.iontmax-st__option-dot {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 2px solid #cfcfcf;
  border-radius: 999px;
  background: #fff;
}

.iontmax-st__option input:checked + .iontmax-st__option-box .iontmax-st__option-dot {
  border-color: #d8007f;
  box-shadow: inset 0 0 0 5px #fff;
  background: #d8007f;
}

.iontmax-st__option-text {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
  color: #111;
}

.iontmax-st__question {
  margin: 0 0 16px 0;
  padding: 22px;
  border: 1px solid #ececec;
  border-radius: 18px;
  background: #fbfbfb;
}

.iontmax-st__question-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 950;
  color: #000;
}

.iontmax-st__question-hint {
  margin: 0 0 14px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}

.iontmax-st__answers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.iontmax-st__answer .iontmax-st__option-box {
  min-height: 58px;
}

.iontmax-st__validation {
  display: none;
  margin: 0 0 18px 0;
  padding: 13px 15px;
  border-radius: 13px;
  background: #fff4f4;
  color: #9a0000;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
}

.iontmax-st__submit-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.iontmax-st__btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 16px 28px;
  background: #000;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-family: inherit;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.iontmax-st__btn:hover {
  transform: translateY(-1px);
  background: #222;
}

.iontmax-st__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.iontmax-st__hidden-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px;
  opacity: 0 !important;
  pointer-events: none !important;
}

.iontmax-st__fade-in {
  animation: iontmaxStFadeIn 0.35s ease both;
}

@keyframes iontmaxStFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .iontmax-st__grid,
  .iontmax-st__grid--4 {
    grid-template-columns: 1fr 1fr;
  }

  .iontmax-st__radio-row,
  .iontmax-st__radio-row--2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .iontmax-st {
    padding: 14px 0 30px 0;
  }

  .iontmax-st__intro,
  .iontmax-st__form,
  .iontmax-st__loading,
  .iontmax-st__error,
  .iontmax-st__success {
    padding: 18px;
    border-radius: 17px;
  }

  .iontmax-st__section {
    padding: 18px;
    border-radius: 17px;
  }

  .iontmax-st__question {
    padding: 18px;
    border-radius: 16px;
  }

  .iontmax-st__intro h1 {
    font-size: 30px;
  }

  .iontmax-st__grid,
  .iontmax-st__grid--4 {
    grid-template-columns: 1fr;
  }

  .iontmax-st__submit-row {
    justify-content: stretch;
  }

  .iontmax-st__btn {
    width: 100%;
  }
}

.iontmax-st__success-emails {
  display: grid;
  gap: 6px;
  margin: 12px 0 14px 0;
  padding: 13px 15px;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  background: #fff;
  color: #111;
  font-size: 15px;
  line-height: 1.45;
}

.iontmax-st__success-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 18px;
}

.iontmax-st__access-denied {
  width: 100%;
  padding: 34px 30px;
  border: 1px solid #e7e7e7;
  border-radius: 24px;
  background: #fff;
  color: #111;
  text-align: center;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

.iontmax-st__access-denied-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 0 16px 0;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.iontmax-st__access-denied h2 {
  margin: 0 0 10px 0;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.12;
  font-weight: 950;
  color: #000;
}

.iontmax-st__access-denied p {
  max-width: 660px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.65;
  color: #444;
}

@media (max-width: 600px) {
  .iontmax-st__access-denied {
    padding: 26px 18px;
    border-radius: 18px;
  }

  .iontmax-st__access-denied-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}

.iontmax-st__tabs {
  width: 100%;
  display: flex;
  gap: 10px;
  margin: 0 0 20px 0;
  padding: 6px;
  border: 1px solid #e7e7e7;
  border-radius: 999px;
  background: #fff;
}

.iontmax-st__tab {
  appearance: none;
  flex: 1 1 0;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.iontmax-st__tab:hover {
  transform: translateY(-1px);
}

.iontmax-st__tab.is-active {
  background: #000;
  color: #fff;
}

.iontmax-st__results {
  width: 100%;
  padding: 28px;
  border: 1px solid #e7e7e7;
  border-radius: 22px;
  background: #fff;
}

.iontmax-st__results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.iontmax-st__results-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 950;
  color: #000;
}

.iontmax-st__results-count {
  font-size: 14px;
  font-weight: 800;
  color: #555;
  white-space: nowrap;
}

.iontmax-st__results-loading,
.iontmax-st__results-empty {
  padding: 22px;
  border-radius: 16px;
  background: #f7f7f7;
  color: #333;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.iontmax-st__table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #ededed;
  border-radius: 16px;
}

.iontmax-st__table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: #fff;
}

.iontmax-st__table th,
.iontmax-st__table td {
  padding: 13px 14px;
  border-bottom: 1px solid #ededed;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
  line-height: 1.4;
}

.iontmax-st__table th {
  background: #fafafa;
  color: #111;
  font-weight: 950;
}

.iontmax-st__table tr:last-child td {
  border-bottom: 0;
}

.iontmax-st__table-btn,
.iontmax-st__page-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.iontmax-st__table-btn--danger {
  background: #f2f2f2;
  color: #9a0000;
}

.iontmax-st__page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.iontmax-st__delete-unavailable {
  display: inline-block;
  color: #777;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.iontmax-st__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 900;
  color: #111;
}

.iontmax-st__modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.iontmax-st__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.iontmax-st__modal-panel {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto;
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
}

.iontmax-st__modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

.iontmax-st__modal-panel h2 {
  margin: 0 46px 18px 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 950;
  color: #000;
}

.iontmax-st__modal-panel h3 {
  margin: 24px 0 12px 0;
  font-size: 18px;
  font-weight: 950;
  color: #000;
}

.iontmax-st__detail-grid {
  display: grid;
  gap: 8px;
}

.iontmax-st__detail-row {
  display: grid;
  grid-template-columns: minmax(150px, 260px) minmax(0, 1fr);
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid #ededed;
  border-radius: 12px;
  background: #fff;
}

.iontmax-st__detail-row strong {
  color: #111;
  font-size: 13px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.iontmax-st__detail-row span {
  color: #333;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.iontmax-st-modal-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .iontmax-st__tabs {
    border-radius: 18px;
    flex-direction: column;
  }

  .iontmax-st__results {
    padding: 18px;
    border-radius: 17px;
  }

  .iontmax-st__results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .iontmax-st__modal-panel {
    padding: 20px;
    border-radius: 17px;
  }

  .iontmax-st__detail-row {
    grid-template-columns: 1fr;
  }
}

/* Fix: never show empty success/error placeholders inserted by Shoptet as &nbsp; */
.iontmax-st__success:empty,
.iontmax-st__error:empty,
.iontmax-st__validation:empty {
  display: none !important;
}

.iontmax-st__success:not([data-has-success="1"]) {
  display: none !important;
}

/* Results table clickable rows */
.iontmax-st__table--clickable tbody tr.iontmax-st__result-row {
  cursor: pointer;
  transition: background 0.16s ease;
}

.iontmax-st__table--clickable tbody tr.iontmax-st__result-row:hover {
  background: #fafafa;
}

.iontmax-st__table--clickable tbody tr.iontmax-st__result-row:focus {
  outline: 2px solid #000;
  outline-offset: -2px;
}

.iontmax-st__table-dot-head,
.iontmax-st__table-dot-cell {
  width: 34px;
  text-align: center !important;
}

.iontmax-st__drink-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  vertical-align: middle;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

.iontmax-st__drink-dot--hd500 {
  background: #65b32e;
}

.iontmax-st__drink-dot--hd1000 {
  background: #f3c400;
}

.iontmax-st__drink-dot--hd1500 {
  background: #f28c00;
}

.iontmax-st__drink-dot--hd2000 {
  background: #e30613;
}

.iontmax-st__drink-dot--default {
  background: #d8007f;
}

/* Wide layout + no unnecessary horizontal table scroll */
#iontmax-sweat-test-app {
  width: 100%;
  max-width: 100%;
}

.iontmax-st {
  width: 100%;
  max-width: 100%;
  display: block;
}

.iontmax-st__shell {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.iontmax-st__intro p {
  max-width: 100%;
}

.iontmax-st__results,
.iontmax-st__form,
.iontmax-st__intro,
.iontmax-st__tabs,
.iontmax-st__loading,
.iontmax-st__error,
.iontmax-st__success {
  width: 100%;
  max-width: 100%;
}

.iontmax-st__table-wrap {
  overflow-x: visible;
  max-width: 100%;
}

.iontmax-st__table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.iontmax-st__table th,
.iontmax-st__table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.iontmax-st__table th:nth-child(1),
.iontmax-st__table td:nth-child(1) {
  width: 125px;
}

.iontmax-st__table th:nth-child(2),
.iontmax-st__table td:nth-child(2) {
  width: 42px;
}

.iontmax-st__table th:nth-child(3),
.iontmax-st__table td:nth-child(3) {
  width: 21%;
}

.iontmax-st__table th:nth-child(4),
.iontmax-st__table td:nth-child(4) {
  width: 26%;
}

.iontmax-st__table th:nth-child(5),
.iontmax-st__table td:nth-child(5) {
  width: auto;
}

.iontmax-st__table th:nth-child(6),
.iontmax-st__table td:nth-child(6) {
  width: 120px;
}

.iontmax-st__delete-unavailable {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .iontmax-st__table-wrap {
    overflow-x: visible;
    border: 0;
  }

  .iontmax-st__table,
  .iontmax-st__table thead,
  .iontmax-st__table tbody,
  .iontmax-st__table tr,
  .iontmax-st__table th,
  .iontmax-st__table td {
    display: block;
    width: 100% !important;
  }

  .iontmax-st__table thead {
    display: none;
  }

  .iontmax-st__table tbody tr {
    margin: 0 0 12px 0;
    padding: 14px;
    border: 1px solid #ededed;
    border-radius: 16px;
    background: #fff;
  }

  .iontmax-st__table tbody tr:hover {
    background: #fafafa;
  }

  .iontmax-st__table td {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border-bottom: 0;
  }

  .iontmax-st__table td:nth-child(1)::before { content: "Datum"; }
  .iontmax-st__table td:nth-child(2)::before { content: ""; }
  .iontmax-st__table td:nth-child(3)::before { content: "Jméno"; }
  .iontmax-st__table td:nth-child(4)::before { content: "E-mail"; }
  .iontmax-st__table td:nth-child(5)::before { content: "Doporučení"; }
  .iontmax-st__table td:nth-child(6)::before { content: ""; }

  .iontmax-st__table td::before {
    font-size: 12px;
    font-weight: 950;
    color: #777;
  }

  .iontmax-st__table-dot-cell {
    display: flex !important;
    justify-content: flex-start;
    padding-top: 0 !important;
  }

  .iontmax-st__table-dot-cell::before {
    display: none;
  }

  .iontmax-st__table-btn {
    width: 100%;
  }
}

/* IONTMAX Sweat Test results table refinements */
.iontmax-st__table-wrap {
  border-radius: 0 !important;
}

.iontmax-st__table {
  border-radius: 0 !important;
}

.iontmax-st__table th,
.iontmax-st__table td {
  border-radius: 0 !important;
}

/* Sweat test certificate detail */
.iontmax-st__modal-panel {
  width: min(900px, calc(100vw - 28px));
  padding: 18px;
  border-radius: 0;
}

.iontmax-st__certificate {
  --iontmax-cert-color: #d8007f;
  --iontmax-cert-soft: rgba(216, 0, 127, 0.10);
  position: relative;
  width: 100%;
  max-width: 794px;
  min-height: 1122px;
  margin: 0 auto;
  padding: 42px;
  background: #fff;
  border: 1px solid #e1e1e1;
  color: #111;
  overflow: hidden;
}

.iontmax-st__certificate--hd500 {
  --iontmax-cert-color: #65b32e;
  --iontmax-cert-soft: rgba(101, 179, 46, 0.12);
}

.iontmax-st__certificate--hd1000 {
  --iontmax-cert-color: #f3c400;
  --iontmax-cert-soft: rgba(243, 196, 0, 0.15);
}

.iontmax-st__certificate--hd1500 {
  --iontmax-cert-color: #f28c00;
  --iontmax-cert-soft: rgba(242, 140, 0, 0.13);
}

.iontmax-st__certificate--hd2000 {
  --iontmax-cert-color: #e30613;
  --iontmax-cert-soft: rgba(227, 6, 19, 0.10);
}

.iontmax-st__certificate::after {
  content: "";
  position: absolute;
  right: -130px;
  top: -130px;
  width: 330px;
  height: 330px;
  border-radius: 999px;
  background: var(--iontmax-cert-soft);
  pointer-events: none;
}

.iontmax-st__certificate-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 12px;
  background: var(--iontmax-cert-color);
}

.iontmax-st__certificate-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid #e8e8e8;
}

.iontmax-st__certificate-eyebrow {
  margin-bottom: 10px;
  color: var(--iontmax-cert-color);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.iontmax-st__certificate-header h2 {
  margin: 0 !important;
  color: #000;
  font-size: clamp(30px, 4vw, 46px) !important;
  line-height: 1.05 !important;
  font-weight: 950 !important;
}

.iontmax-st__certificate-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid #e7e7e7;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.iontmax-st__certificate-section {
  position: relative;
  z-index: 2;
  margin-bottom: 28px;
}

.iontmax-st__certificate-section h3 {
  margin: 0 0 14px 0 !important;
  color: #000;
  font-size: 18px !important;
  line-height: 1.2;
  font-weight: 950;
}

.iontmax-st__certificate-grid,
.iontmax-st__certificate-samples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.iontmax-st__certificate-field {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #ececec;
  background: #fff;
}

.iontmax-st__certificate-field span {
  display: block;
  margin-bottom: 5px;
  color: #777;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.iontmax-st__certificate-field strong {
  display: block;
  color: #111;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.iontmax-st__certificate-result {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  margin: 32px 0;
  padding: 22px;
  border: 1px solid var(--iontmax-cert-color);
  background: var(--iontmax-cert-soft);
}

.iontmax-st__certificate-result span {
  display: block;
  margin-bottom: 6px;
  color: #555;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.iontmax-st__certificate-result strong {
  display: block;
  color: #000;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.iontmax-st__certificate-footer {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid #e8e8e8;
  color: #111;
  font-size: 13px;
  font-weight: 900;
}

.iontmax-st__certificate-footer span {
  display: block;
  margin-bottom: 4px;
  color: #777;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.iontmax-st__certificate-actions {
  width: 100%;
  max-width: 794px;
  margin: 16px auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.iontmax-st__btn--resend {
  background: #000 !important;
  color: #fff !important;
}

.iontmax-st__resend-status {
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 900;
}

.iontmax-st__resend-status--success {
  color: #0a7a2f;
}

.iontmax-st__resend-status--error {
  color: #9a0000;
}

@media print {
  body * {
    visibility: hidden !important;
  }
  .iontmax-st__certificate,
  .iontmax-st__certificate * {
    visibility: visible !important;
  }
  .iontmax-st__certificate {
    position: absolute;
    left: 0;
    top: 0;
    width: 210mm;
    min-height: 297mm;
    max-width: none;
    border: 0;
  }
  .iontmax-st__certificate-actions,
  .iontmax-st__modal-close,
  .iontmax-st__modal-backdrop {
    display: none !important;
  }
}

@media (max-width: 700px) {
  .iontmax-st__certificate {
    min-height: auto;
    padding: 28px 20px 96px 24px;
  }

  .iontmax-st__certificate-header {
    flex-direction: column;
  }

  .iontmax-st__certificate-grid,
  .iontmax-st__certificate-samples,
  .iontmax-st__certificate-result {
    grid-template-columns: 1fr;
  }

  .iontmax-st__certificate-footer {
    position: static;
    margin-top: 26px;
    flex-direction: column;
    align-items: flex-start;
  }

  .iontmax-st__certificate-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .iontmax-st__certificate-actions .iontmax-st__btn {
    width: 100%;
  }
}

.iontmax-st__detail-tabs {
  width: 100%;
  max-width: 794px;
  margin: 0 auto 14px auto;
  display: flex;
  gap: 8px;
}

.iontmax-st__detail-tab {
  appearance: none;
  border: 1px solid #dedede;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.iontmax-st__detail-tab.is-active {
  background: #000;
  border-color: #000;
  color: #fff;
}

.iontmax-st__detail-tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.iontmax-st__detail-pane {
  display: none;
}

.iontmax-st__detail-pane.is-active {
  display: block;
}

.iontmax-st__certificate-title-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.iontmax-st__certificate-logo {
  display: block;
  width: auto;
  max-width: 145px;
  max-height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}

.iontmax-st__edit-form,
.iontmax-st__edit-unavailable {
  width: 100%;
  max-width: 794px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid #e4e4e4;
  background: #fff;
}

.iontmax-st__edit-unavailable {
  font-weight: 900;
  color: #555;
}

.iontmax-st__edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.iontmax-st__edit-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.iontmax-st__edit-field span {
  font-size: 13px;
  font-weight: 900;
  color: #111;
}

.iontmax-st__edit-field input,
.iontmax-st__edit-field select {
  width: 100%;
  min-height: 48px;
  border: 2px solid #e6e6e6;
  border-radius: 0;
  padding: 0 12px;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-family: inherit;
}

.iontmax-st__edit-field input:focus,
.iontmax-st__edit-field select:focus {
  outline: none;
  border-color: #d8007f;
}

.iontmax-st__edit-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.iontmax-st__btn--save-edit {
  background: #000 !important;
  color: #fff !important;
}

@media print {
  .iontmax-st__detail-tabs,
  .iontmax-st__edit-form,
  .iontmax-st__edit-unavailable {
    display: none !important;
  }
}

@media (max-width: 700px) {
  .iontmax-st__detail-tabs {
    max-width: 100%;
  }

  .iontmax-st__certificate-title-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .iontmax-st__edit-grid {
    grid-template-columns: 1fr;
  }

  .iontmax-st__edit-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .iontmax-st__edit-actions .iontmax-st__btn {
    width: 100%;
  }
}


/* Certificate layout refresh */
.iontmax-st__modal-panel {
  width: min(940px, calc(100vw - 28px));
  padding: 18px;
  border-radius: 24px;
  overflow: hidden;
}

.iontmax-st__detail-tabs {
  width: 100%;
  max-width: 794px;
  margin: 0 auto 14px auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.iontmax-st__detail-tabs-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.iontmax-st__detail-tab,
.iontmax-st__detail-action {
  appearance: none;
  border: 1px solid #dedede;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}

.iontmax-st__detail-action:hover,
.iontmax-st__detail-tab:hover:not(.is-active):not(:disabled) {
  border-color: #bfbfbf;
}

.iontmax-st__detail-tab.is-active {
  background: #000;
  border-color: #000;
  color: #fff;
}

.iontmax-st__detail-tab:disabled,
.iontmax-st__detail-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.iontmax-st__resend-status {
  flex: 1 1 auto;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 900;
  text-align: right;
}

.iontmax-st__certificate {
  max-width: 794px;
  min-height: 1122px;
  padding: 42px 42px 132px 42px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.iontmax-st__certificate-header {
  align-items: flex-start;
  gap: 26px;
}

.iontmax-st__certificate-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
}

.iontmax-st__certificate-title-text {
  display: grid;
  gap: 8px;
}

.iontmax-st__certificate-logo {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 72px;
  object-fit: contain;
  flex: 0 0 auto;
}

.iontmax-st__certificate-eyebrow {
  margin-bottom: 0;
}

.iontmax-st__certificate-header h2 {
  max-width: 460px;
}

.iontmax-st__certificate-badge {
  margin-top: 2px;
}

.iontmax-st__certificate-actions,
.iontmax-st__btn--resend {
  display: none !important;
}

@media (max-width: 700px) {
  .iontmax-st__modal-panel {
    width: min(100vw - 16px, 940px);
    padding: 14px;
    border-radius: 18px;
  }

  .iontmax-st__detail-tabs {
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .iontmax-st__detail-tabs-group {
    width: 100%;
  }

  .iontmax-st__detail-tab,
  .iontmax-st__detail-action {
    flex: 1 1 auto;
    text-align: center;
  }

  .iontmax-st__resend-status {
    justify-content: flex-start;
    min-height: 0;
    text-align: left;
  }

  .iontmax-st__certificate {
    border-radius: 12px;
    padding: 28px 20px 96px 24px;
  }

  .iontmax-st__certificate-header {
    flex-direction: column;
  }

  .iontmax-st__certificate-logo {
    max-width: 160px;
    max-height: 60px;
  }
}


/* Centered certificate hero */
.iontmax-st__certificate-header {
  position: relative;
  display: block;
  text-align: center;
  padding-top: 8px;
}

.iontmax-st__certificate-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.iontmax-st__certificate-title-text {
  width: 100%;
  display: block;
  text-align: center;
}

.iontmax-st__certificate-eyebrow {
  display: none !important;
}

.iontmax-st__certificate-logo {
  max-width: 220px;
  max-height: 78px;
  margin: 0 auto;
}

.iontmax-st__certificate-header h2 {
  max-width: none;
  margin: 0 auto !important;
  text-align: center;
}

.iontmax-st__certificate-badge {
  position: absolute;
  top: 0;
  right: 0;
  margin-top: 0;
}

@media (max-width: 700px) {
  .iontmax-st__certificate-header {
    padding-top: 56px;
  }

  .iontmax-st__certificate-badge {
    position: static;
    display: inline-flex;
    margin: 0 auto 16px auto;
  }

  .iontmax-st__certificate-title-wrap {
    gap: 14px;
  }

  .iontmax-st__certificate-logo {
    max-width: 180px;
    max-height: 64px;
  }
}


/* Smaller logo + more spacing + smaller result typography */
.iontmax-st__certificate-logo {
  max-width: 176px;
  max-height: 62px;
  margin: 0 auto 30px auto;
}

.iontmax-st__certificate-title-wrap {
  gap: 0;
}

.iontmax-st__certificate-result strong {
  font-size: clamp(18px, 2.4vw, 27px);
}

@media (max-width: 700px) {
  .iontmax-st__certificate-logo {
    max-width: 144px;
    max-height: 48px;
    margin: 0 auto 30px auto;
  }
}


/* Results search */
.iontmax-st__results-search {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin: 0 0 14px 0;
  padding: 14px;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  background: #fff;
}

.iontmax-st__results-search label {
  font-size: 13px;
  font-weight: 950;
  color: #111;
}

.iontmax-st__results-search input[type="search"] {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid #e6e6e6;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
}

.iontmax-st__results-search input[type="search"]:focus {
  outline: none;
  border-color: #000;
}

.iontmax-st__results-search-btn,
.iontmax-st__results-search-reset {
  appearance: none;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.iontmax-st__results-search-btn {
  border: 1px solid #000;
  background: #000;
  color: #fff;
}

.iontmax-st__results-search-reset {
  border: 1px solid #dedede;
  background: #fff;
  color: #111;
}

.iontmax-st__results-search-reset:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .iontmax-st__results-search {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .iontmax-st__results-search-btn,
  .iontmax-st__results-search-reset {
    width: 100%;
  }
}


/* Access denied state: show only the denied access panel */
#iontmax-sweat-test-app.iontmax-st--access-denied .iontmax-st__intro,
#iontmax-sweat-test-app.iontmax-st--access-denied .iontmax-st__tabs,
#iontmax-sweat-test-app.iontmax-st--access-denied .iontmax-st__form,
#iontmax-sweat-test-app.iontmax-st--access-denied .iontmax-st__success,
#iontmax-sweat-test-app.iontmax-st--access-denied .iontmax-st__results {
  display: none !important;
}

#iontmax-sweat-test-app.iontmax-st--access-denied .iontmax-st__shell {
  max-width: 720px;
  margin: 0 auto;
}

#iontmax-sweat-test-app.iontmax-st--access-denied .iontmax-st__access-denied {
  margin-top: 0;
}


/* Hide the intro/header while partner access is being checked or denied. */
#iontmax-sweat-test-app:not(.iontmax-st--access-allowed) .iontmax-st__intro,
#iontmax-sweat-test-app.iontmax-st--access-checking .iontmax-st__intro,
#iontmax-sweat-test-app.iontmax-st--access-denied .iontmax-st__intro {
  display: none !important;
}

#iontmax-sweat-test-app.iontmax-st--access-allowed .iontmax-st__intro {
  display: block;
}
