/* Treatment price cards. Scoped to the event catalog so shared navigation,
   floating actions, procedure pages and reservation screens keep their styles. */
.treatment-price-grid.event-offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.treatment-price-grid .treatment-price-card {
  min-width: 0;
  overflow-anchor: none;
  overflow: hidden;
  border: 1px solid #ded9d0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.treatment-price-grid .treatment-price-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f1e9;
}

.treatment-price-grid .treatment-price-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.treatment-price-grid .treatment-price-card > .treatment-price-heading {
  display: block;
  padding: 17px 16px 15px;
  border-bottom: 1px solid #e6e0d6;
  background: #f5f1e9;
  color: #23201b;
}

.treatment-price-grid .treatment-price-heading .treatment-price-eyebrow {
  margin: 0 0 5px;
  color: #8f7248;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .035em;
}

.treatment-price-grid .treatment-price-heading h3 {
  margin: 0;
  color: #23201b;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.treatment-price-grid .treatment-price-heading .treatment-price-desc {
  margin: 7px 0 10px;
  color: #716a61;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.treatment-price-grid .treatment-price-heading [data-group-count] {
  display: inline-block;
  margin-right: 8px;
  color: #736b60;
  font-size: 11px;
  line-height: 1.6;
}

.treatment-price-grid .treatment-price-detail {
  display: inline-block;
  padding: 6px 0;
  color: #4c5146;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.treatment-price-grid .treatment-price-list {
  min-width: 0;
}

.treatment-price-grid .event-offer-card {
  min-width: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
}

.treatment-price-grid .event-offer-copy {
  display: grid;
  min-width: 0;
  min-height: 0;
  padding: 15px 16px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.treatment-price-grid .event-offer-text,
.treatment-price-grid .event-offer-side {
  display: block;
  min-width: 0;
}

.treatment-price-grid .event-offer-text h3 {
  margin: 3px 0 4px;
  font-size: 14px;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.treatment-price-grid .event-offer-subtitle,
.treatment-price-grid .event-offer-desc,
.treatment-price-grid .event-offer-condition {
  font-size: 11px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.treatment-price-grid .event-offer-condition {
  margin-top: 6px;
}

.treatment-price-grid .event-tags {
  gap: 3px 6px;
  margin-top: 6px;
}

.treatment-price-grid .event-price-row,
.treatment-price-grid .event-price-row > div,
.treatment-price-grid .event-price-value {
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 3px 5px;
  text-align: left;
}

.treatment-price-grid .event-price-row strong {
  min-width: 0;
  max-width: 100%;
  font-size: 18px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.treatment-price-grid .event-price-row small {
  font-size: 11px;
  line-height: 1.5;
}

.treatment-price-grid .event-price-row .event-price-unit {
  font-size: 11px;
  line-height: 1.6;
}

.treatment-price-grid .event-price-row em {
  color: #77716a;
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.treatment-price-grid .event-row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 5px;
  margin-top: 10px;
}

.treatment-price-grid .event-row-actions > a,
.treatment-price-grid .event-row-actions > button {
  min-width: 0;
  min-height: 44px;
  padding: 7px 4px;
  border-radius: 0;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.treatment-price-grid .price-group-actions {
  display: block;
  padding: 10px 12px;
  border-top: 1px solid #e6e0d6;
  background: #faf8f4;
}

.treatment-price-grid .price-group-more {
  display: block;
  text-align: center;
  text-decoration: none;
  width: 100%;
  min-height: 44px;
  padding: 10px 6px;
  border: 1px solid #c7b392;
  border-radius: 0;
  background: #fff;
  color: #41483c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.treatment-price-grid .price-group-more:hover {
  background: #f1ede4;
}

.treatment-price-grid .price-group-more[aria-expanded="true"] {
  border-color: #858b7c;
  background: #edf0e9;
  color: #363c35;
}

.treatment-price-grid .treatment-price-image:focus-visible,
.treatment-price-grid .treatment-price-detail:focus-visible,
.treatment-price-grid .price-group-more:focus-visible {
  outline: 3px solid #a9884f;
  outline-offset: -3px;
}

@media (max-width: 1050px) {
  .treatment-price-grid.event-offer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 700px) {
  .treatment-price-grid.event-offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .treatment-price-grid .treatment-price-card > .treatment-price-heading {
    padding: 13px 11px 11px;
  }

  .treatment-price-grid .treatment-price-heading h3 {
    font-size: 16px;
  }

  .treatment-price-grid .treatment-price-heading .treatment-price-desc {
    font-size: 11px;
  }

  .treatment-price-grid .event-offer-copy {
    padding: 12px 11px;
    gap: 8px;
  }

  .treatment-price-grid .event-offer-text h3 {
    font-size: 13px;
  }

  .treatment-price-grid .event-price-row strong {
    font-size: 16px;
  }

  .treatment-price-grid .price-group-actions {
    padding: 9px;
  }
}

@media (max-width: 380px) {
  .treatment-price-grid.event-offer-grid {
    gap: 8px;
  }

  .treatment-price-grid .treatment-price-card > .treatment-price-heading,
  .treatment-price-grid .event-offer-copy {
    padding-right: 9px;
    padding-left: 9px;
  }

  .treatment-price-grid .treatment-price-heading h3 {
    font-size: 15px;
  }

  .treatment-price-grid .event-price-row strong {
    font-size: 15px;
  }

  .treatment-price-grid .event-row-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 2026-09-29: Align the image, heading and price-list boundaries per row.
   Append to public/css/treatment-thumbnails.css after the existing rules. */
.treatment-price-grid .treatment-price-card > .treatment-price-heading {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  text-align: left;
}

.treatment-price-grid .treatment-price-meta {
  margin-top: auto;
}

/* Share the natural heading height within each visible row. Text remains
   complete; shorter headings gain space above their benefit/detail links. */
@supports (grid-template-rows: subgrid) {
  .treatment-price-grid.event-offer-grid {
    align-items: stretch;
  }

  .treatment-price-grid > .treatment-price-card {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
  }

  .treatment-price-grid .treatment-price-list {
    align-self: start;
  }
}
