/*
 * BiteSite / Restaurant Direct Orders mobile dashboard hotfix v1.1.0
 * IMPORTANT: this stylesheet is deliberately scoped ONLY to elements that
 * the JavaScript positively identifies as the broken pre-Control-Centre cards.
 * It contains NO global pointer-events rules and NO Control Centre selectors.
 */
@media (max-width: 900px) {
  .rdo-mobile-safe-card {
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    cursor: pointer;
  }

  /* Keep the card looking exactly as it did before the tap. */
  .rdo-mobile-safe-card:hover,
  .rdo-mobile-safe-card:focus,
  .rdo-mobile-safe-card:focus-visible,
  .rdo-mobile-safe-card:active,
  .rdo-mobile-safe-card.rdo-mobile-pressed {
    background-color: var(--rdo-safe-bg) !important;
    border-color: var(--rdo-safe-border) !important;
    color: var(--rdo-safe-colour) !important;
    opacity: 1 !important;
    filter: none !important;
    -webkit-text-fill-color: var(--rdo-safe-colour) !important;
  }

  .rdo-mobile-safe-card:hover *,
  .rdo-mobile-safe-card:focus *,
  .rdo-mobile-safe-card:focus-visible *,
  .rdo-mobile-safe-card:active *,
  .rdo-mobile-safe-card.rdo-mobile-pressed * {
    color: inherit !important;
    opacity: 1 !important;
    -webkit-text-fill-color: currentColor !important;
  }

  /* Do not allow an old active/selected class to wash out the wording. */
  .rdo-mobile-safe-card.active,
  .rdo-mobile-safe-card.selected,
  .rdo-mobile-safe-card.is-active,
  .rdo-mobile-safe-card[data-active="true"] {
    background-color: var(--rdo-safe-bg) !important;
    border-color: var(--rdo-safe-border) !important;
    color: var(--rdo-safe-colour) !important;
  }

  /* Keyboard accessibility without changing normal mobile appearance. */
  .rdo-mobile-safe-card:focus-visible {
    outline: 2px solid rgba(24, 125, 77, .55) !important;
    outline-offset: 2px !important;
  }
}
