/*
  Ensany v2 — donation page (website/donate.blade.php), full rebuild.
  Scoped under #v2Donate. One CSS file per page, same convention as
  v2-campaign.css/v2-home.css — this file does NOT get loaded on any other
  page, and no other page's stylesheet is loaded here.

  DESIGN: one unified card holds the entire form (amount → your details →
  payment), divided by quiet section headers instead of separate floating
  boxes — compact, scannable, fits the screen instead of sprawling. A
  sticky sidebar mirrors the campaign + live chosen amount. Mobile-first:
  every rule below was written/checked at 375px width first, then scaled
  up via min-width media queries — nothing relies only on a desktop layout
  happening to also look OK on a phone.

  SAFETY: only NEW v2d-prefixed wrapper classes and the handful of existing
  functional classes documented inline (form-control, gateway-card,
  checkbox-custom, gw-*, general.buttons, etc.) are styled here. No
  id/name/route/data-toggle/JS selector from donate.blade.php is renamed.
*/

#v2Donate {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #F7F4EC;
  padding-bottom: 60px;
}

#v2Donate * {
  box-sizing: border-box;
}

/* Kill the default browser/Bootstrap blue focus ring that shows up on
   buttons/links when clicked (Bootstrap's bare `.btn:focus{box-shadow:...}`
   isn't !important, so this ID-scoped override always wins). Text inputs
   keep their own intentional green focus glow (.form-control:focus below)
   — only buttons/links are touched here. Mouse clicks lose the ring; real
   keyboard tabbing still gets a visible on-brand outline via
   :focus-visible so accessibility isn't broken. */
#v2Donate button:focus,
#v2Donate .btn:focus,
#v2Donate a:focus {
  outline: none !important;
  box-shadow: none !important;
}

#v2Donate button:focus-visible,
#v2Donate .btn:focus-visible,
#v2Donate a:focus-visible {
  outline: 2px solid #7FB239 !important;
  outline-offset: 2px;
}

#v2Donate .v2d-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 16px 0;
}

@media (min-width: 768px) {
  #v2Donate .v2d-wrap {
    padding: 28px 24px 0;
  }
}

/* ---------- Layout: form + sticky sidebar ---------- */
#v2Donate .v2d-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

/* Mobile: the sidebar (campaign card — image/title/progress/live amount)
   comes AFTER the form in the DOM (so desktop's left-form/right-sidebar
   reads naturally source-order-first), but on a single mobile column that
   meant the donor saw the form before ever seeing which campaign they were
   donating to. `order` reflows it first on a single-column grid without
   touching the DOM/markup. */
#v2Donate .v2d-sidebar {
  order: -1;
}

@media (min-width: 992px) {
  #v2Donate .v2d-layout {
    grid-template-columns: 1fr 320px;
    gap: 24px;
  }

  #v2Donate .v2d-sidebar {
    position: sticky;
    top: 16px;
    order: 2;
  }

  #v2Donate .v2d-form-col {
    order: 1;
  }
}

/* ---------- The one unified card ---------- */
#v2Donate .v2d-card {
  background: #fff;
  border: 1px solid #EFE9D8;
  border-radius: 20px;
  box-shadow: 0 18px 40px -28px rgba(18, 51, 42, .2);
  overflow: hidden;
}

#v2Donate .v2d-section {
  padding: 14px;
  border-bottom: 1px solid #F0EDE3;
}

#v2Donate .v2d-section:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  #v2Donate .v2d-section {
    padding: 16px 20px;
  }
}

#v2Donate .v2d-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

#v2Donate .v2d-section-num {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  flex-shrink: 0;
  background: #F0EDE3;
  color: #578021;
  font-size: 10.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

#v2Donate .v2d-section.is-active .v2d-section-num {
  background: #578021;
  color: #fff;
}

#v2Donate .v2d-section-title {
  font-size: 13px;
  font-weight: 800;
  color: #12332A;
  margin: 0;
}

/* Amount section gets a quiet highlighted tint (not a heavy dark block —
   keeps the whole card feeling like one cohesive brand-colored surface). */
#v2Donate .v2d-amount-section {
  background: #FBFAF6;
}

/* ---------- Form basics (inputs/labels/errors), mobile-first ----------
   Legacy leak audit: bare `.form-group { color:#707e9c; font-weight:500;
   position:relative; padding:0; margin-bottom:20px }` (styles.css /
   style.min_14_1_23.css) and `.form-white .form-group { margin-bottom:10px }`
   both match this form's `.form-group`/`.form-white` combo. The ID-scoped
   rule below already wins on margin-bottom by specificity, but color/
   font-weight/position/padding were previously left un-set here and so
   still leaked from the legacy rule — reset every property explicitly. */
#v2Donate .form-group {
  position: static !important;
  padding: 0 !important;
  margin-bottom: 7px !important;
  color: #12332A !important;
  font-weight: 400 !important;
}

#v2Donate .form-group:last-child {
  margin-bottom: 0 !important;
}

#v2Donate label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #12332A;
  margin-bottom: 5px;
}

/* Name label + "hide name" checkbox on one row instead of the checkbox
   sitting in its own row under the input — saves a full row of vertical
   space in the form. */
#v2Donate .v2d-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

#v2Donate .v2d-label-row-label {
  margin-bottom: 0 !important;
}

#v2Donate .v2d-inline-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

#v2Donate .form-control {
  /* Legacy leak: bare `.form-control { height:54px; border-radius:0;
     font-size:15px; box-shadow:none; padding:.5rem .75rem; border:1px
     solid #e0ecf5 }` (styles.css/style.min_14_1_23.css) is not !important,
     but since nothing here previously set `height`/`margin`/`line-height`
     explicitly, that 54px fixed height still won the cascade (no
     competing declaration) and silently overrode the padding-driven
     height on every text input on this page. Reset all of it. */
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  border: 1px solid #E7E1D0 !important;
  border-radius: 10px !important;
  padding: 9px 12px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #1B2A22 !important;
  background: #fff !important;
  background-clip: border-box !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

