/* Shared chooser for the two website entry points. No page-level overrides. */
:is(.sto-chooser, .sto-chooser-preview, .sto-chooser-detail) {
  --sc-ink: #193648;
  --sc-muted: #687f90;
  --sc-blue: #1976e9;
  --sc-line: #dce6ee;
  --sc-gold: #e7c77e;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(800px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: 88vh;
  max-height: 88dvh;
  margin: auto;
  padding: 0;
  border: 1px solid #d7e2eb;
  border-radius: 22px;
  background: #fff;
  color: var(--sc-ink);
  box-shadow: 0 28px 90px #152f4740, 0 4px 18px #152f4712;
  overflow: hidden;
  font: 14px/1.5 "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  text-align: left;
  color-scheme: light;
}

:is(.sto-chooser, .sto-chooser-preview, .sto-chooser-detail)[open] {
  display: flex;
  flex-direction: column;
  animation: sc-enter 160ms ease-out both;
}

:is(.sto-chooser, .sto-chooser-preview, .sto-chooser-detail)::backdrop {
  background: #112e4566;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

:is(.sto-chooser, .sto-chooser-preview, .sto-chooser-detail) *,
:is(.sto-chooser, .sto-chooser-preview, .sto-chooser-detail) *::before,
:is(.sto-chooser, .sto-chooser-preview, .sto-chooser-detail) *::after {
  box-sizing: border-box;
}

:is(.sto-chooser, .sto-chooser-preview, .sto-chooser-detail) [hidden] {
  display: none !important;
}

:where(.sto-chooser, .sto-chooser-preview, .sto-chooser-detail) :where(button, input, select, textarea) {
  font: inherit;
}

:is(.sto-chooser, .sto-chooser-preview, .sto-chooser-detail) button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

:is(.sto-chooser, .sto-chooser-preview, .sto-chooser-detail) :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid #3486dc;
  outline-offset: 3px;
}

:is(.sto-chooser, .sto-chooser-preview, .sto-chooser-detail) :is(button, input, select, textarea):disabled,
:is(.sto-chooser, .sto-chooser-preview, .sto-chooser-detail) [aria-disabled="true"] {
  opacity: .48;
  cursor: not-allowed;
  box-shadow: none;
}

.sc-shell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-height: inherit;
  overflow: hidden;
}

.sc-header {
  display: flex;
  flex: none;
  align-items: flex-start;
  gap: 20px;
  padding: 25px 28px 22px;
  border-bottom: 1px solid var(--sc-line, #dce6ee);
  background: #fff;
}

.sc-heading {
  flex: 1;
  min-width: 0;
}

.sc-step {
  display: block;
  margin-bottom: 8px;
  color: #708799;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .035em;
}

.sc-header h2 {
  margin: 0;
  color: var(--sc-ink, #193648);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 27px;
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -.7px;
  overflow-wrap: break-word;
}

.sc-header p {
  max-width: 580px;
  margin: 9px 0 0;
  color: var(--sc-muted, #687f90);
  font-size: 13px;
  line-height: 1.55;
}

.sc-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid #e1e9f0;
  border-radius: 10px;
  background: #f5f8fb;
  color: #5e778b;
  font-size: 24px !important;
  font-weight: 400;
  line-height: 1;
  transition: background-color 150ms, border-color 150ms;
}

.sc-close svg {
  display: block;
  width: 18px;
  height: 18px;
}

.sc-body {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 24px 28px;
}

/* Step one: two distinct working roles. */
.sc-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sc-role {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 310px;
  width: 100%;
  padding: 24px;
  border: 1px solid #d9e6f1;
  border-radius: 15px;
  background: #f2f8ff;
  color: #1b639d;
  text-align: left;
  transition: border-color 160ms, background-color 160ms, box-shadow 160ms, transform 160ms;
}

.sc-role-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  color: inherit;
}

.sc-role-icon svg {
  display: block;
  width: 32px;
  height: 32px;
}

.sc-role h3 {
  margin: 0 0 11px;
  color: inherit;
  font-size: 25px;
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -.55px;
}

.sc-role p {
  margin: 0 0 18px;
  color: #59778c;
  font-size: 13px;
  line-height: 1.6;
}

.sc-role ul {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.sc-role li {
  position: relative;
  padding-left: 12px;
  color: #426b88;
  font-size: 12px;
  line-height: 1.5;
}

.sc-role li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
}

.sc-role-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #cfdfed;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.sc-role-action svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.sc-role-manager {
  border-color: #193648;
  background: #193648;
  color: var(--sc-gold, #e7c77e);
  box-shadow: 0 5px 16px #163c5512;
}

.sc-role-manager h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -.6px;
}

