/**
 * @file
 * Contribute styles.
 */

/**
 * Content.
 */
.webform-contribute-content {
  max-width: 1000px;
}

/**
 * Image.
 */
img.webform-contribute-image {
  width: 100%;
}

/**
 * Quote.
 */
blockquote.webform-contribute-quote {
  margin: 2em 40px;
  font-size: 1.385em;
  font-weight: bold;
}

blockquote.webform-contribute-quote:before {
  color: rgb(6, 120, 190);
  content: "“";
  float: left;
  font-size: 3em;
  margin: 0.2em 0 0 -0.6em;
}

/**
 * Community Information.
 * @see core/themes/seven/css/components/system-status-report-general-info.css
 */
.webform-contribute-community-info {
  border: 1px solid #ccc;
  border-radius: 3px;
  margin-bottom: 25px;
}

.webform-contribute-community-info__header {
  background-color: #f5f5f2;
  padding: 10px;
  margin: 0;
  overflow: hidden;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  font-size: 14px;
  text-transform: uppercase;
}

.webform-contribute-community-info__item {
  background: #fcfcfa;
  border-top: 1px solid #ccc;
  padding: 10px 10px 20px;
  box-sizing: border-box;
  overflow-x: auto;
}

.webform-contribute-community-info__item-icon {
  display: inline-block;
  height: 55px;
  width: 55px;
  vertical-align: top;
}
.webform-contribute-community-info__item-icon:before {
  content: "";
  background-size: 45px;
  background-position: 50% center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  display: block;
}
.webform-contribute-community-info__item-icon--account:before {
  background-image: url(../images/contribute/icons/cccccc/account.svg);
}
.webform-contribute-community-info__item-icon--membership:before {
  background-image: url(../images/contribute/icons/cccccc/membership.svg);
}
.webform-contribute-community-info__item-icon--contribution:before {
  background-image: url(../images/contribute/icons/cccccc/contribution.svg);
}

.webform-contribute-community-info__item-details {
  box-sizing: border-box;
  display: inline-block;
  width: calc(100% - 60px);
  padding-left: 10px; /* LTR */
  position: relative;
}
[dir="rtl"] .webform-contribute-community-info__item-details {
  padding-right: 10px;
  padding-left: 0;
}

.webform-contribute-community-info__item-details .button {
  margin: 1em 0 0 0;
}

@media screen and (min-width: 48em) {
  .webform-contribute-community-info__items {
    display: flex;
    flex-wrap: wrap;
    overflow-x: hidden;
  }

  .webform-contribute-community-info__item {
    flex: 1;
    flex-basis: 33%;
    width: 33%;
  }

  .webform-contribute-community-info__item:nth-child(2),
  .webform-contribute-community-info__item:nth-child(3) {
    border-left: 1px solid #ccc; /* LTR */
  }
  [dir="rtl"] .webform-contribute-community-info__item:nth-child(1),
  [dir="rtl"] .webform-contribute-community-info__item:nth-child(2) {
    border-left: 1px solid #ccc;
  }
}

@media screen and (min-width: 60em) {
  .webform-contribute-community-info__item-icon {
    width: 55px;
    height: 55px;
  }
  .webform-contribute-community-info__item-icon:before {
    background-size: 45px;
  }
}

@media screen and (max-width: 48em) {
  .webform-contribute-community-info__header {
    display: none;
  }
  .webform-contribute-community-info {
    border-top: 0;
    margin-top: 25px;
  }
}
