/*
 * Promtek Reply neutralizer v1
 *
 * The earlier interior layer intentionally made Reply the primary orange
 * toolbar action.  This final, narrowly-scoped layer returns Reply to the
 * same visual hierarchy as the neighbouring message actions while keeping
 * Roundcube's link, dropdown, disabled, focus, keyboard and click behaviour.
 * Only foreground, background and border colours are overridden.
 */

html:not(.promtek-never)
  body.task-mail:not(.task-login):not(.promtek-never)
  :is(#messagetoolbar, #mailtoolbar, .toolbar.menu)
  a.reply:not(.disabled) {
  color: var(--promtek-text) !important;
  background-color: transparent !important;
  border-color: transparent !important;
}

html:not(.promtek-never)
  body.task-mail:not(.task-login):not(.promtek-never)
  :is(#messagetoolbar, #mailtoolbar, .toolbar.menu)
  a.reply:not(.disabled)::before {
  color: var(--promtek-text) !important;
}

html:not(.promtek-never)
  body.task-mail:not(.task-login):not(.promtek-never)
  :is(#messagetoolbar, #mailtoolbar, .toolbar.menu)
  a.reply:not(.disabled):hover {
  color: var(--promtek-text) !important;
  background-color: var(--promtek-selection-hover) !important;
  border-color: transparent !important;
}

html:not(.promtek-never)
  body.task-mail:not(.task-login):not(.promtek-never)
  :is(#messagetoolbar, #mailtoolbar, .toolbar.menu)
  a.reply:not(.disabled):hover::before {
  color: var(--promtek-text) !important;
}
