
.epay-1099-pdf-pages.epay-pdf-preview-controlled {
    overflow-x: auto !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    touch-action: pan-x pan-y !important;
    scrollbar-gutter: stable;
}

.epay-1099-pdf-pages.epay-pdf-preview-controlled .epay-1099-pdf-page canvas {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
}

.epay-pdf-preview-toolbar {
    position: sticky;
    top: 8px;
    left: 8px;
    z-index: 60;
    display: flex;
    align-items: center;
    width: max-content;
    margin: 0 0 8px 0;
    padding: 4px;
    gap: 3px;
    border: 1px solid #c8d5dc;
    border-radius: 9px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 3px 12px rgba(6, 43, 69, .16);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.epay-pdf-preview-zoom {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    background: #f3f7f9;
    color: #023047;
    font: 700 22px/1 Arial, sans-serif;
    cursor: pointer;
    touch-action: manipulation;
}

.epay-pdf-preview-zoom:hover,
.epay-pdf-preview-zoom:focus-visible {
    border-color: #0c8794;
    background: #e7f5f6;
    outline: none;
}

.epay-pdf-preview-zoom:disabled {
    opacity: .42;
    cursor: default;
}

.epay-pdf-preview-level {
    min-width: 48px;
    padding: 0 3px;
    color: #17384d;
    font: 700 12px/1.2 "Poppins", sans-serif;
    text-align: center;
    white-space: nowrap;
}

#pdfModal .close-btn,
.epay-preview-standard-close {
    position: fixed !important;
    top: max(8px, env(safe-area-inset-top)) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    z-index: 2147483647 !important;
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 1px solid #c8d5dc !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #023047 !important;
    font: 400 30px/1 Arial, sans-serif !important;
    box-shadow: 0 4px 16px rgba(6, 43, 69, .24) !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
}

@media (max-width: 575.98px) {
    .epay-pdf-preview-toolbar {
        top: 6px;
        left: 6px;
        margin-bottom: 6px;
    }

    .epay-pdf-preview-zoom {
        width: 38px;
        height: 38px;
    }
}
