.viewer-toolbar {
    position: absolute;
    z-index: 10000;
    bottom: 12px;
    left: 50%;
    display: flex;
    gap: 4px;
    max-width: calc(100% - 20px);
    padding: 5px;
    overflow-x: auto;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(28, 39, 49, 0.94);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.viewer-toolbar-button {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.viewer-toolbar-button:hover:not(:disabled),
.viewer-toolbar-button:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    outline: none;
}

.viewer-toolbar-button.active {
    background: #f0c400;
    color: #1c2731;
}

.viewer-toolbar-button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.viewer:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    background: #202932;
}

@media (max-width: 600px) {
    .viewer-toolbar {
        right: 8px;
        bottom: 8px;
        left: 8px;
        max-width: none;
        transform: none;
    }
}