.sc-role-manager p,
.sc-role-manager li {
  color: #d3e0e8;
}

.sc-role-manager li::before {
  color: #e7c77e;
}

.sc-role-manager .sc-role-action {
  border-color: #f4e3b72b;
  color: #e7c77e;
}

.sc-role-manager:focus-visible {
  outline-color: #b38a35 !important;
}

.sc-role-manager[aria-pressed="true"] {
  border-color: #c1a05a;
  box-shadow: 0 0 0 2px #e7c77e55;
}

.sc-role-master[aria-pressed="true"] {
  border-color: #408ee3;
  box-shadow: 0 0 0 2px #1976e91a;
}

/* One service can buy the two complementary roles together. */
.sc-pair {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 150px;
  align-items: center;
  gap: 18px;
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  padding: 22px;
  border: 1px solid #b8d3ed;
  border-radius: 15px;
  background: #f0f7ff;
  color: #193648;
  text-align: left;
  transition: border-color 160ms, background-color 160ms;
}

.sc-pair:hover {
  border-color: #1976e9;
  background: #e8f3ff;
}

.sc-pair-icons {
  display: flex;
  gap: 5px;
}

.sc-pair-icons > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  border-radius: 8px;
  background: #dcecff;
  color: #1976d7;
}

.sc-pair-icons > [data-role="manager"] {
  background: #193648;
  color: #e7c77e;
}

.sc-pair-icons svg {
  width: 22px;
  height: 22px;
}

.sc-pair-copy,
.sc-pair-copy > *,
.sc-pair-offer > span {
  display: block;
}

.sc-pair-copy strong {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.35px;
}

.sc-pair-copy > span {
  margin-top: 7px;
  color: #58758b;
  font-size: 12px;
  line-height: 1.5;
}

.sc-pair-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  color: #1769c6;
}

.sc-pair-offer strong {
  font-size: 27px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.7px;
}

.sc-pair-offer > span {
  grid-column: 1;
  font-size: 11px;
  line-height: 1.4;
}

.sc-pair-offer svg {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 20px;
  height: 20px;
  align-self: center;
}

.sc-kit-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.sc-kit {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #cfdfed;
  border-radius: 12px;
  background: #fff;
  color: #294f6c;
  text-align: left;
  transition: border-color 160ms, background-color 160ms;
}

.sc-kit:hover,
.sc-kit[aria-pressed="true"] {
  border-color: #1976e9;
  background: #eff7ff;
}

.sc-kit[data-edit-role="manager"][aria-pressed="true"] {
  border-color: #193648;
  background: #193648;
  color: #e2edf3;
}

.sc-kit-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #236da7;
  font-size: 16px;
  line-height: 1.2;
}

.sc-kit-title svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.sc-kit[data-edit-role="manager"] .sc-kit-title {
  color: #876c2e;
}

.sc-kit[data-edit-role="manager"] .sc-kit-title strong {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.sc-kit[data-edit-role="manager"][aria-pressed="true"] .sc-kit-title {
  color: #e7c77e;
}

.sc-kit-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 11px;
}

.sc-kit-price {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sc-kit-discount {
  display: block;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #bfd1df66;
  font-size: 11px;
  line-height: 1.4;
}

.sc-kit-discount[data-discounted="true"] {
  font-weight: 650;
}

/* Step two: role, categories and a compact list of real modules. */
.sc-role-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.sc-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 7px 11px;
  border: 1px solid #cfe2f5;
  border-radius: 7px;
  background: #eff7ff;
  color: #236da7;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.sc-role-badge svg {
  width: 16px;
  height: 16px;
}

