/* Logo loaders (views/new/ymt-loader.php, assets/js/ymt-loader.js).
   A "hop": the logo hops over a shadow, for every other wait.
   B "shine": the logo breathes while a gloss sweeps across it, only for the payment submit (redirect to 9Pay).
   The container's is-hop / is-shine class picks the figure; --logo is the logo URL (same file as the header). */

.ymt-loader{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;color:#1d2b36}
.ymt-loader .ymt-loader-fig{display:none;flex-direction:column;align-items:center}
.ymt-loader.is-hop .ymt-loader-fig--hop,.ymt-loader.is-shine .ymt-loader-fig--shine{display:flex}
.ymt-loader .ymt-loader-msg{margin:0;max-width:300px;min-height:1.4em;font-size:15px;font-weight:600;line-height:1.4}
.ymt-loader .ymt-loader-msg:empty{display:none}

/* Overlay version (views/new/blur-spinner.php): centered on the blurred page */
#blur-overlay .ymt-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:max-content;max-width:90vw}

/* A. Hop */
.ymt-hop{display:block;width:130px;height:auto;animation:ymtHop .9s cubic-bezier(.3,0,.4,1) infinite;transform-origin:50% 100%}
@keyframes ymtHop{
  0%{transform:translateY(0) scale(1.08,.88)}
  15%{transform:translateY(0) scale(.95,1.06)}
  50%{transform:translateY(-38px) scale(1,1)}
  85%{transform:translateY(0) scale(.97,1.04)}
  100%{transform:translateY(0) scale(1.08,.88)}
}
.ymt-loader-fig--hop{padding-top:38px}
.ymt-hop-shadow{width:90px;height:10px;border-radius:50%;background:rgba(29,43,54,.18);margin-top:4px;
  animation:ymtShadow .9s cubic-bezier(.3,0,.4,1) infinite}
@keyframes ymtShadow{0%,100%{transform:scaleX(1.1);opacity:1}50%{transform:scaleX(.6);opacity:.5}}

/* B. Shine: the whole figure breathes so the gloss stays on the logo; the gloss is masked to the logo shape.
   Without mask support, the logo only breathes */
.ymt-shine{position:relative;width:130px;animation:ymtBreathe 1.6s ease-in-out infinite}
.ymt-shine img{display:block;width:100%;height:auto}
.ymt-shine .gloss{display:none}
@supports ((-webkit-mask-image:url("")) or (mask-image:url(""))){
  .ymt-shine .gloss{display:block;position:absolute;inset:0;pointer-events:none;
    -webkit-mask:var(--logo) center/contain no-repeat;mask:var(--logo) center/contain no-repeat;
    background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.85) 50%,transparent 65%) no-repeat;
    background-size:250% 100%;animation:ymtGloss 1.6s ease-in-out infinite}
}
@keyframes ymtGloss{0%{background-position:130% 0}60%,100%{background-position:-60% 0}}
@keyframes ymtBreathe{0%,100%{transform:scale(1)}30%{transform:scale(1.04)}}

/* Search status banner (views/new/search.php): the banner is scaled 1.2 by search.css, so the logo is drawn smaller */
.search-status-banner .ymt-loader{flex:1 1 100%;gap:6px;color:inherit}
.search-status-banner .ymt-hop{width:108px}
.search-status-banner .ymt-hop-shadow{width:74px}
.search-status-banner .ymt-loader-msg{font-size:inherit;font-weight:inherit;max-width:none}

@media (max-width:600px){
  .ymt-hop,.ymt-shine{width:110px}
  .ymt-hop-shadow{width:76px}
  .search-status-banner .ymt-hop{width:92px}
  .search-status-banner .ymt-hop-shadow{width:64px}
}

@media (prefers-reduced-motion:reduce){
  .ymt-hop,.ymt-hop-shadow,.ymt-shine,.ymt-shine .gloss{animation:none!important}
  .ymt-shine .gloss{display:none}
}
