/* ============================================================================
   DEPLOY TARGET: SANDBOX (sandbox.improveequine.com)
   For Horse Rescues / Good Hands2 — page 336 (/horse-rescues/)
   Step 9.5 canvas migration: extracted from the page's inline <style>.
   Changes from the inline original:
     - font @import removed (Manrope + Playfair load sitewide)
     - 'DM Sans' -> Manrope (brand font) on the six gift/wishlist controls
     - selected-card checkmark content:'2713' -> '\2713' (lost backslash; was
       rendering the literal text "2713")
     - the duplicate inline application form's CSS (.ie-rp-form-*, .ie-rp-success)
       removed; that form is gone (705 is the single registration source). A
       .ie-rp-cta link to /rescue-registration/ replaces the old inline-styled CTA.
     - exact-match brand colors/fonts -> tokens.
   Page JS (gift + wishlist) lives in ie-bundle-and-save-scripts.php.
   Enqueued on is_page(336) with dependency ie-design-tokens.
   ============================================================================ */

.ie-rp-wrap { background:var(--ie-color-cream-primary); font-family:var(--ie-font-body); color:var(--ie-color-forest-deep); }

/* Hero — cream program intro band. Copy on the left, the live donation
   counter on the right. The emblem now lives in the forest band above the
   page (auto-prepended logo-only by Rescue & Routing), so this is the lede. */
