/* Progressive donor guidance shared by every Milo experience layout. */
#miloGiveV2 {
  --milo-action-pink: #d52f78;
  --milo-action-orange: #c95622;
  --milo-action-soft: rgba(235, 85, 105, .15);
}

#miloGiveV2 .mg-input-guidance {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(690px, 100%);
  margin: 10px 0 0;
  color: #667986;
  font-family: var(--milo-font-body, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif) !important;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.45;
}

#miloGiveV2 .mg-input-guidance__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
  background: var(--mg-blue, #7bc9e8);
  box-shadow: 0 0 0 4px rgba(123, 201, 232, .13);
}

#miloGiveV2.is-immersive-layout .mg-input-guidance {
  color: rgba(255, 255, 255, .72) !important;
}

#miloGiveV2.is-immersive-layout .mg-input-guidance__dot {
  background: var(--immersive-aqua, #9ce3dc);
  box-shadow: 0 0 0 4px rgba(156, 227, 220, .14);
}

#miloGiveV2 .mg-voice.is-milo-voice-cue {
  border-color: rgba(229, 74, 118, .58) !important;
  box-shadow: 0 0 0 5px rgba(239, 77, 123, .15), 0 9px 24px rgba(7, 50, 74, .13) !important;
  animation: miloVoiceCue 2.8s ease-in-out infinite;
}

#miloGiveV2 .mg-submit.is-milo-search-ready {
  background: linear-gradient(135deg, var(--milo-action-pink), var(--milo-action-orange)) !important;
  box-shadow: 0 0 0 6px rgba(239, 77, 123, .19), 0 14px 32px rgba(118, 37, 55, .28) !important;
}

#miloGiveV2 .mg-step-dock {
  position: sticky;
  z-index: 32;
  top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin: 16px 0 24px;
  padding: 12px 13px 12px 17px;
  border: 1px solid rgba(7, 26, 47, .12);
  border-radius: 20px;
  background: rgba(250, 251, 251, .94);
  box-shadow: 0 16px 42px rgba(7, 26, 47, .12), inset 0 1px 0 #fff;
  font-family: var(--milo-font-body, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif) !important;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

#miloGiveV2 .mg-step-dock[hidden] {
  display: none !important;
}

#miloGiveV2 .mg-step-dock__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

#miloGiveV2 .mg-step-dock__copy em {
  color: #8a5661;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

#miloGiveV2 .mg-step-dock__copy strong {
  color: #263f4d;
  font-size: 14px;
  font-weight: 730;
  line-height: 1.32;
}

#miloGiveV2 .mg-step-dock button {
  min-width: 210px;
  min-height: 48px;
  padding: 12px 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #e3e8eb !important;
  color: #75828a !important;
  box-shadow: inset 0 0 0 1px rgba(7, 26, 47, .06) !important;
  font-size: 13px !important;
  font-weight: 820 !important;
  cursor: not-allowed;
}

#miloGiveV2 .mg-step-dock.is-ready {
  border-color: rgba(213, 47, 120, .38);
  box-shadow: 0 0 0 4px rgba(213, 47, 120, .09), 0 18px 46px rgba(97, 31, 54, .16), inset 0 1px 0 #fff;
}

#miloGiveV2 .mg-step-dock.is-ready button {
  background: linear-gradient(135deg, var(--milo-action-pink), var(--milo-action-orange)) !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(161, 50, 76, .28) !important;
  cursor: pointer;
}

#miloGiveV2 :is(.mg-impact-step, .mg-method-step, .mg-details-step).milo-awaiting-choice,
#miloGiveV2 :is(.mg-impact-step, .mg-method-step, .mg-details-step).milo-awaiting-fields,
#miloGiveV2 :is(.mg-impact-step, .mg-method-step, .mg-details-step).milo-ready-next {
  overflow: visible !important;
}

#miloGiveV2 .milo-awaiting-choice :is(.mg-impact-grid, .mg-cause-options, .mg-mix-options, .mg-method-grid) {
  border-radius: 24px;
  outline: 3px solid rgba(239, 77, 123, .25);
  outline-offset: 7px;
  box-shadow: 0 0 0 12px rgba(239, 77, 123, .055);
  animation: miloChoiceCue 3s ease-in-out infinite;
}

#miloGiveV2 .milo-awaiting-choice :is(.mg-impact-card, .mg-cause-option, .mg-mix-option, .mg-method-card) {
  border-color: rgba(224, 67, 111, .34) !important;
}

#miloGiveV2 :is(.mg-impact-card, .mg-cause-option, .mg-mix-option, .mg-method-card).is-selected {
  border-color: #df3d7d !important;
  outline: 3px solid rgba(213, 47, 120, .22);
  outline-offset: 2px;
  box-shadow: 0 14px 34px rgba(171, 45, 82, .2) !important;
}

