/**
 * Shared service form access and Google Ads presentation.
 * Loaded after the site's design layer; uses the existing brand tokens.
 */
/* Stay outside the reading column on wide screens; never insert a sales-page banner. */
.imx-service-entry {
  position: fixed;
  z-index: 40;
  top: 50%;
  right: 16px;
  width: 196px;
  padding: 20px 16px;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid var(--imx-border);
  border-top: 4px solid var(--imx-green);
  border-radius: var(--imx-radius);
  box-shadow: var(--imx-shadow-card);
}
.imx-service-entry h2 {
  margin: 0 0 10px;
  color: var(--imx-navy);
  font: 600 20px/1.25 var(--imx-display);
}
.imx-service-entry p {
  margin: 0 0 16px;
  color: var(--imx-muted);
  font-size: 14px;
  line-height: 1.5;
}
.imx-service-entry .v3-btn {
  width: 100%;
  min-width: 0;
  padding: 12px;
  white-space: normal;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
}
.imx-service-entry .v3-btn:focus-visible { outline: 3px solid var(--imx-navy); outline-offset: 4px; }

/* Keep the approved slim edge tab at every desktop width. */
@media (min-width: 768px) {
  .imx-service-entry {
    right: 0;
    width: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px 0 0 12px;
  }
  .imx-service-entry__copy { display: none; }
  .imx-service-entry .v3-btn {
    writing-mode: vertical-rl;
    width: 44px;
    min-height: 190px;
    padding: 18px 12px;
    border-radius: 12px 0 0 12px;
    white-space: nowrap;
  }
}

/* Google Ads pages use one lead style and one card-heading scale,
   regardless of the editor's H2/H3 section structure. */
.section_summary--google-ads > .width,
.imx-service-entry + .section_summary--services > .width { width: calc(100% - 48px); max-width: 1160px; }
.section_summary--google-ads .summary-intro { column-count: 1; }
.section_summary--google-ads .summary-intro > p:first-of-type {
  font-size: 20px;
  line-height: 1.6;
  color: var(--imx-navy);
}
.section_summary--google-ads .summary-block > h2,
.section_summary--google-ads .summary-block > h3 {
  font: 600 26px/1.25 var(--imx-display);
  color: var(--imx-navy);
  margin: 0 0 .7em;
}
.section_summary--google-ads .summary-block h2 ~ h3 {
  font-size: 21px;
  margin-top: 1.4em;
}
.section_summary--google-ads .summary-block { min-width: 0; }
.section_summary--google-ads table { display: block; overflow-x: auto; }

/* Render the inline GBP form outside the prose/card formatter. */
.imx-service-intake { padding: 0 0 64px; background: var(--imx-surface); }
.imx-service-intake > .width { width: calc(100% - 48px); max-width: 1160px; }
.imx-service-intake .imx-gbp-intake { margin: 0; }

@media (max-width: 767px) {
  .section_summary--google-ads > .width,
  .imx-service-entry + .section_summary--services > .width,
  .imx-service-intake > .width { width: calc(100% - 24px); }
  .imx-service-entry {
    top: auto;
    right: 12px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    width: auto;
    max-width: calc(100% - 24px);
    padding: 0;
    transform: none;
    border: 0;
    border-radius: 24px;
  }
  .imx-service-entry__copy { display: none; }
  .imx-service-entry .v3-btn { padding: 14px 20px; min-height: 48px; }
  body:has(#wpvibe-preview-banner) .imx-service-entry { bottom: 184px; }
  .section_summary--google-ads .summary-intro > p:first-of-type { font-size: 18px; }
  .section_summary--google-ads .summary-block > h2,
  .section_summary--google-ads .summary-block > h3 { font-size: 22px; }
  .section_summary--google-ads .summary-block h2 ~ h3 { font-size: 20px; }
}

/* Keep navigation clear of the logo at compact desktop widths. */
@media (min-width: 768px) and (max-width: 1200px) {
  header > .width { gap: 16px; padding: 0 16px; }
  header > .width > a > img { width: 140px; }
  .header_right { gap: 10px; }
  .header_right > a { font-size: 16px; }
  .navigation { font-size: 15px; }
  .navigation > ul > li > a { padding: 0 6px; }
  .navigation > ul > li.has-menu-children { padding-right: 20px; }
  .navigation > ul > li.has-menu-children > .menu-submenu-toggle { right: 0; }
}

@media print { .imx-service-entry { display: none; } }
