/*
 * Modern Contribution Pages for CiviCRM
 *
 * Layout + form styling for public contribution pages. Everything is scoped
 * under #mc-shell so the Drupal theme and the rest of CiviCRM are untouched.
 *
 * Theming: override any --mc-* custom property in your Drupal theme, e.g.
 *   #mc-shell { --mc-radius: 4px; --mc-font: "Source Sans 3", sans-serif; }
 */

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */

.mc-shell {
  --mc-accent: #92955b;              /* set inline from settings */
  --mc-accent-text: #ffffff;         /* set inline from settings */
  --mc-overlay: 0.35;                /* set inline from settings */
  --mc-focal: center center;         /* set inline from settings */

  --mc-font: inherit;
  --mc-heading-font: inherit;
  --mc-ink: #16201b;
  --mc-ink-soft: #3a4640;
  --mc-muted: #5b6862;
  --mc-line: #e2e7e4;
  --mc-line-strong: #cdd6d1;
  --mc-field-border: #bfcac4;
  --mc-muted-bg: #edf1ef;
  --mc-bg: #f4f6f5;
  --mc-surface: #ffffff;
  --mc-danger: #b42318;
  --mc-radius: 18px;
  --mc-radius-sm: 10px;
  --mc-shadow: 0 1px 2px rgb(16 24 20 / 0.06), 0 28px 56px -20px rgb(10 20 15 / 0.45);
  --mc-scrim-rgb: 6 14 10;
  --mc-max-card: 500px;

  /* Fallbacks for browsers without color-mix() */
  --mc-accent-strong: #7b7d4c;
  --mc-accent-soft: #f4f4ef;
  --mc-accent-ink: #757749;          /* set inline: accent darkened to 4.5:1 on white */
  --mc-ring: rgb(146 149 91 / 0.4);
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
  .mc-shell {
    --mc-accent-strong: color-mix(in srgb, var(--mc-accent) 84%, #000);
    --mc-accent-soft: color-mix(in srgb, var(--mc-accent) 11%, #fff);
    --mc-ring: color-mix(in srgb, var(--mc-accent) 42%, transparent);
  }
}

/* ------------------------------------------------------------------ */
/* Shell + hero (mobile first: photo on top, card overlapping it)      */
/* ------------------------------------------------------------------ */

.mc-shell {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  display: block;
  margin: 0;
  padding: 0;
  background: var(--mc-bg);
  color: var(--mc-ink);
  font-family: var(--mc-font);
  -webkit-font-smoothing: antialiased;
}

.mc-shell *,
.mc-shell *::before,
.mc-shell *::after {
  box-sizing: border-box;
}

/* Full-bleed: CSS fallback until the script measures the real edges. */
.mc-shell.mc-full {
  max-width: none;
}
.mc-shell.mc-full:not(.mc-js) {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.mc-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(380px, 64vh, 580px);
  margin: 0;
  padding: 96px 20px 92px;
  color: #fff;
  background: #10201a;
}

.mc-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  overflow: clip;
}

.mc-hero__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: var(--mc-focal);
  border: 0;
  border-radius: 0;
}

.mc-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(var(--mc-scrim-rgb) / calc(var(--mc-overlay) * 0.55)) 0%,
    rgb(var(--mc-scrim-rgb) / var(--mc-overlay)) 45%,
    rgb(var(--mc-scrim-rgb) / calc(var(--mc-overlay) + 0.3)) 100%
  );
}

#mc-shell .mc-hero__content {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: 100%;
  max-width: 40rem;
  animation: mc-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
/* A soft shade right behind the headline and description, so white text stays
   readable (WCAG contrast) even over snow or bright sky, without darkening
   the whole photo. */
#mc-shell .mc-hero__content::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18% -14%;
  background: radial-gradient(closest-side, rgb(var(--mc-scrim-rgb) / 0.62) 0%, rgb(var(--mc-scrim-rgb) / 0.5) 55%, rgb(var(--mc-scrim-rgb) / 0) 100%);
  pointer-events: none;
}

#mc-shell .mc-hero__title {
  margin: 0 0 0.35em;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-family: var(--mc-heading-font);
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.9rem);
  font-weight: 600; /* bold, not heavy */
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-transform: none;
  text-wrap: balance;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.55), 0 2px 28px rgb(0 0 0 / 0.35);
}

#mc-shell .mc-hero__tagline {
  max-width: 34rem;
  margin: 0 0 1.4em;
  padding: 0;
  color: rgb(255 255 255 / 0.92);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  text-wrap: pretty;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.6), 0 1px 12px rgb(0 0 0 / 0.35);
}
/* The page's Introductory Message: paragraphs, lists, links, headings */
#mc-shell .mc-hero__tagline p,
#mc-shell .mc-hero__tagline ul,
#mc-shell .mc-hero__tagline ol,
#mc-shell .mc-hero__tagline blockquote,
#mc-shell .mc-hero__tagline h2,
#mc-shell .mc-hero__tagline h3,
#mc-shell .mc-hero__tagline h4 {
  margin: 0 0 0.7em;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
#mc-shell .mc-hero__tagline > :last-child {
  margin-bottom: 0;
}
#mc-shell .mc-hero__tagline ul,
#mc-shell .mc-hero__tagline ol {
  padding: 0 0 0 1.3em;
  list-style-position: outside;
}
#mc-shell .mc-hero__tagline ul { list-style-type: disc; }
#mc-shell .mc-hero__tagline ol { list-style-type: decimal; }
#mc-shell .mc-hero__tagline li {
  margin: 0 0 0.25em;
  padding: 0;
  color: inherit;
  background: none;
}
#mc-shell .mc-hero__tagline li::marker {
  color: rgb(255 255 255 / 0.8);
}
#mc-shell .mc-hero__tagline a {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
#mc-shell .mc-hero__tagline a:hover,
#mc-shell .mc-hero__tagline a:focus-visible {
  text-decoration-thickness: 2px;
}
#mc-shell .mc-hero__tagline a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
#mc-shell .mc-hero__tagline h2,
#mc-shell .mc-hero__tagline h3,
#mc-shell .mc-hero__tagline h4 {
  padding: 0;
  border: 0;
  color: #fff;
  font-family: inherit;
  font-size: 1.1em;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
}
#mc-shell .mc-hero__tagline blockquote {
  padding: 0 0 0 0.9em;
  border-left: 3px solid rgb(255 255 255 / 0.6);
  font-style: italic;
}
#mc-shell .mc-hero__tagline hr {
  height: 0;
  margin: 0.9em 0;
  border: 0;
  border-top: 1px solid rgb(255 255 255 / 0.35);
}
#mc-shell .mc-hero__tagline u { text-decoration: underline; }
#mc-shell .mc-hero__tagline s { text-decoration: line-through; }
#mc-shell .mc-hero__tagline strong {
  color: #fff;
  font-weight: 700;
}
#mc-shell .mc-hero__tagline em {
  font-style: italic;
}
/* It is on the photo, so don't repeat it inside the form */
#mc-shell.mc-has-intro .mc-card #intro_text {
  display: none;
}

#mc-shell .mc-hero__credit {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 14px;
  margin: 0;
  padding: 0;
  color: rgb(255 255 255 / 0.78);
  font-size: 0.75rem;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgb(0 0 0 / 0.55);
}

/* Card */
.mc-panel {
  position: relative;
  z-index: 2;
  margin-top: -60px;
  padding: 0 12px 48px;
}

