@-webkit-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.5;
  }
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.5;
  }
}

@-webkit-keyframes fadein_scale {
  from {
    opacity: 0;
    -webkit-transform: translateY(-30px);
            transform: translateY(-30px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes fadein_scale {
  from {
    opacity: 0;
    -webkit-transform: translateY(-30px);
            transform: translateY(-30px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

.ui-front {
  z-index: 100;
}

/* Overlays */
.ui-widget-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: #edeff5;
  opacity: .9;
  -webkit-animation: fadein 0.3s;
          animation: fadein 0.3s;
}

.ui-helper-hidden-accessible {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.ui-dialog:not(.ui-dialog-off-canvas)[role='dialog'] {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: .625rem;
  background-color: #fff;
  background-clip: padding-box;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
          box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 1050;
  font-family: 'montserrat', sans-serif;
  -webkit-animation: fadein_scale 0.5s ease-out;
          animation: fadein_scale 0.5s ease-out;
}

.ui-dialog:not(.ui-dialog-off-canvas)[role='dialog']:hover, .ui-dialog:not(.ui-dialog-off-canvas)[role='dialog']:focus {
  -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
          box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
}

.ui-dialog:not(.ui-dialog-off-canvas)[role='dialog'] .ui-dialog-titlebar {
  position: relative;
  width: 100%;
  padding: 1.25rem 1.5rem 1rem;
  border: 0;
  border-radius: 0;
  background: #1b1b1d;
}

.ui-dialog:not(.ui-dialog-off-canvas)[role='dialog'] .ui-dialog-titlebar .ui-dialog-title {
  max-width: 500px;
  margin: 0;
  padding-right: 2rem;
  font-size: 1.125rem;
  font-weight: normal;
  line-height: 27px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-dialog:not(.ui-dialog-off-canvas)[role='dialog'] .ui-dialog-titlebar .ui-dialog-titlebar-close {
  position: absolute;
  width: 1.75rem;
  height: 1.75rem;
  top: 50%;
  margin: 0;
  font-size: 0;
  background: 0 0;
  border: none;
  outline: none;
  opacity: 1;
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

[dir='ltr'] .ui-dialog:not(.ui-dialog-off-canvas)[role='dialog'] .ui-dialog-titlebar .ui-dialog-titlebar-close {
  right: 1.125rem;
}

[dir='rtl'] .ui-dialog:not(.ui-dialog-off-canvas)[role='dialog'] .ui-dialog-titlebar .ui-dialog-titlebar-close {
  left: 1.125rem;
}

.ui-dialog:not(.ui-dialog-off-canvas)[role='dialog'] .ui-dialog-titlebar .ui-dialog-titlebar-close > span {
  display: none;
}

.ui-dialog:not(.ui-dialog-off-canvas)[role='dialog'] .ui-dialog-titlebar .ui-dialog-titlebar-close:before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  margin: auto;
  position: absolute;
  top: 0;
  right: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("../images/icons/icon-close_white.svg");
  text-indent: 0;
  -webkit-transform: scale(1);
          transform: scale(1);
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.ui-dialog:not(.ui-dialog-off-canvas)[role='dialog'] .ui-dialog-titlebar .ui-dialog-titlebar-close:hover:before {
  -webkit-transform: scale(1.2);
          transform: scale(1.2);
}

.ui-dialog:not(.ui-dialog-off-canvas)[role='dialog'] .ui-button-icon-only {
  text-indent: -9999px;
  white-space: nowrap;
}

.ui-dialog:not(.ui-dialog-off-canvas)[role='dialog'] .ui-dialog-content {
  position: relative;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  height: auto !important;
  padding: 1rem 1.25rem;
  -webkit-box-shadow: none;
          box-shadow: none;
  overflow: auto;
  max-height: 70vh !important;
}

.ui-dialog:not(.ui-dialog-off-canvas)[role='dialog'] .btn {
  position: relative;
}

.ui-dialog:not(.ui-dialog-off-canvas)[role='dialog'] .btn .ajax-throbber {
  position: absolute;
  margin-left: 0 !important;
  margin-right: 0 !important;
  right: -2px;
}

.ui-dialog:not(.ui-dialog-off-canvas)[role='dialog'] .comment-post-comment-delete-form.is_modal .form-actions .btn,
.ui-dialog:not(.ui-dialog-off-canvas)[role='dialog'] .comment-comment-delete-form.is_modal .form-actions .btn {
  border: 0 !important;
}

.ui-dialog:not(.ui-dialog-off-canvas)[role='dialog'] .ui-dialog-titlebar .ui-dialog-titlebar-close {
  font-size: 0;
  cursor: pointer;
  background: 0 0;
  border: none;
  outline: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  opacity: 1;
  margin: 0;
  width: 1.75rem;
  height: 1.75rem;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

.ui-dialog:not(.ui-dialog-off-canvas)[role='dialog'] .ui-dialog-titlebar .ui-dialog-titlebar-close > span {
  display: none;
}

.ui-dialog:not(.ui-dialog-off-canvas)[role='dialog'] .ui-dialog-titlebar .ui-dialog-titlebar-close:before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  margin: auto;
  position: absolute;
  top: 0;
  right: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("../images/icons/icon-close_white.svg");
  text-indent: 0;
  -webkit-transform: scale(1);
          transform: scale(1);
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.ui-dialog:not(.ui-dialog-off-canvas)[role='dialog'] .ui-dialog-titlebar .ui-dialog-titlebar-close:hover:before {
  -webkit-transform: scale(1.2);
          transform: scale(1.2);
}

.ui-dialog-titlebar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: normal;
      -ms-flex-pack: normal;
          justify-content: normal;
  padding: 12px 1rem;
  border-bottom: 1px solid #e6e6e6;
}

.ui-dialog-title {
  font-family: inherit;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1rem;
  line-height: 1.625rem;
}

.ui-button-icon-only {
  text-indent: -9999px;
  white-space: nowrap;
}

.ui-dialog-content {
  position: relative;
  overflow: auto;
  -webkit-box-shadow: none;
          box-shadow: none;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  padding: 1rem;
}

.modal-open {
  overflow: hidden;
}

.modal {
  display: none;
  overflow: hidden;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  -webkit-overflow-scrolling: touch;
  outline: 0;
}

.modal.fade .modal-dialog {
  -webkit-transform: translate(0, -25%);
          transform: translate(0, -25%);
  -webkit-transition: -webkit-transform 0.3s ease-out;
  transition: -webkit-transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
  transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
}

.modal.in .modal-dialog {
  -webkit-transform: translate(0, 0);
          transform: translate(0, 0);
}

.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 10px;
}

.modal-content {
  position: relative;
  background-color: #fff;
  border: 1px solid #999;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
          box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  background-clip: padding-box;
  outline: 0;
}

.social-dialog.ui-dialog {
  max-width: 320px;
}

.social-dialog .ui-dialog-content {
  padding: 2rem 1rem;
}

.social-dialog .ui-dialog-buttonpane,
.social-dialog .ui-dialog-titlebar {
  display: none;
}

.social-dialog .ui-dialog-message-title {
  margin: 0 0 1.5rem;
}

.social-dialog .ui-dialog-message-title strong {
  font-weight: bold;
}

.social-dialog p {
  line-height: 1.3;
}

.social-dialog small {
  display: block;
  color: #777;
  margin-bottom: 2rem;
}

.social-dialog .form-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 50%;
          flex: 0 0 50%;
  margin-bottom: 0;
}

.social-dialog .btn {
  padding: 0.5rem 2rem !important;
  width: 100% !important;
  height: auto !important;
}

.social-dialog .btn + .btn {
  margin-left: 1rem;
}

.social-dialog .pull-left {
  -webkit-box-ordinal-group: 0;
      -ms-flex-order: -1;
          order: -1;
  margin-left: 0 !important;
  margin-right: 1rem;
}

.ui-dialog--narrow .ui-dialog-buttonpane {
  padding: 0 1rem 1rem;
}

@media (min-width: 900px) {
  .social-dialog.ui-dialog {
    max-width: 400px;
  }
  .social-dialog .ui-dialog-content {
    padding: 2rem 2.5rem 2.5rem;
  }
}

@media (max-width: 767px) {
  .ui-dialog:not(.ui-dialog-off-canvas)[role='dialog'] {
    width: auto !important;
    min-width: 92%;
    max-width: 92%;
  }
}

@media (max-width: 599px) {
  .ui-dialog-content {
    max-height: 60vh !important;
  }
}
