.ic-prototype .ic-product-progress {
  position: sticky;
  z-index: 920;
  top: var(--ic-header-compact-height, 72px);
  width: 100%;
  border-bottom: 1px solid rgba(72, 65, 58, 0.12);
  background:
    linear-gradient(145deg, rgba(248, 247, 242, 0.985), rgba(232, 231, 224, 0.985));
  color: var(--ic-charcoal);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.92),
    inset 0 -1px rgba(46, 57, 47, 0.06),
    0 10px 26px rgba(31, 29, 26, 0.16);
  backdrop-filter: blur(14px) saturate(106%);
  -webkit-backdrop-filter: blur(14px) saturate(106%);
}

.admin-bar.ic-prototype .ic-product-progress {
  top: calc(var(--ic-header-compact-height, 72px) + 32px);
}

.ic-prototype .ic-product-progress__inner {
  position: relative;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(320px, 0.9fr) minmax(150px, 0.55fr) 44px;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
  padding-inline: clamp(10px, 1.4vw, 18px);
  margin-block: 6px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(250, 249, 244, 0.94), rgba(230, 229, 222, 0.96));
  box-shadow:
    -5px -5px 12px rgba(255, 255, 255, 0.56),
    6px 7px 16px rgba(45, 44, 38, 0.13),
    inset 1px 1px rgba(255, 255, 255, 0.8),
    inset -1px -1px rgba(46, 57, 47, 0.05);
}

.ic-prototype .ic-product-progress__identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.ic-prototype .ic-product-progress__identity strong {
  color: var(--ic-charcoal);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
}

.ic-prototype .ic-product-progress__mark {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: linear-gradient(145deg, #4c914f, var(--ic-cloth-dark));
  box-shadow:
    -2px -2px 5px rgba(255, 255, 255, 0.76),
    2px 3px 7px rgba(31, 81, 38, 0.28),
    inset 1px 1px 2px rgba(255, 255, 255, 0.44),
    inset -1px -1px 2px rgba(17, 54, 22, 0.34);
}

.ic-prototype .ic-product-progress__steps {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ic-prototype .ic-product-progress__steps li {
  position: relative;
  min-width: 0;
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(248, 247, 242, 0.92), rgba(225, 225, 218, 0.9));
  color: rgba(33, 29, 27, 0.56);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  box-shadow:
    -2px -2px 5px rgba(255, 255, 255, 0.68),
    2px 3px 7px rgba(45, 44, 38, 0.1),
    inset 1px 1px rgba(255, 255, 255, 0.66);
  transition: color 380ms ease, background-color 380ms ease, box-shadow 380ms ease;
}

.ic-prototype .ic-product-progress__steps li span {
  color: rgba(184, 124, 70, 0.76);
  font-size: 9px;
}

.ic-prototype .ic-product-progress__steps li.is-active {
  border-color: rgba(184, 124, 70, 0.24);
  background: linear-gradient(145deg, rgba(232, 217, 196, 0.92), rgba(248, 240, 228, 0.96));
  color: var(--ic-charcoal);
  box-shadow:
    inset 2px 2px 5px rgba(110, 75, 44, 0.2),
    inset -2px -2px 5px rgba(255, 255, 255, 0.72),
    0 1px 0 rgba(255, 255, 255, 0.56);
}

.ic-prototype .ic-product-progress__steps li.is-active span,
.ic-prototype .ic-product-progress__steps li.is-complete span {
  color: var(--ic-gold-dark);
}

.ic-prototype .ic-product-progress__steps li.is-complete {
  border-color: rgba(53, 122, 56, 0.15);
  background: linear-gradient(145deg, rgba(222, 233, 219, 0.9), rgba(244, 247, 240, 0.94));
  color: rgba(31, 81, 38, 0.88);
  box-shadow:
    inset 2px 2px 5px rgba(31, 81, 38, 0.13),
    inset -2px -2px 5px rgba(255, 255, 255, 0.72);
}

.ic-prototype .ic-product-progress__meter {
  position: relative;
  height: 7px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: #d9dbd5;
  box-shadow:
    inset 2px 2px 4px rgba(46, 57, 47, 0.18),
    inset -2px -2px 4px rgba(255, 255, 255, 0.74),
    0 1px rgba(255, 255, 255, 0.54);
  isolation: isolate;
}

.ic-prototype .ic-product-progress__meter > span {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, var(--ic-gold-dark), var(--ic-gold) 54%, var(--ic-cloth) 84%, #f8e2bd 100%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.54),
    inset 0 -1px rgba(74, 52, 31, 0.2),
    0 0 7px rgba(235, 186, 134, 0.58),
    0 0 14px rgba(184, 124, 70, 0.28);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 12px), rgba(0, 0, 0, 0.72) calc(100% - 6px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 12px), rgba(0, 0, 0, 0.72) calc(100% - 6px), transparent 100%);
  transition: width 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ic-prototype .ic-product-progress__meter > span::after {
  position: absolute;
  top: 50%;
  right: -2px;
  width: 22px;
  height: 8px;
  background: radial-gradient(ellipse at left center, rgba(248, 226, 189, 0.78), rgba(235, 186, 134, 0.3) 34%, rgba(53, 122, 56, 0.12) 54%, transparent 76%);
  content: "";
  opacity: 0.82;
  pointer-events: none;
  transform: translateY(-50%);
  filter: blur(1.2px);
  transition: opacity 360ms ease;
}

.ic-prototype .ic-product-progress__meter[aria-valuenow="0"] > span {
  box-shadow: none;
}

.ic-prototype .ic-product-progress__meter[aria-valuenow="0"] > span::after {
  opacity: 0;
}

.ic-prototype .ic-product-progress__meter[aria-valuenow="100"] > span {
  border-radius: 999px;
  -webkit-mask-image: none;
  mask-image: none;
}

.ic-prototype .ic-product-progress__value {
  min-width: 42px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(247, 246, 241, 0.92), rgba(224, 224, 217, 0.9));
  color: rgba(33, 29, 27, 0.74);
  font-weight: 750;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  box-shadow:
    -2px -2px 5px rgba(255, 255, 255, 0.66),
    2px 3px 7px rgba(45, 44, 38, 0.1),
    inset 1px 1px rgba(255, 255, 255, 0.66);
}

.ic-prototype.ops-woo-modal-open .ic-product-progress {
  visibility: hidden;
}

@media (max-width: 782px) {
  .admin-bar.ic-prototype .ic-product-progress {
    top: calc(var(--ic-header-phone-compact-height, 68px) + 46px);
  }
}

@media (max-width: 767px) {
  .ic-prototype .ic-product-progress {
    top: var(--ic-header-phone-compact-height, 68px);
  }

  .ic-prototype .ic-product-progress__inner {
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 6px 12px;
    padding: 7px 8px;
    margin-block: 5px;
    border-radius: 13px;
  }

  .ic-prototype .ic-product-progress__identity {
    display: none;
  }

  .ic-prototype .ic-product-progress__steps {
    grid-column: 1 / -1;
    gap: 6px;
  }

  .ic-prototype .ic-product-progress__steps li {
    justify-content: center;
    gap: 5px;
    padding: 5px 4px;
    border-radius: 8px;
    font-size: 10px;
  }

  .ic-prototype .ic-product-progress__meter {
    grid-column: 1;
  }

  .ic-prototype .ic-product-progress__value {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ic-prototype .ic-product-progress__meter > span,
  .ic-prototype .ic-product-progress__steps li {
    transition: none;
  }
}
