/*
 * Universal Contact Widget - one shared card (web.partials.contact-widget)
 * appearing on Kontakt, Login, Report, and every Add-a-Business/Claim step.
 * Built from IP-Contact-Widget-Handoff.md (2026-09-30). Reuses existing
 * design tokens throughout - the two places the handoff's own literal
 * values didn't match this site's actual locked design system, the
 * locked system won and is called out below:
 *
 * 1. Heading: handoff said "Roboto 700, 20px/26px" - this site's real,
 *    locked h3 style (web.css, "corrected twice already - don't bump
 *    headings back up") is Lato 500, 22px/28px. Used the real h3 here
 *    instead of introducing a one-off heavier heading.
 * 2. Message: handoff said "Lato 400, 15px/22px" - no token matches that
 *    exact size; used the closest real token, --body-size (16px/24px),
 *    instead of a hardcoded off-scale value.
 * 3. Section gap: handoff said 18px - the token scale (4/8/12/16/24/32)
 *    has no 18px step; used --space-4 (16px), the closer of the two
 *    neighbors, instead of a one-off value.
 *
 * 2026-09-30 round 2 (direct owner feedback after seeing it live):
 * lighter background, tighter padding, and the copy button's "copied"
 * confirmation text removed - that text growing the e-mail row's height
 * was recentering the row (align-items:center) and visibly nudging the
 * copy button down each time it appeared. The aria-label swap on the
 * button itself (see script.blade.php) still announces the copy to
 * screen readers, so removing the visible text doesn't lose that.
 */
.contact-widget-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 16px);
  width: 100%;
  max-width: 360px;
  background: var(--surface-100, #f2f2f2);
  border: 1px solid var(--border, #dedede);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--elevation-1);
  padding: var(--space-4, 16px);
  box-sizing: border-box;
}
.contact-widget-intro {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-widget-heading {
  margin: 0;
}
.contact-widget-message {
  margin: 0;
  font: var(--body-weight, 400) var(--body-size, 16px)/var(--body-line-height, 24px) var(--font-sans);
  color: var(--ink);
}
.contact-widget-divider {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--border, #dedede);
}
.contact-widget-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-widget-label {
  font: 700 12px/1.4 var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}
.contact-widget-link {
  font: 700 15px/1.4 var(--font-sans);
  color: var(--brand-blue, #3270a2);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-widget-link:hover {
  color: var(--link-hover, #3c77a6);
  text-decoration: underline;
}
.contact-widget-link:focus-visible {
  outline: 2px solid var(--focus-ring, #2e6fe0);
  outline-offset: 2px;
}
.contact-widget-text {
  font: 400 15px/1.4 var(--font-sans);
  color: var(--ink);
}
/* E-mail row: label/link/confirmation stacked on the left, copy button
   pinned to the right - the only row that isn't a simple label+value
   stack. */
.contact-widget-row--email {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.contact-widget-email-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.contact-widget-copy-btn {
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #dedede);
  border-radius: var(--radius-md, 8px);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}
/* Was --surface-100 - now identical to the card's own background (both
   changed together in the round-2 pass above), which made the hover
   state invisible. --border is the next step darker, same escalation
   .location-picker-locate:hover already uses off a --surface-100 base. */
.contact-widget-copy-btn:hover {
  background: var(--border, #dedede);
}
.contact-widget-copy-btn:focus-visible {
  outline: 2px solid var(--focus-ring, #2e6fe0);
  outline-offset: 2px;
}
.contact-widget-copy-btn.is-copied {
  border-color: var(--secondary-dark, #47810f);
  background: var(--success-bg, #f3f8ee);
  color: var(--secondary-dark, #47810f);
}
.contact-widget-copy-btn.is-error {
  border-color: var(--danger-text, #9e4a46);
  color: var(--danger-text, #9e4a46);
}
.contact-widget-map {
  width: 100%;
  height: 170px;
  border: 1px solid var(--border, #dedede);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
}

/* Two-column page grid the widget's host pages opt into - every page
   that uses it (Kontakt, Report, Login, every New Listing/Claim step)
   already has its own Bootstrap .row > col-lg-8/col-lg-4 grid; this
   only sizes the right-hand col-lg-4 slot those pages place the widget
   in so the card reads the same size everywhere. Not a new grid system. */
.contact-widget-col {
  width: 360px;
  max-width: 100%;
  flex: none;
}
@media (max-width: 991px) {
  .contact-widget-col {
    width: 100%;
    margin-top: var(--space-5, 24px);
  }
}
/* On a New Listing/Claim step, the widget sits directly below that
   step's own progress stepper (web.partials.flow.steps-sidebar or
   web.partials.claim-steps), in the same col-lg-4 column - handoff
   spec called for a 20px gap; the token scale (4/8/12/16/24/32) has no
   20px step, so this uses --space-4 (16px) for the same reason the
   widget's own internal section gap does (see this file's header
   comment), keeping one consistent rhythm down the whole column. */
.ipflow-steps-sidebar + .contact-widget-card,
.signup-steps + .contact-widget-card {
  margin-top: var(--space-4, 16px);
}
