/**
 * Native browser gestures by default, as in 1.2.0; drawing is opt-in.
 * Author: Rolf-Peter Blümlein. Version: 1.4.16. Component-only styles.
 */
.coloring-app .canvas-shell,
.coloring-app .canvas-shell canvas {
    touch-action: pan-x pan-y pinch-zoom !important;
    overscroll-behavior: auto;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* Only deliberate finger painting claims gestures inside the picture, never the page. */
.coloring-app[data-finger-painting="1"] .canvas-shell,
.coloring-app[data-finger-painting="1"] .canvas-shell canvas,
.coloring-app:not([data-input-engine="native-webkit-touch"]) .canvas-shell.has-pen-input,
.coloring-app:not([data-input-engine="native-webkit-touch"]) .canvas-shell.has-pen-input canvas {
    touch-action: none !important;
}

.coloring-app .paint-surface {
    position: relative;
    width: 100%;
    transform-origin: 0 0;
}

/* Input capability, not viewport width, determines tablet mode (incl. hybrid devices). */
.coloring-app[data-tablet-mode="0"] .paint-scroll-zone {
    display: none;
}

.coloring-app[data-tablet-mode="1"] .paint-scroll-zone {
    display: grid;
    flex: 0 0 21px;
    width: 21px;
    margin: 0;
    touch-action: pan-y pinch-zoom;
    overscroll-behavior: auto;
}

.coloring-app[data-tablet-mode="1"] .paint-tools {
    min-width: 0;
    flex: 1 1 auto;
}

@media (min-width: 721px) {
    .coloring-app[data-tablet-mode="1"] .paint-workspace .paint-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 261px);
    }
}

@media (max-width: 720px) {
    .coloring-app[data-tablet-mode="1"] .paint-tools {
        width: calc(100% - 21px);
    }
}