#v2Donate .v2d-amount-section .form-control {
  background: #fff !important;
}

/* v2-shared.css's .v2-phone-input.form-control (border:none, since
   .v2-phone-field itself now owns the border/radius as a joined
   input-group) loses to the base #v2Donate .form-control rule above on
   specificity (ID+class beats class+class) even though both use
   !important — restate it here, scoped under #v2Donate, so it actually
   wins on this page. */
#v2Donate .v2-phone-input.form-control {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#v2Donate .v2-phone-input.form-control:focus {
  box-shadow: none !important;
}

#v2Donate .form-control:focus {
  border-color: #7FB239 !important;
  box-shadow: 0 0 0 3px rgba(127, 178, 57, .15) !important;
  outline: none;
}

#v2Donate #amount {
  /* Legacy styles.css has ".form-group .form-control.amount { min-height:80px;
     font-size:30px }" — unscoped, so it bleeds in here too. Reset both. */
  min-height: 0 !important;
  height: auto !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #12332A !important;
  text-align: center;
  padding: 11px !important;
}

#v2Donate textarea.form-control {
  min-height: 64px;
  resize: vertical;
}

#v2Donate .text-danger {
  display: block;
  font-size: 11px;
  color: #C0392B;
  margin-top: 4px;
  font-weight: 600;
}

#v2Donate .required {
  display: none;
}

#v2Donate .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -6px;
}

#v2Donate .row>[class*="col-"] {
  padding: 0 6px;
  width: 100%;
  margin-bottom: 14px;
}

@media (min-width: 576px) {
  #v2Donate .row>.col-sm-6 {
    width: 50%;
    margin-bottom: 0;
  }

  #v2Donate .row>.col-sm-12 {
    width: 100%;
  }
}

/* Amount input + its 3 fixed presets sit in one inline row once there's
   room (input flexes, the 3 pills stay compact beside it); below ~420px
   they stack so nothing gets crushed. Only applies to .v2d-amount-inline
   (the fixed 10/20/40 presets) — the separate, variable-length stocks list
   further down keeps its own always-wrapping grid via .general.buttons. */
#v2Donate .v2d-amount-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#v2Donate .v2d-amount-row .form-control.amount {
  flex: 1 1 auto;
  min-width: 0;
}

#v2Donate .v2d-amount-inline.general.buttons {
  display: flex !important;
  grid-template-columns: none !important;
  flex: 0 0 auto;
  gap: 6px;
  margin-top: 0 !important;
}

#v2Donate .v2d-amount-inline.general.buttons .btn {
  width: auto;
  min-width: 58px;
  padding: 9px 10px !important;
  font-size: 11.5px !important;
}

@media (min-width: 420px) {
  #v2Donate .v2d-amount-row {
    flex-direction: row;
    align-items: stretch;
  }

  #v2Donate .v2d-amount-row .form-control.amount {
    flex: 1 1 auto;
  }
}

/* Amount range slider — one slim row, no label/caption of its own so it
   doesn't add real height to the form. Thin track + small thumb, brand
   green fill painted via JS (see donate.blade.php) up to the current
   value. Custom-styled per browser engine since range inputs have no
   single cross-browser styling API. */
/* Row gets real vertical breathing room (14px top/bottom) and the track
   itself sits centered in a taller invisible hit-area — was cramped
   directly against the amount input above with only 6px above it, so
   touching/dragging felt tight. The min("0")/max value labels flank the
   track so the range's ends are explicit instead of implied. */
#v2Donate .v2d-amount-slider-row {
  display: flex; align-items: center; gap: 8px;
  /* Extra top padding (vs. a plain 14px) makes room for the floating
     percentage badge that now sits above the thumb without it getting
     clipped against the amount input right above this row. */
  margin-top: 6px; padding: 26px 0 14px;
}
#v2Donate .v2d-amount-slider-end {
  flex-shrink: 0; font-size: 10.5px; font-weight: 700; color: #9AA39C;
  min-width: 20px; text-align: center;
}
#v2Donate .v2d-amount-slider-track-wrap {
  position: relative; flex: 1 1 auto; display: flex; align-items: center;
}
/* Floating badge that tracks the thumb and always shows the current
   0–100% position along the slider (not tied to hover/focus — visible at
   rest too, per design ask, so the scale reads clearly at a glance). Its
   `left` is set from JS in pixels (v2dPositionSliderPct below) rather
   than a CSS percentage, because it has to account for the same visual
   mirroring the track itself gets in RTL (see the transform: scaleX(-1)
   note on .v2d-amount-slider below) — a plain CSS percentage would be
   correct in English and backwards in Arabic. */
#v2Donate .v2d-amount-slider-pct {
  position: absolute; top: -22px; transform: translateX(-50%);
  background: #12332A; color: #fff; font-size: 10px; font-weight: 700;
  line-height: 1; padding: 4px 7px; border-radius: 6px; white-space: nowrap;
  pointer-events: none; transition: left .05s linear; z-index: 1;
}
#v2Donate .v2d-amount-slider-pct::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent; border-top-color: #12332A;
}
/* 0/25/50/75/100% scale under the track, purely decorative — a plain
   space-between flex row reverses its own child order under this site's
   CSS-only RTL (direction: rtl inherited, no [dir] attribute anywhere —
   same mechanism already relied on for the end labels), so it reads
   right-to-left in Arabic automatically with no JS needed. */
