.jet-pdf-viewer {
    width: 100%;
    font-family: inherit;
}

.jet-pdf-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    background-color: #f5f5f5;
    border-radius: 6px 6px 0 0;
    border: 1px solid #e0e0e0;
    border-bottom: none;
}

/* Visual separator between page-navigation and zoom groups */
.jet-pdf-controls-sep {
    display: block;
    width: 1px;
    height: 20px;
    background: #d0d0d0;
    margin: 0 2px;
    flex-shrink: 0;
}

.jet-pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.15s ease;
    line-height: 1;
    white-space: nowrap;
}

.jet-pdf-btn:hover {
    opacity: 0.8;
}

.jet-pdf-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Zoom ± buttons are narrower — icon only */
.jet-pdf-zoom-in,
.jet-pdf-zoom-out {
    padding: 6px 10px;
    font-size: 16px;
}

.jet-pdf-page-info {
    font-size: 13px;
    color: #555;
    margin: 0 2px;
}

.jet-pdf-zoom-label {
    font-size: 13px;
    color: #555;
    min-width: 36px;
    text-align: center;
}

.jet-pdf-canvas-wrap {
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 6px 6px;
    background: #fff;
    display: flex;
    justify-content: center;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.jet-pdf-canvas {
    display: block;
}

.jet-pdf-error {
    padding: 16px;
    background: #fff3f3;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #900;
    font-size: 14px;
    margin-top: 8px;
}

.jet-pdf-placeholder {
    padding: 40px 20px;
    border: 2px dashed #ddd;
    border-radius: 6px;
    text-align: center;
    color: #999;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .jet-pdf-controls {
        justify-content: center;
        gap: 5px;
        padding: 8px 10px;
    }

    .jet-pdf-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .jet-pdf-zoom-in,
    .jet-pdf-zoom-out {
        padding: 5px 9px;
    }

    .jet-pdf-controls-sep {
        display: none; /* controls wrap on mobile so separator isn't needed */
    }

    .jet-pdf-canvas-wrap {
        padding: 8px;
    }
}
