/* Phones ≤799px: Register interest leaves the sticky header so the logos
   stay full size. One floating orange CTA, default bottom-right, with a
   safe-area inset; it can be dragged and snaps to an edge. Desktop and
   800px+ are unchanged. */
@media (max-width: 799px) {
  .d-head-r .d-pill {
    display: none !important;
  }

  body:not(.menu-open) .d-head .d-logos,
  body:not(.menu-open) .d-head:not(.is-compact) .d-logos,
  body:not(.menu-open) .d-head.is-compact .d-logos,
  body:not(.menu-open) .d-head.menu-solid .d-logos {
    flex: 0 0 auto;
    min-width: 0;
    max-width: none;
  }
  body:not(.menu-open) .d-head .d-logo,
  body:not(.menu-open) .d-head .d-logo-fsba {
    flex: 0 0 auto;
    min-width: auto;
  }
  body:not(.menu-open) .d-head .d-logo img,
  body:not(.menu-open) .d-head:not(.is-compact) .d-logo img,
  body:not(.menu-open) .d-head.is-compact .d-logo img,
  body:not(.menu-open) .d-head.menu-solid .d-logo img,
  body:not(.menu-open) .d-head .d-logo-fsba img,
  body:not(.menu-open) .d-head:not(.is-compact) .d-logo-fsba img,
  body:not(.menu-open) .d-head.is-compact .d-logo-fsba img,
  body:not(.menu-open) .d-head.menu-solid .d-logo-fsba img {
    width: auto;
    max-width: none;
    object-fit: contain;
    flex-shrink: 0;
  }
  body:not(.menu-open) .d-head .d-logo img,
  body:not(.menu-open) .d-head:not(.is-compact) .d-logo img,
  body:not(.menu-open) .d-head.is-compact .d-logo img,
  body:not(.menu-open) .d-head.menu-solid .d-logo img {
    height: 26px;
  }
  body:not(.menu-open) .d-head .d-logo-fsba img,
  body:not(.menu-open) .d-head:not(.is-compact) .d-logo-fsba img,
  body:not(.menu-open) .d-head.is-compact .d-logo-fsba img,
  body:not(.menu-open) .d-head.menu-solid .d-logo-fsba img {
    height: 24px;
  }

  .d-sticky-reg,
  .d-sticky-reg.is-on {
    display: inline-flex;
    right: max(16px, env(safe-area-inset-right, 0px));
    left: auto;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    transform: none;
    opacity: 1;
    pointer-events: auto;
    z-index: 40;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 800;
    background: #FF7800;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    touch-action: none;
    --safe-t: env(safe-area-inset-top, 0px);
    --safe-r: env(safe-area-inset-right, 0px);
    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-l: env(safe-area-inset-left, 0px);
  }

  /* Default spot only: sit just above the hero band so the lede stays readable. */
  .d-sticky-reg.is-over-hero,
  .d-sticky-reg.is-on.is-over-hero {
    bottom: calc(var(--float-cta-lift, 110px) + 12px);
  }

  .d-sticky-reg.is-custom {
    bottom: auto;
  }
  .d-sticky-reg.is-custom.is-over-hero {
    bottom: auto;
  }

  .d-sticky-reg.is-dragging {
    transition: none;
    cursor: grabbing;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
  }

  .d-sticky-reg.is-snapping {
    transition:
      left .38s cubic-bezier(0.22, 1.28, 0.36, 1),
      right .38s cubic-bezier(0.22, 1.28, 0.36, 1),
      top .38s cubic-bezier(0.22, 1.28, 0.36, 1);
  }

  body.menu-open .d-sticky-reg,
  html.reg-modal-open .d-sticky-reg {
    opacity: 0;
    pointer-events: none;
  }

  html.reg-modal-morphing .reg-modal::backdrop {
    opacity: 0;
    animation: d-reg-bd-in 320ms ease-out forwards;
  }
  .reg-modal.is-morphing-in {
    will-change: transform, border-radius;
  }
}

@keyframes d-reg-bd-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 799px) and (prefers-reduced-motion: reduce) {
  .d-sticky-reg,
  .d-sticky-reg.is-snapping {
    transition: none;
  }
  html.reg-modal-morphing .reg-modal::backdrop {
    animation: none;
    opacity: 1;
  }
}

  html.float-cta-dragging,
  html.float-cta-dragging body {
    overflow: hidden;
    overscroll-behavior: none;
  }


/* Pressed/dragging only: do not stay black after a tap (sticky :hover on touch). */
.concept-d .d-sticky-reg:hover,
.concept-d .d-sticky-reg:focus,
.concept-d .d-sticky-reg.is-on:hover,
.concept-d .d-sticky-reg.is-on:focus {
  background: #FF7800;
  color: #fff;
}
@media (hover: hover) {
  .concept-d .d-sticky-reg:hover,
  .concept-d .d-sticky-reg.is-on:hover {
    background: var(--ink, #111111);
    color: #fff;
  }
}
.concept-d .d-sticky-reg:active,
.concept-d .d-sticky-reg.is-pressed,
.concept-d .d-sticky-reg.is-dragging,
.concept-d .d-sticky-reg.is-on:active,
.concept-d .d-sticky-reg.is-on.is-pressed,
.concept-d .d-sticky-reg.is-on.is-dragging {
  background: var(--ink, #111111);
  color: #fff;
}
.d-sticky-reg:focus-visible,
.d-sticky-reg.is-on:focus-visible {
  outline: 3px solid #FF7800;
  outline-offset: 3px;
  background: #FF7800;
  color: #fff;
}
