.support-download {
    margin-top: 1.75rem;
}

.support-download .support-download__button[aria-disabled="true"] {
    cursor: progress;
}

.support-download .support-download__button[aria-disabled="true"]::before {
    content: "";
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-right: 10px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: support-download-spin 0.8s linear infinite;
}

@keyframes support-download-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .support-download .support-download__button[aria-disabled="true"]::before {
        animation-duration: 2.4s;
    }
}

/* Read out by screen readers while the PDF is prepared; only a failure is shown. */
.support-download__status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.support-download__status.is-error {
    position: static;
    width: auto;
    height: auto;
    margin: 0.75rem 0 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

/* Repeats the download after the article. The technical notes accordion
   already ends with the same 5rem, and on mobile both blocks end with 3rem.
   A panel guide's last block ends with 5rem if it is text and 3rem if it is a table. */
.support-download-footer {
    margin-top: 5rem;
}

.accordion + .support-download-footer,
.simple-text + .support-download-footer {
    margin-top: 0;
}

.table + .support-download-footer {
    margin-top: 2rem;
}

.support-download-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    padding: 2.5rem 3rem;
    box-sizing: border-box;
    background: var(--color-light-grey);
    border-radius: 20px;
}

.support-download-footer__text h2 {
    margin: 0;
}

.support-download-footer__text p {
    margin: 0.5rem 0 0;
    font-size: 16px;
}

.support-download-footer .support-download {
    flex: 0 0 auto;
    margin-top: 0;
}

@media (max-width: 992px) {
    .support-download-footer,
    .table + .support-download-footer {
        margin-top: 0;
    }

    .support-download-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
    }
}

@media print {
    .support-download,
    .support-download-footer {
        display: none !important;
    }
}