#v2Donate .v2d-amount-slider-ticks {
  display: flex; justify-content: space-between;
  margin-top: 2px; padding: 0 2px;
  font-size: 9px; font-weight: 600; color: #9AA39C;
}
#v2Donate .v2d-amount-slider {
  --v2d-fill: 0%;
  /* Always LTR internally, regardless of page language — deliberately
     NOT relying on the browser mirroring a range input's own min/max
     layout from inherited `direction: rtl` (that behaves inconsistently
     across engines, which is what caused the thumb and the label/fill to
     visibly disagree on the Arabic page). Direction is instead forced
     here and the whole element is flipped as a single visual unit with
     `transform: scaleX(-1)` in Arabic (set from JS below, once, based on
     the *row's* computed direction) — deterministic in every browser
     since it no longer depends on the browser's own RTL slider handling
     at all. The thumb is a circle so the mirror has no visible effect on
     it; only its position along the track flips, which is exactly what's
     wanted. */
  direction: ltr !important;
  /* !important on appearance itself: Chrome/Edge/Safari paint the actual
     groove through their own ::-webkit-slider-runnable-track
     pseudo-element (styled explicitly below), not the host's background —
     if anything upstream resets appearance back to its native/auto value
     with higher priority, the browser falls back to its native track,
     which barely renders until hovered/dragged (exactly the "invisible
     until touched" symptom). Forcing appearance:none here + owning the
     runnable-track pseudo directly is what actually guarantees the line
     shows on load in every WebKit/Blink browser (Chrome, Edge, Safari),
     not just relying on the host background as before. */
  -webkit-appearance: none !important; appearance: none !important;
  flex: 1 1 auto; width: 100%; height: 4px; border-radius: 9999px;
  /* Two stacked 8px corrections, not one — easy to undercount since the
     slider now sits inside .v2d-amount-slider-track-wrap (added for the
     percentage badge) rather than being a direct child of the gapped row:
     (1) 8px to cross the row's own flex `gap` and reach the track-wrap's
     edge, since the track-wrap itself carries no margin of its own, and
     (2) another 8px to cancel the native range thumb's built-in
     half-thumb-width travel inset (thumb is 16px) once inside that
     touching box. Using only 8px total (right for the old markup, before
     the wrapper existed) re-opened exactly this gap again — the thumb's
     travel stopped a full 8px short of the end labels once more. */
  margin-inline: -16px;
  background: linear-gradient(to right, #578021 0%, #7FB239 var(--v2d-fill), #E7E1D0 var(--v2d-fill), #E7E1D0 100%) !important;
  cursor: pointer; margin: 0;
  /* Bare focus ring left to the browser default rendered as a thick,
     jarring full-width outline (the reported "blue line") once the input
     itself receives keyboard/touch focus — an explicit transparent
     outline plus a matching on-brand ring on the thumb (below) replaces
     it with something intentional instead. */
  outline: none !important; box-shadow: none !important;
  /* Some engines (Chrome on Windows in particular) still paint a native
     blue accent halo behind/around the thumb specifically *while
     actively dragging* — appearance:none on the host doesn't reach it,
     and it disappears the instant focus/drag ends, which is exactly the
     "shows while holding the thumb, gone the moment I click elsewhere"
     symptom. accent-color governs that native indicator; pinning it to
     the brand green removes the color mismatch, and the explicit
     outline/box-shadow resets below on every interaction state (thumb
     pseudo-elements, :active, :focus-visible) strip the halo itself
     rather than just recoloring it. */
  accent-color: #578021;
}
/* The actual visible groove in Chrome/Edge/Safari — same --v2d-fill var
   as the host and the Firefox track below, so all three always agree
   regardless of which pseudo-element a given browser actually paints. */
#v2Donate .v2d-amount-slider::-webkit-slider-runnable-track {
  width: 100%; height: 4px; border-radius: 9999px;
  background: linear-gradient(to right, #578021 0%, #7FB239 var(--v2d-fill), #E7E1D0 var(--v2d-fill), #E7E1D0 100%) !important;
  outline: none !important; box-shadow: none !important;
}
#v2Donate .v2d-amount-slider:focus,
#v2Donate .v2d-amount-slider:focus-visible,
#v2Donate .v2d-amount-slider:active {
  outline: none !important; box-shadow: none !important;
}
#v2Donate .v2d-amount-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 9999px;
  background: #578021; border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(18,51,42,.35);
  cursor: pointer; margin-top: -6px;
  outline: none !important;
}
#v2Donate .v2d-amount-slider:focus::-webkit-slider-thumb,
#v2Donate .v2d-amount-slider:active::-webkit-slider-thumb {
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(127,178,57,.3), 0 2px 6px rgba(18,51,42,.35) !important;
}
#v2Donate .v2d-amount-slider::-moz-range-track {
  width: 100%; height: 4px; border-radius: 9999px;
  background: linear-gradient(to right, #578021 0%, #7FB239 var(--v2d-fill), #E7E1D0 var(--v2d-fill), #E7E1D0 100%) !important;
  outline: none !important;
}
#v2Donate .v2d-amount-slider::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 9999px;
  background: #578021; border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(18,51,42,.35);
  cursor: pointer;
  outline: none !important;
}
#v2Donate .v2d-amount-slider:focus::-moz-range-thumb,
#v2Donate .v2d-amount-slider:active::-moz-range-thumb {
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(127,178,57,.3), 0 2px 6px rgba(18,51,42,.35) !important;
}
#v2Donate .v2d-amount-slider::-moz-focus-outer { border: 0 !important; }
#v2Donate .v2d-amount-slider::-webkit-slider-thumb:hover,
#v2Donate .v2d-amount-slider::-moz-range-thumb:hover { background: #7FB239; }
#v2Donate .v2d-amount-slider-oor { display: block; margin-top: 2px; }

/* Quick-amount pill buttons (10/20/40 USD + stock buttons). These come
   dynamically from the DB (variable count, variable label length), so this
   is a CSS Grid auto-fill/minmax pattern rather than a fixed count: each
   button takes the same min width, the row fills with however many fit,
   and once it runs out of room it automatically wraps to a new row -- no
   assumption anywhere about how many buttons there are. */
