/**
 * @file
 * Form presentation.
 */

form .field-multiple-table {
  margin: 0;
}

form .field-multiple-table .field-multiple-drag {
  width: 30px;
  padding-right: 0;
}

[dir="rtl"] form .field-multiple-table .field-multiple-drag {
  padding-left: 0;
}

form .field-multiple-table .field-multiple-drag .tabledrag-handle {
  padding-right: 0.5em;
}

[dir="rtl"] form .field-multiple-table .field-multiple-drag .tabledrag-handle {
  padding-right: 0;
  padding-left: 0.5em;
}

form .field-add-more-submit {
  margin: 0.5em 0 0;
}

.form-item,
.form-actions {
  margin-top: 1em;
  margin-bottom: 1em;
}

tr.odd .form-item,
tr.even .form-item {
  margin-top: 0;
  margin-bottom: 0;
}

.form-composite > .fieldset-wrapper > .description,
.form-item .description {
  font-size: 0.85em;
}

label.option {
  display: inline;
  font-weight: normal;
}

.form-composite > legend,
.label {
  display: inline;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: bold;
}

.form-checkboxes .form-item,
.form-radios .form-item {
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}

.form-type-radio .description,
.form-type-checkbox .description {
  margin-left: 2.4em;
}

[dir="rtl"] .form-type-radio .description,
[dir="rtl"] .form-type-checkbox .description {
  margin-right: 2.4em;
  margin-left: 0;
}

.marker {
  color: #e00;
}

.form-required::after {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0.3em;
  content: "";
  vertical-align: super;
  background-image: url("../../images/icons/required.svg");
  background-repeat: no-repeat;
  background-size: 6px 6px;
}

abbr.tabledrag-changed,
abbr.ajax-changed {
  border-bottom: none;
}

.pure-form .form-item input.error,
.pure-form .form-item textarea.error,
.pure-form .form-item select.error {
  border: 2px solid red;
}

/* Inline error messages. */
.form-item--error-message::before {
  display: inline-block;
  width: 14px;
  height: 14px;
  content: "";
  vertical-align: sub;
  background: url("../../images/icons/error.svg") no-repeat;
  background-size: contain;
}

fieldset {
  border: 1px solid #ccc;
}

form .field--name-field-image .form-text {
  width: 100%;
}

.people.create .form-wrapper {
  padding: .3em 0;
}

label {
  font-weight: bold;
}

.pure-form input,
.pure-form select,
.pure-form textarea {
  max-width: 100%;
}

#sidebar-left input.form-text,
#sidebar-right input.form-text {
  box-sizing: border-box;
  width: 100%;
}

.poll .form-radio {
  display: inline;
}

.rnd .pure-form input,
.rnd .pure-form select,
.rnd .pure-form textarea {
  border-radius: 5px;
}

/* Rounded-corner controls share the theme setting, including vendor defaults. */
body:not(.rnd) .pure-form input:not([type="radio"]):not([type="checkbox"]),
body:not(.rnd) .pure-form select,
body:not(.rnd) .pure-form textarea {
  border-radius: 0;
}

.field-multiple-actions {
  display: flow-root;
}
