/**
 * Preferred Sources — Onliner-like Google outline button.
 * Doctor/clinic: inside .rate-block. Article: under .node-meta-wrapper.
 * Kill-switch: _newdoctoraby_preferred_sources_pilot_enabled() in template.php
 */

.p1-preferred-sources {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  clear: both;
}

.p1-preferred-sources__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #dadce0;
  border-radius: 10px;
  background: #fff;
  color: #202124 !important;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none !important;
  text-align: left;
  position: relative;
  overflow: hidden;
  vertical-align: top;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.p1-preferred-sources__btn:before,
.p1-preferred-sources__btn:after {
  content: "";
  display: block;
  position: absolute;
  pointer-events: none;
}

.p1-preferred-sources__btn:before {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #4285f4 0%, #34a853 33%, #fbbc05 66%, #ea4335 100%);
  opacity: 0;
}

.p1-preferred-sources__btn:after {
  top: 1px;
  right: 1px;
  bottom: 1px;
  left: 1px;
  border-radius: 9px;
  background-color: #fff;
  opacity: 1;
}

.p1-preferred-sources__btn:hover,
.p1-preferred-sources__btn:focus {
  border-color: transparent;
  color: #202124 !important;
  text-decoration: none !important;
}

.p1-preferred-sources__btn:hover:before,
.p1-preferred-sources__btn:focus:before {
  opacity: 1;
}

.p1-preferred-sources__icon {
  display: block;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1;
}

.p1-preferred-sources__label {
  display: inline-block;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

/* Article: a bit more air under title/meta */
#news_single .p1-preferred-sources,
.node-type-news .p1-preferred-sources {
  margin: 14px 0 18px;
}

@media (max-width: 420px) {
  .p1-preferred-sources__btn {
    width: 100%;
    justify-content: flex-start;
  }

  .p1-preferred-sources__label {
    white-space: normal;
  }
}