#mc-shell .mc-card {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(20px, 5vw, 36px);
  border-radius: var(--mc-radius);
  background: var(--mc-surface);
  box-shadow: var(--mc-shadow);
  color: var(--mc-ink);
  font-size: 1rem;
  line-height: 1.5;
  animation: mc-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.08s both;
}

/* ------------------------------------------------------------------ */
/* Layouts on wider screens                                            */
/* ------------------------------------------------------------------ */

@media (min-width: 960px) {
  /* Immersive: photo fills the whole section; headline left, card right */
  .mc-layout-immersive {
    display: grid;
    /* The form column is half the page (capped so lines stay readable on huge screens). */
    grid-template-columns: minmax(0, 1fr) minmax(460px, min(50vw, 880px));
    column-gap: clamp(32px, 4vw, 72px);
    align-items: start;
    min-height: 100vh;
    padding: clamp(48px, 6vw, 96px) clamp(20px, 3vw, 48px) clamp(48px, 6vw, 96px) clamp(28px, 5vw, 96px);
    background: #0e1914;
  }
  .mc-layout-immersive .mc-hero {
    position: static;
    align-self: stretch; /* full row height, so the headline can stay pinned beside a long form */
    display: block;
    min-height: 0;
    padding: 0;
    background: none;
  }
  /* The media layer belongs to the whole shell; the photo stays put while the form scrolls. */
  .mc-layout-immersive .mc-hero__media {
    z-index: -1;
  }
  .mc-layout-immersive .mc-hero__img {
    position: sticky;
    top: 0;
    height: 100vh;
  }
  .mc-layout-immersive .mc-hero__scrim {
    background: linear-gradient(
      100deg,
      rgb(var(--mc-scrim-rgb) / calc(var(--mc-overlay) + 0.3)) 0%,
      rgb(var(--mc-scrim-rgb) / var(--mc-overlay)) 48%,
      rgb(var(--mc-scrim-rgb) / calc(var(--mc-overlay) * 0.55)) 100%
    );
  }
  #mc-shell.mc-layout-immersive .mc-hero__content {
    position: sticky;
    top: clamp(56px, 20vh, 220px);
    padding: 24px 0 64px;
  }
  #mc-shell.mc-layout-immersive .mc-hero__credit {
    top: auto;
    right: auto;
    bottom: 18px;
    left: clamp(28px, 5vw, 96px);
  }
  .mc-layout-immersive .mc-panel {
    margin: 0;
    padding: 0;
  }
  #mc-shell.mc-layout-immersive .mc-card {
    max-width: none;
    padding: clamp(28px, 3.2vw, 48px);
  }

  /* Split: sticky photo panel left, form on a clean surface right */
  .mc-layout-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(460px, 1fr);
    min-height: 100vh;
    background: var(--mc-surface);
  }
  .mc-layout-split .mc-hero {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    min-height: 560px;
    padding: clamp(36px, 5vw, 80px);
  }
  .mc-layout-split .mc-panel {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: clamp(40px, 6vw, 96px) clamp(28px, 4.5vw, 80px);
  }
  #mc-shell.mc-layout-split .mc-card {
    max-width: 680px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  #mc-shell.mc-layout-split .mc-hero__credit {
    top: auto;
    bottom: 14px;
  }

  /* Banner: wide photo, centred headline, card overlapping */
  .mc-layout-banner .mc-hero__scrim {
    background: linear-gradient(
      180deg,
      rgb(var(--mc-scrim-rgb) / calc(var(--mc-overlay) + 0.1)) 0%,
      rgb(var(--mc-scrim-rgb) / calc(var(--mc-overlay) + 0.2)) 50%,
      rgb(var(--mc-scrim-rgb) / calc(var(--mc-overlay) + 0.3)) 100%
    );
  }
  .mc-layout-banner .mc-hero {
    justify-content: center;
    min-height: clamp(400px, 54vh, 620px);
    padding: 80px clamp(28px, 6vw, 96px) 150px;
    text-align: center;
  }
  #mc-shell.mc-layout-banner .mc-hero__content {
    margin: 0 auto;
    max-width: 52rem;
  }
  #mc-shell.mc-layout-banner .mc-hero__tagline {
    margin-left: auto;
    margin-right: auto;
  }
  .mc-layout-banner .mc-panel {
    margin-top: -104px;
    padding: 0 24px 80px;
  }
  #mc-shell.mc-layout-banner .mc-card {
    max-width: clamp(680px, 50vw, 880px);
  }
  #mc-shell.mc-layout-banner .mc-hero__credit {
    top: auto;
    bottom: 116px;
  }
  .mc-layout-banner.mc-step-confirm .mc-hero,
  .mc-layout-banner.mc-step-thankyou .mc-hero {
    min-height: 320px;
  }
}

/* ------------------------------------------------------------------ */
/* Steps + success mark                                                */
/* ------------------------------------------------------------------ */

#mc-shell .mc-steps {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: var(--mc-muted);
  font-size: 0.8125rem;
}
#mc-shell .mc-steps li {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
#mc-shell .mc-steps li::before {
  content: none;
}
#mc-shell .mc-steps li:not(:last-child)::after {
  content: "";
  flex: 1;
  min-width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--mc-line);
}
#mc-shell .mc-steps__num {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mc-muted-bg);
  font-size: 0.75rem;
  font-weight: 700;
}
#mc-shell .mc-steps .is-current {
  color: var(--mc-ink);
  font-weight: 600;
}
#mc-shell .mc-steps .is-current .mc-steps__num {
  background: var(--mc-accent-ink);
  color: #fff;
}
#mc-shell .mc-steps .is-done .mc-steps__num {
  background: var(--mc-accent-soft);
  color: var(--mc-accent-ink);
}
#mc-shell .mc-steps .is-done::after {
  background: var(--mc-accent);
}

#mc-shell .mc-success {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--mc-accent-soft);
  color: var(--mc-accent);
  animation: mc-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) 0.25s both;
}
#mc-shell .mc-success svg {
  width: 32px;
  height: 32px;
}

/* ------------------------------------------------------------------ */
/* CiviCRM form, normalised inside the card                            */
/* ------------------------------------------------------------------ */

#mc-shell .mc-card .crm-container {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

#mc-shell .mc-card .crm-block,
#mc-shell .mc-card .crm-form-block {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#mc-shell .mc-card #intro_text {
  margin: 0 0 22px;
  color: var(--mc-ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}
#mc-shell .mc-card #intro_text > :last-child {
  margin-bottom: 0;
}

/* Rows: labels above fields. Themes (and CiviCRM's Riverlea) sometimes box
   individual rows with a background or shadow; flatten them inside the card. */
#mc-shell .mc-card .crm-section,
#mc-shell .mc-card .crm-public-form-item {
  margin: 0 0 18px;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
}
/* Nested wrappers shouldn't stack their bottom margins */
#mc-shell .mc-card .crm-section > .crm-section:last-child,
#mc-shell .mc-card .crm-section > .mc-row:last-child > .crm-section,
#mc-shell .mc-card fieldset > .crm-section:last-child {
  margin-bottom: 0;
}
#mc-shell .mc-card .crm-section .label {
  display: block;
  float: none;
  width: auto;
  margin: 0 0 6px;
  padding: 0;
  color: var(--mc-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}
