/*
 * WebXtent v0.8.169 — floating WhatsApp position + Developments catalogue cue.
 *
 * WhatsApp is kept out of bottom navigation/dock surfaces site-wide.
 * The compact Developments project-directory thumbnail receives a brief,
 * infrequent Indalo-brass discovery pulse only while it is visible.
 */

.wxt-whatsapp-chat{
  right:max(18px,env(safe-area-inset-right))!important;
  bottom:max(96px,calc(env(safe-area-inset-bottom) + 76px))!important;
}

body.admin-bar .wxt-whatsapp-chat{
  bottom:max(128px,calc(env(safe-area-inset-bottom) + 108px))!important;
}

/* Keep the compact project-directory affordance quiet most of the time. */
body.wxt-scene-developments
.wxt-development-showcase.is-gallery-manual-collapsed
.wxt-development-gallery-compact-next:not([hidden]){
  transform-origin:center!important;
}

@keyframes wxt-project-directory-discovery-v08169{
  0%,68%,84%,100%{
    border-color:rgba(255,255,255,.22);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.12),
      0 10px 24px rgba(0,0,0,.18);
    filter:none;
  }
  72%{
    border-color:rgba(217,173,89,.82);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.18),
      0 0 0 3px rgba(217,173,89,.12),
      0 0 18px rgba(217,173,89,.26),
      0 11px 26px rgba(0,0,0,.20);
    filter:brightness(1.04);
  }
  77%{
    border-color:rgba(217,173,89,.98);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.20),
      0 0 0 5px rgba(217,173,89,.14),
      0 0 28px rgba(217,173,89,.38),
      0 12px 28px rgba(0,0,0,.22);
    filter:brightness(1.08);
  }
  81%{
    border-color:rgba(217,173,89,.72);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.16),
      0 0 0 2px rgba(217,173,89,.10),
      0 0 14px rgba(217,173,89,.20),
      0 10px 24px rgba(0,0,0,.18);
    filter:none;
  }
}

body.wxt-scene-developments
.wxt-development-gallery-compact-next:hover,
body.wxt-scene-developments
.wxt-development-gallery-compact-next:focus-visible{
  animation-play-state:paused!important;
}



/* v0.8.171 — explicit JS-triggered pulse. Animate the inner ring so legacy
 * !important transforms on the button cannot suppress the discovery cue. */
body.wxt-scene-developments
.wxt-development-gallery-compact-next.is-directory-discovery-pulse{
  border-color:rgba(217,173,89,.98)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    0 0 0 4px rgba(217,173,89,.16),
    0 0 30px rgba(217,173,89,.48),
    0 12px 28px rgba(0,0,0,.22)!important;
  filter:brightness(1.09)!important;
}

body.wxt-scene-developments
.wxt-development-gallery-compact-next.is-directory-discovery-pulse
.wxt-development-gallery-compact-next__ring{
  animation:wxt-project-directory-ring-v08171 1.35s cubic-bezier(.2,.7,.2,1) both!important;
}

body.wxt-scene-developments
.wxt-development-gallery-compact-next.is-directory-discovery-pulse
.wxt-development-gallery-compact-next__media{
  box-shadow:0 0 0 2px rgba(217,173,89,.34),0 0 24px rgba(217,173,89,.30)!important;
}

@keyframes wxt-project-directory-ring-v08171{
  0%{
    transform:scale(1);
    opacity:.96;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),0 0 0 0 rgba(217,173,89,.34);
  }
  42%{
    transform:scale(1.16);
    opacity:1;
    box-shadow:inset 0 0 0 1px rgba(217,173,89,.72),0 0 0 8px rgba(217,173,89,.16),0 0 26px rgba(217,173,89,.46);
  }
  76%{
    transform:scale(1.05);
    opacity:.96;
    box-shadow:inset 0 0 0 1px rgba(217,173,89,.48),0 0 0 3px rgba(217,173,89,.09),0 0 14px rgba(217,173,89,.22);
  }
  100%{
    transform:scale(1);
    opacity:1;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),0 0 0 0 rgba(217,173,89,0);
  }
}

/* Tablet/phone keep the same side-wide placement without crowding safe areas. */
@media(max-width:900px){
  .wxt-whatsapp-chat{
    right:max(12px,env(safe-area-inset-right))!important;
    bottom:max(86px,calc(env(safe-area-inset-bottom) + 68px))!important;
  }
  body.admin-bar .wxt-whatsapp-chat{
    bottom:max(118px,calc(env(safe-area-inset-bottom) + 100px))!important;
  }
}

@media(max-width:640px){
  .wxt-whatsapp-chat{
    right:max(10px,env(safe-area-inset-right))!important;
    bottom:max(78px,calc(env(safe-area-inset-bottom) + 62px))!important;
  }
}

@media(prefers-reduced-motion:reduce){
  body.wxt-scene-developments
  .wxt-development-gallery-compact-next.is-directory-discovery-pulse,
  body.wxt-scene-developments
  .wxt-development-gallery-compact-next.is-directory-discovery-pulse
  .wxt-development-gallery-compact-next__ring{
    animation:none!important;
    box-shadow:none!important;
    filter:none!important;
  }
}
