* {
  box-sizing: border-box;
}

body.modal {
  overflow: hidden;
}

label[for="slugdiv-hide"] {
  display: none;
}

#slugdiv {
  display: none;
}

#wpfooter {
  display: none;
}

#snowball_meta {
  background-color: #32373c;
}

#snowball_meta h3 {
  color: #eee;
}

#snowball_meta .hndle {
  background-color: #23282d;
  border-bottom: none;
}

#snowball_meta .inside {
  margin: 0;
}

#snowball-toolbar {
  position: -webkit-sticky;
  position: sticky;
  z-index: 1000;
  top: 32px;
  margin: 0;
  padding: 5px 0 0;
  background-color: #32373c;
  white-space: nowrap;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

#snowball-toolbar .buttons {
  padding-bottom: 0.75em;
  overflow-x: auto;
}

#snowball-toolbar .button {
  height: auto;
  width: 75px;
  padding: 0.8em 0 0.3em;
  border: none;
  margin-right: 4px;
  text-align: center;
  font-size: 10px;
  line-height: 1.7em;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#snowball-toolbar .button .fa {
  font-size: 18px;
}

#snowball-toolbar .tags {
  margin-bottom: 8px;
  font-size: 10px;
  color: #bbb;
}

#snowball-toolbar .tag {
  display: inline-block;
  padding: 0 8px;
  background-color: #222;
  vertical-align: top;
  border-radius: 4px;
  cursor: pointer;
}

#snowball-toolbar .tag:hover {
  background-color: #111;
  color: #fff;
}

#snowball-toolbar .tag.active {
  background-color: #0B5E9A;
  color: #fff;
}

#snowball-toolbar .settings {
  float: right;
}

#snowball-toolbar .settings .button {
  width: 70px;
  padding: 0.3em 0 0.2em;
  margin: 0 0 0 4px;
  float: none;
  box-shadow: none;
}

#snowball-toolbar .settings .button:hover {
  background-color: #e0e0e0;
}

#snowball-toolbar .settings .button:active {
  background-color: #d0d0d0;
}

#snowball-toolbar .menu-toggle {
  display: inline-block;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

#snowball-toolbar .dialog {
  display: none;
  padding: 2em;
  border-radius: 6px;
  background-color: #f8f8f8;
  overflow: hidden;
}

#snowball-toolbar .dialog .header {
  margin-bottom: 1em;
}

#snowball-toolbar .dialog h2 {
  margin-top: 0 !important;
}

#snowball-toolbar .dialog p {
  margin-bottom: 0;
}

#snowball-toolbar .dialog textarea {
  width: 100%;
  height: 200px;
}

#snowball-toolbar .dialog .button {
  margin: 0;
  background-color: #00a0d2;
  color: #fff;
}

#snowball-toolbar .dialog .button:hover {
  background-color: #0091cd;
}

#snowball-toolbar .dialog .close {
  float: right;
  font-size: 18px;
  cursor: pointer;
}

#snowball-toolbar .cog .button {
  width: 25px;
  height: 22px;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

#snowball-toolbar .settings .fa {
  vertical-align: baseline;
  font-size: inherit;
}

#snowball-update {
  float: right;
}

#snowball-update a,
#snowball-toolbar .button.unsaved,
#snowball-toolbar .button.unsaved:hover,
#snowball-toolbar .button.unsaved:focus,
#snowball-toolbar .button.unsaved:active {
  background-color: #00a0d2;
  border-color: #0073aa;
  color: white;
  box-shadow: inset 0 1px 0 rgba(120,200,230,.5), 0 1px 0 rgba(0,0,0,.15);
}

#snowball-preview {
  float:left;
}

.snowball-block {
  margin: 1em 0;
  background-color: #fff;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.snowball-block.ui-sortable-helper {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2), 0 -3px 6px rgba(0, 0, 0, 0.2);
}

.snowball-block:first-child {
  margin-top: 0;
}

.snowball-block:last-child {
  margin-bottom: 0;
}

.snowball-gui {
  position: relative;
}

