.ts-configurator {
  --red: #d91518;
  --green: #65c77b;
  --muted: #d7d7da;
  --preview-top-offset: 130px;
  --preview-bottom-gap: 20px;
  --preview-padding: 22px;
  display: block;
  max-width: 1460px;
  margin: 38px auto 80px;
  padding: 0;
  color: #171717;
}
.ts-configurator * {
  box-sizing: border-box;
}
.ts-configurator [hidden] {
  display: none !important;
}
.ts-configurator__visual {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ts-configurator__image-wrap {
  position: sticky;
  top: 130px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.ts-configurator__main-image {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 620px;
  background: #fff;
  object-fit: contain;
}
.ts-configurator__image-placeholder {
  width: min(520px, 90%);
  aspect-ratio: 1.35;
  border-radius: 30px;
  background: linear-gradient(145deg, #f4f4f5, #fff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #c7c7ca;
}
.ts-configurator__image-placeholder span {
  font-size: 54px;
  font-weight: 900;
  letter-spacing: -4px;
}
.ts-configurator__image-placeholder small {
  font-size: 14px;
}
.ts-configurator__workspace {
  min-width: 0;
}
.ts-configurator__header h1 {
  font-size: 42px;
  line-height: 1.08;
  margin: 0 0 14px;
  font-weight: 800;
}
.ts-configurator__header p {
  font-size: 17px;
  line-height: 1.35;
  max-width: 620px;
  margin: 0 0 18px;
}
.ts-configurator__progress {
  display: flex;
  align-items: center;
  margin: 14px 0 24px;
}
.ts-configurator__progress button {
  border: 1px solid transparent;
  border-radius: 20px;
  background: var(--muted);
  color: #fff;
  height: 30px;
  padding: 0 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease;
}
.ts-configurator__progress button.is-current {
  background: #e98789;
}
.ts-configurator__progress button.is-complete {
  background: #b4e5bf;
  cursor: pointer;
}
.ts-configurator__progress button.is-complete:hover,
.ts-configurator__progress button.is-complete.is-current {
  border-color: #86cf96;
  background: #9edcab;
}
.ts-configurator__progress span {
  height: 2px;
  background: #babac0;
  flex: 1;
  min-width: 12px;
}
.ts-configurator__progress button.is-complete + span {
  background: var(--green);
}
.ts-configurator__notice {
  margin: 0 0 16px;
  padding: 15px 18px;
  border-radius: 10px;
  background: #e48789;
  color: #fff;
  font-weight: 700;
}
.ts-configurator__group {
  margin: 0 0 12px;
}
.ts-configurator__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ts-configurator__card {
  position: relative;
  min-height: 166px;
  display: grid;
  grid-template-columns: 36% 64%;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.09);
  overflow: hidden;
  transition:
    border-color 0.18s,
    opacity 0.18s;
}
.ts-configurator__card.selected {
  border-color: var(--green);
}
.ts-configurator__card.error {
  border-color: var(--red);
}
.ts-configurator__card.disabled {
  opacity: 0.5;
  background: #dedee0;
}
.ts-configurator__card-image {
  position: relative;
  height: auto;
  aspect-ratio: 1;
  align-self: start;
  margin: 14px 4px 14px 14px;
  border: 1px solid #e7e7e9;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ts-configurator__card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ts-configurator__card-image > span {
  font-weight: 800;
  color: #c4c4c7;
}
.ts-configurator__card-body {
  padding: 14px 15px 12px;
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.ts-configurator__card-body > small {
  font-size: 10px;
  font-weight: 700;
}
.ts-configurator__card h3 {
  min-height: 0;
  font-size: 15px;
  line-height: 1.08;
  margin: 8px 0 4px;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.ts-configurator__card-body > .ts-configurator__article,
.ts-configurator__choice-info > .ts-configurator__article {
  display: block;
  margin: 0 0 8px;
  color: #777;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.ts-configurator__description {
  min-height: 43px;
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.ts-configurator__card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}
.ts-configurator__card-bottom strong {
  font-size: 14px;
}
.ts-configurator__switch input {
  position: absolute;
  opacity: 0;
}
.ts-configurator__switch span {
  display: block;
  width: 32px;
  height: 19px;
  border-radius: 14px;
  background: #e4e4e7;
  box-shadow: inset 0 0 0 1px #d2d2d5;
  cursor: pointer;
  padding: 2px;
}
.ts-configurator__switch span:after {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.ts-configurator__switch input:checked + span {
  background: var(--green);
}
.ts-configurator__switch input:checked + span:after {
  transform: translateX(13px);
}
.ts-configurator__switch input:disabled + span {
  cursor: not-allowed;
}
.ts-configurator__footer {
  position: sticky;
  bottom: 12px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(185px, 1.15fr) 1fr 1fr;
  gap: 8px;
  margin-top: 24px;
}
.ts-configurator__total,
.ts-configurator__button {
  min-height: 66px;
  border: 0;
  border-radius: 9px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.ts-configurator__total {
  position: relative;
  background: #fff;
  padding: 10px 44px 10px 16px;
  display: flex;
  flex-direction: column;
}
.ts-configurator__total small {
  font-size: 10px;
}
.ts-configurator__total strong {
  font-size: 24px;
}
.ts-configurator__button {
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
.ts-configurator__button--primary {
  background: var(--red);
  color: #fff;
}
.ts-configurator__button--secondary {
  border: 1px solid #d8d8dc;
  background: #fff;
  color: #333;
}
.ts-configurator__button--secondary:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-1px);
}
.ts-configurator__button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.ts-configurator__button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.ts-configurator__summary {
  padding: 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.08);
}
.ts-configurator__summary > h2 {
  margin: 0 0 18px;
}
.ts-configurator__summary-group {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}
.ts-configurator__summary-group h3 {
  font-size: 15px;
  margin: 0 0 5px;
}
.ts-configurator__empty,
.ts-configurator__loader {
  grid-column: 1/-1;
  padding: 32px;
  border-radius: 10px;
  background: #f5f5f6;
  text-align: center;
  color: #777;
}
@media (max-width: 1100px) {
  .ts-configurator {
    grid-template-columns: 1fr;
    max-width: 760px;
  }
  .ts-configurator__visual {
    min-height: 280px;
  }
  .ts-configurator__image-wrap {
    position: static;
  }
  .ts-configurator__main-image {
    max-height: 360px;
  }
  .ts-configurator__image-placeholder {
    max-width: 420px;
  }
  .ts-configurator__header h1 {
    font-size: 34px;
  }
}
@media (max-width: 640px) {
  .ts-configurator {
    padding: 0 14px;
    margin-top: 20px;
    gap: 24px;
  }
  .ts-configurator__visual {
    min-height: 220px;
  }
  .ts-configurator__header h1 {
    font-size: 28px;
  }
  .ts-configurator__progress {
    overflow: auto;
    padding-bottom: 4px;
  }
  .ts-configurator__progress button {
    padding: 0 13px;
  }
  .ts-configurator__progress span {
    min-width: 14px;
  }
  .ts-configurator__cards {
    grid-template-columns: 1fr;
  }
  .ts-configurator__footer {
    grid-template-columns: 1fr 1fr;
    bottom: 6px;
  }
  .ts-configurator__total {
    grid-column: 1/-1;
  }
}
.ts-configurator__main-image {
  width: 100%;
  max-height: 680px;
}
.ts-configurator__image-placeholder {
  width: 100%;
  min-height: 380px;
  aspect-ratio: 1.3;
}
.ts-configurator__image-placeholder span {
  font-size: 64px;
}
@media (max-width: 1100px) {
  .ts-configurator__image-placeholder {
    width: min(620px, 100%);
    min-height: 320px;
  }
  .ts-configurator__main-image {
    width: auto;
    max-width: 100%;
    max-height: 430px;
  }
}
@media (max-width: 640px) {
  .ts-configurator__image-placeholder {
    min-height: 220px;
  }
  .ts-configurator__image-placeholder span {
    font-size: 46px;
  }
}
.ts-configurator__slots {
  display: grid;
  gap: 14px;
}
.ts-configurator__slot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ts-configurator__slot-placeholder,
.ts-configurator__slot-action,
.ts-configurator__slot-card {
  min-height: 166px;
  border-radius: 10px;
}
.ts-configurator__slot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border: 2px dashed #d4d4d8;
  background: #f6f6f7;
  text-align: center;
  color: #777;
}
.ts-configurator__slot-placeholder small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a1a1a5;
}
.ts-configurator__slot-placeholder strong {
  margin: 8px 0 5px;
  font-size: 20px;
  color: #333;
}
.ts-configurator__slot-placeholder span {
  font-size: 11px;
}
.ts-configurator__slot-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  border: 0;
  background: #fff;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.09);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.ts-configurator__slot-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}
.ts-configurator__slot-action span {
  font-size: 11px;
  color: #777;
}
.ts-configurator__slot-action strong {
  max-width: 85%;
  margin-top: 5px;
  font-size: 20px;
  line-height: 1.1;
}
.ts-configurator__slot-action i {
  position: absolute;
  right: 22px;
  font-size: 26px;
  font-style: normal;
  color: var(--red);
}
.ts-configurator__slot-card {
  min-height: 166px;
}
.ts-configurator__slot-row.error .ts-configurator__slot-placeholder,
.ts-configurator__slot-row.error .ts-configurator__slot-card {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.ts-configurator__modal {
  --red: #d91518;
  --green: #65c77b;
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.ts-configurator__modal[hidden] {
  display: none !important;
}
.ts-configurator__modal [hidden] {
  display: none !important;
}
.ts-configurator__modal,
.ts-configurator__modal * {
  box-sizing: border-box;
}
.ts-configurator__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(3px);
}
.ts-configurator__modal-dialog {
  position: relative;
  width: min(940px, 100%);
  max-height: calc(100vh - 60px);
  overflow: auto;
  border-radius: 16px;
  background: #fff;
  padding: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}
.ts-configurator__modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.ts-configurator__modal-header small {
  color: #888;
}
.ts-configurator__modal-header h2 {
  margin: 3px 0 0;
  font-size: 28px;
}
.ts-configurator__modal-header button {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: #f0f0f2;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}
.ts-configurator__modal-header button:hover {
  background: #fee8e8;
  transform: scale(1.04);
}
.ts-configurator__modal-header button:focus-visible,
.ts-configurator__remove-product:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.ts-configurator__modal-header button::before,
.ts-configurator__modal-header button::after,
.ts-configurator__remove-product::before,
.ts-configurator__remove-product::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: #333;
  content: "";
  transition: background-color 0.18s ease;
}
.ts-configurator__modal-header button::before,
.ts-configurator__remove-product::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.ts-configurator__modal-header button::after,
.ts-configurator__remove-product::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.ts-configurator__modal-header button:hover::before,
.ts-configurator__modal-header button:hover::after,
.ts-configurator__remove-product:hover::before,
.ts-configurator__remove-product:hover::after {
  background: var(--red);
}
.ts-configurator__modal-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ts-configurator__choice-card {
  position: relative;
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 16px;
  min-height: 160px;
  padding: 12px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  cursor: pointer;
}
.ts-configurator__choice-card.selected {
  border-color: var(--green);
}
.ts-configurator__choice-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ts-configurator__choice-image {
  display: flex;
  height: 132px;
  align-items: center;
  align-self: start;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e7e7e9;
  border-radius: 9px;
  background: #fff;
  color: #aaa;
}
.ts-configurator__choice-image b {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.ts-configurator__choice-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ts-configurator__choice-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 8px 0;
}
.ts-configurator__choice-info small {
  font-size: 10px;
}
.ts-configurator__choice-info strong {
  min-height: 0;
  margin: 8px 0 4px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.ts-configurator__choice-info em {
  margin-top: auto;
  font-style: normal;
  font-weight: 800;
}
.ts-configurator__choice-card > i {
  position: absolute;
  right: 15px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid #cfead5;
  border-radius: 14px;
  background: #f1faf3;
  font-size: 11px;
  font-style: normal;
  color: #43a359;
  font-weight: 500;
}
.ts-configurator__choice-card > i svg {
  width: 12px;
  height: 9px;
  stroke: currentColor;
}
.ts-configurator-modal-open {
  overflow: hidden;
}
@media (max-width: 700px) {
  .ts-configurator__slot-row {
    grid-template-columns: 1fr;
  }
  .ts-configurator__slot-placeholder,
  .ts-configurator__slot-action,
  .ts-configurator__slot-card {
    min-height: 145px;
  }
  .ts-configurator__modal {
    align-items: center;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    padding: max(12px, env(safe-area-inset-top)) 12px
      max(12px, env(safe-area-inset-bottom));
  }
  .ts-configurator__modal-dialog {
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    margin: 0 auto;
    padding: 18px;
    transform: translateY(-3vh);
  }
  .ts-configurator__modal-products {
    grid-template-columns: 1fr;
  }
  .ts-configurator__choice-card {
    grid-template-columns: 105px 1fr;
    min-height: 135px;
  }
  .ts-configurator__choice-image {
    height: 107px;
  }
  .ts-configurator__modal-header h2 {
    font-size: 23px;
  }
}
.ts-configurator__slot-row.locked .ts-configurator__slot-placeholder,
.ts-configurator__slot-row.locked .ts-configurator__slot-action {
  opacity: 0.48;
}
.ts-configurator__slot-row.locked .ts-configurator__slot-placeholder {
  border-style: solid;
}
.ts-configurator__slot-action:disabled {
  cursor: default;
  transform: none;
  box-shadow: none;
}
.ts-configurator__slot-row.error .ts-configurator__slot-placeholder,
.ts-configurator__slot-row.error .ts-configurator__slot-card {
  box-shadow: none;
}
.ts-configurator__modal-form {
  display: grid;
  gap: 16px;
  padding: 8px 0;
}
.ts-configurator__modal-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}
.ts-configurator__modal-form input[type="text"] {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #d9d9dc;
  border-radius: 9px;
  font-size: 16px;
}
.ts-configurator__modal-form > small {
  color: #777;
}
.ts-configurator__modal-form .ts-configurator__button {
  justify-self: start;
  min-width: 230px;
}
.ts-configurator__slot-placeholder.is-filled {
  border-style: solid;
  border-color: var(--green);
  background: #fff;
}
.ts-configurator__total {
  justify-content: center;
  padding: 10px 16px;
}
.ts-configurator__total small {
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ts-configurator__summary {
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
}
.ts-configurator__summary-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 26px 28px 22px;
  border-bottom: 1px solid #ececef;
}
.ts-configurator__summary-header small {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ts-configurator__summary-header h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}
.ts-configurator__summary-header > span {
  padding: 7px 11px;
  border-radius: 20px;
  background: #f1f1f3;
  color: #666;
  font-size: 11px;
  font-weight: 700;
}
.ts-configurator__summary-sections {
  display: grid !important;
  gap: 0 !important;
  padding: 0 28px;
  border: 0 !important;
}
.ts-configurator__summary-group {
  padding: 22px 0;
  border-bottom: 1px solid #e5e5e7;
}
.ts-configurator__summary-group:last-child {
  border-bottom: 0;
}
.ts-configurator__summary-group > header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.ts-configurator__summary-group > header > span {
  display: flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ededf0;
  color: #777;
  font-size: 11px;
  font-weight: 800;
}
.ts-configurator__summary-group h3 {
  margin: 0;
  font-size: 16px;
}
.ts-configurator__summary-group > header > button {
  margin-left: 2px;
  padding: 2px 8px;
  border: 1px solid #d8d8dc;
  border-radius: 7px;
  background: #fff;
  color: #555;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    color 0.18s ease;
}
.ts-configurator__summary-group > header > button:hover {
  border-color: var(--red);
  color: var(--red);
}
.ts-configurator__summary-group > header > button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.ts-configurator__summary-group .ts-configurator__summary-items {
  display: grid !important;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  gap: 8px !important;
  padding: 0;
  border: 0;
}
.ts-configurator__summary-item {
  display: grid;
  width: 100%;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 8px 12px 8px 8px;
  border: 1px solid #ececef !important;
  border-radius: 10px;
  background: #fff;
}
.ts-configurator__summary-image {
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e7e7e9;
  border-radius: 8px;
  background: #fff;
  color: #bbb;
  font-size: 9px;
}
.ts-configurator__summary-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ts-configurator__summary-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.ts-configurator__summary-info small {
  margin-bottom: 3px;
  color: #888;
  font-size: 9px;
}
.ts-configurator__summary-info strong {
  font-size: 12px;
  line-height: 1.25;
}
.ts-configurator__summary-info em {
  margin-top: 4px;
  color: #777;
  font-size: 10px;
  font-style: normal;
}
.ts-configurator__summary-price {
  padding-left: 14px;
  white-space: nowrap;
  font-size: 14px;
}
.ts-configurator__summary-ready {
  padding: 5px 9px;
  border-radius: 14px;
  background: #e1f5e6;
  color: #43a359;
  font-size: 9px;
  text-transform: uppercase;
}
.ts-configurator__summary-empty {
  width: 100%;
  margin: 0;
  padding: 18px;
  border-radius: 9px;
  background: #f6f6f7;
  color: #888;
  text-align: center;
  font-size: 11px;
}
@media (max-width: 640px) {
  .ts-configurator__summary-header {
    padding: 20px;
  }
  .ts-configurator__summary-sections {
    padding: 0 20px;
  }
  .ts-configurator__summary-header h2 {
    font-size: 25px;
  }
  .ts-configurator__summary-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }
  .ts-configurator__summary-image {
    width: 46px;
    height: 46px;
  }
  .ts-configurator__summary-price,
  .ts-configurator__summary-ready {
    grid-column: 2;
    padding-left: 0;
    justify-self: start;
  }
}
.ts-configurator__slot-selection {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.ts-configurator__slot-selection.is-multiple .ts-configurator__slot-card {
  min-height: 140px;
}
.ts-configurator__engraving-notice {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: center;
  padding: 22px 26px;
  border: 1px solid #dedee2;
  border-radius: 12px;
  background: #fff;
  color: #333;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}
.ts-configurator__slot-action {
  width: 100%;
  align-self: start;
}
.ts-configurator__slot-action small {
  margin-top: 8px;
  color: #777;
  font-size: 10px;
}
.ts-configurator__remove-product {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 7px;
  background: #f1f1f3;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}
.ts-configurator__remove-product::before,
.ts-configurator__remove-product::after {
  width: 11px;
  height: 1.5px;
  background: #777;
}
.ts-configurator__remove-product:hover {
  background: #fee8e8;
  transform: scale(1.06);
}
.ts-configurator__modal-selection {
  position: sticky;
  bottom: -26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 22px -26px -26px;
  padding: 16px 26px;
  background: #fff;
  border-top: 1px solid #e7e7e9;
  box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.06);
}
.ts-configurator__modal-selection > span {
  font-size: 13px;
  font-weight: 700;
}
.ts-configurator__modal-selection .ts-configurator__button {
  min-width: 210px;
  min-height: 52px;
}
.ts-configurator__choice-card.selected > i {
  border-color: #bfe3c7;
  background: #e1f5e6;
}
.ts-configurator__choice-card:disabled {
  opacity: 0.45;
}
@media (max-width: 700px) {
  .ts-configurator__modal-selection {
    bottom: -18px;
    margin: 18px -18px -18px;
    padding: 14px 18px;
    align-items: stretch;
    flex-direction: column;
  }
  .ts-configurator__modal-selection .ts-configurator__button {
    width: 100%;
  }
}

.ts-configurator__slot-row {
  padding: 12px;
  border: 1px solid #ececef;
  border-radius: 16px;
  background: #f5f5f6;
}
.ts-configurator__slot-header {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 4px 0;
}
.ts-configurator__slot-header strong {
  font-size: 13px;
}
.ts-configurator__slot-description {
  grid-column: 1/-1;
  margin: -4px 4px 0;
  color: #777;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}
.ts-configurator__slot-header span {
  padding: 5px 9px;
  border-radius: 14px;
  background: #e7e7e9;
  color: #777;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ts-configurator__slot-row.has-selection .ts-configurator__slot-header span {
  background: #dff3e4;
  color: #3f9c54;
}
.ts-configurator__slot-row.locked {
  background: #f1f1f2;
}
.ts-configurator__slot-row.locked .ts-configurator__slot-header {
  opacity: 0.55;
}
.ts-configurator__slot-row.locked .ts-configurator__slot-header span {
  background: #dedee1;
  color: #888;
}
@media (max-width: 700px) {
  .ts-configurator__slot-row {
    padding: 10px;
  }
  .ts-configurator__slot-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .ts-configurator__slot-header span {
    align-self: flex-start;
  }
}
.ts-configurator__modal-dialog {
  padding: 0;
  overflow: auto;
}
.ts-configurator__modal-header {
  margin: 0;
  padding: 26px 26px 20px;
  background: #fff;
}
.ts-configurator__modal-products {
  padding: 4px 26px 22px;
  background: #f7f7f8;
}
.ts-configurator__modal-selection {
  bottom: 0;
  margin: 0;
  padding: 16px 26px;
}
.ts-configurator__modal-form {
  display: block;
  padding: 0;
}
.ts-configurator__modal-form-content {
  padding: 22px 26px 28px;
  background: #f7f7f8;
}
.ts-configurator__modal-form-content > label {
  display: grid;
  gap: 11px;
  padding: 22px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.07);
  font-weight: 700;
}
.ts-configurator__modal-form-content > label > span {
  font-size: 11px;
}
.ts-configurator__modal-form input[type="text"] {
  height: 56px;
  border-color: #d8d8dc;
  background: #fafafa;
  font-size: 17px;
}
.ts-configurator__modal-form input[type="text"]:focus {
  outline: 0;
  border-color: #aaa;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}
.ts-configurator__modal-form-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 26px;
  border-top: 1px solid #e7e7e9;
  background: #fff;
  box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.04);
}
.ts-configurator__modal-form-footer > span {
  min-width: 0;
  overflow: hidden;
  color: #555;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ts-configurator__modal-form-footer .ts-configurator__button {
  min-width: 210px;
  min-height: 52px;
}
.ts-configurator__result-modal {
  padding: 28px 26px 30px;
  border-top: 1px solid #ededf0;
  background: #f7f7f8;
}
.ts-configurator__result-modal > p {
  max-width: 650px;
  margin: 0;
  color: #555;
  font-size: 16px;
  line-height: 1.55;
}
.ts-configurator__result-modal.is-error > p {
  color: #8e2527;
}
.ts-configurator__result-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.ts-configurator__result-modal-actions .ts-configurator__button {
  min-width: 210px;
  min-height: 52px;
}
@media (max-width: 700px) {
  .ts-configurator__modal-header {
    padding: 20px 18px 16px;
  }
  .ts-configurator__modal-products,
  .ts-configurator__modal-form-content,
  .ts-configurator__result-modal {
    padding: 4px 18px 18px;
  }
  .ts-configurator__modal-selection,
  .ts-configurator__modal-form-footer {
    padding: 14px 18px;
  }
  .ts-configurator__modal-form-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .ts-configurator__modal-form-footer .ts-configurator__button {
    width: 100%;
  }
  .ts-configurator__result-modal-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 20px;
  }
  .ts-configurator__result-modal-actions .ts-configurator__button {
    width: 100%;
  }
}
.ts-configurator__header {
  grid-column: 1/-1;
}
.ts-configurator__header h1 {
  margin-bottom: 12px;
}
.ts-configurator__header p {
  max-width: none;
  margin-bottom: 0;
}
.ts-configurator__visual {
  min-height: 620px;
}
.ts-configurator__main-image {
  width: 100%;
  max-height: 660px;
}
@media (max-width: 1100px) {
  .ts-configurator {
    row-gap: 20px;
  }
  .ts-configurator__header {
    grid-column: 1;
  }
  .ts-configurator__visual {
    min-height: 300px;
  }
}
.ts-configurator__header {
  margin-bottom: 24px;
}
.ts-configurator__body {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  gap: 28px;
  padding: 18px;
  border: 1px solid #e7e7e9;
  border-radius: 22px;
  background: #f5f5f6;
}
.ts-configurator__visual {
  padding: 22px;
  border: 1px solid #ececef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.045);
}
.ts-configurator__image-wrap {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}
.ts-configurator__workspace {
  padding: 4px 0;
}
.ts-configurator__footer {
  bottom: 18px;
}
@media (max-width: 1100px) {
  .ts-configurator__body {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .ts-configurator__visual {
    padding: 16px;
  }
  .ts-configurator__workspace {
    padding: 0;
  }
}
@media (max-width: 640px) {
  .ts-configurator__header {
    margin-bottom: 18px;
  }
  .ts-configurator__body {
    padding: 10px;
    border-radius: 16px;
  }
  .ts-configurator__visual {
    padding: 10px;
    border-radius: 12px;
  }
}
.ts-configurator__footer.is-first-step {
  grid-template-columns: minmax(185px, 1.15fr) 2fr;
}
.ts-configurator__footer.is-first-step [data-role="next"] {
  grid-column: 2;
}
@media (max-width: 640px) {
  .ts-configurator__footer.is-first-step {
    grid-template-columns: 1fr;
  }
  .ts-configurator__footer.is-first-step .ts-configurator__total,
  .ts-configurator__footer.is-first-step [data-role="next"] {
    grid-column: 1;
  }
}
.ts-configurator__preloader {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(2px);
}
.ts-configurator__preloader strong {
  font-size: 12px;
}
.ts-configurator__spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #dedee1;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: ts-configurator-spin 0.72s linear infinite;
}
@keyframes ts-configurator-spin {
  to {
    transform: rotate(360deg);
  }
}
.ts-configurator__choice-description {
  display: block;
  min-height: 43px;
  margin: 0 0 8px;
  color: #666;
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.ts-configurator__progress button:disabled {
  cursor: default;
  opacity: 0.62;
}
.ts-configurator.is-initializing .ts-configurator__workspace {
  visibility: hidden;
}

/* Закрепляем весь блок: высота правой колонки не должна растягивать превью. */
.ts-configurator__visual {
  display: block;
  position: sticky;
  top: var(--preview-top-offset);
  align-self: start;
  min-height: 0;
  padding: var(--preview-padding);
}

.ts-configurator__image-wrap {
  position: static;
}

/* Учитываем шапку сайта, отступ снизу, внутренние отступы и рамку блока. */
.ts-configurator__main-image {
  width: 100%;
  height: auto;
  max-height: calc(100vh - var(--preview-visible-top, var(--preview-top-offset)) - var(--preview-bottom-gap) - 2 * var(--preview-padding) - 2px - var(--characteristics-height, 0px));
  max-height: calc(100dvh - var(--preview-visible-top, var(--preview-top-offset)) - var(--preview-bottom-gap) - 2 * var(--preview-padding) - 2px - var(--characteristics-height, 0px));
}

.ts-configurator__characteristics {
  margin-top: 14px;
  padding: 16px;
  border-radius: 12px;
  background: #f5f5f6;
  max-height: min(240px, 30vh);
  max-height: min(240px, 30dvh);
  overflow: auto;
}
.ts-configurator__characteristics h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.ts-configurator__characteristics-text {
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* База и прозрачные слои используют один холст без обрезки и отдельных смещений. */
.ts-configurator__preview-canvas {
  position: relative;
  width: 100%;
}

.ts-configurator__preview-layers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ts-configurator__preview-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

/* Одна прозрачная заглушка для недостающих слоёв, без блокировки конструктора. */
.ts-configurator__preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  pointer-events: none;
}

/* В одну колонку превью идёт перед товарами и не закрывает их при прокрутке. */
@media (max-width: 1100px) {
  .ts-configurator__visual {
    --preview-padding: 16px;
    position: relative;
    top: auto;
  }

  .ts-configurator__main-image {
    max-height: min(430px, 45vh);
    max-height: min(430px, 45dvh);
  }
}

@media (max-width: 640px) {
  .ts-configurator__visual {
    --preview-padding: 10px;
  }
}

.ts-configurator__characteristics-text p { margin: 0 0 8px; }
.ts-configurator__characteristics-text ul,
.ts-configurator__characteristics-text ol { margin: 0 0 8px; padding-left: 22px; }
.ts-configurator__characteristics-text table { width: 100%; border-collapse: collapse; }
.ts-configurator__characteristics-text th,
.ts-configurator__characteristics-text td { padding: 6px 8px; border: 1px solid #ddd; text-align: left; }

.ts-configurator.ts-configurator--with-beta {
  margin-bottom: 12px;
}
.ts-configurator__beta-note {
  margin-top: 0;
  padding: 16px 20px;
  border-radius: 12px;
  background: #f5f5f6;
  color: #555;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ts-configurator__beta-note p { margin: 0; }
.ts-configurator__beta-note p + p { margin-top: 8px; }