#miloGiveV2 .milo-awaiting-fields :is(input, select, textarea):required:invalid {
  border-color: rgba(213, 47, 120, .62) !important;
  box-shadow: 0 0 0 4px rgba(213, 47, 120, .1) !important;
}

#miloGiveV2 .milo-awaiting-fields .mg-demo-consent:has(input:required:invalid) {
  border-color: rgba(213, 47, 120, .42);
  background: rgba(255, 241, 245, .88);
  box-shadow: 0 0 0 4px rgba(213, 47, 120, .08);
}

#miloGiveV2 :is(.mg-builder-primary, .mg-impact-continue, .mg-method-continue, .mg-confirm):disabled {
  border-color: transparent !important;
  background: #e3e8eb !important;
  color: #75828a !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

#miloGiveV2 .mg-next-guidance {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 2px 10px;
  color: #31596a;
  font-family: var(--milo-font-body, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif) !important;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.4;
  text-align: right;
}

#miloGiveV2 .mg-next-guidance[hidden] {
  display: none !important;
}

#miloGiveV2 .mg-next-guidance > span:first-child {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  flex: 0 0 24px;
  border-radius: 999px;
  background: rgba(115, 214, 178, .19);
  color: #0b5960;
}

#miloGiveV2 .mg-next-guidance.is-waiting {
  color: #778791;
}

#miloGiveV2 .mg-next-guidance.is-waiting > span:first-child {
  background: rgba(7, 26, 47, .07);
  color: #71818b;
}

#miloGiveV2 :is(.mg-builder-primary, .mg-impact-continue, .mg-method-continue, .mg-confirm).is-milo-next {
  position: relative;
  padding-right: 96px !important;
  border-color: rgba(255, 255, 255, .22) !important;
  background: linear-gradient(135deg, var(--milo-action-pink), var(--milo-action-orange)) !important;
  color: #fff !important;
  box-shadow: 0 0 0 5px rgba(213, 47, 120, .13), 0 18px 42px rgba(130, 38, 65, .29) !important;
  animation: miloNextCue 3.2s ease-in-out infinite;
}

#miloGiveV2 :is(.mg-builder-primary, .mg-impact-continue, .mg-method-continue, .mg-confirm).is-milo-next::after {
  content: "NEXT  →";
  position: absolute;
  top: 50%;
  right: 10px;
  padding: 7px 10px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .11em;
  line-height: 1;
}

#miloGiveV2 :is(.mg-builder-primary, .mg-impact-continue, .mg-method-continue, .mg-confirm).is-milo-next:hover {
  transform: translateY(-1px);
}

@keyframes miloVoiceCue {
  0%, 100% { box-shadow: 0 0 0 4px rgba(239, 77, 123, .12), 0 9px 24px rgba(7, 50, 74, .1); }
  50% { box-shadow: 0 0 0 9px rgba(255, 119, 80, .2), 0 12px 32px rgba(118, 37, 55, .2); }
}

@keyframes miloNextCue {
  0%, 100% { box-shadow: 0 0 0 4px rgba(213, 47, 120, .12), 0 16px 38px rgba(130, 38, 65, .23); }
  50% { box-shadow: 0 0 0 9px rgba(255, 116, 70, .19), 0 21px 50px rgba(130, 38, 65, .32); }
}

@keyframes miloChoiceCue {
  0%, 100% { outline-color: rgba(239, 77, 123, .2); box-shadow: 0 0 0 10px rgba(239, 77, 123, .045); }
  50% { outline-color: rgba(255, 119, 80, .42); box-shadow: 0 0 0 15px rgba(255, 119, 80, .075); }
}

@media (max-width: 620px) {
  #miloGiveV2 .mg-input-guidance {
    align-items: flex-start;
    margin-top: 9px;
    font-size: 12px;
  }

  #miloGiveV2 .mg-input-guidance__dot {
    margin-top: 5px;
  }

  #miloGiveV2 .mg-next-guidance {
    justify-content: flex-start;
    margin: 0 3px 10px;
    text-align: left;
  }

  #miloGiveV2 .mg-step-dock {
    position: sticky;
    top: 8px;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 20px;
    padding: 13px;
    border-radius: 18px;
  }

  #miloGiveV2 .mg-step-dock button {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #miloGiveV2 .mg-voice.is-milo-voice-cue,
  #miloGiveV2 :is(.mg-builder-primary, .mg-impact-continue, .mg-method-continue, .mg-confirm).is-milo-next,
  #miloGiveV2 .milo-awaiting-choice :is(.mg-impact-grid, .mg-cause-options, .mg-mix-options, .mg-method-grid) {
    animation: none !important;
  }
}
