/* Valley Eruv Campaign — pop-up and progress bar.
   Uses the theme's font; one accent color (Settings). Hardened against themes that style every <button>. */
:root {
	--vec-accent: #1f5f8b;
	--vec-accent-tint: #eaf2f8;
	--vec-ink: #14212e;
	--vec-body: #56616d;
	--vec-muted: #6a7581;
	--vec-line: #dde3ea;
	--vec-soft: #f6f8fb;
	--vec-soft-line: #e6ebf0;
}

/* ---------- Homepage progress banner and [eruv_progress] ---------- */
.vec-progress { font-size: 15px; line-height: 1.4; color: var(--vec-ink); }
.vec-progress--banner { background: #f6f8fb; border-bottom: 1px solid var(--vec-line); position: relative; z-index: 50; }
.vec-progress--inline { margin: 1.5em 0; }
.vec-progress__inner { max-width: 1140px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.vec-progress--inline .vec-progress__inner { padding: 0; }
.vec-progress__text { flex: 1 1 280px; }
.vec-progress__families { color: var(--vec-muted); margin-left: 6px; }
.vec-progress__families::before { content: "· "; }
.vec-progress__track { flex: 2 1 240px; height: 12px; border-radius: 999px; background: #e3e9ef; overflow: hidden; }
.vec-progress__fill { height: 100%; border-radius: 999px; background: var(--vec-accent); min-width: 4px; }
.vec-progress .vec-progress__btn { flex: 0 0 auto; border: 0 !important; border-radius: 8px !important; background: var(--vec-accent) !important; color: #fff !important; padding: 8px 16px !important; font: inherit; font-weight: 700 !important; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; min-height: 0 !important; }
.vec-progress .vec-progress__btn:hover { filter: brightness(.93); }
@media (max-width: 480px) {
	.vec-progress--banner { font-size: 13px; }
	.vec-progress__inner { gap: 6px 10px; padding: 8px 16px; }
	.vec-progress__families { display: none; }
	.vec-progress__track { flex: 1 1 120px; height: 8px; }
	.vec-progress .vec-progress__btn { padding: 6px 12px !important; }
}

/* ---------- Pop-up shell ---------- */
html.vec-is-open { overflow: hidden; }
.vec-scope { --vec-accent-tint: #eaf2f8; }
@supports (background: color-mix(in srgb, red 10%, white)) {
	.vec-scope { --vec-accent-tint: color-mix(in srgb, var(--vec-accent) 11%, #fff); }
}
.vec-modal[hidden] { display: none !important; }
.vec-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.vec-scope *, .vec-scope *::before, .vec-scope *::after { box-sizing: border-box; }
.vec-scope [hidden] { display: none !important; }
.vec-modal__overlay { position: absolute; inset: 0; background: rgba(15, 23, 32, .62); }
.vec-card { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; color: var(--vec-ink); border-radius: 20px; box-shadow: 0 24px 64px rgba(10, 20, 30, .35); text-align: center; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }

/* Reset theme button styling inside the pop-up and form; every button below sets its own look. */
.vec-scope button { font: inherit; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none; min-height: 0 !important; min-width: 0 !important; width: auto; margin: 0; line-height: 1.2; cursor: pointer; }
.vec-scope a { text-decoration: none; }

.vec-modal .vec-x { position: absolute !important; top: 14px; right: 14px; z-index: 2; display: flex !important; align-items: center; justify-content: center; width: 36px !important; height: 36px !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: #f1f4f7 !important; color: #4b5866 !important; }
.vec-modal .vec-x:hover, .vec-modal .vec-x:focus-visible { background: #e4e9ee !important; color: var(--vec-ink) !important; }

.vec-main { padding: 46px 32px 0; display: flex; flex-direction: column; }
.vec-logo { display: block; align-self: center; height: 84px; width: auto; max-width: 340px; object-fit: contain; margin: 0 auto; }
.vec-title { margin: 20px 0 0 !important; padding: 0; font-family: inherit; font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; color: var(--vec-ink) !important; white-space: nowrap; }
.vec-intro { margin: 10px auto 0 !important; max-width: 380px; text-wrap: balance; font-size: 15px; line-height: 1.55; color: var(--vec-body); }

/* ---------- Goal panel ---------- */
.vec-goal { margin-top: 22px; padding: 16px 18px; background: #f3f7fa; border: 1px solid #e3eaf0; border-radius: 14px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.vec-goal__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.vec-goal__raised { font-size: 28px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; color: var(--vec-accent); }
.vec-goal__of { margin-top: 3px; font-size: 13px; color: var(--vec-body); }
.vec-goal__of strong { color: var(--vec-ink); font-weight: 700; }
.vec-goal__pct { font-size: 28px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; color: var(--vec-ink); }
.vec-goal__track { height: 14px; border-radius: 999px; background: #dde5ec; overflow: hidden; }
.vec-goal__fill { height: 100%; border-radius: 999px; background: var(--vec-accent); }
.vec-goal__foot { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--vec-body); }
.vec-goal__foot strong { color: var(--vec-ink); font-weight: 700; }

/* ---------- Form ---------- */
.vec-form { margin: 0; display: flex; flex-direction: column; }
.vec-seg { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: #eef2f6; border-radius: 12px; }
.vec-scope .vec-seg__btn { height: 40px; padding: 0 !important; border: 0 !important; border-radius: 9px !important; background: transparent !important; color: var(--vec-body) !important; font-size: 15px !important; font-weight: 500 !important; transition: background .15s; }
.vec-scope .vec-seg__btn.is-on { background: #fff !important; color: var(--vec-ink) !important; font-weight: 700 !important; box-shadow: 0 1px 3px rgba(20, 33, 46, .14) !important; }

.vec-chips { margin-top: 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.vec-scope .vec-chip { height: 52px; padding: 0 2px !important; border: 1.5px solid var(--vec-line) !important; border-radius: 12px !important; background: #fff !important; color: var(--vec-ink) !important; font-size: 16px !important; font-weight: 600 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vec-scope .vec-chip:hover { border-color: #b9c4cf !important; }
.vec-scope .vec-chip.is-on { border: 2px solid var(--vec-accent) !important; background: var(--vec-accent-tint) !important; color: var(--vec-accent) !important; }

.vec-other { margin-top: 10px; text-align: left; }
.vec-other__field { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 16px; border: 2px solid var(--vec-accent); border-radius: 12px; background: #fff; box-shadow: 0 0 0 4px rgba(31, 95, 139, .12); cursor: text; margin: 0; }
.vec-other__cur { font-size: 20px; font-weight: 600; color: var(--vec-ink); }
.vec-scope .vec-other__field input { flex: 1; min-width: 0; width: auto; height: auto; border: 0 !important; outline: none; box-shadow: none !important; background: transparent !important; padding: 0 !important; margin: 0; font: inherit; font-size: 20px; font-weight: 600; color: var(--vec-ink); -moz-appearance: textfield; }
.vec-scope .vec-other__field input::-webkit-outer-spin-button, .vec-scope .vec-other__field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vec-unit { font-size: 15px; color: var(--vec-body); white-space: nowrap; }
.vec-other__min { margin-top: 6px; font-size: 12.5px; color: var(--vec-muted); }

.vec-error { margin: 10px 0 0 !important; color: #b3261e; font-size: 14px; }
.vec-scope .vec-submit { margin-top: 16px; width: 100%; height: 56px; padding: 0 20px !important; border: 0 !important; border-radius: 12px !important; background: var(--vec-accent) !important; color: #fff !important; font-size: 17px !important; font-weight: 700 !important; box-shadow: 0 6px 16px rgba(31, 95, 139, .28) !important; }
.vec-scope .vec-submit:hover { filter: brightness(.93); }
.vec-scope .vec-submit:disabled { opacity: .75; cursor: wait; }
.vec-trust { margin: 12px 0 0 !important; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--vec-muted); }

.vec-scope .vec-more { margin: 12px auto 0; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px !important; border: 0 !important; background: none !important; color: var(--vec-accent) !important; font-size: 14px !important; font-weight: 600 !important; }
.vec-more svg { transition: transform .15s; }
.vec-more[aria-expanded="true"] svg { transform: rotate(180deg); }

.vec-options { margin-top: 6px; padding: 16px; background: var(--vec-soft); border: 1px solid var(--vec-soft-line); border-radius: 12px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; text-align: left; }
.vec-once { display: flex; align-items: center; gap: 10px; color: var(--vec-ink); cursor: pointer; margin: 0; }
.vec-once input { width: 18px; height: 18px; margin: 0; accent-color: var(--vec-accent); }
.vec-once + .vec-ends { border-top: 1px solid var(--vec-soft-line); padding-top: 14px; }
.vec-ends { display: flex; flex-direction: column; gap: 10px; }
.vec-ends__label { font-size: 13px; font-weight: 600; color: var(--vec-body); }
.vec-ends__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.vec-scope .vec-pill { display: inline-flex; align-items: center; height: 38px; padding: 0 14px !important; border: 1.5px solid var(--vec-line) !important; border-radius: 999px !important; background: #fff !important; color: #3c4752 !important; font-size: 13.5px !important; font-weight: 500 !important; cursor: pointer; }
.vec-scope .vec-pill.is-on { border-color: var(--vec-accent) !important; background: var(--vec-accent-tint) !important; color: var(--vec-accent) !important; font-weight: 600 !important; }
.vec-scope .vec-pill input { width: 46px; height: 26px; margin: 0 5px; padding: 0 4px !important; border: 1px solid var(--vec-line) !important; border-radius: 6px !important; background: #fff !important; box-shadow: none !important; font: inherit; font-weight: 700; color: var(--vec-ink); text-align: center; }

/* ---------- Footer band ---------- */
.vec-foot { margin-top: 22px; padding: 18px 28px 22px; background: var(--vec-soft); border-top: 1px solid #e8edf2; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vec-foot__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px; font-size: 13.5px; font-weight: 500; }
.vec-foot__links a, .vec-scope .vec-link { color: var(--vec-accent) !important; }
.vec-foot__links a:hover, .vec-scope .vec-link:hover { text-decoration: underline; }
.vec-scope .vec-link { border: 0 !important; background: none !important; padding: 0 !important; font-size: 13.5px !important; font-weight: 500 !important; }
.vec-dot { color: #c3ccd5; }
.vec-scope .vec-link--quiet { font-size: 13px !important; color: var(--vec-body) !important; }
.vec-foot__tax span { display: block; }
.vec-foot__links a { white-space: nowrap; }
.vec-foot__tax { margin: 2px 0 0 !important; font-size: 12px; line-height: 1.6; color: var(--vec-muted); }
.vec-scope .vec-copy { border: 0 !important; background: none !important; padding: 0 !important; font-size: 12px !important; font-weight: 600 !important; color: #3c4752 !important; cursor: copy; }
.vec-scope .vec-daf { display: inline-flex; align-items: center; gap: 5px; border: 0 !important; background: none !important; padding: 0 !important; font-size: 12px !important; font-weight: 600 !important; color: #3c4752 !important; }
.vec-daf svg { transition: transform .15s; }
.vec-daf[aria-expanded="true"] svg { transform: rotate(180deg); }
.vec-daf__body { margin: 0 !important; max-width: 360px; font-size: 12px; line-height: 1.55; color: var(--vec-body); }
.vec-daf__body strong { color: #3c4752; font-weight: 600; }

/* ---------- Thank-you ---------- */
.vec-thanks { padding: 46px 36px 32px; display: flex; flex-direction: column; align-items: center; }
.vec-thanks .vec-logo { height: 72px; max-width: 320px; }
.vec-thanks__check { margin-top: 24px; width: 64px; height: 64px; border-radius: 50%; background: #e7f3ec; color: #1e7a4c; display: flex; align-items: center; justify-content: center; }
.vec-thanks__gift { margin-top: 22px; width: 100%; padding: 14px 16px; background: var(--vec-soft); border: 1px solid var(--vec-soft-line); border-radius: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--vec-body); }
.vec-thanks__amt { font-size: 18px; color: var(--vec-accent); }
.vec-thanks .vec-submit { margin-top: 20px; }
.vec-thanks__manage { margin-top: 14px; font-size: 13.5px; font-weight: 500; color: var(--vec-accent) !important; }

/* ---------- [eruv_donate_form] on a page ---------- */
.vec-embed { max-width: 480px; margin: 1.5em auto; padding: 8px 28px 26px; background: #fff; color: var(--vec-ink); border: 1px solid var(--vec-soft-line); border-radius: 18px; box-shadow: 0 10px 30px rgba(20, 33, 46, .08); text-align: center; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.vec-embed .vec-seg { margin-top: 18px; }
.vec-embed .vec-seg[hidden] + .vec-chips { margin-top: 20px; }
.vec-embed__tax { margin: 16px 0 0 !important; padding-top: 14px; border-top: 1px solid var(--vec-soft-line); font-size: 12px; line-height: 1.6; color: var(--vec-muted); }
.vec-embed .vec-thanks { padding: 26px 0 6px; }
.vec-embed .vec-thanks__check { margin-top: 0; }
.vec-embed .vec-title { white-space: normal; font-size: 26px; }

/* ---------- Inline button shortcode ---------- */
.vec-inline-btn { display: inline-block; border: 0; border-radius: 10px; background: var(--vec-accent); color: #fff; padding: 12px 22px; font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- Phones ---------- */
@media (max-width: 480px) {
	.vec-modal { padding: 12px; }
	.vec-card { border-radius: 18px; max-height: calc(100vh - 24px); }
	.vec-main { padding: 44px 20px 0; }
	.vec-logo { height: 66px; max-width: 280px; }
	.vec-title { font-size: 25px; }
	.vec-intro { font-size: 14.5px; }
	.vec-goal { padding: 14px 16px; }
	.vec-goal__raised, .vec-goal__pct { font-size: 24px; }
	.vec-chips { gap: 6px; }
	.vec-embed { padding: 4px 16px 20px; border-radius: 16px; }
	.vec-scope .vec-chip { height: 50px; font-size: 14.5px !important; }
	.vec-foot { padding: 16px 18px 20px; }
	.vec-thanks { padding: 44px 22px 26px; }
}
