/* iDeyPay loader: the teal "D" of the iDP mark draws itself while an action runs. */
.idp-loader {
  position: fixed;
  inset: 0;
  z-index: 1055; /* above Bootstrap modals (1050), below SweetAlert (1060) so result messages show */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}
.idp-loader.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.18s ease;
}

.idp-loader__mark {
  width: 64px;
  height: auto;
  overflow: visible;
}
.idp-loader__ink { fill: #1D2221; }
.idp-loader__d {
  fill: none;
  stroke: #36D6B6;
  stroke-width: 17;
  stroke-linejoin: round;
  /* path length is set to 100 in the SVG, so dash maths is in percent */
  stroke-dasharray: 100 100;
  stroke-dashoffset: 100;
  animation: idp-draw 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes idp-draw {
  0%   { stroke-dashoffset: 100; }   /* nothing drawn            */
  55%  { stroke-dashoffset: 0; }     /* D complete               */
  70%  { stroke-dashoffset: 0; }     /* brief hold               */
  100% { stroke-dashoffset: -100; }  /* D leaves from its start  */
}

.idp-loader__text {
  margin: 0;
  font: 600 14px/1.4 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1D2221;
  letter-spacing: 0.01em;
}

/* Stop the page scrolling behind the overlay */
html.idp-loader-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .idp-loader__d {
    animation: idp-pulse 1.8s ease-in-out infinite;
    stroke-dashoffset: 0;
  }
  @keyframes idp-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
  }
}
