/* Keep content inside the edges of a bounded widget background. */
html body [data-design-system="faralink-v2"]:is([data-width="content"],[data-v2-width="content"]):is([style*="--s-bg:#"],[style*="--s-bg: #"],[style*="--section-background:#"],[style*="--section-background: #"],[style*="--fl-v2-section-bg:#"],[style*="--fl-v2-section-bg: #"]) {
  box-sizing: border-box;
  padding-inline: clamp(12px, 2vw, 24px) !important;
}

.fl-v2-hours .hours-widget[data-style="strip"] .hours-tabs button[data-today] {
  border-color: color-mix(in srgb, var(--card-accent) 60%, transparent);
  background: color-mix(in srgb, var(--card-accent) 10%, var(--card-bg));
  padding-block: 4px;
  gap: 2px;
}
.fl-v2-hours .hours-widget[data-style="strip"] .hours-tabs button[data-today][aria-selected="true"] {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card-accent) 24%, transparent);
}
.fl-v2-hours .hours-widget[data-style="strip"] .hours-tabs button[data-today] small {
  position: static;
  justify-self: center;
  border-radius: 999px;
  padding: 2px 6px;
  color: var(--card-ink);
  background: color-mix(in srgb, var(--card-accent) 16%, var(--card-bg));
  font-weight: 700;
}

.fl-v2-footer .fdemo[data-layout="spotlight"]:not(:has(.footer-lead)) {
  padding-block-start: clamp(20px, 4cqw, 48px);
}
.fl-v2-footer .fdemo[data-layout="spotlight"] > .footer-legal-wrap .footer-legal,
.fl-v2-footer .fdemo[data-layout="spotlight"] > .footer-legal-wrap .footer-legal :is(p,a,span) {
  color: #fff !important;
}
.fl-v2-footer .fdemo[data-layout="spotlight"] > .footer-legal-wrap .logo-light { display: inline-block; }
.fl-v2-footer .fdemo[data-layout="spotlight"] > .footer-legal-wrap .logo-dark { display: none; }
.fl-v2-footer .fdemo[data-layout="spotlight"] .footer-lead[data-action="contact"] .lead-actions {
  justify-content: end;
  gap: 12px;
}
html body .fl-v2-footer .fdemo[data-layout="spotlight"] .footer-lead[data-action="contact"] li:not(:first-child) > a.lead-action {
  --fl-action-ink: #fff;
  --fl-action-stroke: #ffffff80;
  --fl-action-hover: #ffffff24;
}

/* Keep the footer call to action centered when it stacks on mobile. */
@media (max-width: 767px) {
  .fl-v2-footer .fdemo .footer-lead,
  .fl-v2-footer .fdemo[data-layout="spotlight"] .footer-lead {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  .fl-v2-footer .fdemo .footer-lead .lead-copy {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .fl-v2-footer .fdemo .footer-lead :is(h2, p) { text-align: center; }
  .fl-v2-footer .fdemo .footer-lead h2::after { margin-inline: auto; }
  .fl-v2-footer .fdemo .footer-lead form { justify-self: center; }
  .fl-v2-footer .fdemo .footer-lead .lead-actions,
  .fl-v2-footer .fdemo[data-layout="spotlight"] .footer-lead[data-action="contact"] .lead-actions {
    justify-content: center;
  }
}

/* The overlay starts on the hero image, including on sites with global section padding. */
html body [data-fl-home-header-overlay][data-v2-editor-id="global:brand"] + [data-v2-editor-id] > .fl-v2-h-hero {
  padding-block-start: 0 !important;
  margin-block-start: 0 !important;
}

/* Keep the editor search trigger on one line, with the icon at the end. */
#fl-editor-document .fl-sh[data-header-design="2"] .fl-shHeader > .fl-shSearchLaunch {
  display: flex !important;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: space-between;
}
#fl-editor-document .fl-sh[data-header-design="2"] .fl-shSearchLaunch > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Match the department treatment used by the public colored navigation bar. */
#fl-editor-document .fl-sh[data-header-design="2"][data-header-variant="menu-led-v2"][data-categories-colored="false"] .fl-shNavRow .fl-shDepartment > summary {
  color: var(--review-category-plain-ink, var(--review-on-bar, #fff));
}

/* Existing theme CSS may give banners a fixed card height. Use the widget's selected height. */
html body [data-v2-editor-id] > [data-design-widget="banners"] :is(.fl-v2-b-grid[style*="--b-grid-mobile-columns"],.fl-v2-b-slide) > .fl-v2-b-card:not([data-shape="circle"]) {
  height: var(--b-height);
  min-height: 0;
}
html body [data-v2-editor-id] > [data-design-widget="banners"][data-height-mode="image"] :is(.fl-v2-b-grid[style*="--b-grid-mobile-columns"],.fl-v2-b-slide) > .fl-v2-b-card:not([data-shape="circle"]) {
  height: auto;
}
@media (max-width: 767px) {
  .fl-v2-sections[data-design-widget="banners"] .fl-v2-b-grid[style] {
    grid-template-columns: repeat(var(--b-grid-mobile-columns), minmax(0, 1fr));
  }
}

/* Keep the empty state available to editors while collapsing its public wrapper. */
main[data-fl-v2-build] [data-v2-editor-id]:has(> [data-design-widget="categories"] .fl-v2-category-empty) {
  display: none !important;
}
