.mod-live-demo {
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: .75rem;
  margin-bottom: 1rem;
  padding: 1.25rem;
  max-width: 42rem;
  background: #f9a42c61;
}

.mod-live-demo__title {
  margin-top: 0;
  font-weight: 800;
}

.mod-live-demo__status {
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: .5rem;
  background: rgba(0, 0, 0, .06);
}

.mod-live-demo__status > * {
  position: relative;
  z-index: 1;
}

.mod-live-demo__status--loading::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  content: "";
  background: rgba(37, 99, 235, .18);
  transform: scaleX(0);
  transform-origin: left center;
  animation: mod-live-demo-status-progress 14s linear forwards;
}

.mod-live-demo__status--error {
  background: rgba(176, 0, 32, .1);
}

.mod-live-demo__result {
  margin-top: 1rem;
}

.mod-live-demo__success {
  margin-bottom: 1rem;
  font-weight: 600;
}

.mod-live-demo__actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin: .75rem 0;
}

.mod-live-demo__credentials {
  display: grid;
  gap: .5rem;
  margin: 1rem 0;
}

.mod-live-demo__credentials > div {
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr);
  gap: .75rem;
  align-items: center;
}

.mod-live-demo__credentials dt {
  font-weight: 600;
}

.mod-live-demo__credentials dd {
  margin: 0;
}

.mod-live-demo__credential-value {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  max-width: 100%;
}

.mod-live-demo__credentials code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: .25rem .4rem;
  border-radius: .25rem;
  background: rgba(0, 0, 0, .06);
}

.mod-live-demo__copy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: .25rem;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.mod-live-demo__copy-icon:hover,
.mod-live-demo__copy-icon:focus {
  background: rgba(0, 0, 0, .08);
}

.mod-live-demo__status--loading {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.mod-live-demo__note {
  margin-top: 1rem;
  font-size: .925rem;
  opacity: .85;
}

.mod-live-demo__countdown {
  margin-top: 1rem;
  font-weight: 600;
}

@keyframes mod-live-demo-status-progress {
  to {
    transform: scaleX(1);
  }
}