.snowball-tinker,
.snowball-preview {
  width: 50%;
  height: 100%;
  min-height: 300px;
}

.snowball-title {
  margin-bottom: 1em;
  font-weight: bold;
}

.snowball-title,
.snowball-title-button {
  display: inline-block;
}

.snowball-title-button-group {
  float: right;
  margin-left: 6px;
}

.snowball-title-button {
  width: 26px;
  padding: 2px 0;
  border: 1px solid #ddd;
  border-right: none;
  line-height: 18px;
  vertical-align: top;
  color: #999;
  font-weight: 300;
  text-align: center;
  cursor: pointer;
}

.snowball-title-button:first-child {
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.snowball-title-button:last-child {
  border-right: 1px solid #ccc;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

.snowball-title-button:hover {
  background-color: #fff;
  color: #555;
}

.snowball-title-button:active {
  background-color: #fff;
  box-shadow: inset 1px 2px 3px rgba(0, 0, 0, 0.1);
  color: #555;
}

.snowball-title-button:hover {
  opacity: 1;
}

.snowball-tinker {
  padding: 1em;
  background-color: #f8f8f8;
  border-right: 1px solid #ddd;
  overflow-y: auto;
}

.snowball-tinker textarea {
  width: 100%;
  max-width: 100%; 
}

.snowball-preview {
  display: block;
  position: absolute;
  left: 50%;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  height: 100%;
  background-color: #fff;
}

.snowball-block form > p {
  margin-bottom: 1.5em;
}

.snowball-block label + label {
  margin-left: 1em;
}

.snowball-block form > p:last-child {
  margin-bottom: 1em;
}

.snowball-block input {
  max-width: 100%;
  margin-left: 0;
  border: 1px solid #ddd;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
}

.snowball-block input:focus {
  outline-width: 2px;
}

.snowball-block .quicktags-toolbar {
  background: none;
}

.wp-picker-clear,
div.wp-picker-holder {
  z-index: 999;
  position: absolute;
}

.handsontable.ht_clone_top {
  z-index: -10;
}

.snowball-code {
  position: relative;
  background-color: #f8f8f8;
  border-top: 1px solid #ddd;
  display: none;
}

.snowball-code-title {
  margin: 0 0 0.25em;
  font-weight: bold;
  resize: none;
}

.snowball-editor {
  display: inline-block;
  width: 50%;
  height: 100%;
  min-height: 200px;
  vertical-align: top;
  background-color: #f8f8f8;
  padding: 1em;
}

.snowball-html {
  border-right: 1px solid #ddd;;
}

.snowball-editor-box {
  width: 100%;
  height: calc(100% - 20px);
  min-height: 150px;
}

.CodeMirror {
  background-color: #111 !important;
}

.snowball-code .CodeMirror {
  height: calc(100% - 20px);
}

.snowball-html .CodeMirror,
.CodeMirror-linebackground.readonly,
.CodeMirror-linebackground.readonly + .CodeMirror-gutter-wrapper > .CodeMirror-linenumber {
  background-color: #272822 !important;
}

.snowball-block.modal,
#snowball-toolbar .dialog.modal {
  display: block;
  position: fixed;
  top: 3em;
  left: 2.5em;
  right: 2.5em;
  bottom: 3em;
  z-index: 100001;
  margin: 0;
}

#snowball-toolbar .dialog.modal {
  margin: auto;
  max-width: 600px;
  max-height: 500px;
}

#modal-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  z-index: 100000;
  background-color: rgba(0, 0, 0, 0.8);
  transition: opacity 0.5s;
  pointer-events: none;
}

body.modal #modal-bg {
  opacity: 1;
  pointer-events: auto;
}

.snowball-block.modal .snowball-gui,
.snowball-block.modal .snowball-code {
  height: 50%;
}

@media (max-width: 600px) {
  #snowball-toolbar {
    top: 0;
  }

  #snowball-toolbar .settings {
    float: none;
    margin: 5px 0;
  }
}

@media (min-width: 601px) and (max-width: 782px) {
  #snowball-toolbar {
    top: 46px;
  }
}
