/* jwt-decoder: layout only. Colours, borders and type live in assets/css/tools.css. */

.jwt-privacy {
  margin: 0 0 var(--space-4);
}

.jwt-textarea {
  min-height: 8rem;
  word-break: break-all;
  resize: vertical;
}

.jwt-warning {
  margin: 0 0 var(--space-3);
  padding: var(--space-2) var(--space-3);
}

.result-box .jwt-primary {
  overflow-wrap: anywhere;
}

.jwt-status {
  margin: var(--space-1) 0 0;
}

.jwt-parts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media (min-width: 900px) {
  .jwt-parts {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }
}

.jwt-part {
  min-width: 0;
}

.jwt-part-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-1);
}

.jwt-json {
  max-height: 24rem;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.jwt-times-wrapper {
  margin-top: var(--space-4);
}

.jwt-times {
  table-layout: fixed;
}

.jwt-times th:first-child {
  width: 34%;
}

.jwt-times th,
.jwt-times td {
  padding: var(--space-2) var(--space-3);
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}

.jwt-time-utc,
.jwt-time-local {
  display: block;
  overflow-wrap: anywhere;
}

.jwt-verify {
  margin-top: var(--space-6);
  padding: var(--space-4);
}

.jwt-verify-title {
  margin: 0 0 var(--space-1);
}

.jwt-verify-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  margin: var(--space-3) 0;
}

@media (min-width: 640px) {
  .jwt-verify-fields {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

.jwt-verify-result {
  margin: var(--space-3) 0 0;
}

.jwt-verify-result:empty {
  display: none;
}

.worked-example-inputs,
.worked-example-steps,
.worked-example-result {
  overflow-wrap: anywhere;
}
