/* Sierra Pacific Furbabies – shared 3-step donation widget styles. Used with js/spfb-donate-widget.js */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&display=swap');

.spfb-wrap {
  --spfb-blue: #0a6fd1;
  --spfb-blue-dark: #0a4f96;
  --spfb-blue-tint: #eaf4ff;
  --spfb-blue-track: #e6eef8;
  --spfb-line: #d6e2f2;
  --spfb-line-strong: #c9d6e8;
  --spfb-bg: #f4f8fc;
  --spfb-ink: #1b1b1b;
  --spfb-muted: #4f5966;
  --spfb-orange: #d4570f;
  --spfb-orange-ink: #b1460a;
  --spfb-green: #32ab4c;
  --spfb-green-tint: #c8f88f;
  --spfb-green-ink: #043d00;
  --spfb-error: #c4161c;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--spfb-ink);
  max-width: 480px;
  margin: 0 auto;
}
.spfb-wrap *, .spfb-wrap *::before, .spfb-wrap *::after { box-sizing: border-box; }
.spfb-wrap [hidden] { display: none !important; }
.spfb-wrap :focus-visible { outline: 2px solid var(--spfb-blue); outline-offset: 2px; }

/* Neutralise Squarespace theme styles on the widget's own elements */
.spfb-wrap button { margin: 0; font-family: inherit; letter-spacing: normal; text-transform: none; line-height: 1.2; box-shadow: none; }
.spfb-wrap input { margin: 0; font-family: inherit; letter-spacing: normal; box-shadow: none; }
.spfb-wrap h2, .spfb-wrap h3 { font-family: inherit; letter-spacing: normal; text-transform: none; color: var(--spfb-ink); }
.spfb-wrap p { margin: 0; }

