body.ecz-idv-page-active main.site-main {
  box-sizing: border-box;
  min-height: 820px;
  padding-top: 140px;
  padding-bottom: 220px;
}

.ecz-idv-page {
  position: relative;
  z-index: 2;
  padding-bottom: 56px;
}

.ecz-idv-page form {
  padding-bottom: 32px;
}

.ecz-idv-camera [hidden] {
  display: none !important;
}

.ecz-idv-camera {
  width: 100%;
  max-width: 960px;
  margin-top: 24px;
  color: #171717;
}

.ecz-idv-flow-toolbar {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d9e0de;
}

.ecz-idv-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 760px;
  margin: 0 auto 38px;
  padding: 0;
  list-style: none;
  counter-reset: idv-step;
}

.ecz-idv-progress li {
  position: relative;
  min-width: 0;
  padding: 38px 8px 0;
  color: #69716f;
  text-align: center;
  font-size: 14px;
  line-height: 1.3;
  counter-increment: idv-step;
}

.ecz-idv-progress li::before {
  content: counter(idv-step);
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  display: grid;
  width: 28px;
  height: 28px;
  transform: translateX(-50%);
  place-items: center;
  border: 2px solid #aeb8b5;
  border-radius: 50%;
  background: #fff;
  color: #4c5552;
  font-weight: 700;
}

.ecz-idv-progress li::after {
  content: '';
  position: absolute;
  top: 13px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: #d5dcda;
}

.ecz-idv-progress li:first-child::after {
  display: none;
}

.ecz-idv-progress li.is-active,
.ecz-idv-progress li.is-complete {
  color: #111;
  font-weight: 600;
}

.ecz-idv-progress li.is-active::before {
  border-color: #008c75;
  background: #008c75;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 140, 117, 0.13);
}

.ecz-idv-progress li.is-complete::before,
.ecz-idv-progress li.is-complete::after {
  border-color: #008c75;
  background: #008c75;
  color: #fff;
}

.ecz-idv-panel {
  padding: 30px 0 10px;
  border-top: 1px solid #d9e0de;
}

.ecz-idv-panel h3 {
  max-width: 760px;
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.25;
}

.ecz-idv-panel > p:not([class]) {
  max-width: 760px;
  margin: 0 0 18px;
  color: #46504d;
  font-size: 16px;
  line-height: 1.65;
}

.ecz-idv-explanation {
  max-width: 840px;
  margin: 12px 0 20px;
  border-left: 4px solid #008c75;
  background: #f4f8f7;
}

.ecz-idv-explanation summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.4;
}

.ecz-idv-explanation-content {
  padding: 2px 20px 18px;
}

.ecz-idv-explanation h4 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.35;
}

.ecz-idv-explanation h4:not(:first-child) {
  margin-top: 18px;
}

.ecz-idv-explanation p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.ecz-idv-explanation p:last-child {
  margin-bottom: 0;
}

.ecz-idv-explanation ul {
  margin: 8px 0 0 20px;
  padding: 0;
}

.ecz-idv-explanation li {
  margin: 6px 0;
}

.ecz-idv-document-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.ecz-idv-document-types label {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #c4cdca;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.ecz-idv-document-types label:has(input:checked) {
  border-color: #008c75;
  box-shadow: inset 0 0 0 1px #008c75;
}

.ecz-idv-document-types input,
.ecz-idv-consent input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
}

.ecz-idv-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 840px;
  margin: 20px 0 8px;
  line-height: 1.55;
}

.ecz-idv-camera-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 820px;
  aspect-ratio: 4 / 3;
  margin: 18px 0 12px;
  border: 1px solid #cad3d0;
  border-radius: 4px;
  background: #111;
  box-shadow: 0 8px 28px rgba(17, 37, 32, 0.12);
}

.ecz-idv-camera-choice {
  display: grid;
  max-width: 560px;
  gap: 6px;
  margin: 20px 0 12px;
  font-weight: 600;
}

.ecz-idv-camera-choice select {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  border-color: #aebbb7;
  border-radius: 4px;
  font: inherit;
}

.ecz-idv-camera-frame video,
.ecz-idv-camera-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ecz-idv-camera-guide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88%;
  aspect-ratio: 1.586 / 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 4px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.ecz-idv-camera[data-document='passport'] .ecz-idv-camera-guide {
  aspect-ratio: 1.42 / 1;
}

.ecz-idv-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: #18d7b6;
  border-style: solid;
}

.ecz-idv-corner-tl {
  top: -3px;
  left: -3px;
  border-width: 4px 0 0 4px;
  border-radius: 7px 0 0;
}

.ecz-idv-corner-tr {
  top: -3px;
  right: -3px;
  border-width: 4px 4px 0 0;
  border-radius: 0 7px 0 0;
}

.ecz-idv-corner-bl {
  bottom: -3px;
  left: -3px;
  border-width: 0 0 4px 4px;
  border-radius: 0 0 0 7px;
}

