/* Site-wide mobile touch feedback (base.html): tap highlight + press ripple on coarse pointer.
 * Disables sticky .btn-main/.btn-action press animation on touch devices. Desktop hover unchanged. */

@media (hover: none), (pointer: coarse) {
    a[href],
    button,
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    input[type="image"],
    select,
    [role="button"],
    label[for] {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .btn-main,
    .btn-action,
    button.btn-main,
    button.btn-action,
    a.btn-main,
    a.btn-action {
        transition: none !important;
    }

    .btn-main:hover,
    .btn-main:active,
    .btn-action:hover,
    .btn-action:active {
        transform: none !important;
        box-shadow: 2px 2px 0 var(--grey, #e0e0e0) !important;
    }

    .kitchen-ticket-btn:hover,
    .kitchen-ticket-btn:active,
    .kitchen-action-btn:hover,
    .kitchen-action-btn:active,
    .kitchen-dismissed-toggle-btn:hover,
    .kitchen-dismissed-toggle-btn:active {
        transform: none !important;
    }
}

.touch-press-ripple {
    position: fixed;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.16);
    pointer-events: none;
    z-index: 99999;
    animation: touch-press-ripple 300ms ease-out forwards;
    transform-origin: center center;
}

@keyframes touch-press-ripple {
    from {
        opacity: 1;
        transform: scale(0.85);
    }

    to {
        opacity: 0;
        transform: scale(1);
    }
}
