.nwc-dialog
{
  width: 750px;
  display: none;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  background-color: rgba(131, 137, 138, 0.4);
  padding: 20px;
}
.nwc-dialog-open
{
  overflow: hidden;
}
.nwc-dialog > .container
{
  position: relative;
  height: 100%;
  width: 100%;
  background-color: #fff;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  font-size: 12px;
}
.nwc-dialog > .container > .title,
/*For old modal windows html structure */
.nwc-dialog > .container.old-html .overlay-title
{
  border-radius: 10px 10px 0px 0px;
  border: 5px solid #3e3e3e;
  border-bottom: none;
  height: 50px;
  background: #494949;
  line-height: 50px;
  font-family: Verdana;
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  padding-left: 20px;
  margin: 0px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.nwc-dialog.with-icon > .container > .title
{
  background-image: url("../../images/icons/nwc.29a613b47de0.png");
  background-position: 5px center;
  background-repeat: no-repeat;
  padding-left: 44px;
}
.nwc-dialog.theme-target > .container > .title,
/*For old modal windows html structure */
.nwc-dialog.theme-target > .container.old-html .overlay-title
{
  background-color: #085474;
  border: 5px solid #085474;
  height: auto;
  min-height: 30px;
}
.nwc-dialog > .container > .content,
.nwc-dialog > .container.old-html .overlay_content
{
  border: 5px solid #d9d9d9;
  border-radius: 0px 0px 10px 10px;
  border-top: none;
  padding: 20px 20px 20px 30px;
  background-color: #fff;
}
.nwc-dialog > .container .align-right,
.nwc-dialog > .container.old-html .align-right
{
  text-align: right;
}
.nwc-dialog > a.dialog-close
{
  background: url("../../images/buttons_min-close.d9e06da63833.png") no-repeat scroll -25px 0 transparent;
  height: 20px;
  width: 20px;
  position: absolute;
  top: 28px;
  right: 28px;
  cursor: pointer;
}
.nwc-dialog > a.dialog-close:hover
{
  background-position:-25px -20px;
}

.nwc-dialog .preloader
{
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(255,255,255,0.5) url("../../images/large-loading.d96f6517e003.gif") no-repeat center;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.nwc-dialog.theme-default > .container .save
{
  width: 100%;
  text-align: right;
}
/*Hack for show properly old modal windows*/
.nwc-dialog > .container .just-save,
.nwc-dialog > .container.old-html .just-save
{
  width: 100% !important;
}
.nwc-dialog.theme-default > .container.old-html .form-block
{
  border-bottom: 0;
  margin-bottom: 1em;
  padding-bottom: 0;
}
/* Fix max width forms in modal */
.nwc-dialog .form-field-full-width {
  width: 480px !important;
}
/*Fix for Ckeditor width in modal window*/
.nwc-dialog.new-action-message
{
  width: 980px !important;
}
.nwc-dialog.new-action-message .form-field-full-width
{
  width: 650px !important;
}
.nwc-dialog.width-auto {
  width: auto;
}

/*
 css-centering class overrides the positon calculated by dialog.
 It centers the dialog during the browser window resizing.
*/
.nwc-dialog.css-centering {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

.nwc-dialog.full-size {
  width: 94vw;
  height: 94vh;
  left: 2vw;
  top: 1vh;
  padding: 2vh 1vw;
}

.nwc-dialog.full-size .container {
  display: flex;
  flex-direction: column;
}

.nwc-dialog.full-size .content {
  border: none;
  flex-grow: 1;
  margin: 0;
  padding: 0;
}

.nwc-dialog.full-size .content iframe {
  height: 100%;
  width: 100%;
}

.nwc-dialog.message-dashboard-dialog .content {
  overflow: hidden !important;
  padding: 5px;
}

.nwc-dialog.message-dashboard-dialog iframe {
  border: none;
}

/*
 fix displaying the cms toolbar so it will not be cover the popup
*/
#cms-top {
  z-index: 9995;
}
