/*
 * 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;
  width: 100%;
  max-width: 40rem;
  animation: mc-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

#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: 750;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-transform: none;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgb(0 0 0 / 0.28);
}

#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 12px rgb(0 0 0 / 0.25);
}

#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);
}

/* Goal progress, frosted glass on the photo */
#mc-shell .mc-goal {
  max-width: 27rem;
  padding: 16px 18px;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.12);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
}
#mc-shell .mc-goal__figures {
  margin: 0 0 10px;
  padding: 0;
  color: rgb(255 255 255 / 0.9);
  font-size: 0.9375rem;
}
#mc-shell .mc-goal__figures strong {
  margin-right: 4px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
#mc-shell .mc-goal__track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.24);
}
#mc-shell .mc-goal__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  box-shadow: 0 0 14px rgb(255 255 255 / 0.55);
  transform-origin: left center;
  animation: mc-grow 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}
#mc-shell .mc-goal__meta {
  margin: 8px 0 0;
  padding: 0;
  color: rgb(255 255 255 / 0.82);
  font-size: 0.8125rem;
}

/* 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 {
    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,
  #mc-shell.mc-layout-banner .mc-goal {
    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: 6px 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, state/postcode) */
#mc-shell .mc-card .mc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
@media (max-width: 359px) {
  #mc-shell .mc-card .mc-row {
    grid-template-columns: 1fr;
  }
}

/* Inputs */
#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: #87928c;
  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="checkbox"],
#mc-shell .mc-card input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
  vertical-align: -3px;
  accent-color: var(--mc-accent);
}
#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 0;
  width: auto;
  min-width: 0;
  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;
}
/* Expiry + security code stay on one line even on phones */
@media (max-width: 480px) {
  #mc-shell .mc-card .mc-row.mc-row--card {
    grid-template-columns: 1.4fr 1fr;
  }
}
#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);
}

/* 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: 999px;
  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     */
/* ------------------------------------------------------------------ */

#mc-shell.mc-step-confirm .mc-card .crm-section,
#mc-shell.mc-step-thankyou .mc-card .crm-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--mc-line);
}
#mc-shell.mc-step-confirm .mc-card .crm-section .label,
#mc-shell.mc-step-thankyou .mc-card .crm-section .label {
  margin: 0;
  color: var(--mc-muted);
  font-weight: 500;
}
#mc-shell.mc-step-confirm .mc-card .crm-section .content,
#mc-shell.mc-step-thankyou .mc-card .crm-section .content {
  font-weight: 600;
  text-align: right;
}
#mc-shell.mc-step-confirm .mc-card .crm-section .label.mc-empty-label + .content,
#mc-shell.mc-step-thankyou .mc-card .crm-section .label.mc-empty-label + .content,
#mc-shell.mc-step-confirm .mc-card .crm-section.intro_text-section,
#mc-shell.mc-step-thankyou .mc-card .crm-section.intro_text-section {
  flex-basis: 100%;
  font-weight: 400;
  text-align: left;
}
#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;
}

/* ------------------------------------------------------------------ */
/* 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;
  }
}
