/*
 * Author card styles.
 * Enqueued in addition to the page bundle on templates that render
 * templates/components/author.twig (single article, product, condition).
 * Kept in its own file since the theme has no SCSS build pipeline and the
 * page bundles are pre-compiled/minified.
 */

.author {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex !important;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  border: 1px solid #E3E3E3 !important;
  border-top: 1px solid #E3E3E3 !important;
  border-radius: 12px;
  padding: 1.25rem 1.5rem !important;
}

.author__top {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: center;
}

.author__profile {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.author__image {
  min-width: 100px !important;
  width: 100px !important;
  margin: 0 !important;
}

.author__image img {
  width: 100px !important;
  height: 100px !important;
  float: none !important;
  margin: 0 !important;
  border-radius: 50% !important;
  object-fit: cover;
}

.author__heading-group {
  margin: 0 !important;
}

.author__heading {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 0.35rem;
}

.author__name {
  margin: 0 !important;
  font-size: 16px;
  font-weight: 800;
}

.author__badge {
  display: -webkit-inline-box;
  display: -moz-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 0.25rem;
  background: #E4FBF0;
  color: #0F9D63;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.author__badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.author__role {
  margin: 0.35rem 0 0 !important;
  font-size: 13px;
  color: #727272;
}

.author__content {
  width: 100%;
}

.author__bio {
  margin: 0 !important;
  font-size: 14px;
  line-height: 1.5;
  color: #141714;
}

.author__more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 14px;
  font-weight: 700;
  color: #3A57D0;
  text-decoration: none;
}

.author__more::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.4em;
  -webkit-transition: .15s ease-in-out transform;
  -o-transition: .15s ease-in-out transform;
  transition: .15s ease-in-out transform;
}

.author__more:hover {
  text-decoration: underline;
}

.author__more:hover::after {
  -webkit-transform: translateX(3px);
  -ms-transform: translateX(3px);
  transform: translateX(3px);
}

@media only screen and (min-width: 49rem) {
  .author__top {
    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
  }

  .author__profile {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 200px;
    flex: 0 0 200px;
  }

  .author__content {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    width: auto;
  }

  .author__more {
    margin-top: 1.5rem;
    font-size: 18px;
  }
}
