.kzto-calculator {
  --kzto-aqua: #43b7ca;
  --kzto-aqua-dark: #2198ad;
  --kzto-border: #e1e1e1;
  --kzto-muted: #8d8d8d;
  --kzto-text: #111111;
  --kzto-soft: #f7f7f7;
  color: var(--kzto-text);
  font: inherit;
  margin: 0 0 28px;
}

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

.kzto-calculator *,
.kzto-calculator *::before,
.kzto-calculator *::after {
  box-sizing: border-box;
}

.kzto-calculator__tabs {
  align-items: end;
  border-bottom: 1px solid #eeeeee;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 26px;
  text-align: center;
}

.kzto-calculator__tabs span,
.kzto-calculator__tabs strong {
  color: #8f8f8f;
  display: block;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  padding: 23px 12px 18px;
}

.kzto-calculator__tabs strong {
  border-bottom: 2px solid var(--kzto-aqua);
  color: #000000;
  margin-bottom: -1px;
}

.kzto-calculator__intro {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 42px;
}

.kzto-calculator__intro p {
  margin: 0 0 14px;
}

.kzto-calculator__filters {
  display: grid;
  gap: clamp(28px, 4vw, 58px);
  grid-template-columns: minmax(0, 1fr);
  margin-top: 16px;
}

.kzto-calculator__filter-column h3,
.kzto-calculator__table-title h3 {
  color: #000000;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 22px;
}

.kzto-calculator__thermal p {
  font-size: 14px;
  font-style: italic;
  line-height: 1.35;
  margin: 0 0 12px;
}

.kzto-calculator__thermal p + .kzto-param-row {
  margin-bottom: 34px;
}

.kzto-param-row {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(210px, 300px) minmax(210px, 244px);
  margin: 10px 0;
}

.kzto-param-row > span:first-child {
  color: #000000;
  font-size: 14px;
  line-height: 1.35;
}

.kzto-param-row input,
.kzto-param-row select {
  appearance: none;
  background-color: #fbfbfb;
  border: 1px solid var(--kzto-border);
  border-radius: 0;
  color: #6c6c6c;
  font: inherit;
  font-size: 14px;
  height: 40px;
  line-height: 1.2;
  padding: 8px 20px;
  width: 100%;
}

