.krp-tooth-timeline {
  width: 100%;
  color: #858585;
}

.krp-tooth-timeline__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin: 0 0 12px;
  font-size: 15px;
}

.krp-tooth-timeline__status strong {
  color: #555;
  font-weight: 600;
}

.krp-tooth-timeline__replay,
.krp-tooth-timeline__button {
  appearance: none;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  color: #555;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.krp-tooth-timeline__replay {
  padding: 7px 12px;
  font-size: 14px;
}

.krp-tooth-timeline__image {
  display: block;
  width: 100%;
  height: auto;
}

.krp-tooth-timeline__layer {
  opacity: 0;
  transition: opacity .38s ease;
}

.krp-tooth-timeline__layer.is-visible {
  opacity: 1;
}

.krp-tooth-timeline__controls {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  margin-top: 6px;
}

.krp-tooth-timeline__label {
  display: block;
  margin-top: 2px;
  text-align: center;
  font-size: 15px;
}

.krp-tooth-timeline__button {
  min-width: 0;
  padding: 9px 4px;
  text-align: center;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .22);
}

.krp-tooth-timeline__button[data-stage-button="0"] {
  border-color: #f2bc2e;
  background: #f2bc2e;
}

.krp-tooth-timeline__button[data-stage-button="1"] {
  border-color: #ed8b00;
  background: #ed8b00;
}

.krp-tooth-timeline__button[data-stage-button="2"] {
  border-color: #dc005b;
  background: #dc005b;
}

.krp-tooth-timeline__button[data-stage-button="3"] {
  border-color: #72a62d;
  background: #72a62d;
}

.krp-tooth-timeline__button[data-stage-button="4"] {
  border-color: #91a9d3;
  background: #91a9d3;
}

.krp-tooth-timeline__button[data-stage-button="5"] {
  border-color: #087fbd;
  background: #087fbd;
}

.krp-tooth-timeline__button:hover,
.krp-tooth-timeline__button:focus-visible,
.krp-tooth-timeline__replay:hover,
.krp-tooth-timeline__replay:focus-visible {
  border-color: #253174;
  outline: none;
}

.krp-tooth-timeline__button:hover,
.krp-tooth-timeline__button:focus-visible {
  filter: brightness(.94);
}

.krp-tooth-timeline__button.is-active {
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 0 3px #253174, inset 0 0 0 1px rgba(255, 255, 255, .8);
}

@media (max-width: 680px) {
  .krp-tooth-timeline__controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .krp-tooth-timeline__layer {
    transition: none;
  }
}
