:root {
  --mg-bottom-callout-navy: #051A55;
  --mg-bottom-callout-blue: #001C58;
  --mg-bottom-callout-gold: #AB903C;
  --mg-bottom-callout-gold-dark: #96793A;
  --mg-bottom-callout-cream: #F7F3EA;
  --mg-bottom-callout-text: #404041;
}

.mg-bottom-callout[hidden] { display: none !important; }

.mg-bottom-callout {
  position: fixed;
  left: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 3vw, 32px);
  width: min(370px, calc(100vw - 32px));
  z-index: 9000;
  box-sizing: border-box;
  color: var(--mg-bottom-callout-text);
  font-family: "DM Sans", Arial, sans-serif;
  background: linear-gradient(135deg, #fff 0%, var(--mg-bottom-callout-cream) 100%);
  border: 1px solid rgba(171, 144, 60, 0.34);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(0, 28, 88, 0.18);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.mg-bottom-callout.is-visible { opacity: 1; transform: translateY(0); }
.mg-bottom-callout.is-hiding { opacity: 0; transform: translateY(12px); visibility: hidden; pointer-events: none; }
.mg-bottom-callout *, .mg-bottom-callout *::before, .mg-bottom-callout *::after { box-sizing: border-box; }

.mg-bottom-callout__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 22px 22px 20px;
  padding-right: 42px;
}

.mg-bottom-callout__close {
  -webkit-appearance: none !important;
  appearance: none !important;
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  bottom: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding: 0 !important;
  border: 0;
  border-radius: 999px;
  background: rgba(5, 26, 85, 0.07);
  color: var(--mg-bottom-callout-navy);
  font: inherit;
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.mg-bottom-callout__close:hover,
.mg-bottom-callout__close:focus-visible {
  background: var(--mg-bottom-callout-navy);
  color: #fff;
  transform: none;
}

.mg-bottom-callout__close:focus-visible,
.mg-bottom-callout__button:focus-visible {
  outline: 3px solid rgba(171, 144, 60, 0.5);
  outline-offset: 3px;
}

.mg-bottom-callout__icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(171, 144, 60, 0.15);
  color: var(--mg-bottom-callout-navy);
  flex: 0 0 auto;
}

.mg-bottom-callout__icon svg { display: block; width: 24px; height: 24px; fill: currentColor; }
.mg-bottom-callout__content { min-width: 0; }

.mg-bottom-callout__eyebrow {
  margin: 0 0 7px;
  color: var(--mg-bottom-callout-gold-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mg-bottom-callout__body {
  margin: 0 !important;
  color: var(--mg-bottom-callout-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.42;
}

.mg-bottom-callout__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  min-height: 38px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--mg-bottom-callout-navy);
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(5, 26, 85, 0.18);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.mg-bottom-callout__button:hover,
.mg-bottom-callout__button:focus {
  background: var(--mg-bottom-callout-gold-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(5, 26, 85, 0.2);
}

@media (max-width: 767px) {
  .mg-bottom-callout { left: 14px; right: 14px; bottom: 14px; width: auto; border-radius: 18px; }
  .mg-bottom-callout__inner { gap: 12px; padding: 18px 18px 17px; padding-right: 40px; }
  .mg-bottom-callout__icon { width: 40px; height: 40px; }
  .mg-bottom-callout__icon svg { width: 21px; height: 21px; }
  .mg-bottom-callout__eyebrow { font-size: 11px; }
  .mg-bottom-callout__body { font-size: 14px; line-height: 1.35; }
}

@media (prefers-reduced-motion: reduce) {
  .mg-bottom-callout,
  .mg-bottom-callout__close,
  .mg-bottom-callout__button { transition: none; }
}

body.fl-builder-edit .mg-bottom-callout { display: none !important; }
