

@import '../../amp-social-share/0.1/amp-social-share.css';

.i-amphtml-story-no-sharing .i-amphtml-story-share-list {
  display: none !important;
}

.i-amphtml-story-share-list::-webkit-scrollbar {
  width: 0px !important;
  background: transparent !important;
}

.i-amphtml-story-share-list {
  list-style: none !important;
  padding: 16px !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  width: calc(100% - 32px) !important;
}

.i-amphtml-story-share-item {
  width: 48px !important;
  height: 66px !important;
  padding: 0 16px !important;
  margin-bottom: 12px !important;
}

@media (max-width: 410px) {
  .i-amphtml-story-share-item {
    display: flex !important;
    justify-content: center !important;
    padding: 0 !important;
    min-width: 60px !important;
    width: 25% !important;
  }
}

@media (min-width: 410px) and (max-width: 500px) {
  .i-amphtml-story-share-item {
    display: flex !important;
    justify-content: center !important;
    padding: 0 !important;
    width: 20% !important;
  }
}

@media (min-width: 500px) and (max-width: 720px) {
  .i-amphtml-story-share-item {
    display: flex !important;
    justify-content: center !important;
    padding: 0 !important;
    width: 16.66% !important;
  }
}

.i-amphtml-story-share-item:empty {
  display: none !important;
}

.i-amphtml-story-share-icon {
  box-sizing: border-box !important;
  position: relative !important;
  width: 48px !important;
  height: 48px !important;
  display: block !important;
  cursor: pointer !important;
  border-radius: 4px !important;
  overflow: visible !important;

  /* for svg backgrounds: */
  background-position: 8px 8px !important;
  background-size: 32px 32px !important;
  background-repeat: no-repeat !important;
}

.i-amphtml-story-share-icon.amp-social-share-facebook {
  /* SVG icon has inner padding, so the glyph renders visually smaller than
   * other icons, so we work around it by setting a higher background size. */
  background-size: 38px 38px !important;
  background-position: 5px 5px !important;
}

.i-amphtml-story-share-icon:focus {
  outline: 2px solid #0389ff !important;
  outline-offset: 2px !important;
}

.i-amphtml-story-share-icon[type=email] {
  background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="#fff"><path d="M20 4H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"/><path d="M0 0h24v24H0z" fill="none"/></svg>') !important;
  background-color: #9AA0A6 !important;
}

.i-amphtml-story-share-icon[type=system] {
  background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="#fff"><path d="M0 0h24v24H0z" fill="none"/><path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>') !important;
  background-color: #9AA0A6 !important;
}

.i-amphtml-story-share-icon-link {
  background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="#fff"><path d="M0 0h24v24H0z" fill="none"/><path d="M3.9 12c0-1.7 1.4-3.1 3.1-3.1h4V7H7a5 5 0 0 0 0 10h4v-1.9H7A3.1 3.1 0 0 1 3.9 12zM8 13h8v-2H8v2zm9-6h-4v1.9h4a3.1 3.1 0 0 1 0 6.2h-4V17h4a5 5 0 0 0 0-10z"/></svg>') !important;
  background-color: #9AA0A6 !important;
  border: none !important;
}

.i-amphtml-story-share-icon .i-amphtml-story-share-label {
  position: absolute !important;
  top: 48px !important;
  left: 0 !important;
  width: 100% !important;
  color: rgba(0, 0, 0, 0.87) !important;
  padding-top: 5px !important; /* Making sure the whole icon is clickable. */
  text-transform: capitalize !important;
  font-family: 'Roboto', sans-serif !important;
  font-weight: 400 !important;
  line-height: 13px !important;
  font-size: 11px !important;
  text-align: center !important;
}