#mc-shell .mc-card .crm-section .label label {
  font-weight: inherit;
  color: inherit;
}
#mc-shell .mc-card .crm-section .content {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}
#mc-shell .mc-card .crm-section .label.mc-empty-label {
  display: none;
}
#mc-shell .mc-card .crm-marker {
  margin-left: 2px;
  color: var(--mc-danger);
  font-weight: 600;
  text-decoration: none;
}
#mc-shell .mc-card .description,
#mc-shell .mc-card .crm-section .description {
  margin: 4px 0 0;
  color: var(--mc-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

/* Groups */
#mc-shell .mc-card fieldset {
  min-width: 0;
  margin: 30px 0 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
#mc-shell .mc-card fieldset > legend {
  display: block;
  width: 100%;
  float: none;
  margin: 0 0 16px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid var(--mc-line);
  background: none;
  color: var(--mc-ink);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: none;
}
#mc-shell .mc-card fieldset fieldset {
  margin-top: 18px;
}

/* Two fields side by side (first/last name, expiry/security code...).
   Each field has a minimum width; when the card is too narrow for two,
   they stack on separate lines instead of squeezing or overlapping. */
#mc-shell .mc-card .mc-row {
  --mc-row-min: 9rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--mc-row-min)), 1fr));
  align-items: start;
  gap: 18px 14px;
  margin: 0 0 18px;
}
#mc-shell .mc-card .mc-row--first-name { --mc-row-min: 8.5rem; }
#mc-shell .mc-card .mc-row--city { --mc-row-min: 9.5rem; }
#mc-shell .mc-card .mc-row--country { --mc-row-min: 14.5rem; }  /* "- select State/Province -" in full */
#mc-shell .mc-card .mc-row--card { --mc-row-min: 15.5rem; }   /* month and year side by side, each readable */
#mc-shell .mc-card .mc-row > * {
  min-width: 0; /* long dropdown text can't push the row off screen */
}
#mc-shell .mc-card .mc-row > .crm-section {
  margin-bottom: 0;
}
#mc-shell .mc-card .crm-section > .mc-row:last-child {
  margin-bottom: 0;
}
#mc-shell .mc-card .mc-row.mc-before-help {
  margin-bottom: 4px;
}
#mc-shell .mc-card .mc-row--card input[name="cvv2"] {
  max-width: 12em;
}
#mc-shell .mc-card select {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Inputs */
#mc-shell .mc-card input:is([type="text"], [type="email"], [type="tel"], [type="number"], [type="url"], [type="password"], [type="search"], [type="date"]):not(.mc-other__input):not(.select2-input):not(.select2-focusser),
#mc-shell .mc-card select:not([multiple]) {
  box-sizing: border-box !important;
  height: 48px !important;
  min-height: 48px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
#mc-shell .mc-card input[type="text"],
#mc-shell .mc-card input[type="email"],
#mc-shell .mc-card input[type="tel"],
#mc-shell .mc-card input[type="number"],
#mc-shell .mc-card input[type="url"],
#mc-shell .mc-card input[type="password"],
#mc-shell .mc-card input[type="search"],
#mc-shell .mc-card input[type="date"],
#mc-shell .mc-card select,
#mc-shell .mc-card textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 48px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--mc-field-border);
  border-radius: var(--mc-radius-sm);
  background-color: #fff;
  box-shadow: none;
  color: var(--mc-ink);
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming in on focus */
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#mc-shell .mc-card select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b6862' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 12px 8px;
}
#mc-shell .mc-card select[multiple] {
  padding-right: 14px;
  background-image: none;
}
#mc-shell .mc-card textarea {
  min-height: 104px;
  resize: vertical;
}
#mc-shell .mc-card input::placeholder,
#mc-shell .mc-card textarea::placeholder {
  color: #6b7570;
  opacity: 1;
}
#mc-shell .mc-card input:hover,
#mc-shell .mc-card select:hover,
#mc-shell .mc-card textarea:hover {
  border-color: #9fb0a7;
}
#mc-shell .mc-card input:focus,
#mc-shell .mc-card select:focus,
#mc-shell .mc-card textarea:focus {
  border-color: var(--mc-accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--mc-ring);
}
#mc-shell .mc-card input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
  vertical-align: -3px;
  accent-color: var(--mc-accent);
}
/* Checkboxes (billing same as above, honour, company...): drawn here so they
   all look the same and use the accent green, even where the theme restyles them */
#mc-shell .mc-card input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  position: relative;
  display: inline-block;
  flex: none;
  box-sizing: border-box !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  min-height: 0 !important;
  margin: 1px 10px 0 0;
  padding: 0 !important;
  border: 1.5px solid #808c86 !important;
  border-radius: 5px !important;
  background: #fff !important;
  box-shadow: none !important;
  vertical-align: -4px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
#mc-shell .mc-card input[type="checkbox"]::before,
#mc-shell .mc-card input[type="checkbox"]::after {
  content: none;
}
#mc-shell .mc-card input[type="checkbox"]:checked {
  border-color: var(--mc-accent) !important;
  background: var(--mc-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1.5 5.2l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 10px no-repeat !important;
}
#mc-shell .mc-card input[type="checkbox"]:hover:not(:checked) {
  border-color: var(--mc-accent) !important;
}
#mc-shell .mc-card input[type="checkbox"]:focus-visible,
#mc-shell .mc-card input[type="radio"]:focus-visible {
  outline: 3px solid var(--mc-ring);
  outline-offset: 2px;
}

/* Expiry date: month and year side by side, filling their column */
#mc-shell .mc-card .credit_card_exp_date-section .content {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#mc-shell .mc-card select[name^="credit_card_exp_date"],
#mc-shell .mc-card .credit_card_exp_date-section select {
  flex: 1 1 6.5rem;
  width: auto;
  min-width: 6.5rem;
  margin: 0;
}
#mc-shell .mc-card .credit_card_exp_date-section .content > :not(select) {
  flex-basis: 100%;
}
#mc-shell .mc-card input[name="cvv2"] {
  max-width: 9em;
}
#mc-shell .mc-card .mc-row--card input[name="cvv2"] {
  max-width: none;
}
#mc-shell .mc-card input[name="frequency_interval"],
#mc-shell .mc-card input[name="installments"],
#mc-shell .mc-card .is_recur-section select {
  display: inline-block;
  width: auto;
  min-width: 5em;
  margin: 0 6px;
}

/* select2 (country, state): same 48px height as every other field.
   Themes often style select2 with high specificity, hence !important. */
#mc-shell .mc-card .select2-container {
  display: block !important;
  width: 100% !important;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}
