/*
 * do not edit this file.
 * see the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */

/**
 * @file
 * fieldset styles.
 */

.fieldset {
  min-width: 0;
  margin: 1rem 0;
  padding: 0;
  color: #232429;
  border: 1px solid #dedfe4;
  border-radius: 2px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fieldset--group {
  color: inherit;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

/* ie workaround. */

/* stylelint-disable-next-line selector-type-no-unknown */

_:-ms-fullscreen,
.fieldset {
  display: table;
  box-sizing: border-box;
  width: 100%;
}

/**
 * fieldset legend.
 */

.fieldset__legend {
  display: contents; /* for firefox. */
  float: left; /* ios safari, android chrome, edge. */
  width: 100%; /* ios safari, android chrome, edge. */
  margin-bottom: 1rem;
  color: #55565b;
  font-weight: bold;
}

@media screen and (min-width: 48em) {
  .fieldset__legend {
    margin-bottom: 1.5rem;
  }
}

.fieldset__legend--composite {
  float: none;
  width: auto;
  margin-top: 0; /* ie11 and edge do not collapse this margin. ideally this would be 4px */
  margin-bottom: 0.25rem; /* 4px */
  color: inherit;
  font-size: 0.889rem; /* 14px */
  line-height: 1.125rem; /* 18px */
}

/* this is used only on install configure form. */

.fieldset__legend--group {
  text-transform: uppercase;
  color: inherit;
}

.fieldset__label {
  display: block;
  padding: 1rem;
  line-height: 1rem;
}

@media screen and (min-width: 48em) {
  .fieldset__label {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
}

.fieldset__label--group {
  padding: 0;
  line-height: inherit;
}

.fieldset__label.is-disabled {
  color: #828388;
}

.fieldset__label.has-error {
  color: #dc2323;
}

.fieldset__description {
  margin-top: 0.375rem; /* 6px */
  margin-bottom: 0.375rem; /* 6px */
  color: #55565b;
  font-size: 0.79rem; /* ~13px */
  line-height: 1.0625rem; /* 17px */
}

.fieldset__description.is-disabled {
  color: #828388;
}

/* error message (inline form errors). */

.fieldset__error-message {
  margin-top: 0.375rem; /* 6px */
  margin-bottom: 0.375rem; /* 6px */
  color: #dc2323;
  font-size: 0.79rem; /* ~13px */
  font-weight: normal;
  line-height: 1.0625rem; /* 17px */
}

.fieldset__wrapper {
  margin: 1rem;
}

@media screen and (min-width: 48em) {
  .fieldset__wrapper {
    margin: 1.5rem 1.5rem 1.75rem;
  }
}

.fieldset__legend--visible ~ .fieldset__wrapper {
  margin-top: 0;
}

.fieldset__wrapper--group {
  margin: 0;
}

/**
 * remove the unnecessary extra padding of container-inline wrapper if it's used
 * inside a fieldset.
 */

.fieldset__wrapper > .container-inline {
  padding: 0;
}

