@import "var";

.mw_modal {
  position: fixed;
  z-index: 1102;
  top: 0;
  left: 0;
  display: none;
  background: white;
  overflow: hidden;
  box-shadow: 0 0 27px -20px #111111;
  /*
transition: width 0.3s, height 0.3s, left 0.3s, top 0.3s;
-moz-transition:width 0.3s, height 0.3s, left 0.3s, top 0.3s;
-webkit-transition: width 0.3s, height 0.3s, left 0.3s, top 0.3s;
-o-transition: width 0.3s, height 0.3s, left 0.3s, top 0.3s;
*/
}

.mw_modal.ui-draggable-dragging {
  transition: none;
  -moz-transition: none;
  -webkit-transition: none;
  -o-transition: none;
}

.mw_modal_title .mw_modal_title {
  margin-left: 14px;
  margin-top: 9px;
}

.mw_modal_simple .mw-modal-close,
.mw_modal_basic .mw-modal-close {
  position: absolute;
  display: block;
  width: 14px;
  height: 14px;
  right: 8px;
  top: 8px;
  cursor: pointer;
  font-size: 15px;
  color: #444;
}

.mw_modal_basic .mw-modal-close {
  top: 0px;
  right: 0px;
  height: 20px;
  padding: 0;
  line-height: 20px;
  width: 20px;
  text-align: center;
}

.mw_modal_simple .mw-modal-close:hover,
.mw_modal_basic .mw-modal-close:hover {
  color: black;
}

.mw_modal_title {
  display: inline-block;
  float: left;
  font-size: 11px;
  height: 15px;
  line-height: 15px;
  white-space: nowrap;
  margin-left: 6px;
  margin-top: 3px;
  overflow: hidden;
  color: white;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 #255F85;
  text-shadow: none;
  min-height: 18px;
}

.mw_modal_simple .mw_modal_title {
  margin-top: 2px;
}

.mw_modal_minimize {
  position: absolute;
  top: 1px;
  right: 30px;
  text-indent: -9999px;
  display: block;
  background: url(../img/popup_ctrls.png) no-repeat 0 -20px;
  cursor: pointer;
  width: 27px;
  height: 20px;
}

.mw_modal.is_minimized .mw_modal_minimize {
  background-position: 0 -40px;
}

.mw_modal_container {
  padding: 15px;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;

}

.iframe_fix {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 995;
  width: 100%;
  height: 100%;
  background: transparent;
  display: none;
}

.mw_overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1101;
  width: 100%;
  height: 100%;
  background: black;
  opacity: .7;
}

.mw_modal_type_iframe .mw_modal_container {
  padding: 0;
  width: 100%;
  /* TODO */
}

.mw_modal_maximized {
  overflow: hidden;
}

/* Default skin */
.mw_modal_default .mw-modal-close {
  cursor: pointer;
  display: block;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 11px;
  position: absolute;
  right: 5px;
  text-indent: 0;
  top: 5px;
  width: 26px;
  height: 21px;
  text-align: center;
  color: #7b7b7b;
  line-height: 21px;
  background: #000;
}

.mw_modal_default .mw-modal-close:hover,
.mw_modal_default .mw-modal-close:focus {
  background-color: white;
  color: black;
  border-bottom-color: black;
}

.mw_modal_default .mw-modal-close:after,
.mw_modal_default .mw-modal-close:after,
.mw_modal_basic .mw-modal-close:after {
  content: "\0111";
  font-family: Microweber;
  font-size: 12px;
}

.mw_modal_default .mw-modal-close:active {
  box-shadow: inset 0 0 4px #CCCCCC;
}

.mw_modal_default .mw_modal_title {
  color: white;
  margin: 8px 0 0px 14px;
}

.mw_modal_default .mw_modal_toolbar {
  height: 31px;
  width: 100%;
  cursor: move;
  position: relative;
  z-index: 2;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #2b2b2b;
}

.mw_modal_default {
  overflow: visible;
  background: transparent;
}

.mw_modal_default .mw_modal_container {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  border-radius: 0 0 2px 2px;
  background: #fafafa;
  border: 1px solid #2b2b2b;
}

.mw-modal-draggable.mw_modal_default .mw_modal_toolbar {
  background-image: url(../img/popup_settings_bar.png);
  border-radius: 2px 2px 0 0;
  cursor: move;
  cursor: -moz-grab;
  cursor: -webkit-grab;
  cursor: grab;
}