.kzto-param-row select {
  background-image:
    linear-gradient(45deg, transparent 50%, #c7c7c7 50%),
    linear-gradient(135deg, #c7c7c7 50%, transparent 50%);
  background-position:
    calc(100% - 24px) 17px,
    calc(100% - 18px) 17px;
  background-repeat: no-repeat;
  background-size: 7px 7px;
  padding-right: 42px;
}

.kzto-param-row input:focus,
.kzto-param-row select:focus {
  border-color: var(--kzto-aqua);
  outline: none;
}

.kzto-param-row--range {
  align-items: start;
  margin-top: 24px;
}

.kzto-length-range {
  --kzto-range-left: 0%;
  --kzto-range-right: 0%;
  max-width: 255px;
  padding-top: 4px;
  width: 100%;
}

.kzto-length-range__control {
  height: 24px;
  position: relative;
}

.kzto-length-range__control::before,
.kzto-length-range__control::after {
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
  top: 9px;
}

.kzto-length-range__control::before {
  background: #dceaf4;
}

.kzto-length-range__control::after {
  background: #8ebedf;
  left: var(--kzto-range-left);
  right: var(--kzto-range-right);
}

.kzto-length-range input[type="range"] {
  appearance: none;
  background: transparent;
  border: 0;
  height: 24px;
  left: 0;
  padding: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 2;
}

.kzto-length-range input[type="range"]::-webkit-slider-runnable-track {
  background: transparent;
  height: 6px;
}

.kzto-length-range input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  background: #d8ecfb;
  border: 1px solid #aad2ed;
  cursor: pointer;
  height: 14px;
  margin-top: -4px;
  pointer-events: auto;
  width: 14px;
}

.kzto-length-range input[type="range"]::-moz-range-track {
  background: transparent;
  height: 6px;
}

.kzto-length-range input[type="range"]::-moz-range-thumb {
  background: #d8ecfb;
  border: 1px solid #aad2ed;
  border-radius: 0;
  cursor: pointer;
  height: 14px;
  pointer-events: auto;
  width: 14px;
}

.kzto-length-range__values {
  color: #000000;
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  line-height: 1.2;
  margin-top: 4px;
}

.kzto-input-with-info {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 24px;
}

.kzto-input-with-info input {
  min-width: 0;
}

.kzto-input-with-info i,
.kzto-calculator__table-title i {
  align-items: center;
  border: 2px solid #e3e3e3;
  border-radius: 50%;
  color: #d0d0d0;
  display: inline-flex;
  font-size: 14px;
  font-style: italic;
  font-weight: 700;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.kzto-reset,
.kzto-load-more,
.kzto-add,
.kzto-copy {
  align-items: center;
  background: var(--kzto-aqua);
  border: 0;
  border-radius: 0;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 40px;
  padding: 10px 18px;
}

.kzto-reset {
  background: transparent;
  color: var(--kzto-aqua-dark);
  justify-self: end;
  margin-top: 4px;
  padding-inline: 0;
}

.kzto-reset:hover {
  color: #000000;
}

.kzto-load-more:hover,
.kzto-add:hover,
.kzto-copy:hover {
  background: var(--kzto-aqua-dark);
}

.kzto-add {
  min-width: 0;
  padding-inline: 8px;
  white-space: nowrap;
}

.kzto-link-button {
  background: transparent;
  border: 0;
  color: var(--kzto-aqua-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
}

.kzto-calculator__summary {
  background: #ffffff;
  border: 1px solid var(--kzto-border);
  margin-top: 28px;
  padding: 14px;
}

.kzto-calculator__summary-head,
.kzto-calculator__summary-total,
.kzto-calculator__summary-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.kzto-calculator__summary-head span,
.kzto-calculator__summary-actions span {
  color: var(--kzto-muted);
  font-size: 13px;
  font-weight: 600;
}

.kzto-calculator__summary-head span {
  display: block;
  margin-top: 2px;
}

.kzto-cart {
  border-bottom: 1px solid var(--kzto-border);
  border-top: 1px solid var(--kzto-border);
  margin: 12px 0;
}

.kzto-cart__item {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) auto minmax(120px, auto) auto;
  padding: 10px 0;
}

.kzto-cart__item + .kzto-cart__item {
  border-top: 1px solid var(--kzto-border);
}

.kzto-cart__main {
  min-width: 0;
}

.kzto-cart__main strong,
.kzto-cart__main span {
  display: block;
}

.kzto-cart__main span {
  color: var(--kzto-muted);
  font-size: 12px;
  margin-top: 3px;
}

.kzto-cart__qty {
  align-items: center;
  display: grid;
  grid-template-columns: 34px 58px 34px;
}

.kzto-cart__qty button,
.kzto-cart__remove {
  align-items: center;
  background: var(--kzto-soft);
  border: 1px solid var(--kzto-border);
  color: var(--kzto-text);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.kzto-cart__qty input,
.kzto-row-qty {
  appearance: textfield;
  border: 1px solid var(--kzto-border);
  color: var(--kzto-text);
  font: inherit;
  font-weight: 700;
  height: 34px;
  text-align: center;
}

.kzto-cart__qty input {
  border-left: 0;
  border-right: 0;
  width: 58px;
}

.kzto-row-qty {
  width: 44px;
}

.kzto-cart__sum {
  text-align: right;
  white-space: nowrap;
}

.kzto-calculator__summary-total {
  font-size: 18px;
  font-weight: 800;
}

.kzto-calculator__summary-actions {
  justify-content: flex-start;
  margin-top: 12px;
}

.kzto-calculator__table-title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 38px 0 26px;
}

.kzto-calculator__table-title h3 {
  margin: 0;
}

.kzto-calculator__table-title span {
  color: var(--kzto-muted);
  font-size: 14px;
  margin-left: auto;
}

.kzto-calculator__table-wrap {
  margin-top: 0;
  overflow-x: auto;
}

.kzto-table {
  background: #ffffff;
  border-collapse: collapse;
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.kzto-table th,
.kzto-table td {
  border: 0;
  padding: 13px 20px;
  text-align: left;
  vertical-align: top;
  word-break: normal;
}

.kzto-table th {
  background: var(--kzto-aqua);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.kzto-table td {
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  color: #222222;
  font-size: 13px;
  line-height: 1.35;
}

.kzto-table tr:nth-child(odd) td {
  background: #f5f5f5;
}

.kzto-table__row {
  cursor: pointer;
}

.kzto-table__row:hover td,
.kzto-table__row--selected td {
  background: #e9f7fa !important;
}

.kzto-table__row--selected td:first-child {
  box-shadow: inset 4px 0 0 var(--kzto-aqua);
}

.kzto-table td:first-child {
  width: 13%;
}

.kzto-table td:first-child strong {
  display: block;
  font-weight: 400;
}

.kzto-table td:first-child span {
  color: var(--kzto-muted);
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.kzto-rule-badge {
  border: 1px solid #d7b85d;
  color: #7a5a00;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 7px;
  padding: 4px 7px;
}

.kzto-rule-badge--fallback {
  background: #fff8df;
}

.kzto-table td:nth-child(n + 2):nth-child(-n + 11),
.kzto-table th:nth-child(n + 2):nth-child(-n + 11) {
  white-space: normal;
}

.kzto-table td:nth-child(11),
.kzto-table th:nth-child(11) {
  text-align: right;
}

.kzto-table th:nth-child(2),
.kzto-table td:nth-child(2) {
  width: 10%;
}

.kzto-table th:nth-child(3),
.kzto-table td:nth-child(3) {
  width: 10%;
}

.kzto-table th:nth-child(4),
.kzto-table td:nth-child(4) {
  width: 8%;
}

.kzto-table th:nth-child(5),
.kzto-table td:nth-child(5) {
  width: 14%;
}

.kzto-table th:nth-child(6),
.kzto-table td:nth-child(6),
.kzto-table th:nth-child(7),
.kzto-table td:nth-child(7),
.kzto-table th:nth-child(8),
.kzto-table td:nth-child(8),
.kzto-table th:nth-child(9),
.kzto-table td:nth-child(9) {
  width: 7%;
}

.kzto-table th:nth-child(10),
.kzto-table td:nth-child(10) {
  width: 10%;
}

.kzto-table th:nth-child(11),
.kzto-table td:nth-child(11) {
  width: 7%;
}

.kzto-calculator__actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.kzto-calculator__empty,
.kzto-calculator__error,
.kzto-calculator__loading {
  background: var(--kzto-soft);
  border: 1px solid var(--kzto-border);
  margin-top: 14px;
  padding: 18px;
  text-align: center;
}

.kzto-configurator {
  margin-top: 38px;
}

.kzto-configurator__grid {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.98fr);
}

.kzto-configurator h3 {
  color: #000000;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 26px;
}

.kzto-configurator h3:not(:first-child) {
  margin-top: 28px;
}

.kzto-configurator__notice {
  background: #fff8df;
  border: 1px solid #d7b85d;
  color: #4f3b00;
  font-size: 13px;
  line-height: 1.45;
  margin: -12px 0 18px;
  padding: 12px 14px;
}

.kzto-config-row {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(210px, 1fr) minmax(240px, 282px);
  margin: 10px 0;
}

.kzto-config-row > span:first-child {
  color: #000000;
  font-size: 14px;
  line-height: 1.35;
}

.kzto-config-row select,
.kzto-config-row input,
.kzto-config-row strong {
  background: #fbfbfb;
  border: 1px solid var(--kzto-border);
  color: #111111;
  display: block;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  min-height: 45px;
  padding: 12px 20px;
  width: 100%;
}

.kzto-config-row select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #c7c7c7 50%),
    linear-gradient(135deg, #c7c7c7 50%, transparent 50%);
  background-position:
    calc(100% - 24px) 19px,
    calc(100% - 18px) 19px;
  background-repeat: no-repeat;
  background-size: 7px 7px;
  padding-right: 42px;
}

.kzto-config-row input {
  appearance: textfield;
}

.kzto-config-row strong {
  border-radius: 999px;
}

.kzto-kit {
  border: 1px solid var(--kzto-border);
  display: grid;
  gap: 10px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  max-width: 520px;
  padding: 16px;
}

.kzto-kit__mark {
  align-items: center;
  background: var(--kzto-aqua);
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.kzto-kit strong,
.kzto-kit span:last-child {
  font-size: 14px;
  line-height: 1.35;
}

.kzto-kit--empty {
  color: var(--kzto-muted);
  display: block;
}

.kzto-addon-tabs {
  border: 1px solid var(--kzto-border);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 540px;
}

.kzto-addon-tabs button {
  background: #ffffff;
  border: 0;
  color: #111111;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  min-height: 50px;
}

.kzto-addon-tabs button.is-active {
  background: var(--kzto-aqua);
  color: #ffffff;
}

.kzto-addon-hint {
  color: var(--kzto-muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 10px 0 8px;
  max-width: 540px;
}

.kzto-addon-groups {
  max-width: 540px;
}

.kzto-addon-group {
  border-bottom: 1px solid #cccccc;
}

.kzto-addon-group > button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #000000;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 16px;
  gap: 38px;
  min-height: 36px;
  padding: 0;
  text-align: left;
  width: 100%;
}

.kzto-addon-group > button span {
  align-items: center;
  background: #f2f2f2;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.kzto-addon-group__items {
  display: grid;
  gap: 8px;
  padding: 10px 0 14px 62px;
}

.kzto-addon-item {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px minmax(0, 1fr) auto;
}

.kzto-addon-item input {
  margin-top: 2px;
}

.kzto-addon-item span,
.kzto-addon-item strong,
.kzto-addon-empty {
  font-size: 13px;
  line-height: 1.35;
}

.kzto-addon-item small {
  color: var(--kzto-muted);
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
}

.kzto-addon-empty {
  color: var(--kzto-muted);
}

.kzto-spec-table {
  border-collapse: collapse;
  width: 100%;
}

.kzto-spec-table td {
  border: 0;
  color: #222222;
  font-size: 14px;
  line-height: 1.35;
  padding: 13px 22px;
  vertical-align: top;
}

.kzto-spec-table tr:nth-child(odd) td {
  background: #eeeeee;
}

.kzto-spec-table tr:nth-child(even) td {
  background: #ffffff;
}

.kzto-spec-table td:first-child {
  width: 50%;
}

.kzto-configurator__price-row {
  align-items: center;
  background: #ffffff;
  border: 1px solid #eeeeee;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 0;
  padding: 28px 24px;
}

.kzto-configurator__price-row span {
  color: #000000;
  font-size: 20px;
}

.kzto-configurator__price-row strong {
  color: #000000;
  font-size: 30px;
  white-space: nowrap;
}

.kzto-selected-product {
  border: 3px solid var(--kzto-aqua);
  margin-top: 38px;
  padding: 34px 24px 30px;
}

.kzto-selected-product h3 {
  margin-bottom: 22px;
}

.kzto-selected-product__line {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 6px 0;
}

.kzto-selected-product__line span {
  border-bottom: 1px dotted #bdbdbd;
  font-size: 14px;
  line-height: 1.35;
}

.kzto-selected-product__line strong {
  font-size: 16px;
  white-space: nowrap;
}

.kzto-selected-product__qty {
  align-items: center;
  display: flex;
  gap: 0;
  margin-top: 16px;
}

.kzto-selected-product__qty span {
  margin-right: 22px;
}

.kzto-selected-product__qty button,
.kzto-selected-product__qty strong {
  align-items: center;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  width: 48px;
}

.kzto-selected-product__qty button {
  background: var(--kzto-aqua);
  border: 0;
  color: #ffffff;
  cursor: pointer;
}

.kzto-selected-product__qty strong {
  background: #ffffff;
  border: 1px solid var(--kzto-border);
}

.kzto-configurator__price-row--total {
  border-top: 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.kzto-configurator__actions {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-top: 30px;
}

.kzto-order {
  background: #d82b6b;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  min-height: 52px;
  min-width: 170px;
  padding: 12px 28px;
  text-transform: uppercase;
}

.kzto-order:disabled {
  cursor: wait;
  opacity: 0.65;
}

.kzto-configurator__actions span {
  color: var(--kzto-muted);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .kzto-calculator__filters {
    gap: 32px;
    grid-template-columns: 1fr;
  }

  .kzto-param-row {
    grid-template-columns: minmax(180px, 300px) minmax(210px, 280px);
  }

  .kzto-configurator__grid {
    grid-template-columns: 1fr;
  }

  .kzto-config-row {
    grid-template-columns: minmax(180px, 300px) minmax(210px, 280px);
  }
}

@media (min-width: 1180px) {
  .kzto-calculator__filter-column h3 {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .kzto-calculator__tabs span,
  .kzto-calculator__tabs strong {
    font-size: 15px;
    padding: 16px 6px 12px;
  }

  .kzto-calculator__intro {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 28px;
  }

  .kzto-param-row {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .kzto-config-row {
    align-items: start;
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .kzto-length-range {
    max-width: none;
  }

  .kzto-addon-group__items {
    padding-left: 0;
  }

  .kzto-addon-item,
  .kzto-selected-product__line,
  .kzto-configurator__price-row {
    grid-template-columns: 1fr;
  }

  .kzto-configurator__price-row strong {
    font-size: 26px;
  }

  .kzto-selected-product {
    padding: 24px 16px;
  }

  .kzto-calculator__table-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .kzto-calculator__table-title span {
    margin-left: 0;
  }

  .kzto-table {
    min-width: 1180px;
    table-layout: fixed;
    width: 100%;
  }

  .kzto-cart__item {
    align-items: start;
    grid-template-columns: 1fr auto;
  }

  .kzto-cart__qty,
  .kzto-cart__sum {
    grid-column: 1 / 2;
  }

  .kzto-cart__remove {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .kzto-calculator__summary-head,
  .kzto-calculator__summary-total,
  .kzto-calculator__summary-actions {
    align-items: flex-start;
    flex-direction: column;
  }

}
