@use '../../../shared-styles/settings/variables';
@use '../../../shared-styles/objects/text';
@use '../../../shared-styles/components/badge';

.buv-c-verification-step {
  position: relative;
  margin: 15px 0 5px;
  font-weight: 600;
}

.buv-c-verification-step.is-first {
  margin-top: 0;
}

.buv-c-verification-substep {
  margin: 0;
  font-weight: 400;
  color: rgb(3 21 50 / 70%);
  padding: 3px 0 0;
  line-height: 1.7143;
}

.buv-c-verification-step.is-success::before,
.buv-c-verification-step.is-failure::before {
  left: -38px;
  top: -4px;
  width: 24px;
  height: 24px;
}

.buv-c-verification-substep::before {
  left: -28px;
  top: 10px;
  width: 4px;
  height: 4px;
  background-color: rgb(255 255 255 / 80%);
}

.buv-c-verification-step::after {
  content: '';
  position: absolute;
  z-index: 3;
  transition: opacity .3s ease-out .2s;
  opacity: 0;
}

.buv-c-verification-step.is-success::after,
.buv-c-verification-step.is-failure::after {
  opacity: 1;
}

.buv-c-verification-step.is-success::after {
  border: solid variables.$successColor;
  border-width: 0 2px 2px 0;
  left: -29px;
  width: 5px;
  height: 11px;
  transform: rotate(45deg);
}

.buv-c-verification-step.is-success.is-test::after {
  border-color: variables.$fontColor;
}

.buv-c-verification-step.is-failure::after {
  content: '\274C';
  left: -32px;
  top: -1px;
  font-size: 11px;
  color: variables.$errorColor;
}

@supports (-ms-ime-align: auto) {
  // ms edge seems to be considering a different width for the cross character, so fix it the hammer way
  .buv-c-verification-step.is-failure::after {
    left: -34px;
  }
}
