/* Persistent contact on every ProFlow page, with room for the phone safe area. */
body[data-brand='plumbing'] {
  padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
}

html:has(body[data-brand='plumbing']) {
  scroll-padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}

.proflow-callbar {
  position: fixed;
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  z-index: 45;
  max-width: calc(100% - 32px);
  padding: 14px 22px;
  border: 1px solid #587487;
  border-radius: 6px;
  background: #12364b;
  color: #ffffff;
  box-shadow: 0 8px 30px #10273526;
}

.proflow-callbar a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 52px;
}

.proflow-callbar svg {
  width: 26px;
  height: 26px;
}

.proflow-callbar .phone-copy {
  display: grid;
  gap: 4px;
}

.proflow-callbar .phone-label {
  color: #c9dce8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.proflow-callbar strong {
  font-size: clamp(18px, 4.8vw, 22px);
  font-weight: 600;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.proflow-callbar small {
  color: #c9dce8;
  font-size: 11px;
}

.proflow-callbar a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 7px;
}

@media (max-width: 760px) {
  .proflow-callbar {
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    max-width: none;
    padding: 12px max(22px, env(safe-area-inset-right, 0px))
      calc(12px + env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-left, 0px));
    border-width: 1px 0 0;
    border-radius: 0;
    box-shadow: 0 -4px 24px #10273518;
  }

  .proflow-callbar a {
    width: 100%;
    max-width: 320px;
    grid-template-columns: 34px minmax(0, 1fr);
    padding-inline: 12px;
  }

  body[data-brand='plumbing'] .site-header nav.open {
    max-height: calc(100svh - 230px);
    overflow-y: auto;
  }
}

/* The laptop shows the editorial page, without a second floating phone UI. */
html.laptop-preview body[data-brand='plumbing'] {
  padding-bottom: 0;
}

html.laptop-preview .proflow-callbar {
  display: none;
}
