/* Xensec compact two-factor challenge — acp-v2.0.28 */
.customer-auth-route-2fa .xensec-auth-stack-v223,
.acp-auth-route-2fa .xensec-auth-stack-v223 {
  width: min(540px, 100%);
}

.xensec-twofa-v228 {
  width: 100%;
  padding: 0;
}

.xensec-twofa-panel-v228 {
  width: 100% !important;
  padding: clamp(22px, 3vw, 29px) !important;
}

.xensec-twofa-heading-v228 .xensec-login-logo-v221 {
  margin-bottom: 8px;
}

.xensec-twofa-heading-v228 .xensec-login-logo-v221 img {
  width: min(218px, 62vw);
}

.xensec-twofa-heading-v228 h1 {
  margin: 7px 0 7px !important;
  font-size: clamp(30px, 4vw, 38px) !important;
}

.xensec-twofa-heading-v228 p {
  max-width: 430px;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
}

.xensec-twofa-alert-v228 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 15px;
  padding: 11px 13px;
  border: 1px solid rgba(242, 171, 61, .24);
  border-radius: 14px;
  background: rgba(116, 72, 16, .13);
}

.xensec-twofa-alert-v228 > span {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffc25e;
  background: rgba(164, 105, 24, .18);
  font-weight: 900;
}

.xensec-twofa-alert-v228 strong,
.xensec-twofa-alert-v228 small {
  display: block;
}

.xensec-twofa-alert-v228 strong {
  color: #f8faff;
  font-size: 13px;
}

.xensec-twofa-alert-v228 small {
  margin-top: 2px;
  color: rgba(215, 224, 248, .68);
  font-size: 11.5px;
  line-height: 1.45;
}

.xensec-twofa-alert-v228.is-danger {
  border-color: rgba(255, 93, 114, .28);
  background: rgba(126, 31, 49, .15);
}

.xensec-twofa-alert-v228.is-danger > span {
  color: #ff8393;
  background: rgba(166, 44, 65, .18);
}

.xensec-twofa-method-v228 {
  margin-top: 15px !important;
  padding: 16px 17px !important;
  border-radius: 18px !important;
}

.xensec-twofa-code-v228 {
  margin-top: 0 !important;
}

.xensec-twofa-method-title-v228 {
  margin-bottom: 10px !important;
}

.xensec-twofa-method-title-v228 > span {
  width: 35px !important;
  height: 35px !important;
  border-radius: 11px !important;
}

.xensec-twofa-method-title-v228 h2 {
  font-size: 16px !important;
}

.xensec-twofa-method-copy-v228 {
  margin: 0 0 11px;
  color: rgba(211, 222, 249, .67);
  font-size: 12.5px;
  line-height: 1.5;
}

.xensec-twofa-primary-v228 {
  min-height: 48px !important;
  margin-top: 7px !important;
  border-radius: 13px !important;
}

.xensec-twofa-primary-v228:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none !important;
  filter: none !important;
}

.xensec-twofa-message-v228 {
  display: block;
  min-height: 17px;
  margin-top: 8px;
  color: rgba(190, 204, 238, .58);
  font-size: 10.5px;
  text-align: center;
}

.xensec-twofa-divider-v228 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 12px 0;
  color: #7787af;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.xensec-twofa-divider-v228::before,
.xensec-twofa-divider-v228::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(97, 119, 184, .20);
}

.xensec-twofa-form-v228 {
  gap: 8px !important;
}

.xensec-twofa-input-v228 {
  min-height: 48px !important;
  border-radius: 13px !important;
}

.xensec-twofa-input-v228 input {
  height: 46px !important;
  font-weight: 700;
  letter-spacing: .045em;
}

.xensec-twofa-switch-v228 {
  margin-top: 13px !important;
  line-height: 1.45;
}

.xensec-twofa-switch-v228 strong {
  color: rgba(234, 240, 255, .88);
  font-weight: 750;
}

.xensec-twofa-security-v228 {
  margin-top: 15px !important;
  padding-top: 14px !important;
}

.acp-auth-route-2fa .xensec-twofa-panel-v228::before {
  background: linear-gradient(90deg, #5d7cff, #8b5dff 55%, #d735dc);
}

.acp-auth-route-2fa .xensec-twofa-method-title-v228 > span {
  color: #c0b1ff;
  border-color: rgba(145, 111, 255, .25);
  background: rgba(101, 69, 184, .18);
}

@media (max-width: 620px) {
  .customer-auth-route-2fa .xensec-auth-stage-v223,
  .acp-auth-route-2fa .xensec-auth-stage-v223 {
    justify-content: flex-start !important;
  }

  .xensec-twofa-panel-v228 {
    padding: 20px 16px !important;
  }

  .xensec-twofa-heading-v228 .xensec-login-logo-v221 img {
    width: min(200px, 65vw);
  }

  .xensec-twofa-heading-v228 h1 {
    font-size: 31px !important;
  }

  .xensec-twofa-method-v228 {
    padding: 15px !important;
  }

  .xensec-twofa-security-v228 {
    grid-template-columns: 1fr !important;
  }
}
