.protected-modal {
  position: relative;
  z-index: 99999;
  display: none;
  width: 100vw;
  height: 100%;
  background-color: #f2f2f2;
  letter-spacing: 0;
}

.protected-modal__container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: calc(100% - 30px);
  max-width: 305px;
  max-height: 700px;
  margin: auto;
  padding: 20px 20px 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.protected-modal__header {
  color: #28323f;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.protected-modal__image__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto 5px;
  padding: 20px;
  background-color: #f2f2f2;
  border-radius: 5px;
  box-sizing: border-box;
  min-height: 139px;
}

.protected-modal__image {
  display: block;
  max-width: 190px;
  max-height: 190px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.protected-modal__form {
  display: flex;
  flex-direction: column;
}

.protected-modal__password {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  background-color: #fff;
  border: 1px solid #b3c0d3;
  border-radius: 5px;
  overflow: hidden;
}

.protected-modal__input {
  width: 100%;
  padding: 10px 45px 10px 20px;
  background-color: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.protected-modal__input::placeholder {
  color: #808f9d;
  font-weight: 600;
}

.protected-modal__input:focus::placeholder,
.protected-modal__input:-moz-placeholder,
.protected-modal__input:focus::-moz-placeholder,
.protected-modal__input:focus::-webkit-input-placeholder {
  color:transparent;
}

.password-view {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 24px;
  height: 24px;
  background-color: #b3c0d3;
  transform: translateY(-50%);
  -webkit-mask: url(../../img/view.svg) no-repeat center / contain;
  mask: url(../../img/view.svg) no-repeat center / contain;
  cursor: pointer;
}

.password-view--off {
  -webkit-mask-image: url(../../img/view-off.svg);
  mask-image: url(../../img/view-off.svg);
}

.protected-modal__send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  padding: 10px 40px;
  background-color: #146ef5;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.1s ease-in-out;
}

.protected-modal__send-btn span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.protected-modal__send-btn:not(:disabled):hover {
  background-color: #0b50b7;
}

.protected-modal__send-btn:disabled {
  background-color: #b3c0d3;
  pointer-events: none;
  cursor: not-allowed;
}

.protected-modal__error-message {
  width: 100%;
  margin: 10px auto;
  color: #e83033;
  font-size: 12px;
  text-align: center;
}

@media (max-height: 480px) and (orientation: landscape) {
  .protected-modal__image__wrapper {
    display: none;
  }
}

@media (max-width: 300px) {
  .protected-modal__image {
    max-width: 100%;
  }
}