/* Primary Skin */
.mw_modal_primary{
  .mw-modal-close {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 11px;
    position: absolute;
    right: 0;
    text-indent: 0;
    top: 0;
    width: 40px;
    height: 100%;
    text-align: center;
    color: #bababa;
    &:hover,
    &:focus {
      color: #bababa;
    }
    &:active {
      box-shadow: inset 0 0 4px #CCCCCC;
    }
  }
  .mw_modal_icon {
    cursor: pointer;
    display: block;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 24px;
    position: absolute;
    left: 15px;
    text-indent: 0;
    top: 0px;
    width: 28px;
    height: 24px;
    text-align: center;
    color: #bababa;
    line-height: 21px;
    margin-top: 7px;
  }


   .mw-ui-box-content {
    border: 0 !important;
    //padding: 0 !important;
  }
}

.mw_modal_primary .mw-modal-close:after,
.mw_modal_primary .mw-modal-close:after,
.mw_modal_basic .mw-modal-close:after {
  content: "\f2d7";
  font-family: Microweber;
  font-size: 15px;
}



.mw_modal_primary .mw_modal_title {
  color: #fff;
  margin: 8px 0 0px 14px;
  //text-transform: uppercase;
  font-size: 15px;
  font-weight: bold;
  float: none;
  line-height: 20px;
  height: auto;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.mw_modal_primary .mw_modal_toolbar {
  height: 31px;
  width: 100%;
  cursor: move;
  position: relative;
  z-index: 2;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #2b2b2b;
}

.mw_modal_primary {
  overflow: visible;
  background: transparent;
  border: 1px solid #e8e8e8;
  -webkit-box-shadow: 0 0 10px #e8e8e8;
  -moz-box-shadow: 0 0 10px #e8e8e8;
  box-shadow: 0 0 10px #e8e8e8;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  overflow: hidden;
}

.mw_modal_primary .mw_modal_container iframe {
  background: #fff;
}

.mw_modal_primary .mw_modal_container {
  border-radius: 0 0 2px 2px;
  background: #fff;
}

.mw-modal-draggable.mw_modal_primary .mw_modal_toolbar {
  background: #2b2b2b;
  border-radius: 0;
  cursor: move;
  cursor: -moz-grab;
  cursor: -webkit-grab;
  cursor: grab;
  text-align: center;
  padding: 3px 10px;
  height: auto;

  //border-bottom: 1px solid #e8e8e8;
  //-webkit-box-shadow: 0 8px 6px -6px  #e8e8e8;
  //-moz-box-shadow: 0 8px 6px -6px  #e8e8e8;
  //box-shadow: 0 8px 6px -6px  #e8e8e8;
}

/* mw modal primary end */

.mw_modal_simple .mw_modal_toolbar {
  height: 30px;
  width: 100%;
  top: 0px;
  left: 0px;
  position: relative;
  background: #EEEEEE;
  cursor: move;
  cursor: -moz-grab;
  cursor: grab;
}

.mw_modal_basic {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.mw_modal_basic .mw_modal_toolbar {
  height: 20px;
  width: 100%;
  top: 0px;
  left: 0px;
  position: relative;
  background: white;
  cursor: move;
}

.mw_modal_basic .mw_modal_toolbar .mw_modal_title {
  color: @textColor;
}

.mw_modal_gallery .mw_modal_toolbar {
  height: 0;
}






.mw_modal_basic .mw-modal-close {
  cursor: pointer;
  display: block;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 11px;
  position: absolute;
  right: 5px;
  text-indent: 0;
  top: 5px;
  width: 26px;
  height: 21px;
  text-align: center;
  color: #7b7b7b;
  line-height: 21px;
}



.mw_modal_basic .mw-modal-close:after,
.mw_modal_basic .mw-modal-close:after,
.mw_modal_basic .mw-modal-close:after {
  content: "\0111";
  font-family: Microweber;
  font-size: 12px;
}

.mw_modal_default .mw-modal-close:active {
  box-shadow: inset 0 0 4px #CCCCCC;
}

.mw_modal_default .mw_modal_title {
  color: white;
  margin: 8px 0 0px 14px;
}

.mw_modal_basic .mw_modal_toolbar {
  height: 31px;
  width: 100%;
  cursor: move;
  position: relative;
  z-index: 2;
  background-repeat: no-repeat;
  background-position: center center;
}








.mw_modal_gallery {
  background: transparent;
  border: none;
}

.mw_modal_gallery .mw-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: block;
  width: 20px;
  height: 20px;
  background: white url(../img/galleryclose.png) no-repeat right top;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 1px 1px 2px #000;
}

.mw_modal_gallery .mw-modal-close:hover {
  background-color: #CCCCCC;
}

.mw_modal_gallery .mw-modal-close:active {
  box-shadow: inset 0px 0px 3px #707070;
}

.mw_modal_gallery .mw_modal_container {
  padding: 0;
}

.mw_modal_gallery .mw_modal_toolbar {
  position: absolute;
  z-index: 12;
  top: 0;
  right: 0;
}

.mw-modal-frame {
  position: absolute;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  left: 0;
  bottom: 0;
}

/*********************************************
               Inline Modal
*********************************************/

.mw-inline-modal,
.mw-inline-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.mw-inline-modal-overlay {
  background-color: rgba(249, 249, 249, 0.8);
}

.mw-inline-modal-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: 0 auto;
}

