/*
 * Copied from theme Claro
 */

/**
 * @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 0.25rem rgba(0, 0, 0, 0.1);
}

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

/**
 * Fieldset legend.
 */

.fieldset__legend {
  display: contents; /* For Firefox. */
  float: left; /* iOS Safari, Android Chrome, Edge. */
  width: 100%; /* iOS Safari, Android Chrome, Edge. */
  margin-block-end: 1rem;
  color: #55565b;
  font-weight: bold;
}

.fieldset__legend--composite {
  float: none;
  width: auto;
  margin-block-start: calc(0.5rem / 2); /* 4px */
  margin-block-end: calc(0.5rem / 2); /* 4px */
  color: inherit;
  font-size: 0.889rem; /* 14px */
  line-height: calc(18rem / 16); /* 18px */
}

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

/* 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;
}

.fieldset__label.is-disabled {
  color: #55565b;
}

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

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

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

  .fieldset__label--group {
    padding: 0;
  }
}

.fieldset__description {
  margin-block-start: calc(6rem / 16); /* 6px */
  margin-block-end: calc(6rem / 16); /* 6px */
  color: #55565b;
  font-size: 0.79rem; /* ~13px */
  line-height: calc(17rem / 16); /* 17px */
}

.fieldset__description.is-disabled {
  color: #55565b;
}

/* Error message (Inline form errors). */

.fieldset__error-message {
  margin-block-start: calc(6rem / 16); /* 6px */
  margin-block-end: calc(6rem / 16); /* 6px */
  color: #dc2323;
  font-size: 0.79rem; /* ~13px */
  font-weight: normal;
  line-height: calc(17rem / 16); /* 17px */
}

.fieldset__wrapper {
  margin: 1rem;
  /**
   * Remove the extra padding of container-inline wrapper if it's used inside a fieldset
   */
}

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

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

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

.fieldset__wrapper--group {
  margin: 0;
}
