/*  Override padding-bottom value from js.
    Affects to media library items in attachment and in media library.
    Adds more space to item to show filename for better usability.
*/
.media-library-item__preview {
  padding-bottom: 70px !important;
}

/* Login changes */
.openid-connect-login-form {
  background-color: #fff;
  margin-top: calc(100px + 3.375rem);
  padding: 1rem;
}

.user-login-form details {
  display: block;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: #222330;
  border: 1px solid #dedfe4;
  border-radius: 2px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
  padding: 1rem;
}

.user-login-form .form-item__name,
.user-login-form .form-item__textfield {
  background: none;
  height: auto;
  padding: 1rem;
  width: 100%;
}

.user-login-form .button--action {
  background-color: #23408f;
  color: #fff;
}

#edit-field-quick-links {
  display: flex;
  flex-wrap: wrap;
}

#edit-field-quick-links > .form-item {
  flex-grow: 1;
  width: 30%;
}

.form-item--menu-menu-parent {
  display: none;
}

.node-preview-backlink {
  color: #fff;
}

.is-unpublished {
  color: #ff0000;
}

/* Hide unneccesary text if using smart date module. */
.field--type-daterange {
  #edit-field-event-dates-0--description {
    display: none;
  }
}

/* Style addition to smart date. Prevents layout not breaking if there are long translated texts */
.smartdate--widget {
  .fieldset__wrapper {
    display: flex;
    flex-direction: column;

    .form-item {
      margin-bottom: 0;
    }
  }
}
