/* Floating "free hail report" bar (public/includes/hail_report_sticky_bar.html).
   A navy pill that slides up from the bottom and fits its text: a pulsing location pin, the message and the
   data sources, then the blue button and a close button. */
.hg-sb {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 900;
  width: max-content; max-width: min(960px, calc(100% - 32px));
  transform: translate(-50%, calc(100% + 40px)); opacity: 0; visibility: hidden;
  transition: transform .42s cubic-bezier(.2, .8, .2, 1), opacity .3s ease, visibility 0s linear .42s;
  font-family: 'Public Sans', system-ui, sans-serif;
  /* light text on navy renders heavier on Macs without this; keeps the weights matching the page's regular text */
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.hg-sb.is-shown {
  transform: translate(-50%, 0); opacity: 1; visibility: visible;
  transition: transform .42s cubic-bezier(.2, .8, .2, 1), opacity .3s ease, visibility 0s;
}
.hg-sb-inner {
  display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 12px; border-radius: 999px;
  background: var(--hg-sb-banner-background, linear-gradient(135deg, #0e3a63 0%, #0b2e4e 55%, #0a2742 100%));
  border: 1px solid var(--hg-sb-border-color, rgba(147, 197, 253, .14));
  box-shadow: 0 18px 44px rgba(6, 22, 42, .38), 0 2px 6px rgba(6, 22, 42, .2);
}

/* location pin with a soft pulsing ring (where other sites put customer photos) */
.hg-sb-pin {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--hg-sb-icon-background, rgba(255, 255, 255, .14)); color: var(--hg-sb-icon-color, #fff);
}
.hg-sb-pin::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--hg-sb-icon-color, rgba(255, 255, 255, .55));
  animation: hg-sb-ring 2.4s ease-out infinite;
}
@keyframes hg-sb-ring { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }

.hg-sb-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0; text-decoration: none; color: inherit; }
.hg-sb-text:hover { text-decoration: none; color: inherit; }
.hg-sb-text strong { font-size: 15px; line-height: 1.15; font-weight: 400; color: var(--hg-sb-text-color, #fff); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-sb-sub { font-size: 12px; line-height: 1.2; font-weight: 300; color: var(--hg-sb-subtext-color, rgba(214, 231, 251, .72)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The script steps the content down only when it no longer fits (data-fit):
   0 full text + long button · 1 full text + "Get Report" · 2 shorter text + "Get Report"
   3 shorter text, compact sizes · 4 phone: shortest text, compact. Text: d = full, t = shorter, m = shortest. */
.hg-sb-t, .hg-sb-m, .hg-sb-btn-short { display: none; }
.hg-sb:is([data-fit="1"], [data-fit="2"], [data-fit="3"], [data-fit="4"]) .hg-sb-btn-long { display: none; }
.hg-sb:is([data-fit="1"], [data-fit="2"], [data-fit="3"], [data-fit="4"]) .hg-sb-btn-short { display: inline; }
.hg-sb:is([data-fit="2"], [data-fit="3"], [data-fit="4"]) .hg-sb-d { display: none; }
.hg-sb:is([data-fit="2"], [data-fit="3"]) .hg-sb-t, .hg-sb[data-fit="4"] .hg-sb-m { display: inline; }

.hg-sb-cta {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; margin-left: 10px; border-radius: 999px;
  background: var(--hg-sb-button-background, #1277e1); color: var(--hg-sb-button-text-color, #fff); font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(18, 119, 225, .45); transition: background-color .15s, transform .15s;
}
.hg-sb-cta:hover { background: var(--hg-sb-button-hover-background, #0f62bd); color: var(--hg-sb-button-text-color, #fff); }
.hg-sb-cta:hover svg { transform: translateX(2px); }
.hg-sb-cta svg { transition: transform .15s; }
.hg-sb-close {
  flex: none; width: 34px; height: 34px; padding: 0; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: color-mix(in srgb, currentColor 14%, transparent); color: var(--hg-sb-close-color, rgba(255, 255, 255, .7)); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.hg-sb-close:hover { background: color-mix(in srgb, currentColor 24%, transparent); color: var(--hg-sb-close-color, #fff); }
.hg-sb-cta:focus-visible, .hg-sb-text:focus-visible, .hg-sb-close:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }

/* steps 3-4: compact sizes (smaller pin, type and button); the bar still fits its content, so no empty gap */
.hg-sb:is([data-fit="3"], [data-fit="4"]) { bottom: max(10px, env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 20px); }
.hg-sb:is([data-fit="3"], [data-fit="4"]) .hg-sb-inner { gap: 10px; padding: 7px 7px 7px 8px; }
.hg-sb:is([data-fit="3"], [data-fit="4"]) .hg-sb-inner { box-shadow:0 5px 14px rgba(6,22,42,.16), 0 1px 3px rgba(6,22,42,.12); }
.hg-sb:is([data-fit="3"], [data-fit="4"]) .hg-sb-pin { width: 36px; height: 36px; }
.hg-sb:is([data-fit="3"], [data-fit="4"]) .hg-sb-pin svg { width: 17px; height: 17px; }
.hg-sb:is([data-fit="3"], [data-fit="4"]) .hg-sb-text strong { font-size: 14px; }
.hg-sb:is([data-fit="3"], [data-fit="4"]) .hg-sb-sub { font-size: 11.5px; }
.hg-sb:is([data-fit="3"], [data-fit="4"]) .hg-sb-cta { height: 38px; padding: 0 15px; margin-left: 4px; font-size: 13.5px; gap: 6px; }
.hg-sb:is([data-fit="3"], [data-fit="4"]) .hg-sb-cta svg { display: none; }
.hg-sb:is([data-fit="3"], [data-fit="4"]) .hg-sb-close { width: 30px; height: 30px; }
@media (max-width: 370px) { .hg-sb-cta { display: none; } }
@media (max-width: 340px) { .hg-sb-inner { gap: 8px; } .hg-sb-text strong { font-size: 13.5px; } .hg-sb-cta { padding: 0 13px; } }

@media (prefers-reduced-motion: reduce) {
  .hg-sb, .hg-sb.is-shown { transition: opacity .2s ease, visibility 0s linear .2s; transform: translate(-50%, 0); }
  .hg-sb.is-shown { transition: opacity .2s ease, visibility 0s; }
  .hg-sb-pin::after { animation: none; opacity: 0; }
}
@media print { .hg-sb { display: none !important; } }

.hg-sb[style*="--hg-sb-button-background"] .hg-sb-cta { box-shadow:0 6px 18px color-mix(in srgb, var(--hg-sb-button-background) 45%, transparent); }