#mc-shell .mc-card .select2-container .select2-choice,
#mc-shell .mc-card .select2-container .select2-selection--single {
  position: relative;
  display: block !important;
  box-sizing: border-box !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 64px 0 14px !important;
  border: 1px solid var(--mc-field-border) !important;
  border-radius: var(--mc-radius-sm) !important;
  background: #fff !important;
  box-shadow: none !important;
  color: var(--mc-ink);
  font-size: 16px !important;
  line-height: 46px !important;
}
#mc-shell .mc-card .select2-container .select2-chosen,
#mc-shell .mc-card .select2-container .select2-selection__rendered {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 46px !important;
}
#mc-shell .mc-card .select2-container .select2-choice .select2-arrow,
#mc-shell .mc-card .select2-container .select2-selection__arrow {
  position: absolute !important;
  top: 50% !important;
  right: 12px !important;
  width: 20px !important;
  height: 20px !important;
  margin-top: -10px !important;
  border: 0 !important;
  background: none !important;
}
/* Same chevron as the other dropdowns */
#mc-shell .mc-card .select2-container .select2-arrow b,
#mc-shell .mc-card .select2-container .select2-selection__arrow b {
  display: none !important;
}
#mc-shell .mc-card .select2-container .select2-choice .select2-arrow,
#mc-shell .mc-card .select2-container .select2-selection__arrow {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b6862' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 8px no-repeat !important;
}
#mc-shell .mc-card .select2-container .select2-search-choice-close,
#mc-shell .mc-card .select2-container .select2-selection__clear {
  top: 50% !important;
  right: 38px !important;
  margin-top: -6px !important;
}
#mc-shell .mc-card .select2-container-active .select2-choice,
#mc-shell .mc-card .select2-dropdown-open .select2-choice {
  border-color: var(--mc-accent);
  box-shadow: 0 0 0 3px var(--mc-ring);
}

/* Errors and status messages */
#mc-shell .mc-card label.error,
#mc-shell .mc-card span.crm-error,
#mc-shell .mc-card :is(label, span, div, p).crm-inline-error {
  display: block;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mc-danger);
  font-size: 0.8125rem;
  font-weight: 500;
}
/* CiviCRM's validation puts the error classes on the field too */
#mc-shell .mc-card :is(input, select, textarea).crm-inline-error,
#mc-shell .mc-card :is(input, select, textarea).alert-danger {
  margin: 0;
  border: 1px solid #d92d20;
  background-color: #fff;
  color: var(--mc-ink);
  font-weight: inherit;
}
#mc-shell .mc-card label.crm-inline-error,
#mc-shell .mc-card label.error {
  margin: 6px 0 0;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: #fef3f2;
  color: #b42318;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}
#mc-shell .mc-card input.error,
#mc-shell .mc-card select.error,
#mc-shell .mc-card textarea.error,
#mc-shell .mc-card .crm-error input,
#mc-shell .mc-card .crm-error select {
  border-color: #d92d20;
}
#mc-shell .mc-card div.messages,
#mc-shell .mc-card div.crm-error,
#mc-shell .mc-card div.alert {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: var(--mc-radius-sm);
  background: #fff7ed;
  color: #7c2d12;
  font-size: 0.9375rem;
}
#mc-shell .mc-card div.messages.crm-error,
#mc-shell .mc-card div.crm-error,
#mc-shell .mc-card div.alert-danger {
  border-color: #fecdca;
  background: #fef3f2;
  color: #912018;
}
#mc-shell .mc-card div.messages ul,
#mc-shell .mc-card div.crm-error ul {
  margin: 6px 0 0 18px;
  padding: 0;
}

/* ------------------------------------------------------------------ */
/* Amount buttons, choices, other amount                               */
/* ------------------------------------------------------------------ */

#mc-shell .mc-card #priceset > .crm-section > .label,
#mc-shell .mc-card .contribution_amount-section > .label {
  font-size: 1rem;
}

#mc-shell .mc-card .mc-amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
#mc-shell .mc-card .mc-amounts--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#mc-shell .mc-card .mc-amounts--list {
  grid-template-columns: 1fr;
}
@media (max-width: 380px) {
  #mc-shell .mc-card .mc-amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #mc-shell .mc-card .mc-amounts .mc-other {
    grid-column: span 1;
  }
  #mc-shell .mc-card .mc-other-2-2 .mc-other {
    grid-column: 1 / -1;
  }
}
#mc-shell .mc-card .mc-amounts > br {
  display: none;
}
#mc-shell .mc-card .mc-opt {
  position: relative;
  display: block;
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}
#mc-shell .mc-card .mc-opt .price-set-option-content {
  display: block;
  height: 100%;
  margin: 0;
}
/* Keep the real radio focusable for keyboards and screen readers, just invisible. */
#mc-shell .mc-card .mc-opt input[type="radio"],
#mc-shell .mc-card .mc-opt input[type="checkbox"] {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
#mc-shell .mc-card .mc-opt label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 100%;
  min-height: 58px;
  margin: 0;
  padding: 10px 8px;
  border: 1.5px solid var(--mc-line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--mc-ink);
  font-size: 1.1875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
#mc-shell .mc-card .mc-opt label:hover {
  border-color: var(--mc-accent);
  background: var(--mc-accent-soft);
}
#mc-shell .mc-card .mc-opt label:active {
  transform: scale(0.98);
}
#mc-shell .mc-card .mc-opt input:checked + label,
#mc-shell .mc-card .mc-opt.mc-selected label {
  border-color: var(--mc-accent);
  background: var(--mc-accent);
  box-shadow: 0 8px 18px -10px var(--mc-accent);
  color: var(--mc-accent-text);
}
#mc-shell .mc-card .mc-opt input:focus-visible + label {
  outline: 3px solid var(--mc-ring);
  outline-offset: 2px;
}
#mc-shell .mc-card .mc-opt .crm-price-amount-amount {
  order: 1;
}
#mc-shell .mc-card .mc-opt .crm-price-amount-label {
  order: 2;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
}
#mc-shell .mc-card .mc-opt .crm-price-amount-label-separator {
  display: none;
}
#mc-shell .mc-card .mc-opt .description {
  margin-top: 4px;
  text-align: center;
}

/* Amount tiles built by the script */
#mc-shell .mc-card .mc-gift {
  margin: 0 0 22px;
}
#mc-shell .mc-card .mc-gift__label {
  margin: 0 0 10px;
  color: var(--mc-ink);
  font-size: 1rem;
  font-weight: 650;
}
#mc-shell .mc-card .mc-opt__main {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
#mc-shell .mc-card .mc-opt__unit,
#mc-shell .mc-card .mc-other__unit {
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0.85;
}
#mc-shell .mc-card .mc-opt__note {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
}
#mc-shell .mc-card .mc-amounts--tiles .mc-opt {
  animation: mc-fade 0.2s ease both;
}
/* "Other" is a tile you type into, filling the rest of its row */
#mc-shell .mc-card .mc-other {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 58px;
  margin: 0;
  padding: 0 14px;
  border: 1.5px dashed var(--mc-line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--mc-ink);
  cursor: text;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
#mc-shell .mc-card .mc-other-3-1 .mc-other { grid-column: span 1; }
#mc-shell .mc-card .mc-other-3-2 .mc-other { grid-column: span 2; }
#mc-shell .mc-card .mc-other-3-3 .mc-other { grid-column: 1 / -1; }
#mc-shell .mc-card .mc-other:hover {
  border-color: var(--mc-accent);
}
#mc-shell .mc-card .mc-other:focus-within,
#mc-shell .mc-card .mc-other.is-active {
  border-style: solid;
  border-color: var(--mc-accent);
  background: var(--mc-accent-soft);
  box-shadow: 0 0 0 3px var(--mc-ring);
}
#mc-shell .mc-card .mc-other__sym {
  color: var(--mc-muted);
  font-size: 1.1875rem;
  font-weight: 700;
}
#mc-shell .mc-card .mc-other.is-active .mc-other__sym,
#mc-shell .mc-card .mc-other:focus-within .mc-other__sym {
  color: var(--mc-ink);
}
#mc-shell .mc-card input.mc-other__input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 10px 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--mc-ink);
  font-size: 1.1875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