#v2Donate .general.buttons {
  /* Legacy leak: styles.css/style.min_14_1_23.css has both
     ".form-group .buttons { position:absolute; top:44%; right:40px; z-index:9 }"
     and custom_25_1_23.css has ".form-group .buttons { position:relative }" /
     ".form-group .buttons { left:40px; right:inherit }" — an old design
     where the quick-amount buttons floated on top of the amount input.
     None of those selectors are scoped, so every positioning property they
     touch (position/top/right/left/z-index) is reset explicitly here back
     to a normal block in flow before applying the grid. */
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  z-index: auto !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)) !important;
  gap: 7px;
  margin-top: 8px !important;
}

#v2Donate .general.buttons .btn {
  border: 2px solid #E7E1D0 !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #12332A !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  padding: 10px 10px !important;
  margin: 0 !important;
  width: 100%;
  box-shadow: none !important;
  transform: translateY(0) scale(1);
  transition: border-color .22s ease, background-color .22s ease, color .22s ease, transform .18s ease, box-shadow .22s ease;
}

#v2Donate .general.buttons .btn:hover,
#v2Donate .general.buttons .btn:focus {
  border-color: #7FB239 !important;
  background: #F7F4EC !important;
  color: #578021 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -12px rgba(87, 128, 33, .35) !important;
}

/* Selected-amount state — toggled by the small additive click listener at
   the bottom of donate.blade.php's own <script> block (purely cosmetic;
   does not touch set_amount()/amount_changed() themselves). Brand green
   gradient, never a dark/near-black fill. */
#v2Donate .general.buttons .btn.v2d-amount-selected {
  border-color: #578021 !important;
  background: linear-gradient(135deg, #7FB239, #578021) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -12px rgba(87, 128, 33, .55) !important;
}

/* ---------- "Ongoing charity" / gift accordions ---------- */
#v2Donate .accordion-item {
  background: #F7F4EC;
  border: 1px solid #EFE9D8;
  border-radius: 14px;
  overflow: visible !important;
}

/* Legacy leak: style.min_14_1_23.css has a bare `.accordion { border:1px
   solid #e2e6ea; border-radius:4px }` (Bootstrap accordion default),
   unscoped. It doesn't touch our actual rounded card (.accordion-item
   above owns that), but it was drawing its OWN separate square 4px-radius
   border directly on .accordion itself, visible as a mismatched square
   outline layered on top of the intended rounded one (e.g. around the
   "اهدي تبرعك لمن تحب" gift toggle). Reset explicitly. */
#v2Donate .accordion {
  overflow: visible !important;
  margin-bottom: 14px;
  border: none !important;
  border-radius: 0 !important;
}

#v2Donate .input-group.gift-container {
  padding: 12px 14px !important;
  margin: 0 !important;
  border: none !important;
}

#v2Donate label.gift-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #12332A;
}

#v2Donate label.gift-container .title {
  color: #578021;
  font-weight: 600;
  font-size: 11.5px;
}

#v2Donate #collapseOne3 {
  padding: 0 14px 14px;
}

#v2Donate #collapseOne3 .form-group {
  padding: 0;
}

/* Smooth reveal instead of an instant display:none/block swap — the waqf
   amount input and the comment textarea now fade+grow open instead of
   popping. Pure CSS (max-height/opacity), independent of whether
   Bootstrap's collapse JS is also attaching a transient inline height —
   an inline height style doesn't touch max-height, so the two never
   fight. #inChecked3/name="checked"/data-toggle/data-target are untouched. */
#v2Donate .collapse {
  display: block !important;
  overflow: hidden !important;
  max-height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: max-height .35s cubic-bezier(.4, 0, .2, 1), opacity .25s ease, visibility 0s linear .35s;
}

#v2Donate .collapse.show {
  max-height: 600px !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: max-height .35s cubic-bezier(.4, 0, .2, 1), opacity .3s ease .05s, visibility 0s linear 0s;
}

#v2Donate .monthly-title {
  margin-top: 7px;
  margin-bottom: 5px !important;
}

/* ---------- Donation type: Monthly / Weekly / Once — sliding-pill
   segmented control. A single absolutely-positioned pill (#v2dFreqPill)
   slides under whichever option is checked (see script at the bottom of
   donate.blade.php for the JS that positions it on load + on change).
   Calm brand green instead of a heavy dark fill, per the "بلاش الالوان
   الغوامق" note. */
#v2Donate .v2d-freq {
  position: relative;
  display: flex;
  background: #F0EDE3;
  border-radius: 9999px;
  padding: 4px;
  gap: 2px;
}

#v2Donate .v2d-freq-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  /* Logical (not left/right) so this always anchors to the correct edge
     for whatever direction actually applies to this element — the site
     sets Arabic direction:rtl via CSS (style_ar.css), not the `dir`
     HTML attribute, so an old `[dir="rtl"] { left:auto; right:4px }`
     override never matched and the pill always anchored to the physical
     left even in RTL, landing under the wrong option. inset-inline-start
     tracks the computed `direction` automatically, no attribute needed. */
  inset-inline-start: 4px;
  width: calc(33.333% - 4px);
  background: linear-gradient(135deg, #7FB239, #578021);
  border-radius: 9999px;
  box-shadow: 0 6px 14px -6px rgba(87, 128, 33, .5);
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
  z-index: 0;
}

/* Radios stay in the DOM (name/value/id untouched for form submission +
   selectGateway()/donation_type_oid JS) but are never visually shown --
   the <label for="..."> already natively toggles them on click. */
#v2Donate .v2d-freq input[type="radio"] {
  display: none !important;
}

#v2Donate .v2d-freq-opt {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 !important;
  padding: 8px 6px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #5B6660;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease;
}

#v2Donate .v2d-freq input[type="radio"]:checked+.v2d-freq-opt,
#v2Donate .v2d-freq-opt:has(input[type="radio"]:checked) {
  color: #fff;
}

/* Fallback label association: some browsers/markups place the radio
   before the visible text inside the same <label>, so match on that too. */
#v2Donate label.v2d-freq-opt:has(input[type="radio"]:checked) {
  color: #fff;
}

