/* EMA Course PDF Generator — Button Styles */

.ema-pdf-wrap {
    margin: 48px 0 24px;
    text-align: center;
    position: relative;
}

.ema-pdf-buttons {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.ema-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background-color: #1F3864;
    color: #ffffff;
    border: 2px solid #1F3864;
    padding: 13px 28px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.02em;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(31, 56, 100, 0.22);
}

.ema-pdf-btn:hover {
    background-color: #E87722;
    border-color: #E87722;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(232, 119, 34, 0.3);
}

.ema-pdf-btn:active  { transform: translateY(0); }

.ema-pdf-btn:disabled {
    background-color: #9aaac4;
    border-color: #9aaac4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ema-pdf-btn--print {
    background-color: transparent;
    color: #1F3864;
    border-color: #1F3864;
    box-shadow: none;
}

.ema-pdf-btn--print:hover {
    background-color: #1F3864;
    color: #ffffff;
    border-color: #1F3864;
    box-shadow: 0 4px 12px rgba(31, 56, 100, 0.2);
}

.ema-pdf-btn--print:disabled {
    background-color: transparent;
    color: #9aaac4;
    border-color: #9aaac4;
}

.ema-pdf-btn svg { flex-shrink: 0; }

.ema-pdf-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: #999;
    letter-spacing: 0.01em;
}

/* Focus & accessibility */
.ema-pdf-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(31,56,100,0.12);
}
.ema-pdf-btn:focus-visible {
    outline: 3px solid rgba(232,119,34,0.95);
    outline-offset: 3px;
}

/* Small ephemeral status message shown near the button */
.ema-pdf-status {
    margin-top: 10px;
    font-size: 13px;
    color: #1F3864;
}

.ema-pdf-status.error {
    color: #b00020;
}
