/* Restore Attendance 1.3.7 — mobile-first press acknowledgement. */
button,
[role='button'],
input[type='button'],
input[type='submit'],
a.primary-button,
a.secondary-button,
a.danger-button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body .restore-button-pressed:not(:disabled):not([aria-disabled='true']):not([data-restore-action-state]) {
  transform: translateY(2px) scale(0.965) !important;
  border-color: #fff0b8 !important;
  background-color: #f2b640 !important;
  background-image: linear-gradient(135deg, #ffe57f, #f0a72f) !important;
  color: #171006 !important;
  -webkit-text-fill-color: #171006 !important;
  filter: brightness(1.08) saturate(1.28) !important;
  outline: 3px solid rgba(255, 218, 107, 0.62) !important;
  outline-offset: 1px !important;
  box-shadow:
    0 0 0 5px rgba(255, 190, 54, 0.24),
    0 0 30px rgba(255, 174, 38, 0.55),
    inset 0 1px rgba(255, 255, 255, 0.42) !important;
  transition:
    transform 65ms ease,
    filter 65ms ease,
    border-color 65ms ease,
    background 65ms ease !important;
}

body .restore-button-pressed:not(:disabled):not([aria-disabled='true']) *,
body .restore-button-confirmed-v137:not(:disabled):not([aria-disabled='true']) * {
  color: #171006 !important;
  -webkit-text-fill-color: #171006 !important;
  text-shadow: none !important;
}

body .restore-button-confirmed-v137:not(:disabled):not([aria-disabled='true']) {
  border-color: #8ff0be !important;
  box-shadow:
    0 0 0 4px rgba(75, 222, 147, 0.2),
    0 0 22px rgba(75, 222, 147, 0.34) !important;
}

body .restore-button-blocked-pressed-v137,
body .restore-location-blocked-press {
  transform: translateY(1px) scale(0.97) !important;
  border-color: #ff938d !important;
  background: linear-gradient(135deg, #b83e3a, #7d2826) !important;
  color: #fff4f2 !important;
  -webkit-text-fill-color: #fff4f2 !important;
  outline: 3px solid rgba(255, 112, 105, 0.42) !important;
  outline-offset: 1px !important;
  box-shadow: 0 0 24px rgba(255, 82, 75, 0.34) !important;
}

body .restore-button-blocked-pressed-v137 *,
body .restore-location-blocked-press * {
  color: #fff4f2 !important;
  -webkit-text-fill-color: #fff4f2 !important;
}

@media (prefers-reduced-motion: reduce) {
  body .restore-button-pressed:not(:disabled),
  body .restore-button-blocked-pressed-v137,
  body .restore-button-confirmed-v137:not(:disabled) {
    transition: none !important;
  }
}