.sc-role-badge[data-role="manager"] {
  border-color: #193648;
  background: #193648;
  color: #e7c77e;
}

.sc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #647d90;
  font-size: 12px !important;
  line-height: 1.4;
  text-align: right;
  text-decoration: underline;
  text-decoration-color: #bfceda;
  text-underline-offset: 4px;
}

.sc-back svg {
  width: 14px;
  height: 14px;
}

.sc-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid #e4ecf2;
}

.sc-categories button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 87px;
  min-height: 41px;
  padding: 9px 14px;
  border: 1px solid #e0e8f0;
  border-radius: 9px;
  background: #f6f9fc;
  color: #6a8092;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  transition: background-color 150ms, color 150ms, border-color 150ms;
}

.sc-categories button[aria-pressed="true"] {
  border-color: #d6e6f7;
  background: #edf5ff;
  color: #176bc1;
}

.sc-category-icon {
  display: inline-flex;
  flex: none;
}

.sc-category-icon svg {
  width: 17px;
  height: 17px;
}

.sc-category-name {
  min-width: 0;
}

.sc-category-count {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 17px;
  height: 17px;
  padding-inline: 4px;
  border-radius: 5px;
  background: #dcebf9;
  color: #3976aa;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.sc-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

.sc-module {
  min-width: 0;
  border: 1px solid #dfe7ee;
  border-radius: 12px;
  background: #fff;
  transition: background-color 160ms, border-color 160ms, box-shadow 160ms;
}

.sc-module[data-selected="true"] {
  border-color: #a4c8ee;
  background: #f7fbff;
  box-shadow: inset 3px 0 #438fdc;
}

.sc-module-main {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}

.sc-module-label {
  display: grid;
  grid-template-columns: 19px 34px minmax(0, 1fr);
  align-items: center;
  gap: 7px 10px;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 17px 12px 17px 17px;
  cursor: pointer;
}

.sc-module-label input[type="checkbox"] {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--sc-blue, #1976e9);
  cursor: pointer;
}

.sc-module-label:has(input:disabled) {
  cursor: default;
}

.sc-module-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #557b98;
}

.sc-module-icon svg {
  display: block;
  width: 29px;
  height: 29px;
  max-width: 100%;
}

.sc-module-copy {
  display: block;
  min-width: 0;
}

