.wp-pdf-viewer-shell {
    --wp-pdf-accent: #252531;
    --wp-pdf-accent-contrast: #ffffff;
    position: relative;
    width: 100%;
}

.wp-pdf-cover {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 420px;
    overflow: hidden;
    background: #111827;
}

.wp-pdf-cover-image,
.wp-pdf-cover-fallback {
    display: block;
    width: 100%;
    height: 100%;
    background: #111827;
}

.wp-pdf-cover-image {
    object-fit: cover;
    object-position: top center;
}

.wp-pdf-cover-fallback {
    background:
        linear-gradient(180deg, rgba(37, 37, 49, 0.18) 0%, rgba(17, 24, 39, 0.82) 100%),
        linear-gradient(135deg, #d7d1c7 0%, #9f9586 42%, #4b4950 100%);
}

.wp-pdf-cover-trigger {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    padding: 32px;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    background-image: linear-gradient(180deg, rgba(17, 24, 39, 0.08) 0%, rgba(17, 24, 39, 0.72) 100%) !important;
    box-shadow: none !important;
    cursor: pointer;
    color: inherit !important;
    line-height: normal;
    text-align: left;
    text-decoration: none !important;
}

.wp-pdf-cover-overlay {
    display: grid;
    gap: 10px;
    color: #ffffff;
}

.wp-pdf-cover-title {
    font-size: clamp(1.5rem, 2vw, 2.4rem);
    font-weight: 700;
    line-height: 1.1;
}

.wp-pdf-viewer-shell .wp-pdf-cover-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 16px;
    background: var(--wp-pdf-accent) !important;
    border: 1px solid var(--wp-pdf-accent) !important;
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--wp-pdf-accent-contrast) !important;
}

.wp-pdf-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.wp-pdf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}

.wp-pdf-modal-dialog {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #111827;
}

.wp-pdf-viewer-shell .wp-pdf-modal-close {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0 !important;
    border-radius: 999px;
    background: var(--wp-pdf-accent) !important;
    background-image: none !important;
    color: var(--wp-pdf-accent-contrast) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    text-shadow: none !important;
}

.wp-pdf-modal-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #111827;
}

body.wp-pdf-modal-open {
    overflow: hidden;
}

@media (max-width: 782px) {
    .wp-pdf-cover {
        min-height: 320px;
    }

    .wp-pdf-cover-trigger {
        padding: 20px;
    }

    .wp-pdf-modal-close {
        top: 12px;
        right: 12px;
    }
}