.mw-inline-modal-default .mw-inline-modal-container {
  background-color: #FFFFFF;
  border: 1px solid #EDEDED;
  box-shadow: 0 0 6px #F3F3F3;
  margin-top: 5px;
  overflow: auto;
  padding: 10px;
}

.mw-inline-modal-default .mw-inline-modal-container-close {
  display: block;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: url(../img/galleryclose.png) no-repeat;
}

/*********************************************
                Gallery
*********************************************/

.mw_modal_gallery,
.mw_modal_gallery > * {
  -moz-user-select: none;
  -webkit-user-select: none;
  -o-user-select: none;
  -khtml-user-select: none;
  user-select: none;
}

.mw_modal_gallery .mwf-gallery-description {
  position: absolute;
  z-index: 9;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 13px;
  color: white;
  background: black;
  background: rgba(10, 0, 0, 0.8);
}

.mwf-gallery-description-holder {
  padding: 20px;
  max-height: 75px;
  overflow: auto;
}

.mwf-gallery {
  height: 100%;
  width: 100%;
  text-align: center;
}

.mw_modal_gallery .mwf-gallery-modeHTML {
  display: inline-block;
  box-shadow: 0 0 6px #111;
  position: absolute;
  overflow: auto;
  background: #111;
  color: white;
}

.mwf-single-holder {
  position: absolute;
  margin: auto;
  display: inline-block;
}

.mwf-single {
  box-shadow: 0 0 6px #111;
  position: relative;
  display: block;
  background-color: #E0E0E0;
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #F2F2F2), color-stop(1, #E0E0E0));
  background-image: -o-linear-gradient(bottom, #F2F2F2 0%, #E0E0E0 100%);
  background-image: -moz-linear-gradient(bottom, #F2F2F2 0%, #E0E0E0 100%);
  background-image: -webkit-linear-gradient(bottom, #F2F2F2 0%, #E0E0E0 100%);
  background-image: -ms-linear-gradient(bottom, #F2F2F2 0%, #E0E0E0 100%);
  background-image: linear-gradient(to bottom, #F2F2F2 0%, #E0E0E0 100%);
  margin: auto;
  max-height: 100%;
  max-width: 100%;
  min-height: 200px;
  min-width: 200px;
  width: auto;
  height: auto;
  cursor: pointer;
}

.mw_gallery_loading .mwf-single-holder * {
  visibility: hidden !important;
}

.mw_gallery_loading .mwf-single-holder {
}

.semi_hidden {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.mw_modal_gallery .mwf-next,
.mw_modal_gallery .mwf-prev {
  font-size: 60px;
  line-height: 50px;
  color: #ccc;
  text-align: center;
  position: absolute;
  top: 50%;
  margin-top: -27px;
  right: 20px;
  cursor: pointer;
  height: 55px;
  width: 50px;
  text-shadow: 0 0 1px #777;
  line-height: 40px;
  font-family: Microweber;
  border-radius: 1px;

}

.mwf-play:after {
  content: "\f215";

}

.mwf-play.active:after {
  content: "\f210";
}

.mw_modal_gallery .mwf-play {
  display: block;
  width: 20px;
  height: 20px;
  overflow: hidden;
  position: absolute;
  background: no-repeat #fff;
  box-shadow: 1px 1px 2px #000;
  top: 20px;
  right: 62px;
  cursor: pointer;
  color: black;
  font-family: Microweber;
}

.mw_modal_gallery .mwf-next:focus,
.mw_modal_gallery .mwf-next:hover,
.mw_modal_gallery .mwf-prev:focus,
.mw_modal_gallery .mwf-prev:hover {
  background: white;
  background: rgba(255, 255, 255, 0.5);
  color: #111;
}

.mwf-loader {
  width: 0;
  height: 2px;
  background: rgba(74, 164, 191, .91);
  display: block;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

.mw_modal_gallery .mwf-next:active,
.mw_modal_gallery .mwf-prev:active {
  box-shadow: inset 2px 2px 2px -2px #333, inset -2px -2px 2px -2px #333;
}

.mw_modal_gallery .mwf-prev {
  left: 20px;
  right: auto;
}

.mwf-gallery-container {
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.mwf-fullscreen {
  display: block;
  width: 20px;
  height: 20px;
  overflow: hidden;
  text-indent: -9999px;
  position: absolute;
  background: white url(../img/enter_fullscreen.png) no-repeat;
  box-shadow: 1px 1px 2px #000;
  top: 20px;
  right: 41px;
  cursor: pointer;
}

.fullscreen-mode .mwf-fullscreen {
  background: white url(../img/cancel_fullscreen.png) no-repeat;
}
