/* Regular modal styles */
.overlay,
.overlay.ng-enter.ng-enter-active {
  position: fixed;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  white-space: nowrap;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  -webkit-transition: opacity 0.3s linear, visibility 0.3s linear;
  transition: opacity 0.3s linear, visibility 0.3s linear;
  padding: 40px 10px;
  opacity: 1;
  visibility: visible;
}
.overlay.ng-enter,
.overlay.ng-hide,
.overlay.ng-leave.ng-leave-active {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* Ghost element to have vertical centering */
.overlay:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -0.25em;
}
.overlay .modal-ctn {
  width: 100%;
  max-width: 420px;
  height: auto;
  background: white;
  color: #042765;
  padding: 40px;
  border-radius: 3px;
  display: inline-block;
  vertical-align: middle;
  text-align: left;
  white-space: normal;
  font-weight: normal;
  position: relative;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
}
.overlay .modal-ctn.medium {
  max-width: 520px;
}
.overlay .modal-ctn,
.overlay.ng-enter.ng-enter-active .modal-ctn,
.overlay.ng-hide-remove.ng-hide-remove-active .modal-ctn {
  -webkit-transform: scale3d(1, 1, 1);
  transform: scale3d(1, 1, 1);
}
.overlay.ng-enter .modal-ctn,
.overlay.ng-hide-remove .modal-ctn {
  -webkit-transform: scale3d(1.1, 1.1, 1);
  transform: scale3d(1.1, 1.1, 1);
}
.modal-cross {
  height: 24px;
  width: 24px;
  background-image: url(/images/app/cross.svg);
  background-repeat: no-repeat;
  background-size: 70%;
  background-position: center center;
  cursor: pointer;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
  z-index: 1;
  position: absolute;
  right: 16px;
  top: 16px;
}
.modal-cross:hover {
  opacity: 0.7;
}
.modal-title {
  font-size: 18px;
  margin-bottom: 35px;
  font-weight: bold;
  text-align: center;
  color: #4f5f6f;
  line-height: 24px;
  position: relative;
}
.modal-label {
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.5;
}
.modal-label.warning {
  color: #e9ab59;
  font-weight: bold;
  font-size: 11px;
}
.modal-label .bold {
  font-weight: bold;
}
.modal-label .highlight {
  font-weight: bold;
  color: #0066ff;
}
.modal-label .highlight.red {
  color: #cf4a4a;
}
.modal-label a,
.modal-label .link {
  text-decoration: underline;
  color: #042765;
  cursor: pointer;
}
.modal-label a:hover,
.modal-label .link:hover {
  opacity: 0.7;
}
.modal-ctn.inline-center .modal-label {
  margin-left: auto;
  margin-right: auto;
}
.modal-ctn .yes-no-btns-line,
.modal-ctn .submit-btn-line {
  text-align: center;
  margin-top: 30px;
}
.modal-ctn .yes-no-btns-line .no {
  float: left;
  width: 48%;
}
.modal-ctn .yes-no-btns-line .yes {
  float: right;
  width: 48%;
}
@media (max-width: 640px) {
  .yes-no-btns-line.responsive {
    display: flex;
    flex-direction: column-reverse;
  }
  .yes-no-btns-line.responsive .reg-btn {
    width: 100%;
  }
  .yes-no-btns-line.responsive .yes {
    margin-bottom: 5px;
  }
}
.modal-ctn .btns-stack {
  text-align: center;
}
.modal-ctn .btns-stack .reg-btn {
  display: block;
}
.modal-ctn .btns-stack .reg-btn:not(:first-child) {
  margin-top: 10px;
}
.modal-icon {
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-image: url(/images/app/misc/drop-small.svg);
  height: 100px;
  width: 130px;
  margin: 25px auto 25px auto;
  position: relative;
}
.modal-icon .inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: 40%;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
}
@media screen and (max-width: 768px) {
  .overlay:before {
    content: none;
  }
  .overlay .modal-ctn {
    padding: 40px 20px;
    margin: 0 auto;
    display: block;
  }
  .overlay.with-input:before {
    content: none;
  }
  .overlay, .overlay.ng-enter.ng-enter-active {
    padding: 20px 10px;
  }
}
.modal-style-1 .modal-title,
.modal-style-1 .modal-label {
  text-align: left;
}
.modal-style-1 .modal-subtitle {
  margin-top: -30px;
  margin-bottom: 35px;
  padding-right: 40px;
  font-size: 12px;
  line-height: 1.3;
}
.modal-style-1 .submit-btn-line {
  text-align: right;
}
.modal-style-1 .submit-btn-line .reg-btn {
  min-width: 125px;
}
.modal-style-1 .submit-btn-line .reg-btn:first-child {
  margin-right: 5px;
}
.modal-style-1 .modal-cross {
  top: 40px;
  right: 40px;
}
@media screen and (max-width: 768px) {
  .modal-style-1 .modal-cross {
    right: 20px;
  }
}
.mod-toggle,
.mod-toggle .toggle-item {
  display: inline-block;
  vertical-align: top;
}
.mod-toggle .toggle-item {
  padding: 15px 20px;
  cursor: pointer;
  position: relative;
  border-bottom: 2px solid transparent;
  color: #8e9eba;
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
}
.mod-toggle .toggle-item:hover {
  background-color: #f9fbff;
}
.mod-toggle .toggle-item.selected {
  border-color: #0066ff;
  font-weight: bold;
  color: #042765;
}
.modal-ctn .p-x {
  padding: 0 40px;
}
