.real-id-order-widget {
  font-size: 13px;
  line-height: 1.5;
  color: #1d2327;
}

.real-id-order-widget--loading {
  color: #646970;
  padding: 8px 0;
}

.real-id-order-widget__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.real-id-order-widget__applicant {
  font-weight: 600;
}

.real-id-order-widget__status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.real-id-order-widget__status--success {
  background: #d7f5dd;
  color: #14622b;
}

.real-id-order-widget__status--critical {
  background: #fcdede;
  color: #8a1c1c;
}

.real-id-order-widget__status--warning {
  background: #fcf2d3;
  color: #8a6116;
}

.real-id-order-widget__status--info {
  background: #e2e8f5;
  color: #2c3a59;
}

.real-id-order-widget__fields {
  margin: 0 0 14px;
}

.real-id-order-widget__field {
  margin: 0 0 6px;
}

.real-id-order-widget__field dt {
  font-weight: 600;
  color: #646970;
  margin: 0;
}

.real-id-order-widget__field dd {
  margin: 0;
}

.real-id-order-widget__photos {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
  max-width: 360px;
}

.real-id-order-widget__photo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.real-id-order-widget__photo-label {
  font-size: 11px;
  font-weight: 600;
  color: #646970;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.real-id-order-widget__photo-controls {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.real-id-order-widget__rotate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #c3c4c7;
  border-radius: 50%;
  background: #fff;
  color: #50575e;
  cursor: pointer;
  box-sizing: border-box;
}

.real-id-order-widget__rotate-btn:hover {
  background: #f0f0f1;
}

.real-id-order-widget__photo-frame {
  position: relative;
  display: block;
  padding: 0;
  width: 100%;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
}

.real-id-order-widget__photo-frame:hover {
  background: #f6f7f7;
}

.real-id-order-widget__photo-img {
  display: block;
  width: 100%;
  max-height: 320px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.real-id-order-widget__carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.real-id-order-widget__carousel-indicator {
  font-size: 11px;
  font-weight: 600;
  color: #646970;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.real-id-order-widget__bbox {
  position: absolute;
  display: block;
  z-index: 2;
  border: 2px solid #2271b1;
  box-sizing: border-box;
  pointer-events: none;
}

.real-id-order-widget__bbox--id {
  border-color: #2271b1;
}

.real-id-order-widget__bbox--match {
  border-color: #14622b;
}

.real-id-order-widget__bbox--mismatch {
  border-color: #8a1c1c;
  background: conic-gradient(
      rgb(236 89 136 / 16%) 25%,
      rgb(214 31 31 / 10%) 0 50%,
      rgb(204 42 42 / 30%) 0 75%,
      rgb(245 57 57 / 20%) 0
    )
    0 0 / 10px 10px;
}

.real-id-order-widget__mismatch-badge {
  position: absolute;
  right: 6px;
  top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 6px;
  background: #fff;
  color: #1d2327;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  z-index: 3;
}

.real-id-order-widget__mismatch-badge svg {
  width: 12px;
  height: 12px;
  color: #dba617;
}

.real-id-order-widget__sandbox-banner {
  position: relative;
  z-index: 4;
  padding: 4px 8px;
  background: #d63638;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.real-id-order-widget__lightbox {
  position: fixed;
  inset: 0;
  z-index: 100100;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-sizing: border-box;
}

.real-id-order-widget__lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1d2327;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.real-id-order-widget__lightbox-controls {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 6px;
}

.real-id-order-widget__lightbox-controls .real-id-order-widget__rotate-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.92);
  border-color: transparent;
}

.real-id-order-widget__lightbox-frame {
  position: relative;
  max-width: min(90vw, 1200px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.real-id-order-widget__lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.real-id-order-widget__liability-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100100;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.real-id-order-widget__liability-dialog {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.real-id-order-widget__liability-dialog h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #1d2327;
}

.real-id-order-widget__liability-dialog p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #1d2327;
}

.real-id-order-widget__liability-dialog label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 12px 0;
  font-size: 13px;
}

.real-id-order-widget__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.real-id-order-widget__confirm {
  border: 1px solid #dcdcde;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 12px;
  background: #f6f7f7;
}

.real-id-order-widget__confirm p {
  margin: 0 0 8px;
}

.real-id-order-widget__confirm label {
  display: block;
  margin-bottom: 6px;
}

.real-id-order-widget__notice {
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  border-left: 4px solid transparent;
}

.real-id-order-widget__notice--success {
  background: #edfaef;
  border-left-color: #14622b;
}

.real-id-order-widget__notice--error {
  background: #fcf0f1;
  border-left-color: #8a1c1c;
}

.real-id-order-widget__notice--info {
  background: #eef1f7;
  border-left-color: #2c3a59;
  color: #2c3a59;
}

.real-id-order-widget__footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f1;
}

.real-id-order-widget__details-link {
  font-weight: 600;
}

.real-id-order-widget__main {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

.real-id-order-widget__main-col {
  flex: 1 1 240px;
  min-width: 240px;
  margin: 0;
}

.real-id-order-widget__check-link {
  margin-bottom: 14px;
  max-width: 360px;
}

.real-id-order-widget__check-link-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #646970;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.real-id-order-widget__check-link-row {
  display: flex;
  gap: 6px;
}

.real-id-order-widget__check-link-input {
  flex: 1;
  min-width: 0;
  padding: 4px 8px;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  background: #f6f7f7;
  color: #1d2327;
  font-size: 12px;
  font-family: inherit;
}

