/* Scoped to the price section: the existing public pages keep their styles. */
.piercing-prices {
  --price-paper: #111212;
  --price-ink: var(--text, #f7f1e7);
  --price-muted: #c4beb3;
  --price-green: #b0e0c9;
  --price-line: #343a36;
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--line, #343a36);
  border-radius: var(--radius-lg, 28px);
  color: var(--price-ink);
  background: var(--price-paper);
  scroll-margin-top: 8rem;
}

.piercing-prices h2,
.piercing-prices h3 {
  font-family: "Manrope", sans-serif;
  text-transform: none;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.piercing-prices h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}

.piercing-prices h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

.piercing-prices p {
  line-height: 1.65;
}

.piercing-prices-intro {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.piercing-prices-intro > p:last-child,
.piercing-price-zone-heading p,
.piercing-price-materials > p:not(.piercing-prices-kicker) {
  margin: 0.85rem 0 0;
  color: var(--price-muted);
}

.piercing-prices .piercing-prices-kicker {
  margin: 0 0 0.75rem;
  color: var(--price-green);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.piercing-price-zone-heading {
  margin-bottom: 1.5rem;
}

.piercing-price-zone-ear {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.piercing-price-ear-layout {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.piercing-price-ear-figure {
  display: grid;
  justify-items: center;
  gap: 1rem;
  min-width: 0;
  margin: 0;
  padding: 1.5rem;
  border-radius: 8px;
  color: var(--price-muted);
  background: #171919;
}

.piercing-price-ear-svg {
  display: block;
  width: min(100%, 340px);
  height: auto;
  aspect-ratio: 559.98 / 900.28;
}

.piercing-price-ear-figure figcaption {
  max-width: 30ch;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}

.piercing-price-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.piercing-price-name-column {
  width: 54%;
}

.piercing-price-table th,
.piercing-price-table td {
  padding: 0.9rem 0.25rem;
  border-bottom: 1px solid var(--price-line);
  vertical-align: middle;
}

.piercing-price-table th:first-child {
  padding-left: 0;
  text-align: left;
}

.piercing-price-table th:last-child,
.piercing-price-table td:last-child {
  padding-right: 0;
}

.piercing-price-table thead th {
  color: var(--price-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: right;
}

.piercing-price-table tbody th {
  font-weight: 700;
}

.piercing-price-table td {
  white-space: nowrap;
  text-align: right;
}

.piercing-price-table tbody tr {
  transition: background-color 200ms ease, opacity 200ms ease;
}

@media (hover: hover) {
  .piercing-price-table tbody tr:not([data-piercing-id]):hover,
  .piercing-price-zone-ear:not(.has-piercing-interaction) .piercing-price-table tbody tr:hover {
    background: rgba(0, 84, 63, 0.2);
  }
}

.piercing-price-name {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-wrap: anywhere;
}

.piercing-price-number {
  display: inline-grid;
  flex: 0 0 1.75rem;
  place-items: center;
  height: 1.75rem;
  border: 1px solid #53675c;
  border-radius: 50%;
  color: var(--price-green);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
}

.piercing-price-other-zones {
  display: grid;
  gap: 2.5rem;
}

.piercing-price-other-zones .piercing-price-zone {
  min-width: 0;
  padding-top: 1.25rem;
  border-top: 1px solid #53675c;
}

.piercing-price-other-zones h3 {
  margin-bottom: 0.75rem;
}

.piercing-price-materials {
  max-width: 45rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.piercing-price-materials h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.piercing-prices-booking {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--price-line);
}

.piercing-prices-booking p {
  margin: 0;
  font-weight: 700;
}

.piercing-prices-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.4rem;
  border-radius: 4px;
  color: var(--price-ink);
  background: #00543f;
  font-size: 0.9rem;
  font-weight: 800;
}

.piercing-prices-cta:hover {
  background: #003f2f;
}

.piercing-prices-cta:focus-visible {
  outline: 3px solid var(--price-ink);
  outline-offset: 4px;
}

.piercing-prices-jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-weight: 700;
}

.piercing-prices-jump:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.piercing-prices-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.has-piercing-interaction .piercing-price-table tbody th {
  padding-block: 0;
}

.has-piercing-interaction .piercing-price-table tbody tr {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.piercing-price-select {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0;
  border: 0;
  border-radius: 4px;
  font: inherit;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.piercing-price-select:focus-visible {
  outline: 2px solid var(--price-green);
  outline-offset: -2px;
}

.piercing-ear-point {
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 200ms ease, transform 200ms ease, filter 200ms ease;
}

.piercing-ear-point circle,
.piercing-ear-point path {
  transition: fill 200ms ease;
}

.piercing-price-zone-ear .is-muted {
  opacity: 0.55;
}

.piercing-price-table tr.is-active {
  background: rgba(0, 84, 63, 0.24);
}

.piercing-price-table tr.is-active .piercing-price-number {
  border-color: #0b7a59;
  color: var(--price-ink);
  background: #00543f;
}

.piercing-ear-point.is-active {
  transform: scale(1.08);
  filter: drop-shadow(0 0 3px rgba(11, 122, 89, 0.4));
}

.piercing-ear-point.is-active circle {
  fill: var(--price-green);
}

.piercing-ear-point.is-active path {
  fill: #12221b;
}

@media (min-width: 900px) {
  .piercing-price-ear-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }
}

@media (min-width: 1050px) {
  .piercing-price-other-zones {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }

  .piercing-price-other-zones [aria-labelledby="piercing-prices-simetrias"] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .piercing-prices {
    padding: 1rem;
  }

  .piercing-price-ear-figure {
    margin-inline: -1rem;
    padding: 1rem 0.5rem;
    border-radius: 0;
  }

  .piercing-price-table {
    font-size: 0.9375rem;
  }

  .piercing-price-table thead th {
    font-size: 0.75rem;
  }

  .piercing-price-table th,
  .piercing-price-table td {
    padding-block: 0.85rem;
  }

  .piercing-price-number {
    flex-basis: 1.5rem;
    height: 1.5rem;
  }

  .piercing-price-name {
    gap: 0.45rem;
  }

  .piercing-prices-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .piercing-price-table tbody tr,
  .piercing-ear-point,
  .piercing-ear-point circle,
  .piercing-ear-point path {
    transition: none;
  }

  .piercing-ear-point.is-active {
    transform: none;
  }
}