#mc-shell .mc-card input.mc-other__input::placeholder {
  color: var(--mc-muted);
  font-size: 1rem;
  font-weight: 600;
}
#mc-shell .mc-card .mc-amounts.has-error .mc-other.is-active {
  border-color: #d92d20;
}
#mc-shell .mc-card .mc-amount-error {
  margin: 8px 0 0;
}
#mc-shell .mc-card .mc-amount-error[hidden] {
  display: none;
}
/* CiviCRM's own amount fields stay in the form (they are what gets submitted) but out of sight */
#mc-shell .mc-card .mc-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Long labels (e.g. membership levels) become a list of rows */
#mc-shell .mc-card .mc-amounts--list .mc-opt label {
  flex-direction: row-reverse;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  font-size: 1rem;
  text-align: left;
}
#mc-shell .mc-card .mc-amounts--list .mc-opt .crm-price-amount-label {
  font-size: 1rem;
  font-weight: 600;
  opacity: 1;
}

/* Choice rows (payment method) */
#mc-shell .mc-card .mc-amounts--choices {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
#mc-shell .mc-card .mc-amounts--choices .mc-opt label {
  min-height: 50px;
  font-size: 0.9375rem;
  font-weight: 600;
}
#mc-shell .mc-card .mc-amounts--choices .mc-opt input:checked + label,
#mc-shell .mc-card .mc-amounts--choices .mc-opt.mc-selected label {
  border-color: var(--mc-accent);
  background: var(--mc-accent-soft);
  box-shadow: inset 0 0 0 1px var(--mc-accent);
  color: var(--mc-ink);
}
#mc-shell .mc-card .mc-opt.mc-unavailable {
  display: none !important;
}
@media (max-width: 600px) {
  #mc-shell .mc-card .payment_processor-section .mc-amounts--choices {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  #mc-shell .mc-card .payment_processor-section .mc-amounts--choices .mc-opt label {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    min-height: 52px;
    padding: 12px 16px;
    text-align: left;
  }
  #mc-shell .mc-card .payment_processor-section .mc-amounts--choices .mc-opt label::before {
    content: "";
    flex: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--mc-line-strong);
    border-radius: 50%;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  #mc-shell .mc-card .payment_processor-section .mc-amounts--choices .mc-opt input:checked + label::before,
  #mc-shell .mc-card .payment_processor-section .mc-amounts--choices .mc-opt.mc-selected label::before {
    border-color: var(--mc-accent-ink);
    box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 9px var(--mc-accent-ink);
  }
}

/* Other amount with a currency symbol inside the field */
#mc-shell .mc-card .other_amount-section {
  margin-top: 12px;
}
#mc-shell .mc-card .other_amount-section > .label {
  color: var(--mc-muted);
  font-size: 0.875rem;
  font-weight: 500;
}
#mc-shell .mc-card .mc-money {
  position: relative;
  display: block;
}
#mc-shell .mc-card .mc-money__symbol {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: var(--mc-muted);
  font-size: 1.125rem;
  font-weight: 600;
  pointer-events: none;
}
#mc-shell .mc-card .mc-money input[type="text"] {
  padding-left: calc(15px + var(--mc-sym-w, 1.1em));
  font-size: 1.125rem;
  font-weight: 600;
}

#mc-shell .mc-card #pricesetTotal,
#mc-shell .mc-card .total_amount-section {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--mc-line);
}
#mc-shell .mc-card #pricesetTotal .label,
#mc-shell .mc-card .total_amount-section .label {
  margin: 0;
}
#mc-shell .mc-card #pricevalue {
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ */
/* One-time / monthly switch                                           */
/* ------------------------------------------------------------------ */

#mc-shell .mc-card .mc-frequency {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-width: 0;
  margin: 14px 0 16px;
  padding: 4px;
  border: 0;
  border-radius: 14px;
  background: var(--mc-muted-bg);
}
#mc-shell .mc-card .mc-frequency[hidden] {
  display: none;
}
/* The pill that slides between One-time and Monthly */
#mc-shell .mc-card .mc-frequency__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 4px 12px -4px rgb(0 0 0 / 0.18);
  transition: transform 0.28s cubic-bezier(0.3, 0.7, 0.2, 1), background-color 0.2s ease;
}
#mc-shell .mc-card .mc-frequency.is-recur .mc-frequency__thumb {
  transform: translateX(100%);
  background: var(--mc-accent);
}
#mc-shell .mc-card .mc-frequency__opt {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0;
  padding: 0;
}
#mc-shell .mc-card .mc-frequency__opt input {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
#mc-shell .mc-card .mc-frequency__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--mc-muted);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.2s ease;
}
#mc-shell .mc-card .mc-frequency__btn svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--mc-accent-ink);
  transition: color 0.2s ease, transform 0.3s ease;
}
#mc-shell .mc-card .mc-frequency__btn:hover {
  color: var(--mc-ink);
}
#mc-shell .mc-card .mc-frequency__opt input:checked + .mc-frequency__btn {
  color: var(--mc-ink);
}
#mc-shell .mc-card .mc-frequency.is-recur input:checked + .mc-frequency__btn,
#mc-shell .mc-card .mc-frequency.is-recur input:checked + .mc-frequency__btn svg {
  color: var(--mc-accent-text);
}
#mc-shell .mc-card .mc-frequency.is-recur input:checked + .mc-frequency__btn svg {
  fill: currentColor;
  transform: scale(1.1);
}
#mc-shell .mc-card .mc-frequency__opt input:focus-visible + .mc-frequency__btn {
  outline: 3px solid var(--mc-ring);
  outline-offset: 1px;
}
/* "Most impact" sits on top of the Monthly half */
#mc-shell .mc-card .mc-frequency .mc-badge {
  position: absolute;
  z-index: 2;
  top: -13px;
  right: 10px;
  box-shadow: 0 2px 6px -2px rgb(0 0 0 / 0.25);
  pointer-events: none;
}
#mc-shell .mc-card .mc-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--mc-accent-ink);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Nudge towards monthly while One-time is picked */
#mc-shell .mc-card .mc-nudge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 14px 0 0;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--mc-line-strong);
  border-radius: var(--mc-radius-sm);
  background: var(--mc-accent-soft);
  color: var(--mc-ink-soft);
  font-size: 0.9375rem;
  line-height: 1.4;
  animation: mc-fade 0.25s ease both;
}
#mc-shell .mc-card .mc-nudge[hidden] {
  display: none;
}
#mc-shell .mc-card .mc-nudge__icon svg {
  display: block;
  width: 20px;
  height: 20px;
  color: var(--mc-accent-ink);
}
#mc-shell .mc-card .mc-nudge__text {
  flex: 1 1 12em;
}
#mc-shell .mc-card button.mc-nudge__btn {
  flex: none;
  min-height: 38px;
  margin: 0;
  padding: 8px 14px;
  border: 1.5px solid var(--mc-accent-ink);
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  color: var(--mc-accent-ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: none;
  cursor: pointer;
}
#mc-shell .mc-card button.mc-nudge__btn:hover {
  background: var(--mc-accent-ink);
  color: #fff;
}
#mc-shell .mc-card button.mc-nudge__btn:focus-visible {
  outline: 3px solid var(--mc-ring);
  outline-offset: 2px;
}

/* The original CiviCRM recurring row: hidden when the switch fully replaces it,
   otherwise only shown (minus its checkbox) while "recurring" is picked. */
