
.app {
  --screenOffset: 1rem;

  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2000;
  flex: 0 0 auto;
  width: calc(57.5rem + var(--screenOffset) * 2);
  max-width: 100vw;
  height: calc(52.5rem + var(--screenOffset) * 2);
  max-height: 100vh;
  padding: var(--screenOffset);
  transform: translate(-50%, -50%);
}

.app-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
}

main {
  position: relative;
  height: 100%;
  padding: 7.5rem 7.5rem 4rem;
  overflow-y: auto;
  background: #fff;
}

.title-container {
  display: flex;
  align-items: center;
  margin: 0 auto 2.5rem;
}

section > * {
  margin-bottom: 2rem;
}

.title-container img {
  margin-right: 10px;
}

.title-container h1 {
  font-size: 1.8em;
  margin: 0;
}

.warning-section ol {
  list-style: decimal;
}

.warning-section ul {
  list-style: disc;
}

.warning-section p {
  margin-bottom: 0.5rem;
}

.warning-section ol, ul > li {
  margin-bottom: 0.8rem;
}

.warning-section ol, ul > li {
  margin-left: 1.1rem;
}

.steps li {
  display: flex  ;
  align-items: center;
  margin-bottom: 1.2rem;
  counter-increment: steps 1;
}

.steps li::before {
  content: counter(steps);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-right: 1rem;
  border-radius: 50%;
  background-color: #0066B3;
  font-size: 1rem;
  line-height: 100%;
  font-weight: 600;
  color: #ffffff;
}

.steps li.completed {
  color: #2e7d32;
}

.steps li.completed::before {
  background-color: #2e7d32;
}

.steps li.completed::after {
  content: "✓";
  margin-left: 1rem;
  color: #2e7d32;
  font-weight: bold;
}

.btn {
  display: flex;
    gap: 0.375rem;
    align-items: center;
    justify-content: center;
    min-width: 9.25rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
}

.button-primary {
  --appButtonTextColor: #fff;
  --appButtonBgColor: #141414;

  color: var(--appButtonTextColor);
  background: var(--appButtonBgColor);
}

.button-primary:hover {
  background: #434343;
}

.button-primary:active {
  color: #cccccc;
  background: #202020;
}

[popover] {
  position: fixed;
  width: fit-content;
  height: fit-content;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(calc(-50% - 2rem));
  background-color: #fff;
  margin: 2rem;
  padding: 1rem;
}

[popover]::backdrop {
  background-color: rgba(0, 0, 0, 0.646);
}

.step-action {
  margin-left: 4rem;
  margin-bottom: 1.5rem;
}

.action-container {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-start;
}

.error-container {
  margin-top: 1.5rem;
  color: #d32f2f;
}

.loading-container {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}