/* mobile-apply-cta.v1.css (UX-01) — sticky "Apply Now" bar at <=1024px.
 * --yn-cta-bar-h is kept exact by mobile-apply-cta.v1.js (ResizeObserver); the literal fallback
 * here is only what renders before that script's first measurement.
 */
:root {
  --yn-cta-bar-h: 64px;
}

.yn-mobile-apply-bar {
  display: none;
}

@media (max-width: 1024px) {
  body {
    padding-bottom: var(--yn-cta-bar-h, 64px);
  }

  .yn-mobile-apply-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12; /* below .elementskit-menu-overlay (z-index: 14) and .joinchat (z-index: 9000) */
    box-sizing: border-box;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)) 16px;
    background-color: #A43C1F;
  }

  .yn-mobile-apply-bar .yn-mobile-apply-link {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 10px;
    background-color: transparent;
    color: #FFFFFF;
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2em;
    text-align: center;
    text-decoration: none;
  }

  li.yn-mobile-apply-menu-item {
    display: block !important;
  }

  /* Lift the WhatsApp launcher (creame-whatsapp-me, .joinchat) above the bar it would otherwise hide. */
  .joinchat {
    --bottom: calc(var(--yn-cta-bar-h, 64px) + var(--sep, 20px));
  }
}

@media (min-width: 1025px) {
  li.yn-mobile-apply-menu-item {
    display: none !important;
  }
}
