div.modal-overlay { position: fixed; top: 0; left: 0; z-index: 100; width: 100%; height: 100%; background-color: #323c42; }

table.modal { position: absolute; top: 0; left: 0; z-index: 100; width: 100%; height: 100%; }
table.modal.modal-scrollable { position: fixed; }
table.modal td.modal { vertical-align: middle; }
table.modal table.modal-wrapper { margin: 0 auto; }

div.modal { position: absolute; z-index: 100; }
div.modal-window div.modal-tools { display: none; position: relative; z-index: 1; }
div.modal-window div.modal-tools a.modal-close {
  position: absolute; top: 18px; right: 24px; z-index: 1;
}

div.modal-tools { display: none; }
div.modal-tools a.modal-close {
  position: relative; z-index: 1;
  display: block;
  width: 36px; height: 36px;
  border-radius: 36px;
}
div.modal-tools a.modal-close span,
div.modal-tools a.modal-close span:after,
div.modal-tools a.modal-close span:before {
  display: block;
  position: absolute; top: 17px; left: 9px; z-index: 1;
  width: 18px; height: 2px;
  background-color: #bebebe;
}
div.modal-tools a.modal-close span:after,
div.modal-tools a.modal-close span:before {
  content: '';
  top: auto; left: 0;
}
div.modal-tools a.modal-close span {
  background: none;

  -webkit-transition: -webkit-transform 0.3s;
      -ms-transition: -ms-transform 0.3s;
          transition: transform 0.3s;
}
div.modal-tools a.modal-close span::after {
  -webkit-transform: rotate(315deg);
      -ms-transform: rotate(315deg);
          transform: rotate(315deg);
}
div.modal-tools a.modal-close span::before {
  -webkit-transform: rotate(225deg);
      -ms-transform: rotate(225deg);
          transform: rotate(225deg);
}
div.modal-tools a.modal-close:hover span {
  -webkit-transform: rotate(90deg);
      -ms-transform: rotate(90deg);
          transform: rotate(90deg);
}

div.modal-s { overflow: auto; }


div.modal-window { margin: 16px; }
div.modal-window > div {
  border-radius: 4px;
  background-color: #FFF;

  -webkit-box-shadow: 0 6px 10px rgba(0, 0, 0, .23), 0 10px 30px rgba(0, 0, 0, .19);
          box-shadow: 0 6px 10px rgba(0, 0, 0, .23), 0 10px 30px rgba(0, 0, 0, .19);
}

div.modal-header {
  position: relative;
  padding: 22px 68px 22px 32px;
  border-bottom: 1px solid #E5E5E5; border-radius: 4px 4px 0 0;
  background: #F5F5F5;
}
div.modal-header h2 {
  display: inline-block;
  margin: 0;
  color: #333;
  font-size: 24px;
  line-height: 1.2;
  vertical-align: middle;
}

div.modal-block { padding: 24px 32px; }
div.modal-block-v { padding: 24px 32px 8px; }

div.modal-window div.form-action {
  margin: 0; padding: 16px 32px;
  border-top: 1px solid #E5E5E5; border-radius: 0 0 4px 4px;
  background: #F5F5F5;
  text-align: right;
}
div.modal-window div.form-action::after {
  content: '';
  display: table;
  clear: both;
}
div.modal-window div.form-action button,
div.modal-window div.form-action .button {
  margin-left: 12px;
}
div.modal-window div.form-action .button_left {
  margin-left: 0;
  float: left;
}

div.modal-window div.form-action span.links {
  display: inline-block;
  line-height: 32px;
}
div.modal-window div.form-action span.links_left {
  float: left;
  padding-right: 8px;
}
div.modal-window div.form-action div.switch {
  float: left;
  padding-top: 7px; padding-right: 8px;
}


div.modal-session {
  padding: 40px;
  width: 512px;
}
div.modal-session h2,
div.modal-session p {
  text-align: center;
}
div.modal-session h2 {
  padding-top: 12px;
  color: #333;
  font-size: 24px;
}
div.modal-session span.countdown {
  display: block;
}
div.modal-session span.countdown {
  margin-top: 8px;
  color: #333;
  font-size: 38px;
}
div.modal-session p {
  color: #CB5053;
  font-size: 18px;
}
div.modal-session div.actions {
  margin: 36px -40px -40px; padding: 18px 32px;
  border-top: 1px solid #E5E5E5; border-radius: 0 0 4px 4px;
  background: #F5F5F5;
  text-align: right;
  overflow: hidden;
}
div.modal-session div.actions button,
div.modal-session div.actions span.links {
  float: right;
}
div.modal-session div.actions button { margin-left: 24px; }
div.modal-session div.actions span.links {
  padding-top: 8px;
}


div.modal-confirm {
  padding: 40px;
  width: 512px;
}
div.modal-confirm h2,
div.modal-confirm p {
  text-align: center;
}
div.modal-confirm h2 {
  margin-bottom: 24px;
  color: #66BDD6;
  font-size: 24px;
}
div.modal-confirm h2.warn { color: #725238; }
div.modal-confirm p {
  font-size: 18px;
}
div.modal-confirm div.actions {
  margin: 36px -40px -40px; padding: 18px 32px;
  border-top: 1px solid #E5E5E5; border-radius: 0 0 4px 4px;
  background: #F5F5F5;
  text-align: right;
  overflow: hidden;
}
div.modal-confirm div.actions button,
div.modal-confirm div.actions span.links {
  float: right;
}
div.modal-confirm div.actions button { margin-left: 24px; }
div.modal-confirm div.actions span.links {
  padding-top: 8px;
}
