.funnel-block,
.campaigns-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(var(--col-funnel-w) - 70px);
  min-width: calc(var(--col-funnel-w) - 70px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.35),
    0 0 0 0.5px rgba(255, 255, 255, 0.02) inset;
}

.funnel-block {
  position: relative;
  overflow: visible;
}

.campaigns-block {
  width: var(--col-campaigns-w);
  min-width: var(--col-campaigns-w);
}

.funnel-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.funnel-targets-btn {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: rgba(161, 161, 170, 0.9);
  background: transparent;
  cursor: pointer;
  transition: color 120ms ease, background 120ms ease;
}

.funnel-targets-btn:hover {
  color: rgba(245, 245, 247, 0.98);
  background: rgba(255, 255, 255, 0.08);
}

.funnel-targets-btn:disabled {
  cursor: wait;
  opacity: 0.55;
}

.funnel-targets-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.funnel-targets-btn svg circle:last-child {
  fill: currentColor;
  stroke: none;
}

.funnel-targets-popover {
  top: calc(100% + 6px);
  width: min(270px, calc(100vw - 48px));
}

.funnel-targets-popover .prices-spp-inline-popover__field + .prices-spp-inline-popover__field {
  margin-top: 10px;
}

.funnel-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 7px 10px 10px;
  border-radius: 12px;
  background: var(--bg-elevated, rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.22),
    0 0 0 0.5px rgba(255, 255, 255, 0.03) inset;
}

.funnel-subtitle {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.2;
  color: rgba(161, 161, 170, 0.78);
  white-space: nowrap;
}

.funnel-sum {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  color: rgba(245, 245, 247, 0.96);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.funnel-sum-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.funnel-sum-label {
  font-size: 10px;
  color: rgba(161, 161, 170, 0.82);
  font-weight: 600;
  text-align: right;
  line-height: 1;
}

.funnel-metrics {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-height: 0;
  align-items: flex-start;
}

.funnel-metrics::-webkit-scrollbar {
  display: none;
}

.funnel-pill {
  min-width: 0;
  min-height: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.075);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10px;
  line-height: 1;
}

.funnel-pill b {
  color: rgba(245, 245, 247, 0.96);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.funnel-delta {
  white-space: nowrap;
}

.funnel-delta--good { color: rgba(74, 222, 128, 0.92); }
.funnel-delta--bad { color: rgba(248, 113, 113, 0.92); }
.funnel-delta--neutral { color: rgba(161, 161, 170, 0.86); }

.funnel-visual {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 0;
}

.funnel-top,
.funnel-pcts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.funnel-top-stage {
  min-width: 0;
  padding-right: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.075);
}

.funnel-top-stage:last-child {
  border-right: 0;
}

.funnel-top-stage b {
  display: block;
  font-size: 16px;
  line-height: 1.05;
  font-weight: 800;
  color: rgba(245, 245, 247, 0.96);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.funnel-top-stage span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.05;
  color: rgba(161, 161, 170, 0.82);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.funnel-shape-wrap {
  height: 34px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.funnel-shape {
  width: 100%;
  height: 100%;
  display: block;
}

.funnel-area {
  shape-rendering: geometricPrecision;
}

.funnel-area--open { fill: rgba(113, 113, 122, 0.9); }
.funnel-area--cart { fill: rgba(249, 115, 22, 0.92); }
.funnel-area--order { fill: rgba(59, 130, 246, 0.95); }
.funnel-area--buyout { fill: rgba(74, 222, 128, 0.95); }

.funnel-pct {
  font-size: 11px;
  line-height: 1.05;
  color: rgba(161, 161, 170, 0.86);
  font-variant-numeric: tabular-nums;
}

.funnel-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.075);
  margin: 1px 0 0;
}

.funnel-today-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  line-height: 1.1;
  color: rgba(161, 161, 170, 0.86);
}

.funnel-today-mini {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.funnel-today-row {
  display: grid;
  grid-template-columns: 52px 28px 1fr 42px;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  line-height: 1;
}

.funnel-today-row span {
  color: rgba(161, 161, 170, 0.82);
  white-space: nowrap;
}

.funnel-today-row b {
  color: rgba(245, 245, 247, 0.92);
  text-align: right;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.funnel-today-row i {
  display: block;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
}

.funnel-today-row--with-conv-text {
  grid-template-columns: 52px 28px minmax(68px, 1fr) 36px 120px;
}

.funnel-conv-text {
  display: grid;
  grid-template-columns: 26px 42px 40px;
  align-items: center;
  justify-content: end;
  min-width: 120px;
  font-size: 10px;
  line-height: 1;
  color: rgba(161, 161, 170, 0.9);
  white-space: nowrap;
  margin-left: 0px;
}

.funnel-conv-label {
  color: rgba(161, 161, 170, 0.9);
  text-align: left;
}

.funnel-conv-value {
  color: rgba(245, 245, 247, 0.96) !important;
  text-align: right;
}

.funnel-conv-delta {
  color: rgba(161, 161, 170, 0.86);
  text-align: right;
}

.funnel-conv-delta.funnel-delta--good {
  color: rgba(74, 222, 128, 0.92);
}

.funnel-conv-delta.funnel-delta--bad {
  color: rgba(248, 113, 113, 0.92);
}

.funnel-conv-delta.funnel-delta--neutral {
  color: rgba(161, 161, 170, 0.86);
}

.funnel-today-row em {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.funnel-today-fill--open { background: rgba(113, 113, 122, 0.9); }
.funnel-today-fill--cart { background: rgba(249, 115, 22, 0.92); }
.funnel-today-fill--order { background: rgba(59, 130, 246, 0.95); }

.funnel-today-row strong {
  text-align: right;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-left: -2px;
}

.funnel-today-pos-pill {
  margin-top: 0;
  min-width: 52px;
  padding: 5px 7px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.075);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 10px;
  line-height: 1;
}

.funnel-today-pos-pill b {
  color: rgba(245, 245, 247, 0.96);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.funnel-metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 0 0 94px;
  width: 94px;
  min-width: 94px;
  max-width: 94px;
  min-height: 0;
}

.funnel-metric__label {
  display: block;
  flex: 0 0 auto;
  min-height: 11px;
  font-size: 10px;
  color: rgba(161, 161, 170, 0.82);
  font-weight: 600;
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.funnel-today-row span,
.funnel-today-row b {
  white-space: nowrap;
}

.funnel-today-row b {
  min-width: 0;
}

.funnel-date-value {
  color: rgba(245, 245, 247, 0.96);
  font-weight: 700;
}

.funnel-today-pos-line {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-size: 10px;
  color: rgba(161, 161, 170, 0.84);
  font-weight: 600;
}