/* Intro: logo, hero image, campaign progress */
.spfb-intro { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.spfb-intro img { display: block; width: 100%; border-radius: 6px; object-fit: cover; }
.spfb-progress-title { font-size: 22px; font-weight: 700; line-height: 1.25; margin-bottom: 10px; }
.spfb-progress-raised { font-size: 15px; font-weight: 800; color: var(--spfb-green); text-align: right; margin-bottom: 6px; min-height: 20px; }
.spfb-progress-track { height: 11px; overflow: hidden; background: #e9eef5; border: 1px solid var(--spfb-blue); border-radius: 6px; }
.spfb-progress-fill { height: 100%; width: 0; background: var(--spfb-blue); border-radius: 6px; transition: width .5s ease; }
.spfb-progress-labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 14px; font-weight: 700; }

/* Progress inside the card (under the title); shown on step 1 only */
.spfb-top .spfb-progress.is-off { display: none; }
.spfb-top .spfb-progress { padding-top: 6px; }
.spfb-top .spfb-progress-title { font-size: 22px; font-weight: 800; line-height: 1.25; margin-bottom: 8px; }
.spfb-top .spfb-progress-raised { font-size: 15px; font-weight: 800; margin-bottom: 6px; min-height: 20px; }
.spfb-top .spfb-progress-track { height: 14px; border: 0; background: #dfe9f5; }
.spfb-top .spfb-progress-labels { margin-top: 8px; font-size: 13px; font-weight: 800; }
/* With a progress bar above it, the heading is centred */
.spfb.has-progress .spfb-title { flex: 1; text-align: center; font-size: 24px; }
@media (max-width: 500px) {
  .spfb-top .spfb-progress-title { font-size: 20px; }
  .spfb.has-progress .spfb-title { font-size: 22px; }
}

/* Widget box */
.spfb { background: var(--spfb-bg); border: 1px solid #e3eaf3; border-radius: 16px; overflow: clip; }

/* Title + breadcrumbs */
.spfb-top { background: #fff; border-bottom: 1px solid #e3eaf3; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.spfb-titlerow { display: flex; align-items: center; gap: 4px; min-height: 44px; }
.spfb-title { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 800; text-align: left; }
.spfb-back { width: 44px; height: 44px; margin-left: -12px !important; padding: 0; flex-shrink: 0; border: 0; background: transparent; color: var(--spfb-ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.spfb-crumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.spfb-crumbs li { margin: 0; padding: 0; }
.spfb-crumbs li::before { content: none; }
.spfb-crumb { width: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; text-align: left; display: flex; flex-direction: column; gap: 6px; cursor: default; color: var(--spfb-muted); }
.spfb-crumb.is-past { cursor: pointer; }
.spfb-crumb-bar { display: block; height: 5px; border-radius: 3px; background: var(--spfb-line); }
.spfb-crumb.is-past .spfb-crumb-bar, .spfb-crumb.is-current .spfb-crumb-bar { background: var(--spfb-blue); }
.spfb-crumb.is-past, .spfb-crumb.is-current { color: var(--spfb-ink); }
.spfb-crumb-label { font-size: 12px; font-weight: 800; }
.spfb-crumb-sub { margin-top: -4px; font-size: 12px; font-weight: 800; color: var(--spfb-blue); text-decoration: underline; }

/* Steps */
.spfb-step { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.spfb-h { margin: 0; font-size: 18px; font-weight: 800; }

.spfb-freq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--spfb-blue-track); border-radius: 999px; }
.spfb-freq button { height: 44px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--spfb-blue); font-size: 15px; font-weight: 800; cursor: pointer; }
.spfb-freq button[aria-checked="true"] { background: var(--spfb-blue); color: #fff; }

.spfb-ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; margin-bottom: 2px; }
.spfb-amt { position: relative; height: 52px; padding: 0; border: 2px solid var(--spfb-line); border-radius: 12px; background: #fff; color: var(--spfb-blue); font-size: 19px; font-weight: 800; cursor: pointer; }
.spfb-amt[aria-checked="true"] { background: var(--spfb-blue); border-color: var(--spfb-blue); color: #fff; }
.spfb-tag { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); padding: 1px 8px; border-radius: 999px; background: var(--spfb-green-tint); color: var(--spfb-green-ink); font-size: 11px; font-weight: 700; white-space: nowrap; pointer-events: none; }

.spfb-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.spfb-label small { font-size: 14px; font-weight: 600; color: var(--spfb-muted); }
.spfb-custom { display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 14px; background: #fff; border: 2px solid var(--spfb-line); border-radius: 12px; }
.spfb-custom.is-active { background: var(--spfb-blue-tint); border-color: var(--spfb-blue); }
.spfb-custom-cur { font-size: 19px; font-weight: 800; color: var(--spfb-blue); }
.spfb-custom input { flex: 1; min-width: 0; height: auto; padding: 0; border: 0; outline: 0; background: transparent; font-size: 19px; font-weight: 800; color: var(--spfb-blue); }
/* Squarespace themes style input:focus with their own border/background, which draws a second box inside the wrapper */
.spfb-wrap .spfb-custom input,
.spfb-wrap .spfb-custom input:focus { border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; height: auto !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; }
.spfb-custom input::placeholder { color: #7a8594; font-weight: 600; }
.spfb-custom:focus-within { outline: 2px solid var(--spfb-blue); outline-offset: 1px; }
.spfb-per { font-size: 14px; font-weight: 700; color: var(--spfb-muted); white-space: nowrap; }

.spfb-nudge { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1.5px solid var(--spfb-line-strong); border-radius: 12px; }
.spfb-nudge-copy { flex: 1; font-size: 14px; line-height: 1.35; }
.spfb-nudge-copy strong { display: block; font-weight: 800; }
.spfb-nudge-copy span { color: var(--spfb-muted); }
.spfb-nudge button { flex-shrink: 0; height: 44px; padding: 0 14px; border: 2px solid var(--spfb-blue); border-radius: 999px; background: #fff; color: var(--spfb-blue); font-size: 14px; font-weight: 800; cursor: pointer; }

.spfb-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.spfb-check input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--spfb-blue); }
.spfb-check > span { flex: 1; }
.spfb-check strong { font-weight: 800; }
.spfb-check small { font-size: 13px; color: var(--spfb-muted); }

.spfb-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.spfb-input { width: 100%; height: 50px; border: 1.5px solid var(--spfb-line-strong); border-radius: 10px; padding: 0 12px; font-size: 16px; color: var(--spfb-ink); background: #fff; }
.spfb-input[aria-invalid="true"] { border-color: var(--spfb-error); }
.spfb-optins { display: flex; flex-direction: column; gap: 12px; padding: 14px; background: #fff; border: 1px solid #e3eaf3; border-radius: 12px; }
.spfb-fine { font-size: 12px; line-height: 1.45; color: var(--spfb-muted); }

.spfb-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--spfb-blue-track); border-radius: 12px; }
.spfb-methods button { height: 44px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--spfb-muted); font-size: 15px; font-weight: 800; cursor: pointer; }
.spfb-methods button[aria-checked="true"] { background: #fff; color: var(--spfb-blue-dark); }
.spfb-stripe-box { padding: 15px 12px; border: 1.5px solid var(--spfb-line-strong); border-radius: 10px; background: #fff; }
.spfb-bank-connect { display: flex; align-items: center; width: 100%; height: 50px; padding: 0 14px; border: 2px dashed #9fb6d4; border-radius: 12px; background: #fff; color: var(--spfb-blue); font-size: 15px; font-weight: 800; cursor: pointer; text-align: left; }
.spfb-bank-connect span { margin-left: auto; }
.spfb-bank-connected { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 2px solid var(--spfb-blue); background: var(--spfb-blue-tint); border-radius: 12px; }
.spfb-bank-connected div { flex: 1; min-width: 0; font-size: 14px; }
.spfb-bank-connected strong { display: block; font-weight: 800; }
.spfb-bank-connected button { min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--spfb-blue); font-weight: 800; cursor: pointer; }
.spfb-note { padding: 10px 12px; border-radius: 10px; background: var(--spfb-blue-tint); color: var(--spfb-blue-dark); font-size: 13px; font-weight: 600; line-height: 1.4; }
.spfb-error { font-size: 13px; font-weight: 700; color: var(--spfb-error); }
.spfb-error:empty { display: none; }
.spfb-recaptcha { display: flex; justify-content: center; }

/* Footers */
.spfb-footer { padding: 10px 16px 12px; background: #fff; border-top: 1px solid #e3eaf3; display: flex; flex-direction: column; gap: 8px; }
.spfb-total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 800; color: var(--spfb-muted); }
.spfb-total-row strong { font-size: 15px; font-weight: 900; color: var(--spfb-ink); }
.spfb-express { min-height: 52px; }
.spfb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 0 16px; border-radius: 999px; cursor: pointer; font-weight: 900; }
.spfb-btn--primary { height: 56px; border: 0; background: var(--spfb-orange); color: #fff; font-size: 19px; }
.spfb-btn--outline { height: 50px; border: 2px solid var(--spfb-orange); background: #fff; color: var(--spfb-orange-ink); font-size: 16px; }
.spfb-btn--surgery { min-height: 50px; padding: 6px 8px; border: 2px solid #f3c9b0; background: #fff; color: var(--spfb-orange-ink); font-size: 15px; }
.spfb-btn--surgery .spfb-ico { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: #fde7da; display: flex; align-items: center; justify-content: center; }
.spfb-btn--surgery .spfb-txt { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spfb-btn--surgery .spfb-pill { flex-shrink: 0; padding: 6px 10px; border-radius: 999px; background: #fde7da; color: #8f3807; }
.spfb-btn[disabled] { opacity: .7; cursor: not-allowed; }
.spfb-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); border-top-color: #fff; animation: spfb-spin .7s linear infinite; }
@keyframes spfb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spfb-spin { animation-duration: 2s; } .spfb-progress-fill { transition: none; } }
.spfb-secure { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--spfb-muted); }
/* No wallet available: card/bank becomes the primary action */
.spfb.no-wallet .spfb-express, .spfb.no-wallet .spfb-total-label { display: none; }

@media (max-width: 500px) {
  .spfb-progress-title { font-size: 20px; }
}

/* Surgery bottom sheet (appended to <body>, so it carries its own variables and resets) */
.spfb-sheet {
  --spfb-blue: #0a6fd1;
  --spfb-line: #d6e2f2;
  --spfb-ink: #1b1b1b;
  --spfb-muted: #4f5966;
  --spfb-orange: #d4570f;
  --spfb-orange-ink: #b1460a;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--spfb-ink);
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center;
}
.spfb-sheet *, .spfb-sheet *::before, .spfb-sheet *::after { box-sizing: border-box; }
.spfb-sheet[hidden], .spfb-sheet [hidden] { display: none !important; }
.spfb-sheet :focus-visible { outline: 2px solid var(--spfb-blue); outline-offset: 2px; }
.spfb-sheet button { margin: 0; font-family: inherit; letter-spacing: normal; text-transform: none; line-height: 1.2; box-shadow: none; }
.spfb-sheet h3 { margin: 0; font-family: inherit; letter-spacing: normal; text-transform: none; color: var(--spfb-ink); font-size: 19px; font-weight: 900; }
.spfb-sheet p { margin: 4px 0 0; }
.spfb-sheet-backdrop { position: absolute; inset: 0; background: rgba(20, 33, 61, .45); }
.spfb-sheet-panel { position: relative; width: 100%; max-width: 480px; padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px)); background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -8px 30px rgba(20, 33, 61, .18); display: flex; flex-direction: column; gap: 14px; animation: spfb-up .22s ease-out; }
@keyframes spfb-up { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .spfb-sheet-panel { animation: none; } }
.spfb-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--spfb-line); align-self: center; }
.spfb-sheet-head { display: flex; align-items: flex-start; gap: 12px; }
.spfb-sheet-head .spfb-ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: #fde7da; color: var(--spfb-orange-ink); display: flex; align-items: center; justify-content: center; }
.spfb-sheet-head p { font-size: 15px; line-height: 1.5; color: var(--spfb-muted); }
.spfb-sheet-close { width: 44px; height: 44px; margin: -8px -10px 0 auto; flex-shrink: 0; border: 0; background: transparent; color: var(--spfb-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.spfb-sheet-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; background: #fff4ee; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--spfb-muted); }
.spfb-sheet-sum strong { font-size: 22px; font-weight: 900; color: var(--spfb-ink); }
.spfb-sheet .spfb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 0 16px; border-radius: 999px; cursor: pointer; font-weight: 900; }
.spfb-sheet .spfb-btn--primary { height: 56px; border: 0; background: var(--spfb-orange); color: #fff; font-size: 19px; }

/* Billing address (plain fields, optional) */
.spfb-address { display: flex; flex-direction: column; gap: 12px; }
.spfb-address-h { margin-bottom: -4px; font-weight: 800; }
select.spfb-input { cursor: pointer; }
/* align-items: end keeps inputs on one line when a label wraps (e.g. "State / Province") */
.spfb-grid3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; align-items: end; }
@media (max-width: 420px) {
  .spfb-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spfb-grid3 > :first-child { grid-column: 1 / -1; }
}
/* Google's checkbox is a fixed 304px; shrink it on small phones */
@media (max-width: 360px) {
  .spfb-recaptcha #spfb-recaptcha-v2-slot { transform: scale(.85); transform-origin: center top; height: 66px; }
  .spfb-top, .spfb-step, .spfb-footer { padding-left: 12px; padding-right: 12px; }
}
