.aie-course-pdf-button {
    appearance: none;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #ed1c24 0%, #b5121b 100%);
    box-shadow: 0 10px 24px rgba(181, 18, 27, 0.24);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 20px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.aie-course-pdf-button:hover,
.aie-course-pdf-button:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(181, 18, 27, 0.32);
}

.aie-course-pdf-button:focus-visible {
    outline: 3px solid rgba(237, 28, 36, .28);
    outline-offset: 3px;
}

.aie-course-pdf-button[disabled] {
    cursor: wait;
    opacity: .78;
    transform: none;
}

.aie-course-pdf-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    position: relative;
}

.aie-course-pdf-icon::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 1px;
    width: 6px;
    height: 11px;
    border-left: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.aie-course-pdf-icon::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 8px;
    width: 12px;
    height: 8px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.aie-course-pdf-status:empty {
    display: none;
}

.aie-course-pdf-status {
    font-size: 12px;
    font-weight: 600;
    opacity: .9;
}

/* Hidden working area used only while a PDF is being generated. */
.aie-pdf-stage {
    position: fixed !important;
    left: -100000px !important;
    top: 0 !important;
    z-index: -99999 !important;
    width: 760px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    color: #252525 !important;
    overflow: visible !important;
    opacity: 1 !important;
    pointer-events: none !important;
}

.aie-pdf-stage,
.aie-pdf-stage * {
    box-sizing: border-box !important;
}

.aie-pdf-stage .aie-course-pdf-button,
.aie-pdf-stage script,
.aie-pdf-stage style,
.aie-pdf-stage iframe,
.aie-pdf-stage video,
.aie-pdf-stage audio,
.aie-pdf-stage form,
.aie-pdf-stage nav,
.aie-pdf-stage footer,
.aie-pdf-stage header,
.aie-pdf-stage .site-header,
.aie-pdf-stage .site-footer,
.aie-pdf-stage .elementor-location-header,
.aie-pdf-stage .elementor-location-footer,
.aie-pdf-stage .breadcrumbs,
.aie-pdf-stage .breadcrumb,
.aie-pdf-stage .cookie-notice,
.aie-pdf-stage .grecaptcha-badge,
.aie-pdf-stage .woocommerce-notices-wrapper,
.aie-pdf-stage .elementor-widget-button,
.aie-pdf-stage .elementor-widget-form,
.aie-pdf-stage .elementor-widget-video,
.aie-pdf-stage [data-aie-pdf-remove] {
    display: none !important;
}

.aie-pdf-stage .elementor-section,
.aie-pdf-stage .elementor-container,
.aie-pdf-stage .elementor-column,
.aie-pdf-stage .elementor-widget-wrap,
.aie-pdf-stage .elementor-element,
.aie-pdf-stage .e-con,
.aie-pdf-stage .e-con-inner,
.aie-pdf-stage .wp-block-columns,
.aie-pdf-stage .wp-block-column {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
    inset: auto !important;
}

.aie-pdf-stage .elementor-tab-content,
.aie-pdf-stage .elementor-accordion-content,
.aie-pdf-stage [hidden],
.aie-pdf-stage [aria-hidden="true"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
}

.aie-pdf-stage .aie-pdf-content {
    background: #fff !important;
    width: 760px !important;
    padding: 14px 22px 24px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.52 !important;
}

.aie-pdf-stage h1,
.aie-pdf-stage h2,
.aie-pdf-stage h3,
.aie-pdf-stage h4,
.aie-pdf-stage h5,
.aie-pdf-stage h6 {
    page-break-after: avoid !important;
    break-after: avoid !important;
    font-family: Arial, Helvetica, sans-serif !important;
    line-height: 1.25 !important;
    margin: 18px 0 8px !important;
}

.aie-pdf-stage h1 {
    color: #181818 !important;
    font-size: 27px !important;
}

.aie-pdf-stage h2 {
    color: #ed1c24 !important;
    border-bottom: 2px solid #ed1c24 !important;
    font-size: 21px !important;
    padding-bottom: 5px !important;
}

.aie-pdf-stage h3 {
    color: #282828 !important;
    font-size: 17px !important;
}

.aie-pdf-stage h4,
.aie-pdf-stage h5,
.aie-pdf-stage h6 {
    color: #333 !important;
    font-size: 15px !important;
}

.aie-pdf-stage p,
.aie-pdf-stage li,
.aie-pdf-stage td,
.aie-pdf-stage th {
    color: #333 !important;
}

.aie-pdf-stage p {
    margin: 0 0 10px !important;
}

.aie-pdf-stage ul,
.aie-pdf-stage ol {
    margin: 5px 0 12px 24px !important;
    padding: 0 !important;
}

.aie-pdf-stage li {
    margin: 0 0 5px !important;
}

.aie-pdf-stage a {
    color: #b5121b !important;
    text-decoration: none !important;
}

.aie-pdf-stage img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 10px auto !important;
    object-fit: contain !important;
}

.aie-pdf-stage table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
    margin: 10px 0 16px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
}

.aie-pdf-stage thead {
    display: table-header-group !important;
}

.aie-pdf-stage tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
}

.aie-pdf-stage th {
    background: #ed1c24 !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-align: left !important;
}

.aie-pdf-stage th,
.aie-pdf-stage td {
    border: 1px solid #d7d7d7 !important;
    padding: 6px 7px !important;
    vertical-align: top !important;
    overflow-wrap: anywhere !important;
}

.aie-pdf-stage tr:nth-child(even) td {
    background: #f7f7f7 !important;
}

.aie-pdf-stage .swiper,
.aie-pdf-stage .slick-slider,
.aie-pdf-stage .owl-carousel {
    overflow: visible !important;
}

@media (max-width: 600px) {
    .aie-course-pdf-button {
        width: 100%;
    }
}
