#e2pdf-pdf-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #1e2235;
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .30);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 99999;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    max-width: min(480px, 90vw);
    white-space: nowrap;
}

#e2pdf-pdf-toast.e2pdf-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#e2pdf-pdf-toast[data-type="error"] {
    background: #b91c1c;
}

#e2pdf-pdf-toast[data-type="error"] .e2pdf-toast-spinner {
    display: none;
}

.e2pdf-toast-spinner {
    flex-shrink: 0;
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .30);
    border-top-color: #fff;
    border-radius: 50%;
    animation: e2pdf-spin .75s linear infinite;
}

.e2pdf-btn-spinner {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: e2pdf-spin .75s linear infinite;
    vertical-align: middle;
    margin-top: -2px;
    margin-right: 2px;
}

@keyframes e2pdf-spin {
    to { transform: rotate(360deg); }
}

a.e2pdf-btn-loading {
    opacity: .7;
    pointer-events: none;
    cursor: default !important;
}

.e2pdf-download-error {
    display: block;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    color: #b91c1c;
    font-size: 13px;
    margin-top: 6px;
    text-align: center;
    transition: max-height .3s ease, opacity .3s ease;
}

.e2pdf-download-error.e2pdf-error-visible {
    max-height: 80px;
    opacity: 1;
}