#mc-shell .mc-card .mc-recur-managed {
  display: none !important;
}
#mc-shell .mc-card .mc-recur-detail.is-hidden {
  display: none;
}
#mc-shell .mc-card .mc-recur-detail input[name="is_recur"],
#mc-shell .mc-card .mc-recur-detail label[for="is_recur"] {
  display: none;
}
#mc-shell .mc-card .mc-recur-detail .content {
  color: var(--mc-ink-soft);
}

/* Impact message */
#mc-shell .mc-card .mc-impact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 18px;
  padding: 12px 14px;
  border-radius: var(--mc-radius-sm);
  background: var(--mc-accent-soft);
  color: var(--mc-accent-ink);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  animation: mc-fade 0.25s ease both;
}
#mc-shell .mc-card .mc-impact[hidden] {
  display: none;
}
#mc-shell .mc-card .mc-impact svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

/* ------------------------------------------------------------------ */
/* Submit + reassurance                                                */
/* ------------------------------------------------------------------ */

#mc-shell .mc-card .crm-submit-buttons {
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  justify-content: center !important;
  margin: 32px 0 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
}
#mc-shell .mc-card .crm-submit-buttons span.crm-button {
  display: block;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
#mc-shell .mc-card .crm-submit-buttons button[type="submit"],
#mc-shell .mc-card .crm-submit-buttons input[type="submit"],
#mc-shell .mc-card .crm-submit-buttons .crm-form-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto !important;
  min-width: min(100%, 300px);
  max-width: 100%;
  min-height: 60px;
  margin: 0 auto !important;
  padding: 14px 36px;
  border: 0;
  border-radius: 12px;
  background: var(--mc-accent);
  box-shadow: 0 12px 26px -14px var(--mc-accent), inset 0 -2px 0 rgb(0 0 0 / 0.12);
  color: var(--mc-accent-text);
  font: inherit;
  font-size: 1.1875rem; /* large text, so white on the accent meets WCAG */
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-shadow: none;
  text-transform: none;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
#mc-shell .mc-card .crm-submit-buttons button[type="submit"]:hover,
#mc-shell .mc-card .crm-submit-buttons input[type="submit"]:hover,
#mc-shell .mc-card .crm-submit-buttons .crm-form-submit:hover {
  background: var(--mc-accent-strong);
  transform: translateY(-1px);
}
#mc-shell .mc-card .crm-submit-buttons button[type="submit"]:active,
#mc-shell .mc-card .crm-submit-buttons .crm-form-submit:active {
  transform: translateY(0);
}
#mc-shell .mc-card .crm-submit-buttons button:focus-visible,
#mc-shell .mc-card .crm-submit-buttons input:focus-visible {
  outline: 3px solid var(--mc-ring);
  outline-offset: 3px;
}
#mc-shell .mc-card .crm-submit-buttons [disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}
#mc-shell .mc-card .crm-submit-buttons .crm-i {
  display: none;
}
#mc-shell .mc-card .crm-submit-buttons svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke-width: 1.5;
}
/* Secondary actions (Back, Cancel) look like links */
#mc-shell .mc-card .crm-submit-buttons .cancel,
#mc-shell .mc-card .crm-submit-buttons [name*="_back"],
#mc-shell .mc-card .crm-submit-buttons .crm-button-type-back,
#mc-shell .mc-card .crm-submit-buttons .crm-button-type-cancel {
  min-height: 44px;
  margin-top: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--mc-muted);
  font-size: 0.9375rem;
  font-weight: 600;
}
#mc-shell .mc-card .crm-submit-buttons .cancel:hover,
#mc-shell .mc-card .crm-submit-buttons [name*="_back"]:hover {
  background: var(--mc-muted-bg);
  color: var(--mc-ink);
}

#mc-shell .mc-card .mc-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  color: var(--mc-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
}
#mc-shell .mc-card .mc-trust svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--mc-accent-ink);
}

/* Donor details moved below the billing address */
#mc-shell .mc-card .mc-donor {
  margin: 22px 0 0;
}
/* Single checkboxes, e.g. "on behalf of an organisation" */
#mc-shell .mc-card .mc-check .content {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 16px;
  border: 1.5px solid var(--mc-line-strong);
  border-radius: 12px;
  background: #fff;
  font-weight: 500;
  line-height: 1.4;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
#mc-shell .mc-card .mc-check .content:hover,
#mc-shell .mc-card .mc-check .content:has(input:checked) {
  border-color: var(--mc-accent);
  background: var(--mc-accent-soft);
}
#mc-shell .mc-card .mc-check .content input {
  flex: none;
  margin-top: 1px;
}
#mc-shell .mc-card .mc-check .content label {
  cursor: pointer;
}
#mc-shell .mc-card #onBehalfOfOrg fieldset {
  margin-top: 6px;
}

#mc-shell .mc-card .crm-public-footer {
  margin: 24px 0 0;
  color: var(--mc-muted);
  font-size: 0.75rem;
  text-align: center;
}

/* ------------------------------------------------------------------ */
/* Confirm + thank-you pages: read-only rows become a tidy summary     */
/* ------------------------------------------------------------------ */

/* One field per row: labels in a left column, values lined up beside them,
   and a field's help text under its value (as in CiviCRM's own layout). */
#mc-shell:is(.mc-step-confirm, .mc-step-thankyou) .mc-card .crm-section {
  display: grid;
  grid-template-columns: minmax(7.5rem, 32%) minmax(0, 1fr);
  column-gap: 20px;
  align-items: baseline;
  margin: 0;
  padding: 7px 0;
  border: 0;
}
#mc-shell:is(.mc-step-confirm, .mc-step-thankyou) .mc-card .crm-section > .label {
  grid-column: 1;
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  color: var(--mc-muted);
  font-weight: 500;
  text-align: left;
}
#mc-shell:is(.mc-step-confirm, .mc-step-thankyou) .mc-card .crm-section > .content {
  grid-column: 2;
  margin: 0;
  padding: 0;
  color: var(--mc-ink);
  font-weight: 500;
  text-align: left;
  overflow-wrap: anywhere;
}
#mc-shell:is(.mc-step-confirm, .mc-step-thankyou) .mc-card .crm-section > .clear {
  display: none;
}
/* Help text: under the value, in the value column */
#mc-shell:is(.mc-step-confirm, .mc-step-thankyou) .mc-card .crm-section:is(.helprow-pre, .helprow-post) {
  padding: 0 0 7px;
}
#mc-shell:is(.mc-step-confirm, .mc-step-thankyou) .mc-card .crm-section.helprow-pre {
  padding: 7px 0 0;
}
#mc-shell:is(.mc-step-confirm, .mc-step-thankyou) .mc-card .crm-section:is(.helprow-pre, .helprow-post) > .content {
  color: var(--mc-muted);
  font-size: 0.9375rem;
  font-weight: 400;
}
/* Sections without a label (contribution summary, intro text) use the full width */
#mc-shell:is(.mc-step-confirm, .mc-step-thankyou) .mc-card .crm-section:is(.no-label, .intro_text-section, .thankyou_text-section):not(.helprow-pre, .helprow-post) > .content,
#mc-shell:is(.mc-step-confirm, .mc-step-thankyou) .mc-card .crm-section > .label.mc-empty-label + .content {
  grid-column: 1 / -1;
  font-weight: 400;
  line-height: 1.7;
}
#mc-shell:is(.mc-step-confirm, .mc-step-thankyou) .mc-card .crm-section > .label.mc-empty-label {
  display: none;
}
#mc-shell:is(.mc-step-confirm, .mc-step-thankyou) .mc-card .crm-section:not(:has(> .label, > .content)) {
  display: block;
}
#mc-shell:is(.mc-step-confirm, .mc-step-thankyou) .mc-card .amount_display-section > .content p {
  margin: 10px 0 0;
}
@media (max-width: 30rem) {
  /* Phones: label above its value */
  #mc-shell:is(.mc-step-confirm, .mc-step-thankyou) .mc-card .crm-section {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2px;
  }
  #mc-shell:is(.mc-step-confirm, .mc-step-thankyou) .mc-card .crm-section > :is(.label, .content) {
    grid-column: 1;
  }
}
#mc-shell.mc-step-thankyou .mc-card #thankyou_text {
  margin: 0 0 20px;
  color: var(--mc-ink-soft);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-align: center;
}
#mc-shell.mc-step-confirm .mc-card .display-block,
#mc-shell.mc-step-thankyou .mc-card .display-block {
  margin: 0;
}