.ie-rp-hero { background:var(--ie-color-cream-primary); padding:clamp(40px,5vw,64px) clamp(24px,5vw,72px); display:flex; align-items:center; justify-content:space-between; gap:clamp(32px,5vw,64px); flex-wrap:wrap; }
.ie-rp-hero-text { flex:1.4 1 360px; min-width:300px; }
.ie-rp-kicker { font-size:11px; font-weight:700; letter-spacing:0.18em; text-transform:uppercase; color:var(--ie-color-brand-teal); margin:0 0 18px; display:flex; align-items:center; gap:10px; }
.ie-rp-kicker::before { content:''; display:inline-block; width:30px; height:1px; background:var(--ie-color-gold); }
.ie-rp-hero h1 { font-family:var(--ie-font-display); font-size:clamp(34px,4.2vw,52px); font-weight:400; line-height:1.12; margin:0 0 18px; color:var(--ie-color-forest-deep); }
.ie-rp-hero h1 em { font-style:italic; color:var(--ie-color-gold); }
.ie-rp-hero-sub { font-size:17px; line-height:1.7; color:#5a5248; margin:0; max-width:560px; }
/* Live donation counter sits in the right column; fill mode strips the
   standalone card's centering so it fits the column (no !important needed). */
.ie-rp-hero-counter { flex:1 1 280px; min-width:260px; max-width:380px; }
.ie-rp-hero-counter .ie-gh-impact { width:100%; }
@media(max-width:860px){ .ie-rp-hero-counter { flex-basis:100%; max-width:none; margin-top:8px; } }

/* Two column layout */
.ie-rp-cols { display:grid; grid-template-columns:1fr 1fr; gap:0; border-top:1px solid var(--ie-color-cream-border-subtle); }
@media(max-width:860px){ .ie-rp-cols{ grid-template-columns:1fr; } }

/* What you get */
.ie-rp-benefits { padding:60px; background:#fff; border-right:1px solid var(--ie-color-cream-border-subtle); }
.ie-rp-benefits h2 { font-family:var(--ie-font-display); font-size:24px; font-weight:400; margin:0 0 32px; }
.ie-rp-benefit { display:flex; gap:20px; margin:0 0 28px; align-items:flex-start; }
.ie-rp-benefit-icon { font-size:22px; flex-shrink:0; margin-top:2px; }
.ie-rp-benefit h3 { font-size:15px; font-weight:500; margin:0 0 6px; }
.ie-rp-benefit p { font-size:14px; color:#5a5248; line-height:1.6; margin:0; }

/* Who qualifies */
.ie-rp-qualify { padding:60px; background:var(--ie-color-cream-primary); }
.ie-rp-qualify h2 { font-family:var(--ie-font-display); font-size:24px; font-weight:400; margin:0 0 20px; }
.ie-rp-qualify p { font-size:15px; line-height:1.7; color:#5a5248; margin:0 0 20px; }
.ie-rp-qualify ul { list-style:none; padding:0; margin:0 0 32px; }
.ie-rp-qualify ul li { padding:8px 0; border-bottom:1px solid var(--ie-color-cream-border-subtle); font-size:14px; color:#3a3028; display:flex; gap:10px; }
.ie-rp-qualify ul li::before { content:'\2192'; color:var(--ie-color-brand-teal); flex-shrink:0; }
.ie-rp-qualify-note { background:var(--ie-color-forest-deep); color:var(--ie-color-text-muted); padding:20px 24px; font-size:13px; line-height:1.6; font-style:italic; }
.ie-rp-qualify-note strong { color:var(--ie-color-cream-primary); font-style:normal; }

/* Why these make good gifts (5-way utility for rescue horses) */
.ie-rp-why { background:var(--ie-color-cream-secondary); padding:72px clamp(24px,5vw,60px); }
.ie-rp-why-inner { max-width:none; }
.ie-rp-why h2 { font-family:var(--ie-font-display); font-size:28px; font-weight:400; color:var(--ie-color-forest-deep); margin:0 0 12px; }
.ie-rp-why-lede { font-size:16px; line-height:1.7; color:#5a5248; max-width:680px; margin:0 0 44px; }
.ie-rp-why-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.ie-rp-why-card { background:#fff; border:1px solid var(--ie-color-cream-border-subtle); padding:28px; }
.ie-rp-why-tag { font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--ie-color-brand-teal); margin:0 0 10px; }
.ie-rp-why-card h3 { font-family:var(--ie-font-display); font-size:18px; font-weight:400; color:var(--ie-color-forest-deep); margin:0 0 10px; }
.ie-rp-why-card p { font-size:14px; line-height:1.65; color:#5a5248; margin:0; }

/* Send a Gift section */
.ie-gift-section { background: #fff; padding: 80px 48px; }
.ie-gift-section-inner { max-width: none; }
.ie-gift-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ie-color-brand-teal); margin: 0 0 16px; }
.ie-gift-headline { font-family: var(--ie-font-display); font-size: 36px; font-weight: 400; color: var(--ie-color-forest-deep); margin: 0 0 12px; line-height: 1.25; }
.ie-gift-sub { font-size: 16px; color: #5a5248; max-width: 640px; line-height: 1.7; margin: 0 0 56px; }
.ie-gift-rescue-row { display: flex; align-items: center; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }
.ie-gift-rescue-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ie-color-forest-deep); white-space: nowrap; }
.ie-gift-rescue-select { flex: 1; min-width: 240px; max-width: 440px; border: 2px solid var(--ie-color-brand-teal); padding: 12px 16px; font-size: 15px; font-family: var(--ie-font-body); color: var(--ie-color-forest-deep); background: #fff; outline: none; cursor: pointer; }
.ie-gift-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin-bottom: 40px; }
.ie-gift-product-card { border: 2px solid #e8e3dc; padding: 24px; display: flex; flex-direction: column; position: relative; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.ie-gift-product-card:hover { border-color: var(--ie-color-brand-teal); box-shadow: 0 4px 20px rgba(74,143,160,.12); }
.ie-gift-product-card.selected { border-color: var(--ie-color-brand-teal); background: #f5fbfc; }
.ie-gift-product-card.selected::after { content: '\2713'; position: absolute; top: 12px; right: 12px; background: var(--ie-color-brand-teal); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.ie-gift-product-img { width: 100%; height: 140px; object-fit: cover; margin-bottom: 16px; background: var(--ie-color-cream-secondary); }
.ie-gift-product-img-placeholder { width: 100%; height: 140px; background: linear-gradient(135deg, var(--ie-color-cream-secondary) 0%, #e8e3dc 100%); margin-bottom: 16px; display: flex; align-items: center; justify-content: center; }
.ie-gift-product-img-placeholder svg { width: 40px; height: 40px; opacity: .3; }
.ie-gift-product-name { font-family: var(--ie-font-display); font-size: 16px; font-weight: 400; color: var(--ie-color-forest-deep); margin: 0 0 6px; flex: 1; }
.ie-gift-product-desc { font-size: 13px; color: var(--ie-color-text-muted); line-height: 1.5; margin: 0 0 16px; }
.ie-gift-product-price { font-size: 15px; font-weight: 600; color: var(--ie-color-forest-deep); margin: 0 0 16px; }
.ie-gift-product-qty { display: flex; align-items: center; border: 1px solid var(--ie-color-cream-border-subtle); width: fit-content; }
.ie-gift-product-qty button { background: none; border: none; width: 32px; height: 32px; font-size: 18px; cursor: pointer; color: var(--ie-color-forest-deep); transition: background .15s; }
.ie-gift-product-qty button:hover { background: var(--ie-color-cream-secondary); }
.ie-gift-product-qty span { min-width: 32px; text-align: center; font-size: 14px; font-weight: 600; color: var(--ie-color-forest-deep); }
.ie-gift-note-row { margin-bottom: 32px; }
.ie-gift-note-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ie-color-forest-deep); margin-bottom: 10px; display: block; }
.ie-gift-note-input { width: 100%; max-width: 640px; border: 2px solid var(--ie-color-cream-border-subtle); padding: 14px 16px; font-size: 15px; font-family: var(--ie-font-body); color: var(--ie-color-forest-deep); resize: vertical; min-height: 100px; outline: none; transition: border-color .2s; box-sizing: border-box; }
.ie-gift-note-input:focus { border-color: var(--ie-color-brand-teal); }
.ie-gift-note-hint { font-size: 12px; color: var(--ie-color-text-muted); margin-top: 6px; }
.ie-gift-cart-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ie-gift-total { font-size: 16px; color: var(--ie-color-forest-deep); }
.ie-gift-total strong { font-size: 22px; font-weight: 700; }
.ie-gift-btn { background: var(--ie-color-brand-teal); color: #fff; border: none; padding: 16px 40px; font-family: var(--ie-font-body); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .15s; }
.ie-gift-btn:hover:not(:disabled) { background: #3a7a8a; }
.ie-gift-btn:disabled { opacity: .45; cursor: not-allowed; }
.ie-gift-no-rescue { font-size: 14px; color: var(--ie-color-text-muted); font-style: italic; margin-bottom: 32px; display: none; }

/* Wish List section */
.ie-wishlist-section { background: var(--ie-color-cream-primary); padding: 80px 48px; }
.ie-wishlist-inner { max-width: none; }
.ie-wishlist-headline { font-family: var(--ie-font-display); font-size: 36px; font-weight: 400; color: var(--ie-color-forest-deep); margin: 0 0 12px; }
.ie-wishlist-sub { font-size: 16px; color: #5a5248; max-width: 600px; line-height: 1.7; margin: 0 0 48px; }
.ie-wishlist-gate { background: #fff; border: 1px solid var(--ie-color-cream-border-subtle); padding: 40px 48px; max-width: 540px; }
.ie-wishlist-gate h3 { font-family: var(--ie-font-display); font-size: 22px; font-weight: 400; margin: 0 0 12px; }
.ie-wishlist-gate p { font-size: 15px; color: #5a5248; margin: 0 0 24px; line-height: 1.6; }
.ie-wishlist-gate a { color: var(--ie-color-brand-teal); font-weight: 600; text-decoration: none; }
.ie-wishlist-builder { display: none; }
.ie-wishlist-builder.active { display: block; }
.ie-wl-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.ie-wl-item { display: flex; align-items: center; gap: 16px; background: #fff; padding: 16px 20px; border: 1px solid var(--ie-color-cream-border-subtle); }
.ie-wl-item-name { flex: 1; font-size: 15px; color: var(--ie-color-forest-deep); }
.ie-wl-item-price { font-size: 14px; color: var(--ie-color-text-muted); width: 60px; text-align: right; }
.ie-wl-item-qty { display: flex; align-items: center; border: 1px solid var(--ie-color-cream-border-subtle); }
.ie-wl-item-qty button { background: none; border: none; width: 28px; height: 28px; font-size: 16px; cursor: pointer; color: var(--ie-color-forest-deep); }
.ie-wl-item-qty span { min-width: 28px; text-align: center; font-size: 14px; font-weight: 600; }
.ie-wl-item-remove { background: none; border: none; color: var(--ie-color-text-muted); cursor: pointer; font-size: 18px; padding: 0; transition: color .15s; }
.ie-wl-item-remove:hover { color: #c0392b; }
.ie-wl-add-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 32px; }
.ie-wl-add-select { flex: 1; min-width: 200px; border: 2px solid var(--ie-color-cream-border-subtle); padding: 10px 14px; font-size: 14px; font-family: var(--ie-font-body); color: var(--ie-color-forest-deep); background: #fff; outline: none; }
.ie-wl-add-select:focus { border-color: var(--ie-color-brand-teal); }
.ie-wl-add-btn { background: var(--ie-color-forest-deep); color: var(--ie-color-cream-primary); border: none; padding: 10px 24px; font-family: var(--ie-font-body); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: background .15s; }
.ie-wl-add-btn:hover { background: var(--ie-color-forest-mid); }
.ie-wl-save-btn { background: var(--ie-color-brand-teal); color: #fff; border: none; padding: 14px 36px; font-family: var(--ie-font-body); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .15s; }
.ie-wl-save-btn:hover { background: #3a7a8a; }
.ie-wl-saved-msg { font-size: 14px; color: var(--ie-color-forest-mid); font-weight: 600; display: none; margin-left: 16px; }

/* Apply CTA band (links to 705 — replaces the removed inline form) */
.ie-rp-cta-row { background: var(--ie-color-cream-primary); padding: 0 60px 80px; }
.ie-rp-cta { display: inline-block; background: var(--ie-color-forest-deep); color: var(--ie-color-cream-primary); padding: 14px 32px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: background .2s; }
.ie-rp-cta:hover { background: var(--ie-color-forest-mid); }

@media (max-width: 768px) {
  .ie-gift-section, .ie-wishlist-section { padding: 56px 24px; }
  .ie-gift-products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .ie-wl-item { flex-wrap: wrap; }
  .ie-rp-hero { flex-direction: column; align-items: flex-start; padding: 40px 24px; }
  .ie-rp-hero-counter { max-width: none; width: 100%; }
  .ie-rp-why { padding: 56px 24px; }
  .ie-rp-why-grid { grid-template-columns: 1fr; }
  .ie-rp-benefits, .ie-rp-qualify { padding: 40px 24px; }
  .ie-rp-cta-row { padding: 0 24px 56px; }
}

/* ============================================================================
   Good Hands² gift grid  —  rendered by [ie_gh2_gift] (rescue plugin v1.3.0)
   ============================================================================ */
.ie-gh2-gift { background:#fff; padding:72px clamp(24px,5vw,60px); }
.ie-gh2-intro { max-width:760px; margin:0 0 8px; }
.ie-gh2-eyebrow { font-size:11px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--ie-color-brand-teal); margin:0 0 10px; }
.ie-gh2-headline { font-family:var(--ie-font-display); font-size:clamp(28px,3.4vw,40px); font-weight:400; color:var(--ie-color-forest-deep); margin:0 0 12px; }
.ie-gh2-sub { font-size:16px; line-height:1.7; color:#5a5248; margin:0 0 8px; }

/* picker */
.ie-gh2-picker { background:var(--ie-color-cream-secondary); border:1px solid var(--ie-color-cream-border-subtle); padding:24px 28px; margin:28px 0 44px; }
.ie-gh2-picker-label { display:block; font-weight:700; font-size:14px; color:var(--ie-color-forest-deep); margin:0 0 10px; }
.ie-gh2-picker-select { width:100%; max-width:460px; border:2px solid var(--ie-color-brand-teal); padding:12px 16px; font-size:15px; font-family:var(--ie-font-body); color:var(--ie-color-forest-deep); background:#fff; cursor:pointer; }
.ie-gh2-picker-hint { font-size:13px; line-height:1.6; color:#5a5248; margin:12px 0 0; }
.ie-gh2-picker-active { font-size:15px; line-height:1.6; color:var(--ie-color-forest-deep); margin:0; }
.ie-gh2-picker-active strong { color:var(--ie-color-brand-teal); }

/* groups */
.ie-gh2-group { margin:0 0 48px; }
.ie-gh2-group-title { font-family:var(--ie-font-display); font-size:22px; font-weight:400; color:var(--ie-color-forest-deep); margin:0 0 6px; }
.ie-gh2-group-intro { font-size:15px; line-height:1.65; color:#5a5248; max-width:680px; margin:0 0 24px; }

/* cards */
.ie-gh2-cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:24px; }
.ie-gh2-card { display:flex; flex-direction:column; background:#fff; border:1px solid var(--ie-color-cream-border-subtle); padding:18px; }
.ie-gh2-card-img { width:100%; height:auto; aspect-ratio:1/1; object-fit:cover; margin:0 0 14px; background:var(--ie-color-cream-secondary); }
.ie-gh2-card-name { font-family:var(--ie-font-display); font-size:17px; font-weight:400; color:var(--ie-color-forest-deep); margin:0 0 6px; }
.ie-gh2-card-desc { font-size:13px; line-height:1.55; color:#5a5248; margin:0 0 12px; flex:1; }
.ie-gh2-card-price { font-size:16px; font-weight:700; color:var(--ie-color-forest-deep); margin:0 0 14px; }
.ie-gh2-card-size { display:block; font-size:12px; font-weight:400; color:var(--ie-color-text-muted); }

.ie-gh2-add { display:block; text-align:center; background:var(--ie-color-brand-teal); color:#fff; font-size:14px; font-weight:600; padding:11px 14px; text-decoration:none; transition:background .2s; }
.ie-gh2-add:hover { background:var(--ie-color-forest-deep); }
.ie-gh2-add.is-disabled { background:transparent; color:var(--ie-color-text-muted); border:1px dashed var(--ie-color-cream-border-subtle); cursor:default; font-weight:500; }
.ie-gh2-sizeup { font-size:12px; line-height:1.5; color:#5a5248; margin:10px 0 0; text-align:center; }
.ie-gh2-sizeup a { color:var(--ie-color-brand-teal); text-decoration:underline; }

/* note to the rescue (v1.4.0 — rendered by [ie_gh2_gift] once a rescue is picked) */
.ie-gh2-note-row { margin:8px 0 0; }
.ie-gh2-note-label { display:block; font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--ie-color-forest-deep); margin:0 0 10px; }
.ie-gh2-note { width:100%; max-width:640px; border:2px solid var(--ie-color-cream-border-subtle); padding:14px 16px; font-size:15px; font-family:var(--ie-font-body); color:var(--ie-color-forest-deep); resize:vertical; min-height:100px; outline:none; transition:border-color .2s; box-sizing:border-box; }
.ie-gh2-note:focus { border-color:var(--ie-color-brand-teal); }
.ie-gh2-note-hint { font-size:12px; color:var(--ie-color-text-muted); margin:6px 0 0; }

/* switch-rescue control (v1.5.0) */
.ie-gh2-picker-switch { font-size:13px; color:#5a5248; margin:14px 0 0; }
.ie-gh2-picker-switch label { font-weight:600; margin-right:6px; }
.ie-gh2-switch-select { border:1px solid var(--ie-color-cream-border-subtle); padding:6px 10px; font-size:13px; font-family:var(--ie-font-body); color:var(--ie-color-forest-deep); background:#fff; cursor:pointer; }

@media (max-width:600px) {
  .ie-gh2-gift { padding:56px 20px; }
  .ie-gh2-cards { grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:14px; }
}
