html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

html,
body {
  font: 16px/32px sans-serif;
  color: #000;
  background-color: #ffffff;
}

.container {
  min-height: 25rem;
  background-color: #f7f7f7
}

.threeds .threeds__field {
  border-bottom: 1px solid #cccccc;
  margin-bottom: .5rem;
  height: 2.75rem;
  width: 30rem;
  display: flex;
  background-color: white;
}

.threeds .threeds__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7rem 7rem;
  gap: 0.5rem;
  align-items: end;
  width: 100%;
  max-width: 78rem;
}

.threeds .threeds__form .threeds__field--label {
  grid-column: 1 / -1;
  margin-top: 0;
}

.threeds .threeds__form .threeds__field--url {
  width: 100%;
  margin-bottom: 0;
}

.threeds .threeds__form .threeds__field--url input {
  min-width: 0;
  width: 100%;
}

.threeds__field--label {
  font-size: 0.675rem;
  color: rgb(0, 0, 0);
  line-height: .8rem;
  margin-top: 1rem;
  margin-right: .5rem;
  padding-right: .5rem;
  letter-spacing: 1px;
}

.threeds .threeds__form .threeds__submit:focus,
.threeds .threeds__form .threeds__submit:hover,
.threeds .threeds__form .threeds__clear:focus,
.threeds .threeds__form .threeds__clear:hover {
  background-color: #ccc;
  color: #000;
}

.threeds {
  min-height: 18rem;
  padding: 1rem 1.5rem 1rem 1.5rem;
  margin: 0.5rem auto;
  width: auto;
}

.threeds .threeds__form .threeds__submit {
  background: transparent;
  cursor: pointer;
  width: 7rem;
  height: 2.75rem;
  background-color: rgb(0, 0, 0);
  outline: 0;
  border: 0;
  color: #ffffff;
  outline: 0;
  font-size: 1rem;
  line-height: 1.5rem;
  padding: .5rem 0;
  transition: background 0.3s ease;
}

.threeds .threeds__form .threeds__clear {
  width: 7rem;
  height: 2.75rem;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  cursor: pointer;
  font: inherit;
  line-height: 1.5rem;
  transition: background 0.3s ease;
}

.threeds__challenge {
  margin-top: 1.5rem;
}

.threeds__challenge iframe {
  display: block;
  max-width: 100%;
}

.threeds__challenge-content {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.threeds__message-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  height: 400px;
  padding: 0.75rem;
  border: 1px solid #cccccc;
  background-color: #ffffff;
}

.threeds__message-heading {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.threeds__message-heading h5 {
  margin: 0;
}

.threeds__copy {
  display: grid;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  place-items: center;
  padding: 0.375rem;
  border: 1px solid #888;
  background: #fff;
  color: #222;
  cursor: pointer;
}

.threeds__copy svg {
  display: block;
  width: 1rem;
  height: 1rem;
}

.threeds__copy:hover,
.threeds__copy:focus-visible {
  background: #eee;
  outline: 2px solid #1458a6;
  outline-offset: 1px;
}

.threeds__copy--copied {
  border-color: #176b43;
  color: #176b43;
}

.threeds__copy--failed {
  border-color: #a12622;
  color: #a12622;
}

.threeds__message-log {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0.25rem;
  overflow-y: auto;
  list-style: none;
}

.threeds__message-entry {
  min-width: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #ddd;
}

.threeds__message-entry:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.threeds__message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  color: #555;
  font-size: 0.75rem;
  line-height: 1.25rem;
  overflow-wrap: anywhere;
}

.threeds__message-time {
  color: #666;
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.threeds__message-direction {
  font-weight: 700;
}

.threeds__message-entry--received .threeds__message-direction {
  color: #1458a6;
}

.threeds__message-entry--sent .threeds__message-direction {
  color: #176b43;
}

.threeds__message-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.125rem;
  padding: 0 0.375rem;
  border: 1px solid #e0b400;
  border-radius: 999px;
  background-color: #fff2b3;
  color: #493900;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1rem;
  white-space: nowrap;
}

.threeds__message-badge--automatic {
  border-color: #a8cdb7;
  background-color: #e7f3eb;
  color: #174b30;
}

.threeds__message-entry pre {
  max-height: 14rem;
  margin: 0.25rem 0 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 0.8125rem/1.25rem monospace;
}

.threeds__field input {
  border: none;
  width: 100%;
}

@media screen and (max-width: 600px) {
  .threeds .threeds__form {
    grid-template-columns: minmax(0, 1fr) 6rem 6rem;
  }

  .threeds .threeds__form .threeds__submit,
  .threeds .threeds__form .threeds__clear {
    width: 100%;
  }
}

@media screen and (max-width: 850px) {
  .threeds__challenge-content {
    grid-template-columns: minmax(0, 1fr);
  }
}


