/* The Give page (inc/give-page.php), 22 October 2026. Design H: christshopeuk/website/design/give-page/.
   Only this page loads it. The form's own styles are in v3.css (.v3-give-*), as the form is also on
   /in-memory/ and the single-form page. Colours and type are the theme's tokens. */

.ch-v3 .ch-give-hero { min-height: 520px; }

/* The two tabs, attached to the box */
.ch-give-doors { margin-top: -72px; position: relative; z-index: 3; padding-bottom: var(--v3-s7); }
.ch-give-set { max-width: 860px; margin: 0 auto; }
.ch-give-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.ch-give-tab { position: relative; display: flex; gap: 14px; align-items: center; cursor: pointer;
  background: #eef3f0; border: 1px solid var(--v3-line); border-bottom: 0; border-radius: 14px 14px 0 0;
  padding: 18px 22px; color: var(--v3-ink-soft); transition: background .15s, padding .15s; }
.ch-give-tab > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ch-give-tab:hover { background: #e4ebe7; }
.ch-give-tab-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--v3-green-ink); }
.ch-give-tab-icon .ch-v3-icon { width: 26px; height: 26px; }
.ch-give-tab-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ch-give-tab-title { font-family: var(--v3-font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; color: var(--v3-ink); }
.ch-give-tab-sub { font-size: var(--v3-t-small); color: var(--v3-muted); }
.ch-give-tab-tick { margin-left: auto; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--v3-green); color: #fff; display: none; align-items: center; justify-content: center; }
.ch-give-tab-tick .ch-v3-icon { width: 18px; height: 18px; }
.ch-give-tab:has(input:checked) { background: #fff; padding-top: 26px; margin-bottom: -1px; z-index: 2; border-top: 5px solid var(--v3-green); box-shadow: 0 -6px 18px rgba(20,32,27,.06); }
.ch-give-tab:has(input:checked) .ch-give-tab-icon { background: var(--v3-green-tint); }
.ch-give-tab:has(input:checked) .ch-give-tab-tick { display: inline-flex; }
.ch-give-tab:has(input:focus-visible) { outline: 3px solid var(--v3-green-ink); outline-offset: 2px; }

.ch-give-box { background: #fff; border: 1px solid var(--v3-line); border-radius: 0 0 14px 14px; box-shadow: var(--v3-shadow-lg); padding: var(--v3-s4); }
.ch-v3 .ch-give-box .v3-lead-form, .ch-v3 .ch-give-box .v3-form { padding: 0; border: 0; box-shadow: none; background: none; max-width: none; }
.ch-give-pane-head { margin-bottom: var(--v3-s4); }
.ch-give-pane-head .v3-h2 { margin: 0 0 8px; }
.ch-give-pane-head .v3-lead { margin: 0; max-width: 60ch; }
.ch-give-pane > .v3-lead { margin-top: 0; }

/* Other ways: six compact cards */
.ch-give-ways-grid { display: grid; gap: 14px; max-width: 1060px; margin: 0 auto; }
@media (min-width: 640px) { .ch-give-ways-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .ch-give-ways-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ch-give-way { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--v3-line); border-radius: var(--v3-r-card); text-decoration: none; color: var(--v3-ink-soft); transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.ch-give-way:hover { border-color: #9db3a7; box-shadow: var(--v3-shadow); transform: translateY(-2px); }
.ch-give-way .v3-icon-badge { flex: none; margin: 0; }
.ch-give-way-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ch-give-way-body b { color: var(--v3-ink); font-family: var(--v3-font-display); font-size: 1.05rem; line-height: 1.2; }
.ch-give-way-body span { font-size: 13.5px; line-height: 1.4; color: var(--v3-muted); }
.ch-give-way-arrow { flex: none; color: var(--v3-green-ink); }
.ch-give-way-arrow .ch-v3-icon { width: 20px; height: 20px; }

/* Talk: three ways */
.ch-give-talk-ways { display: grid; gap: var(--v3-s3); max-width: 960px; margin: 0 auto; }
@media (min-width: 760px) { .ch-give-talk-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ch-give-talk-way { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: var(--v3-s4) var(--v3-s3); background: #fff; border: 1px solid var(--v3-line); border-radius: var(--v3-r-card); text-decoration: none; color: var(--v3-ink-soft); transition: border-color .15s, transform .15s, box-shadow .15s; }
.ch-give-talk-way:hover { border-color: #9db3a7; transform: translateY(-2px); box-shadow: var(--v3-shadow); }
.ch-give-talk-way .v3-icon-badge { margin-bottom: 6px; }
.ch-give-talk-label { font: 600 var(--v3-t-eyebrow)/1 var(--v3-font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--v3-green-ink); }
.ch-give-talk-main { font-family: var(--v3-font-display); font-weight: 600; font-size: 1.25rem; color: var(--v3-ink); word-break: break-word; }
.ch-give-talk-sub { font-size: var(--v3-t-small); color: var(--v3-muted); }
.ch-give-talk-way-form .ch-give-talk-main { color: var(--v3-green-ink); }

/* The questions, behind one bar */
.ch-give-faq { padding: var(--v3-s5) 0 var(--v3-s6); }
.ch-give-faq-all { border: 1px solid var(--v3-line); border-radius: var(--v3-r-card); background: #fff; }
.ch-give-faq-all > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; color: var(--v3-ink); }
.ch-give-faq-all > summary::-webkit-details-marker { display: none; }
.ch-give-faq-icon { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--v3-green-tint); color: var(--v3-green-ink); align-items: center; justify-content: center; flex: none; }
.ch-give-faq-all .ch-v3-icon { width: 20px; height: 20px; }
.ch-give-faq-title { font-family: var(--v3-font-display); font-weight: 600; font-size: 1.15rem; flex: 1; }
.ch-give-faq-chev { color: var(--v3-muted); transform: rotate(90deg); transition: transform .15s; }
.ch-give-faq-all[open] .ch-give-faq-chev { transform: rotate(-90deg); }
.ch-give-faq-body { padding: 0 20px 8px; border-top: 1px solid var(--v3-line); }

/* The phone bar */
.ch-give-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: none; gap: 10px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: #fff; border-top: 1px solid var(--v3-line); box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
.ch-give-bar .v3-btn { flex: 1; justify-content: center; }
@media (max-width: 760px) { .ch-give-bar.is-on { display: flex; } body.ch-give-page { padding-bottom: 72px; } }

@media (max-width: 599px) {
  .ch-give-tab { padding: 14px 14px; gap: 10px; }
  .ch-give-tab-icon { width: 38px; height: 38px; }
  .ch-give-tab-title { font-size: 1.05rem; }
  .ch-give-tab-tick { display: none !important; }
  .ch-give-box { padding: var(--v3-s3); }
}
@media (prefers-reduced-motion: reduce) {
  .ch-give-tab, .ch-give-way, .ch-give-way:hover, .ch-give-talk-way, .ch-give-talk-way:hover { transition: none; transform: none; }
}
