@-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;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadein_scale {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    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: #000;
  opacity: 0.5;
  -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 {
  overflow-x: hidden;
  overflow-y: auto;
  position: absolute;
  max-width: 100%;
  top: 0;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  padding: .2em;
  outline: 0;
  z-index: 1050;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  background-clip: padding-box;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-animation: fadein_scale 0.5s ease-out;
          animation: fadein_scale 0.5s ease-out;
}

.ui-dialog .btn {
  position: relative;
}

.ui-dialog .btn .ajax-throbber {
  position: absolute;
  margin-left: 0 !important;
  margin-right: 0 !important;
  right: -2px;
}

.ui-dialog-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  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;
}

.ui-dialog-titlebar-close {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: .5;
  padding: 0 0 0 1em;
  cursor: pointer;
  background: 0 0;
  border: 0;
  outline: 0;
  -webkit-appearance: none;
  transition: 0.3s;
  position: relative;
}

.ui-dialog-titlebar-close:before {
  content: 'x';
  position: absolute;
  text-indent: 0;
  top: 0;
  right: 0;
}

.ui-dialog-titlebar-close:hover {
  opacity: .75;
}

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

.ui-dialog-content {
  position: relative;
  overflow: auto;
  box-shadow: none;
  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 {
  transform: translate(0, -25%);
  transition: transform 0.3s ease-out;
}

.modal.in .modal-dialog {
  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;
  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: flex;
  justify-content: space-between;
  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 {
  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: 599px) {
  .ui-dialog-content {
    max-height: 60vh !important;
  }
}
