.wp-pdf-download-container,
.wp-pdf-subscribe-modal,
.wp-pdf-subscribe-modal *,
.wp-pdf-download-container *,
.wp-pdf-auto-heading {
    font-family: "Noto Serif Bengali", serif;
}

.wp-pdf-auto-heading {
    margin: 1.4em 0 0.65em;
    color: #1f2937;
    font-size: clamp(1.3rem, 2.5vw, 1.85rem);
    line-height: 1.45;
    font-weight: 700;
}

.wp-pdf-download-container {
    margin: 24px 0;
}

.wp-pdf-download-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 320px);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid #efd8cb;
    border-radius: 5px;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 32%),
        linear-gradient(135deg, #fff9f5 0%, #ffffff 100%);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.wp-pdf-download-copy {
    min-width: 0;
}

.wp-pdf-download-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wp-pdf-download-copy h3 {
    margin: 0 0 8px;
    color: #172033;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.45;
}

.wp-pdf-download-copy p {
    margin: 0;
    color: #526072;
    font-size: 14px;
    line-height: 1.8;
}

.wp-pdf-download-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wp-pdf-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    border: 0;
    padding: 12px 16px;
    border-radius: 5px;
    background: linear-gradient(135deg, #d9485f 0%, #f97316 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(217, 72, 95, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.wp-pdf-download-btn:hover,
.wp-pdf-download-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(217, 72, 95, 0.28);
    filter: saturate(1.05);
}

.wp-pdf-download-status {
    color: #0f766e;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.wp-pdf-btn-icon,
.wp-pdf-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wp-pdf-btn-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.18);
}

.wp-pdf-btn-icon svg,
.wp-pdf-action-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.wp-pdf-download-btn:focus-visible,
.wp-pdf-subscribe-btn:focus-visible,
.wp-pdf-verify-btn:focus-visible,
.wp-pdf-modal-close:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}

.wp-pdf-subscribe-modal[hidden] {
    display: none;
}

.wp-pdf-subscribe-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.72);
}

.wp-pdf-modal-content {
    position: relative;
    width: min(100%, 480px);
    padding: 26px 18px 18px;
    border-radius: 5px;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
    text-align: center;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.24);
}

.wp-pdf-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 5px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.wp-pdf-modal-content h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    line-height: 1.45;
}

.wp-pdf-modal-content p {
    margin: 0 0 12px;
    color: #334155;
    font-size: 14px;
    line-height: 1.8;
}

.wp-pdf-modal-note {
    padding: 12px 14px;
    border: 1px solid #fed7aa;
    border-radius: 5px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 13px;
}

.wp-pdf-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.wp-pdf-subscribe-btn,
.wp-pdf-verify-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 11px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.wp-pdf-subscribe-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.18);
}

.wp-pdf-verify-btn {
    border: 0;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(20, 184, 166, 0.18);
}

.wp-pdf-subscribe-btn:hover,
.wp-pdf-subscribe-btn:focus,
.wp-pdf-verify-btn:hover,
.wp-pdf-verify-btn:focus {
    transform: translateY(-1px);
}

.wp-pdf-verify-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wp-pdf-verify-btn.is-enabled {
    opacity: 1;
}

.wp-pdf-verify-btn.is-loading {
    opacity: 0.8;
    pointer-events: none;
}

.wp-pdf-verify-btn.is-loading .wp-pdf-action-icon svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.wp-pdf-follow-copy {
    margin-top: 14px;
    color: #5b6474;
    font-size: 13px;
}

@media (max-width: 860px) {
    .wp-pdf-download-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .wp-pdf-download-container {
        margin: 18px 0;
    }

    .wp-pdf-download-card {
        gap: 14px;
        padding: 16px 14px;
    }

    .wp-pdf-download-copy h3 {
        font-size: 18px;
    }

    .wp-pdf-download-copy p,
    .wp-pdf-modal-content p {
        font-size: 13px;
    }

    .wp-pdf-modal-content {
        width: 100%;
        padding: 24px 14px 14px;
    }
}
