/* ---------- Top: media + summary ---------- */
.appeal__top { padding-block: 32px 80px; }
.appeal__top > .breadcrumb { margin-bottom: 28px; }
.appeal__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: clamp(32px, 5vw, 56px); align-items: start; }

.appeal-media { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.appeal-media__stage { aspect-ratio: 1 / 1; border-radius: var(--r-xl); }
.appeal-media__stage > img { position: absolute; inset: 0; }
.appeal-media__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.appeal-media__stage.is-video { aspect-ratio: 16 / 9; background: #000; }
.appeal-media__badges { position: absolute; top: 20px; left: 20px; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; }
.appeal-media__badges .pill { font-size: 13px; padding: 8px 14px; }
.appeal-media__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.appeal-media__thumb {
  width: 100%; aspect-ratio: 1 / 1; border-radius: var(--r-sm); border: 1px solid var(--c-line); padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.appeal-media__thumb img { position: absolute; inset: 0; }
.appeal-media__thumb[aria-pressed="true"] { border: 3px solid var(--c-green); }
.appeal-media__thumb--video { background: var(--c-green); border: 0; position: relative; }
.appeal-media__thumb--video[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--c-gold); }

.appeal-summary { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.appeal-summary__title { font-size: clamp(38px, 4.5vw, 56px); }
.appeal-summary__intro { font-size: 17px; line-height: 1.65; color: var(--c-muted); }
.appeal-summary__intro p + p { margin-top: .8em; }
.appeal-summary__ticks { padding-top: 18px; border-top: 1px solid var(--c-line); }

/* ---------- Add-to-basket form ---------- */
.appeal-form { display: flex; flex-direction: column; gap: 18px; }
.appeal-form__legend { font-weight: 700; font-size: 15px; margin-bottom: 12px; padding: 0; }
.appeal-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.appeal-form__price { font-size: 28px; font-family: var(--f-display); font-weight: 800; color: var(--c-green); }
.appeal-form__price .woocommerce-Price-currencySymbol { font-size: inherit; }
.appeal-form__price > span:last-child { font-family: var(--f-body); font-size: 14px; font-weight: 500; color: var(--c-muted); }
.appeal-form__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.appeal-form__submit { flex: 1 1 240px; }

.options { display: flex; flex-direction: column; gap: 12px; }
.option-card {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: var(--r-md); border: 1px solid var(--c-line-input); background: var(--c-surface); cursor: pointer;
}
.option-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option-card__dot { width: 22px; height: 22px; flex: none; border-radius: var(--r-pill); border: 2px solid var(--c-disabled); }
.option-card__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.option-card__text strong { font-size: 16px; }
.option-card__text span { font-size: 13px; color: var(--c-muted); }
.option-card__price { font-size: 18px; color: var(--c-green); }
.option-card:has(input:checked) { border: 2px solid var(--c-green); box-shadow: 0 0 0 4px var(--c-mint); padding: 15px 19px; }
.option-card:has(input:checked) .option-card__dot { border: 7px solid var(--c-green); }
.option-card:has(input:focus-visible) { outline: 3px solid var(--c-gold); outline-offset: 2px; }

/* Quantity stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--c-line-input); border-radius: var(--r-pill); background: var(--c-surface); }
.stepper__btn { width: 52px; height: 56px; border: 0; background: transparent; color: var(--c-green); display: flex; align-items: center; justify-content: center; border-radius: var(--r-pill); }
.stepper__btn:hover { background: var(--c-mint); }
.stepper .stepper__input {
  width: 48px; min-height: 0; height: 40px; border: 0; padding: 0; text-align: center; font-weight: 700; font-size: 17px; background: transparent;
  -moz-appearance: textfield;
}
.stepper .stepper__input::-webkit-outer-spin-button, .stepper .stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* General donation amount picker */
.amount-picker__chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.amount-input { position: relative; display: block; }
.amount-input > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--c-text); }
.amount-input input { padding-left: 30px; font-size: 17px; font-weight: 700; }

/* Dedication + Custom Product Addons fields */
.cope-dedication { margin: 0; }
.appeal-form .wcpa_form_outer { margin: 0; }
.appeal-form .wcpa_form_item { margin-bottom: 14px; }
.appeal-form .wcpa_form_item label, .appeal-form .wcpa_form_outer label { display: block; font-size: 14px; font-weight: 600; color: var(--c-muted); margin-bottom: 6px; }
.appeal-form .wcpa_form_outer input[type="text"], .appeal-form .wcpa_form_outer textarea, .appeal-form .wcpa_form_outer select { width: 100%; }
.appeal-form .wcpa_price_summary, .appeal-form .wcpa_form_outer .wcpa_price_outer { display: none; }

/* ---------- Tabs ---------- */
.appeal-info { background: var(--c-surface); border-block: 1px solid var(--c-line); }
.appeal-info__inner { padding-block: 56px 72px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--c-line); margin-bottom: 40px; }
.tabs__tab {
  min-height: 48px; padding: 0 20px; background: transparent; border: 0; border-bottom: 3px solid transparent;
  font-size: 16px; font-weight: 600; color: var(--c-muted); margin-bottom: -1px;
}
.tabs__tab[aria-selected="true"] { border-bottom-color: var(--c-green); color: var(--c-green); font-weight: 700; }
.no-js .tabs, html:not(.js) .tabs { display: none; }
html:not(.js) .tabs__panel + .tabs__panel { margin-top: 48px; }
.js .tabs__panel[hidden] { display: none; }

.appeal-about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; }
.appeal-about__text { font-size: 16px; }
.appeal-about__text h2 { margin-top: 0; font-size: 32px; }

.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.steps-list li { display: flex; flex-direction: column; gap: 12px; }
.steps-list__num {
  width: 48px; height: 48px; border-radius: var(--r-pill); background: var(--c-gold); color: var(--c-green);
  font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center;
}
.steps-list strong { font-size: 18px; color: var(--c-green); }
.steps-list li > span:last-child { font-size: 15px; line-height: 1.6; color: var(--c-muted); }

.faqs { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faqs details { background: var(--c-bg); border-radius: var(--r-md); padding: 20px 24px; }
.faqs summary { font-weight: 700; font-size: 16px; cursor: pointer; color: var(--c-green); list-style-position: outside; }
.faqs p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--c-muted); }

/* ---------- Related ---------- */
.appeal-related h2 { margin-bottom: 32px; font-size: 36px; }
.related-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.related-card {
  height: 100%; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-card); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: var(--c-text);
}
.related-card:hover { box-shadow: var(--sh-float); color: var(--c-text); }
.related-card__media { height: 160px; }
.related-card__body { padding: 18px 20px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.related-card__body strong { font-size: 17px; color: var(--c-green); }
.related-card__body span { font-weight: 700; white-space: nowrap; }
.related-card__body .from { font-weight: 400; font-size: 13px; color: var(--c-muted); }
