:root {
  --avpc-ink: #103a36;
  --avpc-muted: #6d817d;
  --avpc-teal: #0d9187;
  --avpc-teal-dark: #076b64;
  --avpc-teal-soft: #e4f5f2;
  --avpc-paper: #fffdf9;
  --avpc-line: rgba(15, 88, 81, .15);
  --avpc-gold: #c5a368;
}

.avpc[hidden] {
  display: none !important;
}

.avpc {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  font-family: Inter, Manrope, Arial, sans-serif;
}

.avpc,
.avpc * {
  box-sizing: border-box;
}

.avpc__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.avpc__panel {
  position: fixed;
  left: var(--avpc-left, 24px);
  top: var(--avpc-top, 80px);
  width: min(354px, calc(100vw - 24px));
  padding: 20px;
  border: 1px solid var(--avpc-line);
  border-radius: 22px;
  background: var(--avpc-paper);
  color: var(--avpc-ink);
  box-shadow: 0 28px 80px rgba(8, 52, 48, .20), 0 6px 20px rgba(8, 52, 48, .08);
  opacity: 0;
  transform: translateY(-7px) scale(.985);
  transform-origin: top right;
  transition: opacity .18s ease, transform .18s ease;
}

.avpc.is-open .avpc__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.avpc__handle {
  display: none;
}

.avpc__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.avpc__eyebrow {
  display: block;
  margin: 0 0 4px;
  color: var(--avpc-teal-dark);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.avpc__head h2 {
  margin: 0;
  color: var(--avpc-ink);
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: 24px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.avpc__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  border: 1px solid var(--avpc-line);
  border-radius: 50%;
  background: #fff;
  color: var(--avpc-muted);
  cursor: pointer;
}

.avpc__close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.avpc__numbers {
  display: grid;
  gap: 9px;
}

.avpc__number {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 67px;
  padding: 10px 12px;
  border: 1px solid var(--avpc-line);
  border-radius: 16px;
  background: #fff;
  color: var(--avpc-ink) !important;
  text-decoration: none !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.avpc__number:hover,
.avpc__number:focus-visible {
  border-color: rgba(13, 145, 135, .42);
  box-shadow: 0 10px 24px rgba(8, 71, 65, .09);
  transform: translateY(-1px);
  outline: none;
}

.avpc__number--primary {
  border-color: rgba(197, 163, 104, .42);
  box-shadow: inset 3px 0 0 var(--avpc-gold);
}

.avpc__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--avpc-teal-soft);
  color: var(--avpc-teal-dark);
}

.avpc__icon svg,
.avpc__arrow {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.avpc__number > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.avpc__number small {
  color: var(--avpc-muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.avpc__number strong {
  color: var(--avpc-ink);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -.015em;
  white-space: nowrap;
}

.avpc__arrow {
  width: 17px;
  height: 17px;
  color: var(--avpc-gold);
}

.avpc__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 14px 0 0;
  color: var(--avpc-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.avpc__note span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #46c795;
  box-shadow: 0 0 0 4px rgba(70, 199, 149, .13);
}

.avpc-open {
  overflow: hidden !important;
}

@media (max-width: 760px) {
  .avpc__backdrop {
    background: rgba(7, 38, 35, .42);
    backdrop-filter: blur(3px);
  }

  .avpc__panel {
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    top: auto;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: auto;
    padding: 11px 14px 15px;
    border-radius: 22px;
    transform: translateY(18px);
    transform-origin: bottom center;
  }

  .avpc.is-open .avpc__panel {
    transform: translateY(0);
  }

  .avpc__handle {
    display: block;
    width: 34px;
    height: 4px;
    margin: 0 auto 10px;
    border-radius: 99px;
    background: rgba(16, 58, 54, .18);
  }

  .avpc__head {
    margin-bottom: 12px;
  }

  .avpc__head h2 {
    font-size: 22px;
  }

  .avpc__number {
    min-height: 62px;
  }

  .avpc__number strong {
    font-size: 16px;
  }

  .avpc__note {
    margin-top: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .avpc__panel,
  .avpc__number {
    transition: none;
  }
}
