.article-buttons .buttons {
  position: relative;
}

.article-buttons .buttons a.icon-print,
.article-buttons .buttons a.icon-download {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  flex: 0 0 48px;
  position: relative;
  overflow: visible;
  background-image: url("../images/svg-icons/pdf-default.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 23px 25px;
  color: transparent;
  font-size: 0;
}

.article-buttons .buttons a.icon-print::before,
.article-buttons .buttons a.icon-download::before {
  content: none !important;
  display: none !important;
}

.pdf-download-status {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  z-index: 2;
  opacity: 0;
  transform: translate(-50%, 3px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.article-buttons .buttons a[data-pdf-loading="true"] > .pdf-download-status {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-bio .article-buttons .buttons a.icon-print:hover::before,
.site-bio .article-buttons .buttons a.icon-download:hover::before {
  background-image: none;
}

.site-chimie .article-buttons .buttons a.icon-print:hover::before,
.site-chimie .article-buttons .buttons a.icon-download:hover::before {
  background-image: none;
}

.site-bio .article-buttons .buttons a.icon-print:hover,
.site-bio .article-buttons .buttons a.icon-download:hover {
  background-image: url("../images/svg-icons/pdf-bio.svg");
}

.site-chimie .article-buttons .buttons a.icon-print:hover,
.site-chimie .article-buttons .buttons a.icon-download:hover {
  background-image: url("../images/svg-icons/pdf-chimie.svg");
}

.pdf-download-status__spinner {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(150, 150, 150, 0.35);
  border-top-color: var(--main-bg-color);
  animation: pdf-feedback-spin 0.75s linear infinite;
}

@keyframes pdf-feedback-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .pdf-download-status {
    bottom: calc(100% + 8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdf-download-status {
    transition: none;
  }

  .pdf-download-status__spinner {
    animation: none;
  }
}