.ecz-idv-corner-br {
  right: -3px;
  bottom: -3px;
  border-width: 0 4px 4px 0;
  border-radius: 0 0 7px;
}

.ecz-idv-guide-photo {
  position: absolute;
  top: 13%;
  left: 6%;
  width: 27%;
  height: 58%;
  border: 1px dashed rgba(255, 255, 255, 0.72);
  border-radius: 45% 45% 6px 6px;
}

.ecz-idv-camera[data-document='drivers_license'] .ecz-idv-guide-photo {
  top: 16%;
  width: 29%;
  height: 68%;
}

.ecz-idv-camera[data-side='back'] .ecz-idv-guide-photo {
  display: none;
}

.ecz-idv-guide-mrz {
  position: absolute;
  right: 5%;
  bottom: 5%;
  left: 5%;
  display: none;
  height: 17%;
  border: 1px dashed rgba(255, 255, 255, 0.72);
  background: repeating-linear-gradient(to bottom, transparent 0 30%, rgba(255, 255, 255, 0.35) 31% 35%);
}

.ecz-idv-camera[data-document='passport'][data-side='front'] .ecz-idv-guide-mrz,
.ecz-idv-camera[data-document='identity_card'][data-side='back'] .ecz-idv-guide-mrz,
.ecz-idv-camera[data-document='residence_permit'][data-side='back'] .ecz-idv-guide-mrz {
  display: block;
}

.ecz-idv-guide-label {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  width: max-content;
  max-width: 90%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 1px 2px #000;
}

.ecz-idv-face-guide {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 42%;
  height: 76%;
  transform: translateX(-50%);
  border: 3px solid #18d7b6;
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.ecz-idv-status {
  min-height: 28px;
  max-width: 820px;
  margin: 10px 0;
  padding-left: 14px;
  border-left: 3px solid #008c75;
  color: #28312f;
  font-weight: 600;
  line-height: 1.55;
}

.ecz-idv-quality-result {
  max-width: 800px;
  margin: 12px 0;
  padding: 10px 12px;
  border-left: 4px solid #008c75;
  background: #f2f6f5;
}

.ecz-idv-quality-result.has-warning {
  border-left-color: #b26a00;
  background: #fff7e8;
}

.ecz-idv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ecz-idv-redaction-stage {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 20px 0 14px;
}

.ecz-idv-redaction-canvas {
  display: block;
  width: 100%;
  max-width: 820px;
  height: auto;
  margin: 0;
  border: 1px solid #aab5b2;
  border-radius: 4px;
  background: #eee;
  cursor: crosshair;
  box-shadow: 0 8px 28px rgba(17, 37, 32, 0.1);
  touch-action: none;
  user-select: none;
}

.ecz-idv-redaction-stage [data-role='redaction-hint'] {
  margin: 10px 0 0;
  color: #46504d;
  font-size: 14px;
  font-weight: 600;
}

.ecz-idv-live-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  max-width: 760px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.ecz-idv-live-checks li {
  position: relative;
  padding-left: 28px;
}

.ecz-idv-live-checks li::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  width: 16px;
  height: 16px;
  border: 2px solid #999;
  border-radius: 50%;
  background: #fff;
}

.ecz-idv-live-checks li.is-passed::before {
  border-color: #008c75;
  background: #008c75;
  box-shadow: inset 0 0 0 3px #fff;
}

.ecz-idv-summary {
  max-width: 720px;
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid #008c75;
  background: #f2f6f5;
  font-weight: 600;
}

.ecz-idv-processing {
  width: 44px;
  height: 44px;
  margin: 4px 0 22px;
  box-sizing: border-box;
  border: 4px solid #d9e5e2;
  border-top-color: #008c75;
  border-radius: 50%;
  animation: ecz-idv-spin 0.8s linear infinite;
}

.ecz-idv-camera.is-submission-error .ecz-idv-processing {
  display: none;
}

@keyframes ecz-idv-spin {
  to { transform: rotate(360deg); }
}

.ecz-idv-qr {
  max-width: 420px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #c7c7c7;
}

.ecz-idv-qr h4 {
  margin: 0 0 12px;
  font-size: 18px;
}

.ecz-idv-qr [data-role='qr-code'] {
  width: 264px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #222;
  background: #fff;
}

.ecz-idv-qr img {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

@media (max-width: 782px) {
  body.ecz-idv-page-active main.site-main {
    min-height: 700px;
    padding-top: 110px;
    padding-bottom: 180px;
  }

  .ecz-idv-document-types,
  .ecz-idv-live-checks {
    grid-template-columns: 1fr;
  }

  .ecz-idv-progress li {
    padding-right: 3px;
    padding-left: 3px;
    font-size: 12px;
  }

  .ecz-idv-flow-toolbar {
    align-items: flex-start;
  }

  .ecz-idv-panel {
    padding-top: 24px;
  }

  .ecz-idv-panel h3 {
    font-size: 24px;
  }

  .ecz-idv-camera-frame {
    aspect-ratio: 3 / 4;
  }

  .ecz-idv-mobile-handoff {
    display: none !important;
  }
}