/* ------------------------------------------------------------------ */
/* Donor details, honour/memory, card details                          */
/* ------------------------------------------------------------------ */

/* Profile help text: sits right under its field (or right above it) */
#mc-shell .mc-card .crm-section.mc-before-help {
  margin-bottom: 4px;
}
#mc-shell .mc-card .helprow-post,
#mc-shell .mc-card .helprow-pre {
  margin: 0 0 18px;
}
#mc-shell .mc-card .helprow-pre {
  margin-bottom: 4px;
}
#mc-shell .mc-card .helprow-post .description,
#mc-shell .mc-card .helprow-pre .description {
  margin: 0;
}

/* Honour/memory and company options at the end of "Your details" */
#mc-shell .mc-card .mc-donor--in-profile {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
}
#mc-shell .mc-card .mc-donor--in-profile > .crm-section,
#mc-shell .mc-card .mc-donor--in-profile > fieldset {
  margin: 0;
}
#mc-shell .mc-card .mc-donor--in-profile #onBehalfOfOrg:empty {
  display: none;
}
/* !important: CiviCRM marks this block crm-public-form-item, which the theme reset flattens */
#mc-shell .mc-card fieldset.mc-honour {
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--mc-line-strong) !important;
  border-radius: 12px;
  background: #fff !important;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
#mc-shell .mc-card fieldset.mc-honour.is-open,
#mc-shell .mc-card fieldset.mc-honour:hover {
  border-color: var(--mc-accent) !important;
}
#mc-shell .mc-card fieldset.mc-honour:hover:not(.is-open) {
  background: var(--mc-accent-soft) !important;
}
#mc-shell .mc-card .mc-honour__toggle {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 16px;
  font-weight: 500;
  line-height: 1.4;
}
#mc-shell .mc-card .mc-honour__toggle input {
  flex: none;
  margin-top: 1px;
}
#mc-shell .mc-card .mc-honour__toggle label {
  margin: 0;
  color: var(--mc-ink);
  font-weight: 500;
  cursor: pointer;
}
#mc-shell .mc-card .mc-honour__body {
  padding: 0 16px 16px;
}
#mc-shell .mc-card .mc-honour__body[hidden] {
  display: none;
}
#mc-shell .mc-card .mc-honour .honor_block_text-section {
  margin: 0 0 12px;
  color: var(--mc-muted);
  font-size: 0.875rem;
}
#mc-shell .mc-card .mc-honour .honor_block_text-section > :last-child {
  margin-bottom: 0;
}
#mc-shell .mc-card .mc-honour .mc-amounts--choices {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 4px;
}
#mc-shell .mc-card .mc-honour .crm-clear-link {
  display: none;
}
#mc-shell .mc-card .mc-honour #honorType {
  margin-top: 14px;
}
/* Company checkbox shares the look */
#mc-shell .mc-card .mc-donor--in-profile .mc-check .content {
  padding: 14px 16px;
}

/* Billing middle name isn't asked for */
#mc-shell .mc-card .billing_middle_name-section {
  display: none !important;
}

/* "We do not accept American Express" notice under the card number */
#mc-shell .mc-card .mc-amex-notice {
  margin: 6px 0 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fef3f2;
  color: #912018;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
}
#mc-shell .mc-card .mc-amex-notice[hidden] {
  display: none;
}
#mc-shell .mc-card .mc-amex-notice a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
#mc-shell .mc-card input.mc-amex {
  border-color: #d92d20 !important;
}

/* "My billing address is the same as above": a little space above it */
#mc-shell .mc-card .mc-billing-same {
  margin: 20px 0 0;
}
#mc-shell .mc-card legend + .mc-billing-same {
  margin-top: 0;
}
#mc-shell .mc-card .mc-billing-same:not(:last-child) {
  margin-bottom: 16px;
}
#mc-shell .mc-card .mc-billing-same label[for="billingcheckbox"] {
  margin-bottom: 0;
}
/* "My billing address is the same as above" */
#mc-shell .mc-card input#billingcheckbox {
  float: left;
  margin: 2px 10px 0 0;
}
#mc-shell .mc-card label[for="billingcheckbox"] {
  display: block;
  overflow: hidden;
  margin: 0 0 16px;
  color: var(--mc-ink);
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}

/* Card logos beside the "Credit Card" heading. The row stays where CiviCRM
   put it, so CiviCRM's own logo styles and scripts keep working. */
#mc-shell .mc-card fieldset.mc-has-card-icons {
  position: relative;
}
#mc-shell .mc-card .credit_card_type-section.mc-card-icons-row {
  position: absolute;
  top: -4px;
  right: 0;
  margin: 0 !important;
  padding: 0;
}
#mc-shell .mc-card .mc-card-icons-row > .label,
#mc-shell .mc-card .mc-card-icons-row select,
#mc-shell .mc-card .mc-card-icons-row .clear {
  display: none !important;
}
#mc-shell .mc-card .mc-card-icons-row > .content {
  margin: 0;
}
#mc-shell .mc-card .mc-card-icons-row .crm-credit_card_type-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}
#mc-shell .mc-card .mc-card-icons-row .crm-credit_card_type-icons a {
  float: none !important;
  margin: 0 !important;
  opacity: 1 !important; /* CiviCRM dims the others; here they are hidden instead */
}
/* Official logo files (images/cards/): shown as they are, all the same height */
#mc-shell .mc-card .crm-credit_card_type-icons a.mc-official {
  display: inline-flex !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-size: 0;
  line-height: 0;
  text-indent: 0 !important;
}
#mc-shell .mc-card .crm-credit_card_type-icons a.mc-official > :not(img) {
  display: none !important;
}
#mc-shell .mc-card .crm-credit_card_type-icons img.mc-card-logo {
  display: block;
  width: auto;
  height: 32px;
  max-width: none;
  margin: 0;
}
/* Once the card number shows which card it is, the others are hidden */
#mc-shell .mc-card .crm-credit_card_type-icons a.mc-card-hidden {
  display: none !important;
}

/* No security code picture */
#mc-shell .mc-card .cvv2-icon,
#mc-shell .mc-card .crm-cvv2-icon {
  display: none !important;
}

