
@layer wp {
/*
 * CloudScore: updates synced from the Next.js site (cloudscore-next), 2026-10-16.
 * Loaded after style.css (functions.php, cs_enqueue_assets). Each block mirrors a change made on the new site.
 */

/* Slim, light scrollbar on every page */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 70, 162, 0.28) transparent;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(23, 70, 162, 0.28) padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(23, 70, 162, 0.5);
}

/* Tighter vertical rhythm: Elementor sets each section's padding through these variables (84-96px) */
.elementor .e-con.e-parent {
  --padding-top: clamp(40px, 4vw, 56px) !important;
  --padding-bottom: clamp(40px, 4vw, 56px) !important;
}

/* Callout panels ("Example", "Customer perspective"...) fit their own content instead of stretching */
.cs-highlight {
  align-self: start;
}

/* Dashboard-style KPI labels wrap instead of being cut off with "..." in narrow tiles */
.cs-kpi2 small,
.cs-kpi2 .cs-delta {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.cs-app-table th {
  font-size: 11px;
}

/* App mock-up headers show the CloudScore brand logo instead of a generic cloud icon */
.cs-app-mark {
  background: #fff url("/wp/wp-content/themes/cloudscore-astra/assets/img/cloudscore-icon.png") center / 80% auto no-repeat !important;
  border: 1px solid #dbecff;
}
.cs-app-mark svg {
  display: none;
}

/* Motion: flows keep moving while a visual is on screen; the cost-allocation Sankey gets a soft wave through
   its ribbons from the provider bill, to services, to owners (--s is each ribbon's order). */
.cs-motion .cs-viz.is-play .flow {
  animation: csFlow 1.1s linear infinite;
}
.cs-motion .cs-viz.is-play .pulse {
  animation: csRing 2.4s var(--cs-ease) infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.cs-motion .cs-viz.is-play svg[aria-label*="flowing"] path[data-s] {
  animation: cs-ribbon 3.4s ease-in-out calc(var(--s, 0) * 0.12s + 1.2s) infinite;
}
@keyframes cs-ribbon {
  45% {
    fill-opacity: 0.42;
  }
}

/* Numbered step rows (01-05): brand chips; a line draws across as each step lights, then a dot keeps travelling */
.cs-steps {
  position: relative;
}
body .cs-step-num .elementor-heading-title {
  display: inline-grid !important;
  place-items: center !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 0 8px !important;
  border-radius: 10px !important;
  background: #1746a2 !important;
  color: #fff !important;
  transition: background-color 0.4s, color 0.4s !important;
}
body.cs-motion .cs-steps > .e-con:not(.is-lit) .cs-step-num .elementor-heading-title,
.cs-motion body .cs-steps > .e-con:not(.is-lit) .cs-step-num .elementor-heading-title {
  background: #e5f2ff !important;
  color: #1746a2 !important;
}
.cs-motion .cs-steps::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: #1746a2;
}
.cs-motion .cs-steps.is-in::before {
  animation: cs-steps-line 2.3s cubic-bezier(0.2, 0.7, 0.2, 1) 0.18s forwards;
}
.cs-motion .cs-steps.is-done::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1746a2;
  box-shadow: 0 0 0 4px rgba(23, 70, 162, 0.15);
  animation: cs-steps-dot 4.5s linear infinite;
}
@keyframes cs-steps-line {
  to {
    width: 100%;
  }
}
@keyframes cs-steps-dot {
  to {
    left: calc(100% - 8px);
  }
}