.sc-module-copy strong {
  display: block;
  color: #24465e;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.sc-module-copy p,
.sc-module-desc {
  display: block;
  margin: 4px 0 0;
  color: #708597;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.sc-module-price {
  display: block;
  grid-column: 3;
  color: #38576d;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sc-info {
  display: grid;
  place-items: center;
  flex: none;
  width: 29px;
  height: 29px;
  min-height: 29px;
  margin: 17px 13px 0 0;
  padding: 4px;
  border: 1px solid #dce6ef;
  border-radius: 50%;
  background: #fff;
  color: #7290a8;
  font-size: 13px !important;
  line-height: 1;
  transition: background-color 150ms, border-color 150ms;
}

.sc-info svg {
  width: 16px;
  height: 16px;
}

.sc-options {
  margin: 0 17px 17px 48px;
  padding-top: 12px;
  border-top: 1px solid #deebf5;
}

.sc-options summary {
  width: fit-content;
  max-width: 100%;
  color: #4d7899;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}

.sc-options summary::marker {
  color: #7c9bb2;
  font-size: .8em;
}

.sc-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 13px;
}

.sc-fields label,
.sto-chooser-detail .checkout-form label {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  color: #506c81;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.sc-fields :is(input, select, textarea),
.sto-chooser-detail .checkout-form :is(input, select, textarea) {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 39px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #cbdbe7;
  border-radius: 6px;
  background: #fff;
  color: #28495f;
  font-size: 13px;
  line-height: 1.4;
}

.sc-fields input[type="file"],
.sto-chooser-detail .checkout-form input[type="file"] {
  overflow: hidden;
  padding: 6px;
  font-size: 11px;
}

.sc-fields input::file-selector-button,
.sto-chooser-detail .checkout-form input::file-selector-button {
  margin-right: 8px;
  padding: 6px 8px;
  border: 1px solid #d4e1eb;
  border-radius: 4px;
  background: #f3f7fb;
  color: #4f6f87;
  font: inherit;
  cursor: pointer;
}

.sc-fields input::placeholder,
.sto-chooser-detail .checkout-form input::placeholder {
  color: #94a5b2;
  opacity: 1;
}

.sc-note {
  margin: 11px 0 0;
  color: #7b8e9d;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.sc-status {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid #edccd0;
  border-radius: 7px;
  background: #fff6f6;
  color: #9d3541;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.sc-status:empty {
  display: none;
}

/* The total and next action stay visible while the list scrolls. */
.sc-footer {
  display: flex;
  flex-wrap: wrap;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  border-top: 1px solid #dfe8ef;
  background: #edf4fa;
}

.sc-footer > .sc-note {
  margin: 0;
  max-width: 620px;
}

.sc-footer > .sc-status {
  flex: 0 0 100%;
  margin: 0;
}

.sc-total {
  flex: none;
  min-width: 0;
}

.sc-total > span {
  display: block;
  color: #6c8495;
  font-size: 11px;
  line-height: 1.5;
}

.sc-total > .sc-discount {
  max-width: 290px;
  margin-top: 5px;
  color: #28745f;
  font-size: 11px;
  font-weight: 600;
}

.sc-total strong {
  display: inline-block;
  margin-top: 2px;
  color: #1d4058;
  font-size: 27px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.6px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sc-total small {
  display: block;
  margin: 3px 0 0;
  color: #8396a4;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.sc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
}

.sc-primary,
.sc-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms, border-color 150ms, box-shadow 150ms;
}

.sc-primary {
  border-color: #1976e9;
  background: #1976e9;
  color: #fff;
  box-shadow: 0 3px 8px #1976e91a;
}

.sc-secondary {
  border-color: #cadce9;
  background: #fff;
  color: #38617f;
}

.sc-primary svg,
.sc-secondary svg {
  width: 17px;
  height: 17px;
  flex: none;
}

/* Separate, explicitly opened preview. */
.sto-chooser-preview {
  width: min(1240px, 94vw);
  max-width: 94vw;
}

.sc-preview-stage {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 20px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #eff4f8;
}

.sc-preview-stage iframe {
  display: block;
  width: 100%;
  min-height: 480px;
  border: 0;
  border-radius: 9px;
  background: #fff;
}

/* Purchase and document details use the same visual language. */
.sto-chooser-detail {
  width: min(680px, calc(100vw - 32px));
}

.sc-detail-body {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 23px 28px 27px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.sto-chooser-detail .checkout-form {
  display: grid;
  gap: 16px;
  margin: 0;
}

.sto-chooser-detail .checkout-form label:has(input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.6;
}

.sto-chooser-detail .checkout-form input[type="checkbox"] {
  flex: none;
  width: 17px;
  min-height: 17px;
  height: 17px;
  margin-top: 2px;
  padding: 0;
  accent-color: #1976e9;
}

.sto-chooser-detail .sum-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid #e2eaf1;
  color: #5c788d;
  font-size: 13px;
  line-height: 1.5;
}

.sto-chooser-detail .sum-row :is(strong, b) {
  color: #274a63;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sto-chooser-detail .download-kit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 12px 16px;
  border: 1px solid #1976e9;
  border-radius: 8px;
  background: #1976e9;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

.sto-chooser-detail .sc-detail-body h3 {
  margin: 0 0 12px;
  color: #24475f;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.25px;
}

.sto-chooser-detail .sc-detail-body p {
  margin: 0 0 14px;
  color: #698293;
  font-size: 13px;
  line-height: 1.65;
}

.sto-chooser-detail .sc-detail-body .sc-status {
  color: #9d3541;
}

.sc-logo-proof {
  display: grid;
  place-items: center;
  min-height: 160px;
  margin-block: 16px;
  padding: 20px;
  border: 1px solid #dce6ee;
  border-radius: 10px;
  background: #f6f9fc;
}

.sc-logo-proof img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 360px);
  max-height: 240px;
  object-fit: contain;
}

.sto-chooser-detail .sc-detail-body a:not(.download-kit):not(.sc-primary):not(.sc-secondary) {
  color: #1d71bf;
  text-decoration: underline;
  text-decoration-color: #a8c8e5;
  text-underline-offset: 3px;
}

.sto-chooser-detail .sc-detail-body details {
  margin-top: 17px;
  padding-top: 12px;
  border-top: 1px solid #e0e9f0;
}

.sto-chooser-detail .sc-detail-body summary {
  margin-bottom: 10px;
  color: #52758f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

@media (hover: hover) {
  .sc-module:hover {
    border-color: #a8c4dd;
    box-shadow: 0 4px 12px #24476208;
  }

  .sc-module[data-selected="true"]:hover {
    border-color: #7eafe2;
    box-shadow: inset 3px 0 #438fdc, 0 4px 12px #24476208;
  }

  .sc-close:not(:disabled):not([aria-disabled="true"]):hover,
  .sc-info:not(:disabled):not([aria-disabled="true"]):hover {
    border-color: #b8d0e3;
    background: #eaf3fa;
  }

  .sc-role:not(:disabled):not([aria-disabled="true"]):hover {
    transform: translateY(-2px);
  }

  .sc-role-manager:not(:disabled):not([aria-disabled="true"]):hover {
    border-color: #c5a76a;
    background: #1d3d51;
    box-shadow: 0 6px 18px #19364820;
  }

  .sc-role-master:not(:disabled):not([aria-disabled="true"]):hover {
    border-color: #87b6e7;
    background: #eaf4ff;
    box-shadow: 0 6px 18px #1976e90a;
  }

  .sc-categories button:not(:disabled):not([aria-disabled="true"]):hover {
    background: #f1f6fb;
    color: #3676af;
  }

  .sc-back:not(:disabled):not([aria-disabled="true"]):hover {
    color: #1d6eb4;
    text-decoration-color: #6caddf;
  }

  .sc-primary:not(:disabled):not([aria-disabled="true"]):hover,
  .sto-chooser-detail .download-kit:not([aria-disabled="true"]):hover {
    border-color: #1067d0;
    background: #1067d0;
  }

  .sc-secondary:not(:disabled):not([aria-disabled="true"]):hover {
    border-color: #91b8d8;
    background: #eef6fd;
  }
}

@media (max-width: 700px) {
  .sc-modules {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  :is(.sto-chooser, .sto-chooser-preview, .sto-chooser-detail) {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    border-radius: 16px;
  }

  .sc-header {
    gap: 14px;
    padding: 19px 19px 17px;
  }

  .sc-header h2 {
    font-size: 23px;
    letter-spacing: -.55px;
  }

  .sc-header p {
    font-size: 12px;
    line-height: 1.6;
  }

  .sc-step {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .sc-close {
    width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 8px;
    font-size: 22px !important;
  }

  .sc-body {
    padding: 18px 19px;
  }

  .sc-role-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .sc-role {
    min-height: 0;
    padding: 21px;
    border-radius: 12px;
  }

  .sc-role-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 13px;
  }

  .sc-role-icon svg {
    width: 28px;
    height: 28px;
  }

  .sc-role h3 {
    font-size: 24px;
  }

  .sc-role-manager h3 {
    font-size: 26px;
  }

  .sc-role p {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .sc-role ul {
    gap: 6px;
    margin-bottom: 18px;
  }

  .sc-role li {
    font-size: 11px;
  }

  .sc-role-action {
    padding-top: 12px;
    font-size: 11px;
  }

  .sc-pair {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 15px 12px;
    padding: 18px;
    border-radius: 12px;
  }

  .sc-pair-icons {
    grid-column: 2;
    grid-row: 1;
  }

  .sc-pair-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .sc-pair-copy strong {
    font-size: 18px;
  }

  .sc-pair-copy > span {
    font-size: 11px;
  }

  .sc-pair-offer {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #c9ddf0;
  }

  .sc-pair-offer > span,
  .sc-pair-offer svg {
    grid-column: auto;
    grid-row: auto;
  }

  .sc-pair-offer strong {
    font-size: 24px;
  }

  .sc-kit-switch {
    gap: 9px;
    margin-bottom: 16px;
  }

  .sc-kit {
    gap: 11px;
    padding: 12px;
  }

  .sc-kit-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    font-size: 14px;
  }

  .sc-kit-title svg {
    width: 19px;
    height: 19px;
  }

  .sc-kit-bottom {
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
  }

  .sc-kit-price {
    font-size: 15px;
  }

  .sc-kit-discount {
    font-size: 10px;
  }

  .sc-role-bar {
    margin-bottom: 14px;
  }

  .sc-role-badge {
    font-size: 11px;
    padding: 6px 9px;
  }

  .sc-back {
    font-size: 11px !important;
  }

  .sc-categories {
    gap: 6px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .sc-categories button {
    min-width: 75px;
    min-height: 37px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .sc-module-label {
    grid-template-columns: 18px 31px minmax(0, 1fr);
    gap: 7px 9px;
    padding: 14px 9px 14px 13px;
  }

  .sc-module-label input,
  .sc-module-icon {
    align-self: start;
  }

  .sc-module-label input[type="checkbox"] {
    margin-top: 6px;
  }

  .sc-module-icon {
    width: 31px;
    height: 31px;
  }

  .sc-module-icon svg {
    width: 26px;
    height: 26px;
  }

  .sc-module-copy strong {
    font-size: 13px;
  }

  .sc-module-copy p,
  .sc-module-desc {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.5;
  }

  .sc-module-price {
    grid-column: 3;
    font-size: 11px;
    text-align: left;
  }

  .sc-info {
    width: 27px;
    height: 27px;
    min-height: 27px;
    margin: 14px 10px 0 0;
  }

  .sc-options {
    margin: 0 13px 14px;
  }

  .sc-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .sc-footer {
    flex-wrap: wrap;
    gap: 13px;
    padding: 15px 19px 17px;
  }

  .sc-total {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    width: 100%;
  }

  .sc-total > span {
    flex-basis: 100%;
    font-size: 10px;
  }

  .sc-total strong {
    font-size: 25px;
  }

  .sc-total small {
    margin-left: 0;
    font-size: 10px;
  }

  .sc-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    align-items: stretch;
  }

  .sc-primary,
  .sc-secondary {
    width: 100%;
    min-height: 42px;
    padding: 10px 8px;
    font-size: 12px !important;
  }

  .sc-preview-stage {
    padding: 12px;
  }

  .sc-detail-body {
    padding: 18px 19px 21px;
  }

  .sto-chooser-detail .sum-row {
    gap: 12px;
    font-size: 12px;
  }

  .sto-chooser-detail .sc-detail-body h3 {
    font-size: 17px;
  }

  .sto-chooser-detail .sc-detail-body p {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .sc-header {
    gap: 10px;
    padding: 16px 14px 15px;
  }

  .sc-header h2 {
    font-size: 21px;
  }

  .sc-body {
    padding: 15px 14px;
  }

  .sc-role {
    padding: 18px;
  }

  .sc-role h3 {
    font-size: 23px;
  }

  .sc-module-label {
    grid-template-columns: 17px 26px minmax(0, 1fr);
    gap: 6px 7px;
    padding: 12px 7px 12px 11px;
  }

  .sc-module-icon,
  .sc-module-icon svg {
    width: 26px;
    height: 26px;
  }

  .sc-module-copy strong {
    font-size: 12px;
  }

  .sc-module-copy p,
  .sc-module-desc {
    font-size: 10px;
  }

  .sc-info {
    width: 25px;
    height: 25px;
    min-height: 25px;
    margin: 12px 8px 0 0;
  }

  .sc-footer {
    padding: 14px 14px 16px;
  }

  .sc-detail-body {
    padding: 16px 14px 19px;
  }
}

@keyframes sc-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  :is(.sto-chooser, .sto-chooser-preview, .sto-chooser-detail),
  :is(.sto-chooser, .sto-chooser-preview, .sto-chooser-detail) *,
  :is(.sto-chooser, .sto-chooser-preview, .sto-chooser-detail) *::before,
  :is(.sto-chooser, .sto-chooser-preview, .sto-chooser-detail) *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .sc-role:not(:disabled):not([aria-disabled="true"]):hover {
    transform: none;
  }
}