/* Multi-select: only one arrow */
#mc-shell .mc-card .select2-container-multi,
#mc-shell .mc-card .select2-container--default.select2-container--below,
#mc-shell .mc-card .select2-container--default.select2-container--above {
  background: none !important;
  background-image: none !important;
}
#mc-shell .mc-card .select2-container-multi::before,
#mc-shell .mc-card .select2-container-multi::after,
#mc-shell .mc-card .select2-container-multi .select2-choices::before,
#mc-shell .mc-card .select2-container-multi .select2-choices::after,
#mc-shell .mc-card .select2-selection--multiple::before,
#mc-shell .mc-card .select2-selection--multiple::after {
  content: none !important;
  display: none !important;
}
#mc-shell .mc-card .select2-container-multi .select2-arrow,
#mc-shell .mc-card .select2-selection--multiple .select2-selection__arrow,
#mc-shell .mc-card .select2-container-multi .select2-search-field::after {
  display: none !important;
}
#mc-shell .mc-card select.select2-offscreen,
#mc-shell .mc-card select.select2-hidden-accessible {
  background-image: none !important;
}

/* Phones and tablets: multi-selects open a checklist below the field */
#mc-shell .mc-card .mc-multi__toggle {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 40px 10px 14px;
  border: 1px solid var(--mc-field-border);
  border-radius: var(--mc-radius-sm);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b6862' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 12px 8px no-repeat;
  box-shadow: none;
  color: var(--mc-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  text-transform: none;
  cursor: pointer;
}
#mc-shell .mc-card .mc-multi.is-open .mc-multi__toggle {
  border-color: var(--mc-accent);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 6.5l5-5 5 5' fill='none' stroke='%235b6862' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
#mc-shell .mc-card .mc-multi__toggle:focus-visible {
  border-color: var(--mc-accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--mc-ring);
}
#mc-shell .mc-card .mc-multi__summary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#mc-shell .mc-card .mc-multi__summary.is-empty {
  color: #6b7570;
}
#mc-shell .mc-card .mc-multi__panel {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px 0 10px;
  border: 1px solid var(--mc-accent);
  border-top: 0;
  border-radius: 0 0 var(--mc-radius-sm) var(--mc-radius-sm);
  background: #fff;
}
#mc-shell .mc-card .mc-multi__panel[hidden] {
  display: none;
}
#mc-shell .mc-card .mc-multi__opt {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  margin: 0;
  padding: 6px 14px;
  color: var(--mc-ink);
  font-weight: 400;
  cursor: pointer;
}
#mc-shell .mc-card .mc-multi__opt input[type="checkbox"] {
  margin-top: 0;
}
#mc-shell .mc-card .mc-multi__group {
  padding: 10px 14px 4px;
  color: var(--mc-muted);
  font-size: 0.8125rem;
  font-weight: 700;
}
#mc-shell .mc-card button.mc-multi__done {
  display: block;
  min-height: 40px;
  margin: 6px 14px 0 auto;
  padding: 8px 18px;
  border: 1.5px solid var(--mc-accent-ink);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  color: var(--mc-accent-ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: none;
  cursor: pointer;
}

/* Multi-select (e.g. "Your community"): one field, matching the others */
#mc-shell .mc-card .select2-container-multi .select2-choices,
#mc-shell .mc-card .select2-container .select2-selection--multiple {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  box-sizing: border-box !important;
  min-height: 48px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 6px 40px 6px 8px !important;
  border: 1px solid var(--mc-field-border) !important;
  border-radius: var(--mc-radius-sm) !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b6862' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 12px 8px no-repeat !important;
  box-shadow: none !important;
  cursor: text;
}
#mc-shell .mc-card .select2-container-multi.select2-container-active .select2-choices,
#mc-shell .mc-card .select2-container--focus .select2-selection--multiple {
  border-color: var(--mc-accent) !important;
  box-shadow: 0 0 0 3px var(--mc-ring) !important;
}
#mc-shell .mc-card .select2-container-multi .select2-choices .select2-search-field,
#mc-shell .mc-card .select2-container .select2-search--inline {
  flex: 1 1 8em;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#mc-shell .mc-card .select2-container-multi .select2-choices .select2-search-field input,
#mc-shell .mc-card .select2-container .select2-search--inline .select2-search__field {
  display: block;
  width: 100% !important;
  height: 34px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--mc-ink) !important;
  font: inherit !important;
  font-size: 16px !important;
  line-height: 34px !important;
}
#mc-shell .mc-card .select2-container-multi .select2-choices .select2-search-field input.select2-default {
  color: #6b7570 !important;
}
#mc-shell .mc-card .select2-container-multi .select2-choices .select2-search-choice,
#mc-shell .mc-card .select2-container .select2-selection__choice {
  position: relative;
  float: none !important;
  margin: 0 !important;
  padding: 6px 28px 6px 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--mc-accent-soft) !important;
  box-shadow: inset 0 0 0 1px var(--mc-line-strong) !important;
  color: var(--mc-ink) !important;
  font-size: 0.875rem;
  line-height: 1.2 !important;
}
#mc-shell .mc-card .select2-container-multi .select2-search-choice-close {
  top: 50% !important;
  right: 8px !important;
  left: auto !important;
  margin-top: -6px !important;
}

/* Help text used as the field's label */
#mc-shell .mc-card .helprow-pre.mc-help-as-label {
  display: none;
}

/* Postal codes show in capitals as they are typed */
#mc-shell .mc-card input[name*="postal_code-"]:not([name*="suffix"]) {
  text-transform: uppercase;
}
#mc-shell .mc-card input[name*="postal_code-"]::placeholder {
  text-transform: none;
}

/* Company checkbox lines up with the honour checkbox */
#mc-shell .mc-card .mc-check .content {
  gap: 2px;
}

/* Remove buttons on chosen options: at least 24 x 24 px to tap */
#mc-shell .mc-card .select2-container-multi .select2-search-choice-close,
#mc-shell .mc-card .select2-container .select2-search-choice-close {
  width: 24px !important;
  height: 24px !important;
  margin-top: -12px !important;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 1.5l7 7M8.5 1.5l-7 7' stroke='%233a4640' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 10px 10px no-repeat !important;
}
#mc-shell .mc-card .select2-container .select2-search-choice-close:hover {
  background-color: rgb(0 0 0 / 0.08) !important;
}
#mc-shell .mc-card .select2-container-multi .select2-search-choice-close {
  right: 4px !important;
}
#mc-shell .mc-card .select2-container-multi .select2-search-choice {
  padding-right: 34px !important;
}

/* ------------------------------------------------------------------ */
/* Drupal: hide the theme's page title when the photo shows it         */
/* ------------------------------------------------------------------ */

body.mc-hide-cms-title :is(.block-page-title-block, #block-page-title, h1.page-title, h1#page-title, h1.page-header, .region-header .page-title),
body:has(#mc-shell.mc-hide-cms-title) :is(.block-page-title-block, #block-page-title, h1.page-title, h1#page-title, h1.page-header, .region-header .page-title) {
  display: none;
}

/* ------------------------------------------------------------------ */
/* Utilities, motion, print                                            */
/* ------------------------------------------------------------------ */

.mc-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes mc-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes mc-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes mc-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes mc-pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  #mc-shell *,
  #mc-shell *::before,
  #mc-shell *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  #mc-shell {
    width: auto !important;
    margin: 0 !important;
    background: none;
  }
  #mc-shell .mc-hero {
    display: none;
  }
  #mc-shell .mc-panel {
    margin: 0;
    padding: 0;
  }
  #mc-shell .mc-card {
    padding: 0;
    box-shadow: none;
  }
}
