/**
 * Cloud Win Croster — WhatsApp floating widget (mesmo do site principal)
 * Ticker/descrição escondidos no mobile para não atrapalhar a navegação.
 */

a.wa-float-img-circle,
.wa-float-img-circle,
.rk-cloud-link-wrap,
#rk-cloud-link-wrap {
  display: none !important;
}

.social-incentive-bar {
  position: fixed;
  right: min(2.5vw, 26px);
  bottom: min(2.5vw, 24px);
  z-index: 10060;
  width: auto;
  max-width: min(92vw, 360px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.social-incentive-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cw-wa-ticker {
  max-width: min(78vw, 280px);
  background: #05070F;
  color: #F6E27A;
  border: 1px solid rgba(232, 185, 49, 0.65);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  padding: 0.45rem 0.55rem;
  font-family: "Jura", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(232,185,49,0.12), 0 12px 28px rgba(5,7,15,0.45);
  opacity: 1;
  transition: opacity .25s ease, transform .25s ease;
}
.social-incentive-bar:not(.is-collapsed) .cw-wa-ticker {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  margin: 0;
}
.cw-wa-ticker__viewport {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.cw-wa-ticker__viewport::after {
  content: "_";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: #F6E27A;
  animation: cwWaBlink 1s steps(1) infinite;
  background: #05070F;
  padding-left: 2px;
}
.cw-wa-ticker__track {
  display: inline-block;
  padding-left: 100%;
  animation: cwWaMarquee 14s linear infinite;
  will-change: transform;
}
.cw-wa-ticker__track span { margin-right: 2.5rem; }
@keyframes cwWaMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@keyframes cwWaBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.social-incentive-bar__panel {
  width: min(92vw, 340px);
  background:
    radial-gradient(420px 160px at 100% 0%, rgba(232,185,49,0.12), transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, #F7F8FC 100%);
  color: #0B1220;
  border: 1.5px solid rgba(15, 27, 61, 0.14);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  padding: 1.05rem 1.05rem 1rem;
  box-shadow:
    0 18px 40px rgba(15, 27, 61, 0.12),
    10px 12px 0 rgba(15, 27, 61, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, max-height 0.35s ease, padding 0.35s ease;
  transform-origin: bottom right;
  max-height: 380px;
  font-family: "Jura", sans-serif;
}
.social-incentive-bar__panel::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, #E8B931, #C8102E, transparent 78%);
  pointer-events: none;
}
.social-incentive-bar__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #92400E;
  background: rgba(232, 185, 49, 0.14);
  border: 1px solid rgba(232, 185, 49, 0.4);
  padding: 0.32rem 0.55rem;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.social-incentive-bar__title {
  position: relative;
  z-index: 1;
  margin-top: 0.7rem;
  margin-bottom: 0.55rem;
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 700;
  color: #0B1220;
}
.social-incentive-bar__trust {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #475569;
}
.social-incentive-bar__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.social-incentive-bar__trust i { color: #B45309; }
.social-incentive-bar__actions {
  position: relative;
  z-index: 1;
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.social-incentive-bar__cta {
  position: relative;
  z-index: 1;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  width: 100%;
  padding: 0.72rem 0.85rem;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  text-decoration: none;
  color: #FFFFFF;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 22px rgba(18, 140, 126, 0.28);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
  font-family: "Jura", sans-serif;
}
.social-incentive-bar__cta--ticket {
  background: linear-gradient(180deg, #1A2757 0%, #0F1B3D 100%);
  border-color: rgba(232, 185, 49, 0.4);
  box-shadow: 0 10px 22px rgba(15, 27, 61, 0.22);
}
.social-incentive-bar__cta--ticket:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 26px rgba(15, 27, 61, 0.28);
  color: #FFFFFF;
}
.social-incentive-bar__cta:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 26px rgba(18, 140, 126, 0.34);
  color: #FFFFFF;
}
.social-incentive-bar__cta-icon {
  width: 40px;
  height: 40px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.social-incentive-bar__cta-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.social-incentive-bar__cta-copy strong {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.social-incentive-bar__cta-copy small {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.88);
}
.social-incentive-bar__toggle {
  position: relative;
  border: none;
  width: 64px;
  height: 64px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  background: linear-gradient(145deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.18) inset,
    0 14px 28px rgba(18, 140, 126, 0.35);
  transition: filter 0.2s ease, transform 0.2s ease;
  overflow: visible;
}
.social-incentive-bar__toggle:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}
.social-incentive-bar__toggle::before {
  content: "";
  position: absolute;
  inset: -6px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  border: 1px solid rgba(37, 211, 102, 0.4);
  animation: cwWaRing 2.8s ease-out infinite;
  pointer-events: none;
}
.social-incentive-bar__toggle-ping {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  background: transparent;
  position: relative;
  z-index: 1;
}
.social-incentive-bar__toggle-text,
.social-incentive-bar__toggle-chevron { display: none !important; }
.social-incentive-bar.is-collapsed .social-incentive-bar__panel {
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  margin-bottom: -0.3rem;
  pointer-events: none;
}
@keyframes cwWaRing {
  0% { transform: scale(0.92); opacity: 0.7; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cw-wa-ticker__track,
  .social-incentive-bar__toggle::before {
    animation: none !important;
  }
  .cw-wa-ticker__track { padding-left: 0; transform: none; }
}

/* Mobile: esconde ticker/descrição acima da caixa (igual index) */
@media (max-width: 640px) {
  .social-incentive-bar {
    right: 14px;
    left: auto;
    width: auto;
    bottom: 14px;
  }
  .social-incentive-bar__toggle {
    width: 58px;
    height: 58px;
  }
  .cw-wa-ticker { display: none !important; }
}