/* ---------- "No card storage" notice — was a Bootstrap modal popup, now
   an inline accordion right under the frequency control (only shown for
   Weekly/Monthly via the existing .noCardStoragebtn d-none toggle in JS).
   Deliberately reuses the exact same .accordion/.accordion-item +
   .accordion-collapse.collapse markup/classes as the gift-toggle
   (#collapseOne2) and waqf-toggle (#collapseOne3) accordions above — both
   already proven to render cleanly with no radius/background leak on this
   page — plus the FAQ's own .v2c-faq-q button styling for the header, so
   no new container styling was invented that could pick up a stray shape
   from elsewhere. Only the content typography below is new. */
#noCardStorageInfo strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #12332A;
  margin-bottom: 6px;
}

#noCardStorageInfo p {
  font-size: 11.5px;
  line-height: 1.7;
  color: #5B6660;
  margin: 0 0 6px;
}

#noCardStorageInfo p:last-child {
  margin-bottom: 0;
}

#noCardStorageInfo hr {
  border: none;
  border-top: 1px dashed #DDD5BB;
  margin: 8px 0;
}

/* ---------- "Ongoing charity" (waqf) toggle — sits directly under the
   amount field. Real checkbox (#inChecked3, name="checked", unchanged),
   styled as a switch instead of a checkbox; on by default; the 20% figure
   is computed live in amount_changed()/waqf_amount_changed() (script.blade.php)
   into #waqfAmountDisplay, and is excluded from the submitted total the
   moment the toggle is switched off. ---------- */
#v2Donate .v2d-waqf {
  background: #F7F4EC;
  border: 1px solid #EFE9D8;
  border-radius: 14px;
  padding: 8px 10px;
  margin-top: 6px;
}

#v2Donate .v2d-waqf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#v2Donate .v2d-waqf-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  font-size: 12.5px;
  font-weight: 700;
  color: #12332A;
  cursor: pointer;
}

#v2Donate .v2d-info-dot {
  width: 15px;
  height: 15px;
  border-radius: 9999px;
  flex-shrink: 0;
  background: #E7E1D0;
  color: #5B6660;
  font-size: 9.5px;
  font-weight: 800;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  cursor: help;
}

#v2Donate .v2d-waqf-computed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #DDD5BB;
  font-size: 11.5px;
  color: #5B6660;
}

#v2Donate .v2d-waqf-computed b {
  color: #578021;
  font-size: 12.5px;
  font-weight: 800;
}

/* Editable waqf amount — donor can override the auto 20% figure */
#v2Donate .v2d-waqf-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #DDD5BB;
}

#v2Donate .v2d-waqf-input-label {
  font-size: 11.5px;
  color: #5B6660;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#v2Donate .v2d-waqf-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 130px;
}

#v2Donate .v2d-waqf-input-wrap .form-control {
  padding-inline-end: 40px !important;
  text-align: end;
  font-weight: 800 !important;
  color: #578021 !important;
}

#v2Donate .v2d-waqf-input-currency {
  position: absolute;
  inset-inline-end: 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: #9AA39C;
  pointer-events: none;
}

/* Toggle switch look for #inChecked3 (and reused for the comment toggle).
   Legacy leak: custom_25_1_23.css ships a generic checkbox-skin system —
   bare `input[type=checkbox]:not(.switch):after { opacity: var(--o,0) }`
   (only flips to `--o:1` on `:checked`). Our real checkbox has neither the
   `.switch` class nor that `--o` variable set, so its ::after (the round
   knob) was silently opacity:0 whenever the toggle was OFF — invisible
   knob on the unchecked pill. Force full opacity regardless of state. */
#v2Donate .v2d-switch,
#v2Donate .v2d-comment-toggle-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 38px !important;
  height: 22px !important;
  min-width: 38px !important;
  border-radius: 9999px !important;
  border: none !important;
  background: #DDD5BB !important;
  position: relative;
  cursor: pointer;
  transition: background-color .2s ease;
}

#v2Donate .v2d-switch::after,
#v2Donate .v2d-comment-toggle-label input[type="checkbox"]::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  top: 2px !important;
  left: 2px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 9999px !important;
  background: #fff !important;
  border: none !important;
  opacity: 1 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .25) !important;
  transition: transform .2s ease;
}

#v2Donate .v2d-switch:checked,
#v2Donate .v2d-comment-toggle-label input[type="checkbox"]:checked {
  background: #578021 !important;
}

#v2Donate .v2d-switch:checked::after,
#v2Donate .v2d-comment-toggle-label input[type="checkbox"]:checked::after {
  transform: translateX(16px) !important;
}

[dir="rtl"] #v2Donate .v2d-switch::after,
[dir="rtl"] #v2Donate .v2d-comment-toggle-label input[type="checkbox"]::after {
  left: auto;
  right: 2px;
}

[dir="rtl"] #v2Donate .v2d-switch:checked::after,
[dir="rtl"] #v2Donate .v2d-comment-toggle-label input[type="checkbox"]:checked::after {
  transform: translateX(-16px);
}

/* ---------- "Leave a comment" toggle — under the phone field, reveals
   the existing #notes textarea (name/id unchanged). ---------- */
#v2Donate .v2d-comment-toggle {
  margin-bottom: 8px;
}

#v2Donate .v2d-comment-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  cursor: pointer;
}

#v2Donate .v2d-comment-toggle-label .title {
  font-size: 12.5px;
  font-weight: 700;
  color: #12332A;
}

#v2Donate .noCardStoragebtn {
  /* background: #fff !important;
  border: 1px solid #E7E1D0 !important;
  color: #578021 !important;
  border-radius: 9999px !important; */
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 7px 14px !important;
  margin-top: 10px !important;
}

/* ---------- Real, functional checkboxes (agreement / hide name / send
   gift / ongoing charity toggle) — replaces reliance on the legacy
   .checkbox-custom pseudo-element skin and the .checkmark/.accordion-button
   classes (a Bootstrap 5 accordion-toggle class never meant for a plain
   checkbox, which is what made the terms checkbox render broken). Native
   checkbox, restyled directly with appearance:none — same input
   name/id/checked state, just actually visible and checkable. ---------- */
