.hidden,
.banner.hidden {
  display: none;
}

.account-icon {
  cursor: pointer;
}

.otp-login-popup-section {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10001;
  width: 400px;

  .boa-register-label {
    font-size: 12.7px;
    margin-top: 14px;
  }
  .overlay {
    position: fixed;
    opacity: 0.3;
    width: 100vw;
    z-index: 0;
    top: 0;
    left: 0;
    height: 100%;
    background: #000;
  }

  .popup-close-icon {
    position: absolute;
    left: 400px;
    z-index: 10;
    cursor: pointer;

    svg {
      background: radial-gradient(#0000005c, #00000061, #0000000a, transparent);
    }
  }

  .otp-login-popup {
    position: absolute;
    width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    top: 0;
    left: 0;
    background-color: #ffffff;
    display: flex;
    padding: 0;
    overflow: auto;

    .image-with-text__items {
      display: flex;
      flex-direction: column;
      border-radius: 0;
      margin: 0;
      width: 100%;

      .image-with-text__image {
        border-radius: 0;
        border: 0;
        .lazy-image {
          max-height: 20rem;
        }
        .image-with-text__image-bg {
          border-radius: 0;
          overflow: hidden;
          margin: 0;
        }
      }

      .image-with-text__content {
        padding: 29px;
        width: 100%;
        border: 0;
        pointer-events: visible;
        margin: 0;

        .image-with-text__content-items {
          display: flex;
          flex-direction: column;
          gap: 0.5rem;
          text-align: start;
          color: #080808;

          .otp-login-title {
            font-size: 2.125rem;
            font-weight: 600;
            line-height: 28px;
            margin-bottom: 0.5rem;
          }

          .image-with-text__text p {
            font-size: 1rem;
            font-weight: 400;
            line-height: 28px;
            display: inline;
          }

          .otp-login-submit-btn {
            display: flex;
            align-items: center;
            justify-content: center;

            .otp-login-text-submit-btn,
            .loading-spinner {
              margin: 0;

              &.hidden {
                display: none;
              }
            }

            .loading-spinner {
              padding: 8px;
              border: 3px solid #fff;
              border-bottom-color: transparent;
              border-radius: 50%;
              display: inline-block;
              box-sizing: border-box;
              animation: rotation 1s linear infinite;
            }
          }

          .otp-form {
            display: flex;
            flex-direction: column;

            input {
              height: 48px;
              border-radius: 2px;
              border: 1px solid;
              padding-inline: 0.5rem;
            }

            .shopify-register-inputs {
              input {
                width: 100%;
                border-radius: 0;
                border-bottom: 0;

                &:first-child {
                  border-radius: 2px 2px 0 0;
                }

                &:last-of-type {
                  border-radius: 0 0 2px 2px;
                  border-bottom: 1px solid;
                }
              }
            }
          }

          .otp-login-submit-btn {
            height: 50px;
            border-radius: 2px;
            background-color: #080808;
            color: white;
            font-weight: 500;
            margin-top: 0.4rem;
          }

          .banner__content {
            display: flex;
            align-items: center;
            gap: 5px;
          }
        }
      }
      .send-code-again-link {
        text-decoration: underline;
        cursor: pointer;
        font-size: 1rem;
      }
    }
    .input-block {
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      align-items: flex-start;
    }
    .input-block input#ShopifyRegisterForm-Newsletter {
      width: fit-content;
      margin: 0 0 0 10px;
    }
  }
  .mobile-link{
    display: none;
  }
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media only screen and (max-width: 800px) {
  .otp-login-popup-section {
    top: 0;
    width: 336px;
    left: calc(50% - 168px);
    position: fixed;

    .popup-close-icon {
      left: unset;
      top: 0;
      right: 6px;
    }

    .otp-login-popup {
      min-height: unset;
      border-radius: 4px;

      .image-with-text__items {
        width: 100%;

        .image-with-text__image {
          border-radius: 4px 4px 0 0;
        }

        .image-with-text__content {
          padding: 10px 23px 23px 23px;
          height: max-content;
          overflow: scroll;
          -webkit-overflow-scrolling: touch;

          .image-with-text__image-bg {
            border-radius: 0;
          }

          .image-with-text__content-items {
            .otp-login-title {
              font-size: 1.5rem;
              margin-bottom: 0;
              line-height: 40px;
            }

            .image-with-text__text p {
              font-size: 0.875rem;
              display: inline;
            }
          }

          .otp-form {
            padding-bottom: 20px;
          }
        }
      }
    }
    .mobile-link {
      display: block;
      font-size: 16px;
      text-decoration: underline;
      margin-top: 7px;
      text-align: center;
    }
  }
}

html[dir="rtl"] input[type="tel"]::placeholder {
  text-align: right;
}

#cart-login.cart-login {
  width: 100%;
  background-color: #c9c9c933;
  border-radius: 2px;
  margin-block: 20px;
  padding: 8px 12px;
  line-height: 19px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}

#phoneNumberId {
  direction: ltr;
}


/* register popup */
.otp-login-popup-section .otp-register-text {
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}
.otp-login-popup-section .otp-register-text p {
  font-size: 13px;
}

.otp-login-popup-section .boa-register-label {
  font-size: 12.7px;
  margin-top: 14px;
}