.leo-pdf-widget {
    display: inline-flex;
    position: relative;
}


.leo-pdf-button {
    appearance: none;
    align-items: center;
    background-color: transparent !important;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0 !important;
}

.leo-pdf-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.leo-pdf-icon {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.leo-pdf-icon svg {
    display: block;
    fill: currentColor;
}

.leo-pdf-spinner {
    animation: leo-pdf-spin 0.75s linear infinite;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-right-color: transparent;
    display: none;
    height: 1em;
    opacity: 0.9;
    width: 1em;
}

.leo-pdf-button.is-loading {
    cursor: progress;
}

.leo-pdf-button.is-loading .leo-pdf-icon {
    display: none;
}

.leo-pdf-button.is-loading .leo-pdf-spinner {
    display: inline-block;
}

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

@media (prefers-reduced-motion: reduce) {
    .leo-pdf-spinner {
        animation-duration: 1.5s;
    }
}
