html,
body {
  height: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  background: #398283;
  color: #000000;
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
}

body.is-embedded {
  overflow: hidden;
  background: #c0c0c0;
}

.verify-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.verify-window {
  width: min(500px, 100%);
}

body.is-embedded .verify-shell {
  min-height: 100%;
  height: 100%;
  padding: 0;
  place-items: stretch;
}

body.is-embedded .verify-window {
  width: 100%;
  height: 100%;
  box-shadow: none;
  padding: 0;
}

body.is-embedded .verify-window > .title-bar {
  display: none;
}

body.is-embedded .verify-form {
  height: 100%;
  align-content: start;
  padding: 12px 14px 18px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.verify-form {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 14px;
}

.verify-field {
  display: grid;
  gap: 3px;
}

.verify-field span {
  font-size: 13px;
  line-height: 1.15;
}

.verify-field input {
  width: 100%;
  min-height: 26px;
  padding: 2px 4px;
  font: inherit;
  font-size: 16px;
  line-height: 1.15;
}

.verify-field input[name="code"] {
  text-transform: uppercase;
}

.verify-form button {
  justify-self: end;
  min-height: 24px;
}

.verify-result {
  min-height: 42px;
  display: grid;
  align-items: center;
  padding: 10px;
  background: #ffffff;
  box-shadow:
    inset 1px 1px #000000,
    inset 2px 2px #808080,
    inset -1px -1px #ffffff,
    inset -2px -2px #dfdfdf;
  font-size: 14px;
  line-height: 1.25;
}

@media (max-width: 480px) {
  body.is-embedded .verify-form {
    padding: 12px 14px 18px;
  }

  .verify-form {
    gap: 7px;
  }

  .verify-field input {
    min-height: 26px;
  }

  .verify-result {
    min-height: 102px;
    padding: 10px;
  }
}

@media (max-width: 768px) {
  body.is-embedded .verify-form {
    grid-template-rows: repeat(4, auto) auto 104px;
    align-content: start;
  }

  body.is-embedded .verify-result {
    min-height: 104px;
    height: 104px;
  }
}

.verify-card-canvas {
  display: none;
}

.verify-result--valid {
  color: #005f1f;
}

.verify-result--invalid {
  color: #7b0000;
}
