/* canvas-undo.css — кнопка «Назад» в «Материалах» (мобильная версия). */

.materials-undo-fab {
    display: none;
    position: absolute;
    left: 0.65rem;
    bottom: 0.8rem;
    z-index: 1013; /* выше панелей материалов/разметки */
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    height: 2.65rem;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--glass-border);
    background: var(--panel-50);
    color: var(--text-secondary);
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .22);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.materials-undo-fab .materials-undo-icon {
    font-size: 1.25rem;
    line-height: 0.9;
}

.materials-undo-fab:not(:disabled):active {
    background: rgba(0, 214, 143, 0.16);
    border-color: var(--accent);
    color: var(--accent);
}

.materials-undo-fab:disabled {
    opacity: 0.38;
    cursor: default;
}

@media (max-width: 900px) {
    .modal-canvas .materials-undo-fab.visible {
        display: inline-flex;
    }
}
