* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 100vh;
  background-color: #fcfcfc;
  color: #333;
}

.application-wrapper {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.application-content {
  margin: 8rem auto;
  max-width: 60rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
}

.brand-section {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 2rem;
  margin-right: 0.5rem;
}

.site-domain {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 3.75rem;
}

.message-section {
  font-size: 1.5rem;
  line-height: 2.25rem;
  margin-bottom: 2rem;
  min-height: 2rem;
  font-weight: 550;
  padding-top: 2px;
}

.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lds-ring {
  display: inline-block;
  position: relative;
  height: 1.875rem;
  width: 1.875rem;
}

.lds-ring div {
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border: 0.3rem solid transparent;
  border-radius: 50%;
  border-top-color: #313131;
  box-sizing: border-box;
  display: block;
  position: absolute;
  height: 1.875rem;
  width: 1.875rem;
}

.lds-ring div:first-child {
  animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (prefers-color-scheme: dark) {
  body .lds-ring div {
    border-color: #676767 transparent transparent;
  }
}

.interaction-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
  height: 74px;
  background-color: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 10px;
  overflow: hidden;
  transition: width 0.5s ease-in-out, height 0.5s ease-in-out, opacity 0.3s;
  opacity: 0;
}

.interaction-inner {
  display: flex;
  align-items: center;
  width: 100%;
}

.action-control {
  width: 30px;
  height: 28px;
  margin-left: 3px;
  margin-right: 12px;
  position: relative;
}

#loader-icon {
  width: 40px;
  height: 40px;
  animation: rotate 4s linear infinite;
  margin-top: -4px;
  fill: green;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.action-button {
  width: 100%;
  height: 100%;
  background-color: #fff;
  border-radius: 2px;
  border: 2px solid #888;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}

.action-button.checked {
  border-color: #4285f4;
  background-color: #4285f4;
  position: relative;
}

.action-button.checked::after {
  content: "\f00c";
  font-family: "FontAwesome";
  color: #fff;
  font-size: 18px;
  position: absolute;
  top: -2px;
  left: 2px;
}

.processing-spinner {
  visibility: hidden;
  position: relative;
}

.status-text {
  color: rgb(78, 78, 78);
}

.status-text p {
  margin: 0 !important;
}

.brand-legal {
  font-size: 8px;
  text-align: right;
  margin-left: auto;
}

.brand-legal img {
  width: 67px;
  height: 23px;
  margin-bottom: 5px;
}

.brand-legal p {
  text-decoration: underline;
}

.instruction-panel {
  font-family: Roboto, helvetica, arial, sans-serif;
  opacity: 0;
  visibility: hidden;
  width: 100%;
  height: 0;
  transition: opacity 0.5s, height 0.5s;
  border-top: 1px solid #797979;
  padding-top: 3px;
  margin-top: 15px;
}

.instruction-panel.active {
  opacity: 1;
  visibility: visible;
  height: auto;
  display: block;
}

.instruction-header {
  background-color: #e85d1a;
  padding: 10px 16px;
  color: #fff;
  font-size: 14px;
  border-radius: 0;
}

.instruction-content {
  padding: 16px;
  font-size: 14px;
  color: #333;
}

.instruction-content p:first-of-type {
  font-size: 18px;
  margin-bottom: 15px;
}

.instruction-content ol {
  padding-left: 20px;
}

.instruction-content ol li {
  margin-bottom: 10px;
}

.instruction-content code {
  display: block;
  margin-top: 10px;
  background-color: #f9f9f9;
  padding: 10px;
  font-size: 12px;
  border: 1px solid #ddd;
}

.instruction-content .confirmation-note {
  padding-top: 10px;
}

.instruction-content .confirmation-note code {
  background: none;
  border: 1px solid #797979;
  width: 432px;
  color: #d9d9d9;
}

.instruction-footer {
  background-color: #f2f2f2;
  padding: 16px;
  text-align: right;
}

.footer-actions {
  background: none;
}

.footer-message {
  width: 286px;
  float: left;
  text-align: left;
  font-size: 15px;
}

.action-submit-button {
  background: #5e5e5e;
  padding: 9px 38px;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.action-submit-button:hover {
  background: #4a4a4a;
}

.page-footer {
  font-size: 0.75rem;
  line-height: 1.125rem;
  margin: 0 auto;
  max-width: 60rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
}

.footer-content {
  border-top: 1px solid #d9d9d9;
  padding-bottom: 1rem;
  padding-top: 1rem;
  text-align: center;
}

.footer-content > div:first-child {
  margin-bottom: 5px;
}

.footer-content code {
  font-family: monospace;
}

.security-notice {
  font-size: 1.5rem;
  line-height: 2.25rem;
  padding-top: 33px;
}

.phase-0,
.phase-1,
.phase-2,
.phase-3 {
  display: none;
}

.phase-0.active,
.phase-1.active,
.phase-2.active,
.phase-3.active {
  display: block;
}

.completion-icon {
  width: 30px;
  height: 30px;
}

.completion-icon circle {
  fill: #28a745;
}

.completion-icon path {
  stroke: white;
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
