.ref-pdp {
  --ref-pdp-gutter: clamp(20px, 5vw, 72px);
  --ref-pdp-width: 1296px;
  background: var(--white, #fff);
  color: var(--ink, #1b252f);
}

.ref-pdp .ref-pdp-wrap {
  width: min(calc(100% - 2 * var(--ref-pdp-gutter)), var(--ref-pdp-width));
  margin-inline: auto;
}

.ref-pdp .cb-detail-trail {
  flex-wrap: nowrap;
  min-width: 0;
  gap: 8px;
  padding-block: clamp(18px, 2vw, 28px);
  border: 0;
  color: var(--muted, #5e6267);
  font-size: 14px;
  line-height: 20px;
}

.ref-pdp .cb-detail-trail > :not([aria-current]) {
  flex: 0 0 auto;
}

.ref-pdp .cb-detail-trail a:hover {
  text-decoration: underline;
}

.ref-pdp .cb-detail-trail [aria-current] {
  min-width: 0;
  overflow: hidden;
  color: var(--ink, #1b252f);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ref-pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 602px);
  grid-template-areas: "heading" "controls";
  align-items: start;
  gap: 20px;
  padding-block: 0 64px;
}

.ref-pdp-grid--media {
  grid-template-columns: minmax(0, 536fr) minmax(0, 603fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "heading media" "controls media";
  gap: 28px clamp(40px, 11vw, 158px);
}

.ref-pdp-heading {
  grid-area: heading;
  min-width: 0;
}

.ref-pdp .ref-pdp-category {
  color: var(--muted, #5e6267);
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
}

.ref-pdp .ref-pdp-heading h1 {
  max-width: none;
  margin-top: 10px;
  color: var(--brand, #841536);
  font: 500 32px / 40px var(--body, Quicksand, sans-serif);
  letter-spacing: -.015em;
  text-wrap: initial;
}

.ref-pdp .ref-pdp-intro {
  margin-top: 8px;
  color: var(--muted, #5e6267);
  font-size: 16px;
  line-height: 24px;
}

.ref-pdp-more {
  display: inline-block;
  margin: 12px 15px 0 0;
  color: var(--brand, #841536);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .16em;
}

.ref-pdp-figure {
  position: relative;
  grid-area: media;
  overflow: hidden;
  margin: 0;
  background: var(--wash, #f8eef2);
  aspect-ratio: 1;
  border-radius: 20px;
}

.ref-pdp-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ref-pdp-expand,
.ref-pdp-close {
  position: absolute;
  inset: 16px 16px auto auto;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #0007;
  color: #fff;
  font: 500 23px / 1 var(--body, Quicksand, sans-serif);
  backdrop-filter: blur(5px);
}

.ref-pdp-expand[hidden] {
  display: none;
}

.ref-pdp-expand:hover,
.ref-pdp-close:hover {
  background: var(--brand, #841536);
}

.ref-pdp-controls {
  grid-area: controls;
  display: grid;
  gap: 14px;
  min-width: 0;
  align-self: start;
}

.ref-pdp-duration,
.ref-pdp-options {
  padding: 13px 16px;
  border: 1px solid var(--line, #e8dbe0);
  border-radius: 12px;
  font-size: 15px;
  line-height: 22px;
}

.ref-pdp-duration {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 18px;
}

.ref-pdp-options summary,
.ref-pdp-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.ref-pdp-options ul {
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.ref-pdp-options li {
  border-top: 1px solid var(--line, #e8dbe0);
}

.ref-pdp-options a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
}

.ref-pdp-options a:hover {
  color: var(--brand, #841536);
  text-decoration: underline;
}

.ref-pdp .ref-pdp-price {
  margin-top: 4px;
  color: var(--brand, #841536);
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
}

.ref-pdp .ref-pdp-main-action .cb-detail-button,
.ref-pdp .ref-pdp-bar .cb-detail-button,
.ref-pdp .ref-pdp-original .cb-detail-button {
  min-height: 48px;
  border-radius: 999px;
  font-size: 15px;
}

.ref-pdp .ref-pdp-main-action .cb-detail-button,
.ref-pdp .ref-pdp-bar .cb-detail-button {
  justify-content: center;
  color: #fff;
}

.ref-pdp .ref-pdp-main-action .cb-detail-button {
  width: 100%;
}

.ref-pdp-benefits {
  padding-block: clamp(42px, 5vw, 64px);
  background: var(--paper, #fafafa);
}

.ref-pdp-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 24px;
}

.ref-pdp-benefit-grid .cb-detail-section {
  margin: 0;
  padding: 18px 24px;
  border-radius: 10px;
  background: var(--white, #fff);
}

.ref-pdp .ref-pdp-benefits h2,
.ref-pdp .ref-pdp-content h2,
.ref-pdp .ref-pdp-faq h2 {
  color: var(--brand, #841536);
  font: 500 24px / 32px var(--body, Quicksand, sans-serif);
  letter-spacing: -.01em;
  text-align: center;
}

.ref-pdp .ref-pdp-benefit-grid h2 {
  font-size: 18px;
  text-align: left;
}

.ref-pdp .ref-pdp-content,
.ref-pdp .ref-pdp-faq {
  max-width: 860px;
  padding-block: 36px;
  border-top: 1px solid var(--line, #e8dbe0);
}

.ref-pdp-content .cb-detail-prose {
  width: auto;
  margin-top: 22px;
}

.ref-pdp-content .cb-detail-prose h2 {
  margin-top: 24px;
  font-size: 18px;
  text-align: left;
}

.ref-pdp .ref-pdp-faq details {
  padding: 15px 0;
  border-bottom: 1px solid var(--line, #e8dbe0);
}

.ref-pdp .ref-pdp-faq details p {
  margin: 10px 0 0;
}

.ref-pdp-original {
  padding-bottom: 48px;
  text-align: center;
}

.ref-pdp-bar {
  position: fixed;
  z-index: 8;
  inset: auto 0 0;
  padding-block: 10px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line, #e8dbe0);
  background: var(--white, #fff);
  box-shadow: 0 -5px 18px #1b172013;
}

.ref-pdp-bar:not([hidden]) {
  animation: ref-pdp-bar-in .25s ease-out both;
}

@keyframes ref-pdp-bar-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.ref-pdp-bar .ref-pdp-wrap,
.ref-pdp-bar-summary {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
}

.ref-pdp-bar-summary img {
  width: 50px;
  aspect-ratio: 1;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
}

.ref-pdp-bar-summary div {
  min-width: 0;
}

.ref-pdp-bar-summary strong,
.ref-pdp-bar-summary span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ref-pdp-bar-summary span {
  color: var(--muted, #5e6267);
  font-size: 13px;
}

.ref-pdp-bar a {
  flex: none;
}

.ref-pdp-image-dialog {
  max-width: min(92vw, 720px);
  max-height: 90dvh;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--white, #fff);
}

.ref-pdp-image-dialog img {
  max-height: 88dvh;
  object-fit: contain;
}

.ref-pdp-image-dialog::backdrop {
  background: #1b121bc2;
}

@media (max-width: 1023px) {
  .ref-pdp-grid--media {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "heading" "media" "controls";
    gap: 18px;
  }

  .ref-pdp-grid {
    padding-bottom: 38px;
  }
}

@media (max-width: 540px) {
  .ref-pdp .cb-detail-trail {
    font-size: 12px;
  }

  .ref-pdp-benefit-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ref-pdp-bar-summary {
    font-size: 13px;
  }

  .ref-pdp-bar-summary img {
    display: none;
  }

  .ref-pdp .ref-pdp-bar .cb-detail-button {
    min-height: 42px;
    gap: 7px;
    padding-inline: 11px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ref-pdp-bar:not([hidden]) {
    animation: none;
  }
}
