.ts-machine-measure-card {
  --ts-blue: #005baa;
  --ts-blue-dark: #003f7d;
  --ts-orange: #ff6600;
  --ts-ink: #152033;
  --ts-muted: #607086;
  --ts-border: #d8e5f2;
  box-sizing: border-box;
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid var(--ts-border);
  border-radius: 8px;
  background: #fff;
  color: var(--ts-ink);
}

.ts-machine-measure-card *,
.related li.ts-machine-advice-related * {
  box-sizing: border-box;
}

.ts-machine-measure-card[hidden] {
  display: none !important;
}

.ts-machine-measure-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ts-machine-measure-head h2 {
  margin: 0 0 4px;
  color: var(--ts-blue-dark);
  font-size: 20px;
  line-height: 1.25;
}

.ts-machine-measure-head p {
  margin: 0;
  color: var(--ts-muted);
  font-size: 14px;
  line-height: 1.4;
}

.ts-machine-badge {
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 5px;
  background: #eef7ff;
  color: var(--ts-blue-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.ts-machine-measure-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 330px;
  gap: 18px;
  align-items: center;
}

.ts-machine-drawing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 255px;
  border: 1px solid #e5eef8;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.ts-machine-manufacturer-drawing {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 290px;
  padding: 2px;
  object-fit: contain;
  background: #fff;
}

.ts-machine-facts {
  display: grid;
  align-content: center;
  padding: 4px 0;
}

.ts-machine-fact {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid #edf3f9;
}

.ts-machine-fact span,
.ts-machine-fact strong {
  color: var(--ts-muted);
  font-size: 13px;
  line-height: 1.25;
}

.ts-machine-fact span {
  font-weight: 700;
}

.ts-machine-fact span b {
  color: var(--ts-muted);
  font-weight: 900;
}

.ts-machine-fact strong {
  font-weight: 800;
}

.ts-machine-note {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid #edf3f9;
  color: var(--ts-muted);
  font-size: 12px;
  line-height: 1.45;
}

.related li.ts-machine-advice-related {
  border-top: 1px solid #edf3f9;
}

.related li.ts-machine-advice-related > div:not(.right) {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 28px;
}

.related li.ts-machine-advice-related > .right {
  flex: 0 0 112px;
  min-width: 112px;
}

.related li.ts-machine-advice-related .ts-machine-related-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
}

.related li.ts-machine-advice-related .ts-machine-related-button i {
  pointer-events: none;
}

.related li.ts-machine-advice-related > a.nf:first-child {
  flex: 0 0 70px !important;
  width: 70px !important;
  min-width: 70px !important;
  height: 70px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.related li.ts-machine-advice-related > a.nf:first-child img {
  width: auto !important;
  height: auto !important;
  max-width: 70px !important;
  max-height: 70px !important;
  object-fit: contain !important;
}

.related li.ts-machine-advice-related .ts-machine-related-fit {
  margin: 2px 0 0;
  color: var(--ts-blue-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .ts-machine-measure-card {
    margin: 12px 0 16px;
    padding: 13px;
  }

  .ts-machine-measure-head,
  .ts-machine-measure-grid {
    grid-template-columns: 1fr;
  }

  .ts-machine-measure-head {
    display: grid;
    gap: 10px;
  }

  .ts-machine-badge {
    justify-self: flex-start;
  }

  .ts-machine-drawing {
    min-height: 210px;
  }

  .ts-machine-manufacturer-drawing {
    max-height: 250px;
  }

  .ts-machine-fact {
    grid-template-columns: 132px minmax(0, 1fr);
  }
}