#v2Donate input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  min-width: 19px;
  border: 2px solid #D8D0B8;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  position: relative;
  margin: 0;
  display: inline-block;
  vertical-align: middle;
  transition: background-color .15s ease, border-color .15s ease;
}

#v2Donate input[type="checkbox"]:checked {
  background: #578021;
  border-color: #578021;
}

#v2Donate input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

#v2Donate input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(127, 178, 57, .5);
  outline-offset: 2px;
}

#v2Donate .checkbox-custom-label {
  font-size: 12px;
  color: #5B6660;
  cursor: pointer;
  margin: 0;
}

/* #hideName keeps the legacy .checkbox-custom (hidden real input +
   :before/:after pseudo-element) pattern rather than the visible-checkbox
   rule above, since it's forced hidden via an inline style="display:none"
   — just recoloring the pseudo-element to the brand green instead of its
   default teal. */
#v2Donate .checkbox-custom:checked+.checkbox-custom-label:before {
  background: rgba(87, 128, 33, .12) !important;
}

#v2Donate .checkbox-custom:checked+.checkbox-custom-label:after {
  color: #578021 !important;
}

#v2Donate .checkbox-custom+.checkbox-custom-label:before {
  border-color: #E7E1D0 !important;
}

#v2Donate span:has(> .checkbox-custom) {
  display: flex;
  align-items: center;
  gap: 6px;
}

#v2Donate label[for="agreement"] {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  margin: 0;
}

#v2Donate label[for="agreement"] .checkmark {
  display: none;
}

/* superseded by the real checkbox above */
#v2Donate label[for="agreement"] .title {
  font-size: 12px;
  color: #5B6660;
  line-height: 1.7;
}

/* justify-content:space-between used to push the "الشروط والأحكام" link
   all the way to the row's far edge on wide screens — miles away from the
   "أوافق على" text it belongs right next to. flex-start keeps it directly
   beside the label on every screen size instead. */
#v2Donate .v2d-terms-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

#v2Donate .v2d-terms-row>a {
  font-size: 12px;
  font-weight: 700;
  color: #578021 !important;
  white-space: nowrap;
}

#v2Donate #inChecked,
#v2Donate #inChecked3 {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- ReCaptcha ---------- */
/* Moved to directly above the submit button (see donate.blade.php) and
   only revealed once a gateway is picked, instead of sitting bare and
   static above the gateway cards regardless of context — reads as a
   natural last step ("choose how to pay" → captcha appears → "donate
   now") instead of an unexplained blank widget taking up space up front.
   No heavy card/border here on purpose (already tried a boxed version —
   didn't fit the page's feel); just centered with a light scale-down so
   Google's fixed-size iframe doesn't dominate this compact form. */
#v2Donate .v2d-recaptcha-reveal {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), opacity .3s ease;
}
#v2Donate .v2d-recaptcha-reveal.is-shown {
  max-height: 120px;
  opacity: 1;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), opacity .35s ease .1s;
}
#v2Donate .v2d-recaptcha-wrap { display: flex; justify-content: center; margin: 10px 0; }
#v2Donate .g-recaptcha {
  transform: scale(.87);
  transform-origin: 50% 0;
  width: 264px;
  height: 68px;
}

@media (max-width: 380px) {
  #v2Donate .g-recaptcha { transform: scale(.78); width: 237px; height: 61px; }
}

/* ---------- Payment gateway cards (this is the base structural CSS —
   the previous pass only re-colored an existing base that no longer
   existed after the file was rewritten, which is why the cards had no
   grid/sizing and stacked full-width). ---------- */
#v2Donate .gateway-title {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #12332A;
  margin-bottom: 10px;
}

#v2Donate .gateway-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px;
}

@media (max-width: 420px) {
  #v2Donate .gateway-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

#v2Donate .gateway-card {
  position: relative;
  border: 2px solid #E7E1D0 !important;
  border-radius: 14px !important;
  padding: 14px 6px;
  min-height: 86px;
  cursor: pointer;
  background: #fff !important;
  text-align: center;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
  overflow: hidden;
}

/* Bug: donate.blade.php's JS toggles PayPal/Stripe visibility for
   recurring donations via jQuery .hide()/.show(), which just sets an
   inline display:none/flex — but .gateway-card above sets
   `display:flex !important`, and !important on a stylesheet rule always
   beats an inline style regardless of specificity. Net effect: PayPal
   could never actually be hidden for Weekly/Monthly, on 4455 or any other
   campaign. The JS was switched to toggle this .d-none class instead of
   .hide()/.show() — this selector is specific enough (#id + 2 classes) to
   outrank the base `!important` rule above and actually hide the card. */
#v2Donate .gateway-card.d-none {
  display: none !important;
}

#v2Donate .gateway-card:hover {
  border-color: #7FB239 !important;
  box-shadow: 0 8px 20px -12px rgba(87, 128, 33, .3);
  transform: translateY(-1px);
}

#v2Donate .gateway-card.gw-selected {
  border-color: #578021 !important;
  background: linear-gradient(135deg, #F7F4EC 0%, #fff 100%) !important;
  box-shadow: 0 8px 22px -12px rgba(87, 128, 33, .35);
}

/* Always the same physical top-right corner (not inset-inline-end, which
   flips to top-left under Arabic's RTL — the badge's own border-radius
   (0 8px 0 10px) was drawn assuming a top-right placement, so in RTL it
   ended up in the wrong corner with a mismatched/clipped rounded shape).
   Pinning it to physical `right` keeps the exact look shown in the
   English version consistent in Arabic too. */
#v2Donate .gw-badge {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: 22px;
  height: 22px;
  background: #578021;
  border-radius: 0 8px 0 10px;
  align-items: center;
  justify-content: center;
  color: #fff;
}

