.adv-viewer-container {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background-color: inherit;
    min-height: 200px;
}

.adv-viewer-panzoom-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adv-viewer-panzoom-wrapper img, 
.adv-viewer-panzoom-wrapper canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
    cursor: grab;
}

.adv-viewer-panzoom-wrapper img:active, 
.adv-viewer-panzoom-wrapper canvas:active {
    cursor: grabbing;
}

.adv-viewer-controls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: none;
    gap: 6px;
    z-index: 10;
}

.adv-viewer-btn {
    background: #fff;
    border: 2px solid #000;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 10px;
    box-shadow: 2px 2px 0 #000;
    transition: transform 0.1s, box-shadow 0.1s;
    color: #000;
}

.adv-viewer-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 #000;
}

.adv-viewer-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.7);
    z-index: 5;
    font-weight: 600;
    font-size: 14px;
    color: #000;
}

.adv-viewer-fallback-file {
    height: 100%; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    font-size: 24px; 
    font-weight: 600; 
    color: #000;
}
