/* Webiness — Paid Search: componente "Console campagne" */

.ps-ads-animation {
  --ps-ink: #0d1628;
  --ps-muted: #526077;
  --ps-line: #d8dfeb;
  --ps-white: #ffffff;
  --ps-brand: #cc0090;
  --ps-brand-light: #ffe8f8;
  --ps-shadow: 0 22px 50px rgba(13, 22, 40, .12);
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid #dfe5ef;
  border-radius: 20px;
  background:
    radial-gradient(circle at 52% 46%, rgba(204, 0, 144, .10), transparent 27%),
    linear-gradient(rgba(13, 22, 40, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 22, 40, .035) 1px, transparent 1px),
    var(--ps-white);
  background-size: auto, 24px 24px, 24px 24px, auto;
  box-shadow: var(--ps-shadow);
  color: var(--ps-ink);
  font-family: Nunito, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ps-ads-animation *,
.ps-ads-animation *::before,
.ps-ads-animation *::after { box-sizing: border-box; }

.ps-ads-animation::after {
  position: absolute;
  z-index: -1;
  right: -100px;
  bottom: -145px;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 0, 144, .14), rgba(204, 0, 144, 0) 68%);
  content: "";
}

.ps-board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 20px;
  border-bottom: 1px solid var(--ps-line);
  background: rgba(255, 255, 255, .82);
  color: var(--ps-ink);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.ps-board-name { display: flex; align-items: center; gap: 9px; }

.ps-board-name::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ps-brand);
  box-shadow: 0 0 0 5px var(--ps-brand-light);
  content: "";
}

.ps-active {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #16835c;
}

.ps-active i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25aa78;
  animation: ps-blink 1.7s ease-in-out infinite;
}

.ps-board {
  position: relative;
  height: 282px;
  padding: 26px 22px 18px;
}