#v2Donate .gateway-card.gw-selected .gw-badge {
  display: flex;
}

/* One merged row of brand glyphs (e.g. Stripe + Apple Pay + Google Pay
   together) instead of the previous 4 tiny separate card-network icons
   plus a repeating caption line underneath — clearer at this card size,
   less visual noise. */
#v2Donate .gw-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  height: 28px;
  font-size: 25px;
  color: #5B6660;
  transition: color .2s ease;
}

#v2Donate .gw-icons i {
  font-size: 25px;
  line-height: 1;
}

#v2Donate .gw-icons img {
  height: 24px;
  width: auto;
  display: block;
}

#v2Donate .gateway-card.gw-selected .gw-icons {
  color: #578021;
}

#v2Donate .gw-name {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #12332A;
  letter-spacing: .2px;
  line-height: 1;
}

#v2Donate .gateway-card.gw-selected .gw-name {
  color: #578021;
}

/* ---------- Submit button ---------- */
#v2Donate .book_btn.theme-bg {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #7FB239, #578021) !important;
  border: none !important;
  border-radius: 9999px !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
  padding: 12px !important;
  margin-top: 14px;
  box-shadow: 0 14px 30px -14px rgba(87, 128, 33, .6);
  transition: transform .15s ease;
}
/* amount_changed()/waqf_amount_changed() (script.blade.php) rewrite this
   button's running total via jQuery .text() on every amount change, which
   wipes out the *entire* button content — any icon markup included. Left
   untouched (not our function to alter), so the icon gets re-inserted
   from JS after each of those calls instead (donate.blade.php's own
   script, v2dRestoreDonateBtnIcon()) rather than living statically in the
   markup. */
#v2Donate .book_btn.theme-bg .v2d-donate-btn-icon { flex-shrink: 0; }

#v2Donate .book_btn.theme-bg:hover {
  transform: translateY(-1px);
}

#v2Donate .book_btn.theme-bg:disabled {
  opacity: .7;
  transform: none;
}

#v2Donate .v2d-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #9AA39C;
  margin-top: 12px;
}

#v2Donate .v2d-secure-note i {
  color: #578021;
}

/* ---------- Sidebar: campaign summary + live amount ---------- */
#v2Donate .v2d-summary-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #EFE9D8;
  overflow: hidden;
  box-shadow: 0 14px 32px -24px rgba(18, 51, 42, .2);
}

#v2Donate .v2d-summary-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  background: #EFE9D8;
}

#v2Donate .v2d-summary-body {
  padding: 16px;
}

#v2Donate .v2d-summary-name {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #12332A;
  line-height: 1.5;
  margin: 0 0 12px;
  text-decoration: none !important;
}

#v2Donate .v2d-summary-progress {
  height: 6px;
  border-radius: 9999px;
  background: #EFE9D8;
  overflow: hidden;
  margin-bottom: 8px;
}

#v2Donate .v2d-summary-progress>div {
  height: 100%;
  background: linear-gradient(90deg, #578021, #7FB239);
}

#v2Donate .v2d-summary-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
  color: #5B6660;
  margin-bottom: 14px;
}

#v2Donate .v2d-summary-live {
  background: #F7F4EC;
  border: 1px dashed #DDD5BB;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

#v2Donate .v2d-summary-live-label {
  font-size: 10px;
  color: #9AA39C;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
  margin-bottom: 2px;
}

#v2Donate .v2d-summary-live-amount {
  font-size: 20px;
  font-weight: 800;
  color: #578021;
}

/* ---------- FAQ + similar campaigns (bottom section, side by side on
   desktop, stacked on mobile) ---------- */
#v2Donate .v2d-bottom {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 34px;
  margin-top: 40px;
}

@media (min-width: 992px) {
  #v2Donate .v2d-bottom {
    grid-template-columns: 1.6fr 1fr !important;
  }
}

#v2Donate .v2d-bottom h2 {
  font-size: 18px;
  font-weight: 800;
  color: #12332A;
  margin: 0 0 16px;
}

#v2Donate .v2c-goal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFF4DE;
  color: #9A6B12;
  font-size: 10.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 9999px;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .35);
}

#v2Donate .v2c-goal-badge i {
  font-size: 9px;
}

#v2Donate .v2c-faq-item {
  border: 1px solid #EFE9D8;
  border-radius: 14px;
  background: #fff;
  margin-bottom: 9px;
}

#v2Donate .v2c-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #12332A;
  text-align: start;
  cursor: pointer;
}

#v2Donate .v2c-faq-q i {
  font-size: 11px;
  color: #5B6660;
  transition: transform .25s ease;
  flex-shrink: 0;
}

#v2Donate .v2c-faq-q[aria-expanded="true"] i {
  transform: rotate(180deg);
}

#v2Donate .v2c-faq-a {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 12.5px;
  line-height: 1.8;
  color: #5B6660;
}

#v2Donate .v2d-similar-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

#v2Donate .v2d-similar-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #C9A227;
  margin-bottom: 4px;
}

#v2Donate .no-scrollbar::-webkit-scrollbar {
  display: none;
}

#v2Donate .no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#v2Donate .v2c-similar-track {
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding-bottom: 4px;
}

#v2Donate .v2c-similar-card {
  width: 158px;
  text-decoration: none;
  scroll-snap-align: start;
  flex-shrink: 0;
}

#v2Donate .v2c-similar-arrow {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: 1px solid #EFE9D8;
  background: #fff;
  color: #12332A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
  flex-shrink: 0;
}

#v2Donate .v2c-similar-arrow:hover {
  border-color: #7FB239;
  background: #F7F4EC;
}

/* ---------- Skeleton shimmer ---------- */
@keyframes v2dShimmer {
  0% {
    background-position: -200px 0;
  }

  100% {
    background-position: 200px 0;
  }
}