/* Phones: bigger tap areas for small text links (padding on inline links grows the tap area without moving text) */
@media (max-width: 767px) {
  .cs-crumbs a,
  .elementor h3 > a,
  .elementor h4 > a,
  a.url,
  .LI-simple-link {
    padding-block: 8px;
  }
  .elementor-button.elementor-size-sm {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
}

/* ---------- Office map (functions.php, cs_office_map) on Contact and Book a demo ---------- */
.cs-om {
  background: #edf5ff;
  padding: clamp(40px, 4vw, 56px) 0;
}
.cs-om-in {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}
.cs-om-eyebrow {
  margin: 0;
  font: 600 14px/1.4 var(--cs-font, inherit);
  color: #1746a2;
}
.cs-om-title {
  margin: 12px 0 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #0b1b33;
}
.cs-om-title em {
  font-style: normal;
  color: #1746a2;
}
.cs-om-lead {
  margin: 14px 0 0;
  max-width: 36rem;
  font-size: 17px;
  line-height: 1.6;
  color: #5b6478;
}
.cs-om-card {
  --s: 1;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid #dbecff;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(10, 11, 16, 0.04), 0 24px 60px -28px rgba(11, 27, 77, 0.22);
}
.cs-om-map {
  position: relative;
  aspect-ratio: 1000 / 520;
}
.cs-om-map img,
.cs-om-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.cs-om-dot,
.cs-om-pulse {
  transform-box: fill-box;
  transform-origin: center;
}
.cs-om-dot {
  transform: scale(0);
}
.cs-om-pulse {
  opacity: 0;
}
.cs-om-leader {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.cs-om-label {
  position: absolute;
  white-space: nowrap;
  padding: 6px 12px;
  border: 1px solid #dbecff;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(10, 11, 16, 0.04), 0 18px 40px -24px rgba(11, 27, 77, 0.3);
  opacity: 0;
  translate: 0 6px;
}
.cs-om-label--left {
  transform: translate(calc(-100% - 6px), -50%);
}
.cs-om-label--right {
  transform: translate(6px, -50%);
}
.cs-om-label b {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  color: #0b1b33;
}
.cs-om-label span {
  display: block;
  font-size: 11.5px;
  line-height: 1.25;
  color: #5b6478;
}
.cs-om-card.is-on .cs-om-dot {
  animation: cs-om-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) forwards;
}
.cs-om-card.is-on .cs-om-pulse {
  animation: cs-om-pulse 2.4s ease-out calc(var(--d, 0s) + 0.4s) infinite;
}
.cs-om-card.is-on .cs-om-leader {
  animation: cs-om-draw 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) forwards;
}
.cs-om-card.is-on .cs-om-label {
  animation: cs-om-label 0.5s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) forwards;
}
.cs-om-flow {
  animation: cs-om-flow 1.1s linear infinite;
}
.cs-om-card.is-still .cs-om-dot {
  transform: scale(var(--s));
  animation: none;
}
.cs-om-card.is-still .cs-om-leader {
  stroke-dashoffset: 0;
  animation: none;
}
.cs-om-card.is-still .cs-om-label {
  opacity: 1;
  translate: none;
  animation: none;
}
.cs-om-card.is-still .cs-om-flow,
.cs-om-card.is-still .cs-om-mover {
  animation: none;
  display: none;
}
.cs-om-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.cs-om-list li {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dbecff;
  border-radius: 16px;
  background: rgba(237, 245, 255, 0.6);
}
.cs-om-list i {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: #1746a2;
  box-shadow: 0 0 0 4px #dbecff;
}
.cs-om-list b {
  font-size: 15px;
  color: #0b1b33;
}
.cs-om-list span {
  font-size: 15px;
  color: #5b6478;
}
.cs-om-list p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: #5b6478;
}
@media (min-width: 640px) {
  .cs-om-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 639px) {
  .cs-om-card {
    --s: 2;
    padding: 12px;
  }
  .cs-om-label,
  .cs-om-leader {
    display: none;
  }
}
@keyframes cs-om-pop {
  to {
    transform: scale(var(--s));
  }
}
@keyframes cs-om-pulse {
  from {
    opacity: 0.45;
    transform: scale(var(--s));
  }
  to {
    opacity: 0;
    transform: scale(calc(var(--s) * 3.4));
  }
}
@keyframes cs-om-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes cs-om-label {
  to {
    opacity: 1;
    translate: none;
  }
}
@keyframes cs-om-flow {
  to {
    stroke-dashoffset: -12;
  }
}

}
