/* ==========================================
   Mobile Sticky CTA (Figma 디자인)
   가로 한 줄: 좌 초록 + 검정 텍스트 | 우 검정 + 흰 텍스트
   왼쪽은 왼쪽만, 오른쪽은 오른쪽만 둥글게 / 가운데는 직선
   ========================================== */

.mobile-cta {
  display: none;
}

@media (max-width: 768px) {
  .home-template .gh-main,
  .page-template .gh-main {
    padding-bottom: 64px;
  }

  /* 드로어(메뉴) 열렸을 때 스티키 CTA 숨김 */
  body:has(.cm-header.is-open) .mobile-cta.mo-only {
    display: none !important;
  }

  .mobile-cta.mo-only {
    display: flex !important;
    flex-direction: row;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    min-height: 80px;
    box-sizing: border-box;
    background: #000;
    justify-content: center;
    align-items: flex-end;
  }

  .mobile-cta__left {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-align: center;
    font-family: Pretendard;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%;
    letter-spacing: -0.72px;
    border-radius: 0 30px 0 0;
    background: #00ff6d;
    height: 80px;
    flex: 1 1 auto;
  }

  .mobile-cta__right {
    min-height: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    color: #fff;
    text-align: center;
    font-family: Pretendard;
    font-size: 17px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%;
    letter-spacing: -0.34px;
    height: 80px;
  }

  .mobile-cta__left:active,
  .mobile-cta__right:active {
    opacity: 0.9;
  }
}