.ps-column-label {
  position: absolute;
  top: 19px;
  color: #8b96a9;
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ps-column-label--input { left: 25px; }
.ps-column-label--goal { right: 27px; }

.ps-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 137px;
  padding: 10px 11px;
  border: 1px solid var(--ps-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 18px rgba(13, 22, 40, .055);
  color: #46536a;
  font-size: .72rem;
  font-weight: 800;
}

.ps-node b {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: #eef2f8;
  color: var(--ps-ink);
  font-size: .65rem;
}

.ps-node--intent { top: 64px; left: 24px; }
.ps-node--generic { top: 135px; left: 24px; }
.ps-node--offtarget { top: 206px; left: 24px; }

.ps-node--goal {
  top: 66px;
  right: 24px;
  min-width: 149px;
  border-color: #f1b8dd;
  background: #fffafd;
  color: var(--ps-ink);
}

.ps-node--goal b { background: var(--ps-brand); color: #fff; }

.ps-node--waste {
  top: 176px;
  right: 24px;
  min-width: 149px;
  border-style: dashed;
  background: rgba(247, 249, 252, .92);
  box-shadow: none;
  color: #6f7a8c;
}

.ps-node--waste b { background: #e6eaf1; color: #6f7a8c; }

.ps-node small {
  display: block;
  margin-top: 2px;
  color: #7d8799;
  font-size: .61rem;
  font-weight: 700;
}

.ps-core {
  position: absolute;
  top: 78px;
  left: 50%;
  display: grid;
  width: 138px;
  height: 138px;
  place-items: center;
  transform: translateX(-50%);
}

.ps-core::before,
.ps-core::after {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(204, 0, 144, .24);
  border-radius: 50%;
  content: "";
}

.ps-core::before { animation: ps-radar 3.4s ease-out infinite; }
.ps-core::after { animation: ps-radar 3.4s 1.7s ease-out infinite; }

.ps-core-card {
  position: relative;
  z-index: 2;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border: 1px solid #f0b5dc;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 0%, #fff0fc 100%);
  box-shadow: 0 14px 29px rgba(204, 0, 144, .19);
  text-align: center;
}

.ps-core-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--ps-brand);
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
}

.ps-core-card strong {
  display: block;
  margin-top: 5px;
  color: var(--ps-ink);
  font-size: .67rem;
  line-height: 1.1;
}

.ps-core-card span {
  display: block;
  margin-top: 2px;
  color: var(--ps-brand);
  font-size: .53rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ps-flows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.ps-flow-base { fill: none; stroke: #cbd5e3; stroke-width: 1.5; }
.ps-flow-base--muted { stroke: #e0e6ef; stroke-dasharray: 4 5; }

.ps-flow-signal {
  fill: none;
  stroke: var(--ps-brand);
  stroke-linecap: round;
  stroke-width: 2.5;
  stroke-dasharray: 3 10;
  animation: ps-flow 1.7s linear infinite;
}

.ps-flow-signal--slow { animation-duration: 2.35s; }
.ps-flow-signal--late { animation-delay: -.8s; }
.ps-flow-out { stroke: #16835c; animation-duration: 1.55s; }
.ps-flow-waste { stroke: #aeb9c9; stroke-width: 2.2; animation-duration: 2.6s; }

.ps-status {
  position: absolute;
  right: 29px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #16835c;
  font-size: .64rem;
  font-weight: 800;
}

.ps-status::before {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: #e7f8f0;
  content: "✓";
  font-size: .65rem;
}

.ps-timeline {
  position: absolute;
  right: 21px;
  bottom: 15px;
  left: 21px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  height: 38px;
  padding-top: 12px;
  border-top: 1px solid var(--ps-line);
}

.ps-stage {
  position: relative;
  color: #7d8799;
  font-size: .61rem;
  font-weight: 800;
  text-align: center;
}

.ps-stage::before {
  position: absolute;
  top: -17px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #bdc8d8;
  box-shadow: 0 0 0 1px #bdc8d8;
  content: "";
  transform: translateX(-50%);
}

.ps-stage:nth-child(1)::before { animation: ps-stage 4.5s linear infinite; }
.ps-stage:nth-child(2)::before { animation: ps-stage 4.5s 1.5s linear infinite; }
.ps-stage:nth-child(3)::before { animation: ps-stage 4.5s 3s linear infinite; }

.ps-ads-animation:not(.is-visible) .ps-flow-signal,
.ps-ads-animation:not(.is-visible) .ps-core::before,
.ps-ads-animation:not(.is-visible) .ps-core::after,
.ps-ads-animation:not(.is-visible) .ps-active i,
.ps-ads-animation:not(.is-visible) .ps-stage::before { animation-play-state: paused; }

@keyframes ps-flow { to { stroke-dashoffset: -26; } }
@keyframes ps-blink { 50% { opacity: .3; transform: scale(.78); } }
@keyframes ps-radar {
  0% { opacity: .7; transform: scale(.46); }
  75%, 100% { opacity: 0; transform: scale(1.05); }
}
@keyframes ps-stage {
  0%, 32% { background: #25aa78; box-shadow: 0 0 0 1px #25aa78, 0 0 0 5px rgba(37, 170, 120, .16); }
  33%, 100% { background: #bdc8d8; box-shadow: 0 0 0 1px #bdc8d8; }
}

@media (max-width: 560px) {
  .ps-ads-animation { min-height: 430px; }
  .ps-board { height: 322px; padding-inline: 10px; }
  .ps-node { min-width: 104px; gap: 6px; padding: 8px; font-size: .62rem; }
  .ps-node b { width: 22px; height: 22px; }
  .ps-node--intent, .ps-node--generic, .ps-node--offtarget { left: 10px; }
  .ps-node--goal, .ps-node--waste { right: 6px; min-width: 104px; max-width: 112px; }
  .ps-node--goal { top: 72px; }
  .ps-node--waste { top: 202px; }
  .ps-core { transform: translateX(-50%) scale(.74); }
  .ps-status { right: 13px; }
  .ps-column-label--input { left: 12px; }
  .ps-column-label--goal { right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ps-ads-animation *,
  .ps-ads-animation *::before,
  .ps-ads-animation *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
