/* phone otp modal start */
.phone-otp-modal.modal, .success-modal-for-otp.modal, .fail-modal-for-otp.modal, .timeout-modal-for-otp.modal {
  background-color: #0000009c;
}
.phone-otp-modal .modal-dialog {
  max-width: min(var(--phoneotpmodal-width, 770px));
}
.phone-otp-modal .modal-content {
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

.phone-otp-modal .phone-otp-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 404px;
  position: relative;
  border-top-right-radius: 30px;
  border-bottom-left-radius: 30px;
  border-top-left-radius: 6px;
  border-bottom-right-radius: 6px;
  background: #fff;
}

.phone-otp-modal .phone-otp-close {
  position: absolute;
  right: 16px;
  top: 16px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  z-index: 3;
}

/* LEFT */

.phone-otp-modal .phone-otp-left {
  min-width: 570px;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.phone-otp-modal .otp-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color:#222943;
}

.phone-otp-modal .otp-desc {
  font-size: 16px;
  color: #586473;
  margin-bottom: 24px;
}

.phone-otp-modal .otp-input-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.phone-otp-modal .otp-input {
  width: 100%;
  height: 72px;
  padding: 0 100px 0 12px;
  border: 1px solid #DEE3ED;
  border-radius: 6px;
  outline: none;
  font-size: 14px;
  font-weight: 400;
  color:#717D8D;
}

.phone-otp-modal .otp-input:focus {
  border-color: #001CC3;
}

.phone-otp-modal .otp-timer {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: 700;
  color: #222943;
}

.phone-otp-modal .otp-timer::before {
  content:'';
  position: absolute;
  top: -15px;
  left: -20px;
  display: block;
  height: 56px;
  width: 1px;
  background-color: #DEE3ED;
}

.phone-otp-modal .otp-submit {
  height: 44px;
  border-radius: 4px;
  border: none;
  background: #001F5B;
  color: #fff;
  font-weight: 600;
  margin-bottom: 25px;
  cursor: pointer;
}

.phone-otp-modal .otp-submit:hover {
  background: #001744;
}

.phone-otp-modal .otp-submit:disabled,
.phone-otp-modal .otp-submit.disabled {
  background: #DEE3ED;
  color: #A5B2C3;
  cursor: not-allowed;
  pointer-events: none;
}

.phone-otp-modal .otp-resend {
  cursor: not-allowed;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: #A5B2C3;
  background: transparent;
}

/* RIGHT GRADIENT PANEL */

.phone-otp-modal .phone-otp-right {
  background: linear-gradient(180deg, #0C3C78 0%, #1B6BB8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-otp-modal .otp-phone-illustration {
  width: 150px;
  height: 78px;
  background: url('/themes/custom/flexi_pattern_lab/components/source/images/mobile-phone-2.png') center/contain no-repeat;
}

/* MOBILE */

@media (max-width: 768px) {

  .phone-otp-modal .phone-otp-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    max-width: 95%;
    margin: 0 auto;
  }
  .phone-otp-modal .otp-input-wrapper {
    margin-bottom: 25px;
  }
  .phone-otp-modal .phone-otp-right {
    display: flex;
    order: -1;
    min-height: 120px;
  }

  .phone-otp-modal .phone-otp-left {
    min-width: 100%;
    padding: 24px;
  }
  .phone-otp-modal .otp-phone-illustration {
    width: 90px;
    height: 46px;
  }
  .phone-otp-modal .otp-title, .phone-otp-modal .otp-desc {
    text-align: center;
  }

  .phone-otp-modal .otp-submit {
    border-radius: 60px;
    margin-bottom: 20px;
  }

}

/* phone otp modal end */

.success-modal-for-otp .solid-primary-product-mobile-product-bg,
.fail-modal-for-otp .solid-primary-product-mobile-product-bg,
.timeout-modal-for-otp .solid-primary-product-mobile-product-bg {
  background: linear-gradient(225deg, #06386C 0%, #0872AE 100%);
}
.success-modal-for-otp.info-modal .modal-dialog .modal-content,
.fail-modal-for-otp.info-modal .modal-dialog .modal-content,
.timeout-modal-for-otp.info-modal .modal-dialog .modal-content
{
  border-radius: 8px 30px 8px 30px;
}
.success-modal-for-otp .btn-wrap .btn.btn-secondary,
.fail-modal-for-otp .btn-wrap .btn.btn-secondary,
.timeout-modal-for-otp .btn-wrap .btn.btn-secondary {
  display: none;
}