#v2Donate .v2d-skel-img,
#v2Donate .v2d-skel-line,
#v2Donate .v2d-skel-card {
  background: linear-gradient(90deg, #EFE9D8 25%, #F7F4EC 37%, #EFE9D8 63%);
  background-size: 400px 100%;
  animation: v2dShimmer 1.4s ease infinite;
}

#v2Donate .v2d-skel-img {
  width: 100%;
  aspect-ratio: 16/10;
}

#v2Donate .v2d-skel-line {
  height: 11px;
  border-radius: 6px;
  margin: 12px 16px;
}

#v2Donate .v2d-skel-line.short {
  width: 55%;
}

#v2Donate .v2d-summary-skel.v2d-loaded,
#v2Donate .v2d-summary-real:not(.v2d-loaded) {
  display: none;
}

#v2Donate .v2d-summary-real.v2d-loaded {
  display: block;
}

#v2Donate .v2d-skel-card {
  width: 158px;
  height: 200px;
  border-radius: 14px;
  flex-shrink: 0;
}

/* ---------- intl-tel-input ---------- */
#v2Donate .iti {
  width: 100%;
}

#v2Donate .iti input,
#v2Donate .iti input[type="tel"] {
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  border: 1px solid #E7E1D0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  font-size: 13px !important;
  padding: 9px 12px !important;
  padding-inline-start: 46px !important;
}

/* Leak: website/Layout/style.blade.php (loaded globally, every page) has
   ".iti--allow-dropdown .iti__flag-container, .iti--separate-dial-code
   .iti__flag-container { height:54px }" — not !important, unscoped, and
   was never matched here, so the flag/dropdown-trigger column silently
   stayed a fixed 54px tall regardless of the actual (now ~38px) input
   height, misaligning the flag vertically. Force it to track the input. */
#v2Donate .iti__flag-container {
  height: auto !important;
  top: 0;
  bottom: 0;
}

#v2Donate .iti__selected-flag {
  height: 100% !important;
  padding: 0 8px !important;
  border-radius: 10px 0 0 10px;
}

/* The country LIST itself no longer lives under #v2Donate: initV2PhoneInput
   (Layout/script.blade.php) sets intl-tel-input's `dropdownContainer:
   document.body` so the dropdown can never again be invisibly clipped by
   `.v2d-card`'s `overflow:hidden` (see that file for the full story — the
   card's rounded-corner clipping was cutting the list off, leaving only
   the sticky search box visibly floating on its own). The plugin wraps
   whatever it appends to <body> in its own `.iti.iti--container`, so that
   — not #v2Donate — is this page's hook for styling the moved list. Not
   scoped under #v2Donate since it's rendered outside it, but `.iti--container`
   is specific enough to intl-tel-input's own dropdown-container mode that
   it's very unlikely to collide with anything else on the site. */
.iti--container {
  z-index: 100000;
}

.iti--container .iti__country-list {
  border: 1px solid #E7E1D0 !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 32px -14px rgba(18, 51, 42, .3) !important;
  margin-top: 4px !important;
  font-size: 12.5px !important;
  background: #fff !important;
}

.iti--container .iti__search-wrap {
  border-bottom: 1px solid #F0EDE3;
}

.iti--container .iti__search-wrap input {
  border: 1px solid #E7E1D0 !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
  padding: 7px 10px !important;
}

.iti--container .iti__country.iti__highlight {
  background-color: #F7F4EC !important;
}

/* ---------- Modals + gift popup — ids are unique so styled directly,
   #gift-popup/#noCardStorageModal render outside #v2Donate in the DOM. --- */
#duplicateModal .modal-content,
#noCardStorageModal .modal-content {
  border: none !important;
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(18, 51, 42, .35) !important;
}

#duplicateModal .modal-header,
#noCardStorageModal .modal-header {
  background: #F7F4EC;
  border-bottom: 1px solid #EFE9D8 !important;
  padding: 16px 20px !important;
}

#duplicateModal .modal-title,
#noCardStorageModal .modal-title {
  font-weight: 800 !important;
  color: #12332A !important;
  font-size: 15px !important;
}

#duplicateModal .modal-body,
#noCardStorageModal .modal-body {
  padding: 18px 20px !important;
  font-size: 13px;
  color: #4A544E;
  line-height: 1.8;
}

#duplicateModal .modal-body .alert-danger {
  background: #FCEFEA !important;
  color: #A6402A !important;
  border: 1px solid #F4D5C8 !important;
  border-radius: 10px !important;
}

#duplicateModal .modal-footer,
#noCardStorageModal .modal-footer {
  border-top: 1px solid #EFE9D8 !important;
  padding: 14px 20px !important;
}

#duplicateModal .btn-theme,
#noCardStorageModal .btn.btn-secondary {
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  padding: 9px 18px !important;
  border: none !important;
}

#duplicateModal .btn-secondary {
  background: #F0EDE3 !important;
  color: #12332A !important;
}

#duplicateModal .btn-success {
  background: linear-gradient(135deg, #7FB239, #578021) !important;
  color: #fff !important;
}

#gift-popup .content {
  border-radius: 20px !important;
  box-shadow: 0 24px 60px -20px rgba(18, 51, 42, .35) !important;
  overflow: hidden;
}

#gift-popup header {
  background: #F7F4EC;
  padding: 20px;
  text-align: center;
}

#gift-popup header h4 {
  color: #12332A;
  font-weight: 800;
  font-size: 15px;
  margin: 8px 0 0;
}

#gift-popup header .close {
  color: #9AA39C;
}

#gift-popup footer {
  display: flex;
  gap: 10px;
  padding: 18px 20px;
  justify-content: center;
  flex-wrap: wrap;
}

#gift-popup footer .btn {
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  padding: 10px 20px !important;
}

#gift-popup footer a#closePopByNo {
  background: #F0EDE3 !important;
  color: #12332A !important;
}

#gift-popup footer a:not(#closePopByNo) {
  background: linear-gradient(135deg, #7FB239, #578021) !important;
  color: #fff !important;
}