
/* -------------------------------- Header --------------------------------- */


.msgbox-header {
  line-height: 1.45;
  font-size: 1.25em;
  padding: 16px 20px; /* 61px Höhe */
  border-bottom: 1px solid #ddd;

  font-weight: normal; /* falls .msgbox-header <h2> oder <h3> */
  margin: 0;
}

.msgbox-header:empty,
.msgbox-noheader .msgbox-header {
  display: none;
}


/* -------------------------------- Content -------------------------------- */

.msgbox-content {
  line-height: 1.45;
  overflow-y: auto;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 5px 20px;
}


.msgbox-content .separator {
  border-top: 1px solid #ddd;
}


/* --------------------------- Standard-Inhaltselemente ------------------------------ */

.msgbox-content label {
  display: block;
  padding: 9px 0;
  cursor: pointer;
}

.msgbox-content label span:first-child {
  display: inline-block;
  color: gray;
  padding-left: 10px;
}


.msgbox-content input[type="text"],
.msgbox-content input[type="password"],
.msgbox-content input[type="number"],
.msgbox-content input[type="tel"],
.msgbox-content textarea {
  font: inherit;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  border: none;
  background-color: #eee;
  padding: 6px 10px;
}

.msgbox-content input[type="radio"],
.msgbox-content input[type="checkbox"] {
  margin-right: 14px;
}

.msgbox-content textarea {
  resize: none;
}

.msgbox-content > *:first-child,
.msgbox-content > style:first-child + *,
.msgbox-content > script:first-child + *,
.msgbox-content > style:first-child + script + *,
.msgbox-content > script:first-child + style + * {
  margin-top: 0;
}

.msgbox-content > *:last-child {
  margin-bottom: 0;
}


.msgbox-content table {
  border-collapse: collapse;
}

.msgbox-content td {
  padding: 2px 10px;
}

.msgbox-content td:first-child {
  padding-left: 0;
}
.msgbox-content td:last-child {
  padding-right: 0;
}

.msgbox figure {
  display: block;
  margin: 0;
}

.msgbox-figure figcaption {
  padding: 5px 0;
}




/* --------------------------- Buttons im Footer --------------------------- */

.msgbox-footer {
  padding: 10px 20px;
  text-align: right;
  border-top: 1px solid #ddd;
}

.msgbox-footer label,
.msgbox-footer button {
  font: inherit;
  background-color: transparent;
  padding: 5px 0;
  border: none;
  margin: 0 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.msgbox-footer label:first-child,
.msgbox-footer button:first-child {
  margin: 0;
}


.msgbox-footer label:not([for]), /* label:disabled = <label data-for="..."> */
.msgbox-footer button:disabled {
  color: #7F7F7F;
}

.msgbox-footer label[for],
.msgbox-footer button:not(:disabled) {
  color: #47d;
  cursor: pointer;
}

.msgbox-footer label[for]:hover,
.msgbox-footer button:not(:disabled):hover {
  opacity: 0.7;
}

.msgbox-footer label[for]:active,
.msgbox-footer button:not(:disabled):active {
  opacity: 1;
}


.msgbox-footer button:not(:disabled):focus { /* .msgbox-footer label[for]:focus nicht umsetzbar */
  color: darkorange;
  outline: none;
}



/* ------------------------------ Normalizer ------------------------------ */

.msgbox button::-moz-focus-inner, /* Remove inner padding and border in Firefox 4+ */
.msgbox input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

