/* ==========================================================================
   CASE NAV — fixed bottom bar on case pages
   ========================================================================== */

/* Pre-set header offset so the modal never flashes full-screen on open */
@media (max-width: 599px) {
  .case-page { --modal-header-h: 26px; }
}

@keyframes case-nav-item-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.case-nav {
  position: fixed;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  pointer-events: none;
}

.case-nav__group {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

/* Header hidden on case pages — fixed so it never shifts page layout */
.case-page .site-header {
  display: none;
  position: fixed; /* overrides sticky: won't push content when shown */
  left: 0;
  right: 0;
  width: 100%;
}

@media (max-width: 599px) {
  .case-page.modal-is-open .site-header { display: flex; }
}

/* 0-width container: Back overflows left, Send Request stays truly centered */
.case-nav__back-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding-right: 4px;
  width: 0;
  flex-shrink: 0;
}

.case-nav__back {
  animation: case-nav-item-in 0.7s cubic-bezier(0.5, 0, 0.17, 1) 1.4s both;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(231, 231, 231, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.195px;
  line-height: 13px;
  color: #6a686c;
  text-decoration: none;
  white-space: nowrap;
}

.case-nav__cta {
  animation: case-nav-item-in 0.7s cubic-bezier(0.5, 0, 0.17, 1) 1s both;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.195px;
  line-height: 13px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
