/**
 * @file
 * Visual styles for form components.
 */

form .field-multiple-table {
  margin: 0;
}
form .field-multiple-table .field-multiple-drag {
  width: 30px;
  padding-right: 0; /* LTR */
}
[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; /* LTR */
}
[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;
}

/**
 * Markup generated by Form API.
 */
.form-composite > .fieldset-wrapper > .description,
.form-item .description {
  font-size: 0.85em;
}
label.option:not('.no-styling') {
  display: inline;
  font-weight: normal;
}
.form-composite > legend,
.label {
  display: inline;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: bold;
}

.marker {
  color: #e00;
}
.form-required:after {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0.3em;
  content: "";
  vertical-align: super;
  /* Use a background image to prevent screen readers from announcing the text. */
  background-image: url(../../../../../core/misc/icons/ee0000/required.svg);
  background-repeat: no-repeat;
  background-size: 6px 6px;
}
abbr.tabledrag-changed,
abbr.ajax-changed {
  border-bottom: none;
}
.form-item input.error,
.form-item textarea.error,
.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(../../../../../core/misc/icons/e32700/error.svg) no-repeat;*/
/*  background-size: contain;*/
/*}*/

.form-item--error-message {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #4a3041;
  margin-top: 10px;
}

.form-item--error-message:before {
  display: inline-block;
  content: '';
  margin-left: 0;
  margin-right: 5px;
  width: 20px;
  height: 20px;
  border-radius: 18.5px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url('../../integration/public/assets/images/cancel.svg');
}
