/* v23: highly visible bilingual client authentication loading dialog. */
.wa23-overlay[hidden] { display: none !important; }
.wa23-overlay, .wa23-overlay * { box-sizing: border-box; }
.wa23-overlay {
  position: fixed !important; inset: 0 !important; z-index: 2147483646 !important;
  display: grid !important; place-items: center !important;
  padding: max(16px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right))
           max(16px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
  background: rgba(1,21,34,.82) !important;
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  margin: 0 !important; opacity: 1; overflow-y: auto; text-align: center;
  animation: none; /* visible immediately; no translucent first frame */
}
.wa23-overlay .wa23-panel {
  width: min(100%,478px); max-height: calc(100dvh - 32px);
  overflow-x: hidden; overflow-y: auto; border-radius: 18px;
  background: #fff; color: #002b41;
  box-shadow: 0 28px 95px rgba(0,10,22,.53), 0 4px 16px rgba(0,10,22,.25);
  border: 1px solid #d5e4ed; text-align: center;
  animation: wa23-enter .22s cubic-bezier(.16,1,.3,1) both;
}
.wa23-overlay .wa23-brand {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px 23px; background: linear-gradient(110deg,#002b41,#07435e);
  border-bottom: 4px solid #f47501; direction: ltr;
}
.wa23-overlay .wa23-brand img { width: 122px; height: 45px; object-fit: contain; object-position: left center; }
.wa23-overlay .wa23-brand-caption {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.5;
  color: #fff; padding: 6px 9px; border: 1px solid rgba(255,255,255,.30);
  border-radius: 6px; background: rgba(255,255,255,.09);
}
.wa23-overlay .wa23-content { padding: 29px clamp(20px,6vw,43px) 28px; }
.wa23-overlay .wa23-emblem {
  position: relative; display: grid; place-items: center; margin: 0 auto 20px;
  width: 100px; height: 100px; border-radius: 50%;
  color: #002b41; background: #eff5f8;
  border: 1px solid #d8e5eb;
  box-shadow: 0 0 0 7px rgba(244,117,1,.06);
}
.wa23-overlay .wa23-emblem svg { position: relative; z-index: 2; }
.wa23-overlay .wa23-emblem-orbit {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 5px solid #dfebef; border-top-color: #f47501; border-right-color: #f47501;
  animation: wa23-spin 1.1s linear infinite;
}
.wa23-overlay .wa23-title {
  margin: 0 0 8px !important; color: #002b41 !important;
  font-size: clamp(22px,4vw,27px) !important; font-weight: 800 !important;
  line-height: 1.5 !important; text-align: center !important;
}
.wa23-overlay .wa23-description {
  margin: 0 auto 26px !important; max-width: 350px; font-size: 14px !important;
  font-weight: 500; color: #506c7b !important; line-height: 1.75 !important;
  text-align: center !important;
}
.wa23-overlay .wa23-bar-heading {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px; margin-bottom: 10px; font-size: 12px; color: #3e5d6d;
  line-height: 1.5; text-align: start;
}
.wa23-overlay .wa23-bar-heading strong { color: #d66500; font-weight: 800; font-size: 12px; }
.wa23-overlay .wa23-dots { display: inline-block; letter-spacing: .1em; animation: wa23-blink 1.15s ease-in-out infinite; }
.wa23-overlay .wa23-progress {
  display: block; width: 100%; height: 14px; position: relative;
  border: 1px solid #cfdae1; border-radius: 99px;
  background: #e6eef2; overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,43,65,.09);
}
.wa23-overlay .wa23-progress-flow {
  position: absolute; inset-block: 0; inset-inline-start: -48%;
  display: block; height: 100%; width: 48%; border-radius: inherit;
  background: linear-gradient(90deg,#ed6900,#ff9b35 52%,#f47501);
  box-shadow: 0 0 10px rgba(244,117,1,.35);
  animation: wa23-flow 1.5s cubic-bezier(.45,0,.55,1) infinite;
}
.wa23-overlay .wa23-progress-flow::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg,transparent 0 12px,rgba(255,255,255,.21) 12px 20px);
  animation: wa23-shine .9s linear infinite;
}
.wa23-overlay .wa23-safe-note {
  margin-top: 20px; padding: 11px 13px; border: 1px solid #dce8ed;
  border-radius: 8px; background: #f4f8fa;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #4b6878; font-size: 12px; font-weight: 500; line-height: 1.5;
  text-align: start;
}
.wa23-overlay .wa23-safe-note svg { flex: 0 0 auto; color: #eb770d; }
body.wa23-busy { cursor: progress; }
body.wa23-busy .wa23-overlay { cursor: progress; }
@keyframes wa23-fadein { from{opacity:0} to{opacity:1} }
@keyframes wa23-enter { from{transform:translateY(13px) scale(.97)} to{transform:translateY(0) scale(1)} }
@keyframes wa23-spin { to{transform:rotate(360deg)} }
@keyframes wa23-flow { 0%{inset-inline-start:-48%} 100%{inset-inline-start:100%} }
@keyframes wa23-shine { to{background-position:25px 0} }
@keyframes wa23-blink { 50%{opacity:.35} }
@media(max-width:576px) {
  .wa23-overlay .wa23-panel { border-radius: 14px; }
  .wa23-overlay .wa23-brand { padding: 10px 15px; }
  .wa23-overlay .wa23-brand img { width: 105px; height: 39px; }
  .wa23-overlay .wa23-brand-caption { font-size: 10px; }
  .wa23-overlay .wa23-content { padding: 25px 22px 22px; }
  .wa23-overlay .wa23-emblem { width: 82px; height: 82px; margin-bottom: 18px; }
  .wa23-overlay .wa23-emblem svg { width: 34px; height: 34px; }
  .wa23-overlay .wa23-description { margin-bottom: 20px !important; font-size: 13px !important; }
}
@media(prefers-reduced-motion:reduce) {
  .wa23-overlay, .wa23-overlay .wa23-panel, .wa23-overlay .wa23-emblem-orbit,
  .wa23-overlay .wa23-progress-flow, .wa23-overlay .wa23-progress-flow::after, .wa23-overlay .wa23-dots
  { animation: none !important; }
  .wa23-overlay .wa23-progress-flow { inset-inline-start: 0; width: 58%; }
}
@media print { .wa23-overlay { display: none !important; } }
