/**
 * @file
 * Visual styling for forms in the off-canvas dialog.
 */

#drupal-off-canvas form {
  color: inherit;
  font-family: inherit;
}

#drupal-off-canvas input[type="checkbox"] {
  -webkit-appearance: checkbox;
}

#drupal-off-canvas input[type="radio"] {
  -webkit-appearance: radio;
}

#drupal-off-canvas select:not([multiple]) {
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
}

#drupal-off-canvas option {
  display: block;
  font-family: inherit;
}

#drupal-off-canvas label {
  color: inherit;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
}

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

#drupal-off-canvas .visually-hidden {
  width: 0;
  height: 0;
  letter-spacing: -2em;
  opacity: 0;
}

#drupal-off-canvas .description,
#drupal-off-canvas .form-item .description,
#drupal-off-canvas .details-description {
  margin-top: 5px;
  color: inherit;
  font-family: inherit;
  font-size: 12px;
  font-style: normal;
}

#drupal-off-canvas .form-item {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Set size and position for all inputs. */
#drupal-off-canvas .form-select,
#drupal-off-canvas .form-text,
#drupal-off-canvas .form-tel,
#drupal-off-canvas .form-email,
#drupal-off-canvas .form-url,
#drupal-off-canvas .form-search,
#drupal-off-canvas .form-number,
#drupal-off-canvas .form-color,
#drupal-off-canvas .form-file,
#drupal-off-canvas .form-textarea,
#drupal-off-canvas .form-date,
#drupal-off-canvas .form-time {
  display: block;
  box-sizing: border-box;
  max-width: 100%;
  margin: 5px 0 0 0;
  padding: 6px;
  color: #333;
  border-width: 1px;
  border-radius: 2px;
  font-family: inherit;
  font-size: 14px;
  line-height: 16px;
}

#drupal-off-canvas .text-format-wrapper select {
  font-size: 12px !important;
}

/* Reduce contrast for fields against dark background. */
#drupal-off-canvas .form-text,
#drupal-off-canvas .form-tel,
#drupal-off-canvas .form-email,
#drupal-off-canvas .form-url,
#drupal-off-canvas .form-search,
#drupal-off-canvas .form-number,
#drupal-off-canvas .form-color,
#drupal-off-canvas .form-file,
#drupal-off-canvas .form-textarea,
#drupal-off-canvas .form-date,
#drupal-off-canvas .form-time {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  appearance: none;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#drupal-off-canvas .form-text:focus,
#drupal-off-canvas .form-tel:focus,
#drupal-off-canvas .form-email:focus,
#drupal-off-canvas .form-url:focus,
#drupal-off-canvas .form-search:focus,
#drupal-off-canvas .form-number:focus,
#drupal-off-canvas .form-color:focus,
#drupal-off-canvas .form-file:focus,
#drupal-off-canvas .form-textarea:focus,
#drupal-off-canvas .form-date:focus,
#drupal-off-canvas .form-time:focus {
  color: #212529;
  background-color: #fff;
  border-color: #809ee2;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(0, 60, 197, 0.25);
}

#drupal-off-canvas td .form-item,
#drupal-off-canvas td .form-select {
  margin: 0;
}

#drupal-off-canvas .form-file {
  width: 100%;
  margin-bottom: 5px;
}

#drupal-off-canvas .form-actions {
  margin: 10px 0;
  text-align: center;
}

#drupal-off-canvas .ui-autocomplete-input {
  background-image: url(../../../images/off-canvas/throbber-inactive.png);
  background-repeat: no-repeat;
  background-position: right center;
  /* LTR */
}

#drupal-off-canvas .ui-autocomplete-input.ui-autocomplete-loading {
  background-image: url(../../../images/off-canvas/throbber-active.gif);
}

[dir="rtl"] #drupal-off-canvas .ui-autocomplete-input {
  background-position: left center;
}

#drupal-off-canvas .ui-autocomplete {
  position: absolute;
  top: 0;
  left: 0;
  cursor: default;
  border: 1px solid #ccc;
  background-color: white;
}

#drupal-off-canvas .ui-autocomplete li,
#drupal-off-canvas .ui-autocomplete li:last-child {
  padding: 3px 5px;
  border: none;
}

#drupal-off-canvas .ui-autocomplete li a {
  display: block;
  color: #0074bd !important;
}

#drupal-off-canvas .js-form-type-textarea select.form-select {
  font-size: 12px !important;
}

#drupal-off-canvas .form-select {
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    -moz-padding-start: calc(0.75rem - 3px);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: none;
}

.form-select:focus {
  border-color: #809ee2;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(0, 60, 197, 0.25);
}
