.k-contact-sales { background: transparent; color: var(--proto-paper); border-color: currentColor; box-shadow: none; }
.k-roaming-actions[data-contrast="dark"] .k-contact-sales { color: var(--proto-ink); }
html.dark .k-contact-sales,
html.dark .k-roaming-actions[data-contrast] .k-contact-sales { color: var(--k-ink); }
.k-contact-sales:hover,
.k-contact-sales:active { border-color: var(--proto-orange); }
/* The outline gets its own opaque surface on scroll, so body text cannot show through. */
@media (min-width: 701px) {
  .k-roaming-actions[data-scrolled="true"] .k-contact-sales { background: var(--proto-dark); }
  .k-roaming-actions[data-scrolled="true"][data-contrast="dark"] .k-contact-sales { background: var(--proto-paper); }
  html.dark .k-roaming-actions[data-scrolled="true"] .k-contact-sales { background: var(--k-page); }
}
html.k-sales-open { overflow: hidden; }
.k-sales-dialog {
  color-scheme: light;
  width: min(700px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 24px;
  border: 0;
  border-radius: var(--proto-radius);
  background: var(--proto-paper);
  color: var(--proto-ink);
  box-shadow: 0 24px 100px rgb(0 0 0 / 28%);
  overscroll-behavior: contain;
  overflow: hidden;
}
.k-sales-dialog[open] { display: grid; grid-template-columns: minmax(0, 1fr) 44px; grid-template-rows: auto minmax(0, 1fr); gap: 20px 16px; }
.k-sales-dialog::backdrop { background: rgb(24 17 12 / 65%); }
.k-sales-heading { grid-area: 1 / 1; }
.k-sales-dismiss { grid-area: 1 / 2; align-self: start; }
.k-sales-heading h2 { font-size: 32px; line-height: 1.2; }
/* Static initial-focus target; interactive controls retain their focus rings. */
#proto-sales-title:focus { outline: none; }
.k-sales-heading p { margin-top: 6px; color: var(--proto-muted); font-size: 16px; }
.k-sales-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--proto-line);
  border-radius: 50%;
  background: transparent;
  color: var(--proto-ink);
  cursor: pointer;
}
.k-sales-close:hover { background: #eaded0; }
.k-sales-close:active { background: var(--proto-line); }
.k-sales-body { grid-area: 2 / 1 / 3 / -1; display: grid; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.k-sales-note[hidden] { display: none; }
.k-sales-note a:focus-visible { outline: 2px solid var(--proto-ink); outline-offset: 4px; }
.k-sales-note { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--proto-muted); }
.k-sales-note a { color: var(--proto-ink); text-decoration: underline; text-underline-offset: 3px; }
/* Tally's embed widget replaces the initial height with measured content height.
   The dialog body owns scrolling on short screens; the iframe has no nested scroll. */
.k-sales-frame { display: block; width: 100%; height: 520px; border: 0; }
@media (max-width: 700px) {
  .k-contact-sales { color: var(--proto-ink); }
  .k-sales-dialog { max-height: calc(100dvh - 24px); padding: 20px 16px; }
  .k-sales-heading h2 { font-size: 28px; }
}

/* Reserve the form's space while it renders, with a usable escape route. */
.k-sales-frame, .k-sales-note { grid-area: 1 / 1; }
.k-sales-frame:not([data-tally-ready="true"]) { visibility: hidden; }
.k-sales-note { align-self: center; justify-self: center; margin: 0; text-align: center; }
