/* iOS-style press feedback for buttons (haileichemical.com) */
.c-press{
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
  transition:transform .45s cubic-bezier(.34,1.56,.64,1),filter .25s ease,box-shadow .25s ease !important;
  will-change:transform;
}
.c-press.is-pressed{
  transform:scale(.95) !important;
  filter:brightness(.93);
  transition:transform .12s cubic-bezier(.2,.8,.3,1),filter .12s ease !important;
}
/* small list rows press less, like iOS table cells */
.c-press.c-row.is-pressed{transform:scale(.985) !important}

/* Phone button: a soft light sweep (like iOS "slide to unlock") and a little ring of the handset icon */
#chat-call-button{overflow:hidden}
#chat-call-button::after{
  content:"";position:absolute;top:0;bottom:0;left:-60%;width:45%;pointer-events:none;
  background:linear-gradient(100deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.38) 50%,rgba(255,255,255,0) 100%);
  transform:skewX(-18deg);
  animation:cShine 4.2s ease-in-out 1.8s infinite;
}
@keyframes cShine{0%{left:-60%}38%,100%{left:130%}}
#chat-call-button .chat-call-icon{display:inline-block;transform-origin:50% 60%;animation:cRing 4.2s ease 1.8s infinite}
@keyframes cRing{0%,40%,100%{transform:rotate(0)}44%{transform:rotate(-14deg)}48%{transform:rotate(12deg)}52%{transform:rotate(-8deg)}56%{transform:rotate(4deg)}60%{transform:rotate(0)}}

/* Bottom bar slides up on load */
@media (max-width:960px){
  #chat-call-button,#hl-email-action-cn,#ttkefuico{animation:cRise .55s cubic-bezier(.34,1.56,.64,1) both}
  #hl-email-action-cn{animation-delay:.05s}
  #ttkefuico{animation-delay:.1s}
  #chat-call-button{animation:cRise .55s cubic-bezier(.34,1.56,.64,1) .15s both}
}
@keyframes cRise{from{transform:translateY(110%);opacity:0}to{transform:none;opacity:1}}

@media (prefers-reduced-motion:reduce){
  .c-press,.c-press.is-pressed{transition:none !important;transform:none !important}
  #chat-call-button::after,#chat-call-button .chat-call-icon,
  #chat-call-button,#hl-email-action-cn,#ttkefuico{animation:none !important}
}
