:root { --ja-cta-navy: #14254a; --ja-cta-blue: #1a56db; --ja-cta-blue-soft: #2f5fbf; --ja-cta-kakao: #fee500; }

/* 문의 버튼 3개(공통) — 1644-9350 → 온라인 견적신청 → 카카오 상담 · 얇은 높이 */
.ja-cbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  box-sizing: border-box; min-width: 0; height: 42px; padding: 0 10px; margin: 0;
  border-radius: 7px; border: 1px solid transparent;
  font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em;
  text-decoration: none !important; white-space: nowrap; cursor: pointer;
  transition: filter .15s ease, box-shadow .15s ease;
}
.ja-cbtn span { overflow: hidden; text-overflow: ellipsis; }
.ja-cbtn:hover { filter: brightness(0.97); }
.ja-cbtn:focus-visible { outline: 2px solid var(--ja-cta-navy); outline-offset: 2px; }
.ja-cbtn--tel { background: #f2f6ff; border-color: #8fb0ec; color: var(--ja-cta-navy) !important; }
.ja-cbtn--quote { background: var(--ja-cta-blue); border-color: var(--ja-cta-blue); color: #fff !important; }
.ja-cbtn--kakao { background: var(--ja-cta-kakao); border-color: var(--ja-cta-kakao); color: #191919 !important; }
.ja-cbtn__ic { width: 15px; height: 15px; flex: none; }
.ja-cbtn__kk {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 17px; height: 17px; border-radius: 50%; background: #191919; color: var(--ja-cta-kakao);
  font-size: 8.5px; font-weight: 800; letter-spacing: -0.02em; line-height: 1;
}
.ja-cbtn__kk::before { content: "Ch"; }
.ja-cta3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ja-cta3 .ja-cbtn { width: 100%; }

/* ① 하단 고정 바 */
.ja-ctabar {
  position: fixed; left: 0; right: 0; bottom: var(--ja-mff-h, 0px); z-index: 8;
  box-sizing: border-box; background: #fff; border-top: 1px solid #e3e9f2;
  box-shadow: 0 -4px 18px rgba(20, 37, 74, .08);
  padding: 7px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  font-family: inherit; color: var(--ja-cta-navy);
}
.ja-ctabar__inner { display: flex; flex-direction: column; gap: 6px; max-width: 760px; margin: 0 auto; }
.ja-ctabar__promo {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0;
  font-size: 12.5px; line-height: 1.25; color: var(--ja-cta-navy); white-space: nowrap;
}
.ja-ctabar__promo small { font-size: inherit; color: var(--ja-cta-blue-soft); font-weight: 600; }
.ja-ctabar__promo strong { font-weight: 800; }
.ja-ctabar__gift { width: 18px; height: 18px; color: var(--ja-cta-blue); flex: none; }
.ja-ctabar__btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ja-ctabar .ja-cbtn { height: 40px; font-size: 13.5px; padding: 0 6px; }
@media (max-width: 359px) {
  .ja-ctabar .ja-cbtn { font-size: 12.5px; gap: 4px; padding: 0 4px; }
  .ja-ctabar .ja-cbtn__ic { width: 13px; height: 13px; }
  .ja-ctabar .ja-cbtn__kk { width: 15px; height: 15px; font-size: 7.5px; }
}
@media (min-width: 560px) {
  .ja-ctabar__inner { flex-direction: row; align-items: center; gap: 12px; }
  .ja-ctabar__promo { flex: none; justify-content: flex-start; gap: 8px; padding-right: 12px; border-right: 1px solid #e3e9f2; }
  .ja-ctabar__promo-txt { display: flex; flex-direction: column; }
  .ja-ctabar__promo small { font-size: 11.5px; }
  .ja-ctabar__promo strong { font-size: 14.5px; }
  .ja-ctabar__gift { width: 26px; height: 26px; }
  .ja-ctabar__btns { flex: 1 1 auto; gap: 8px; }
}
@media (min-width: 1024px) {
  .ja-ctabar {
    left: 50%; right: auto; bottom: 18px; transform: translateX(-50%);
    width: min(800px, calc(100% - 220px)); padding: 8px 10px 8px 16px;
    border: 1px solid #e3e9f2; border-radius: 14px; box-shadow: 0 8px 28px rgba(20, 37, 74, .16);
  }
  .ja-ctabar__inner { max-width: none; }
  .ja-ctabar .ja-cbtn { height: 40px; font-size: 14px; }
}

/* 바가 있으면: 우측 빠른메뉴의 견적·카카오 아이콘은 빼고(같은 버튼이 바에 있다) 최근 본 상품·위로만 바 위에 둔다.
   본문 끝·신청 폼이 바에 가리지 않게 아래 여백을 바 높이만큼 준다. 옛 하단 고정 상담 칸(.ja-stickycta)도 바로 합친다. */
html.ja-ctabar-on .quick-menu #openQuotePopup,
html.ja-ctabar-on .quick-menu .cs-talk { display: none !important; }
html.ja-ctabar-on .ja-stickycta { display: none !important; }
html.ja-ctabar-on body { padding-bottom: calc(var(--ja-ctabar-space, 84px) + 12px) !important; }
html.ja-ctabar-on body .quick-menu { bottom: 0 !important; margin-bottom: calc(var(--ja-ctabar-space, 84px) + 12px) !important; }
@media (max-width: 767px) {
  html.ja-ctabar-on body .quick-menu {
    display: flex !important; flex-direction: column; align-items: flex-end; gap: 8px;
    left: auto !important; right: 12px !important; width: auto !important;
    padding: 0 !important; background: transparent !important; border: 0 !important;
    margin-bottom: calc(var(--ja-ctabar-space, 84px) + 10px) !important;
  }
  html.ja-ctabar-on body .quick-menu .quick-menu__item { width: 40px; height: 40px; margin: 0; }
}
/* 560 아래: 단추 둘을 바 첫 줄 오른쪽에 작게 얹는다(본문 위에 떠서 글자를 가리지 않게) */
@media (max-width: 559px) {
  html.ja-ctabar-on .ja-ctabar__promo { justify-content: flex-start; padding: 0 70px 0 4px; min-height: 28px; }
  html.ja-ctabar-on body .quick-menu {
    flex-direction: row; align-items: center; gap: 6px; right: 10px !important; z-index: 9;
    margin-bottom: var(--ja-qm-bottom, 46px) !important;
  }
  html.ja-ctabar-on body .quick-menu .quick-menu__item {
    width: 28px; height: 28px; background: #fff; border: 1px solid #d6e2f3; box-shadow: none;
  }
  html.ja-ctabar-on body .quick-menu .quick-menu__item svg { width: 15px !important; height: 15px !important; }
  html.ja-ctabar-on body .quick-menu .jsScrollUp svg { width: 12px !important; height: 12px !important; }
}
/* 560~1023: 단추가 바 위에 떠 있으니 맨 아래 푸터 글자를 안 가리게 그 높이만큼 더 띄운다 */
@media (min-width: 560px) and (max-width: 1023px) {
  html.ja-ctabar-on body { padding-bottom: calc(var(--ja-ctabar-space, 84px) + var(--ja-qm-h, 100px) + 24px) !important; }
}


/* The existing site keeps its product options and service links. */
.sd-contact-layout .sd-contact-dock{display:none!important}
html.ja-ctabar-on .mobile-fix-footer.consultation-mobile{display:none!important}
html.ja-ctabar-on .sd-rate-summary .ja-cta3,html.ja-ctabar-on .sd-rental-rate-actions .ja-cta3{width:100%;margin:0;padding:0}
#sindoh-quote-frame{position:fixed!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;z-index:2147483000!important;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);color-scheme:normal}
#sindoh-quote-frame[hidden]{display:none!important}
.sindoh-quote-loading{position:fixed;inset:0;display:grid;place-items:center;z-index:2147482999;background:#0d18288a;color:white;font:16px/1.6 Arial,'Malgun Gothic',sans-serif}
.sindoh-quote-loading[hidden]{display:none!important}

/* Approved mobile A3 detail actions: readable phone, then quote and Kakao.
   The fixed dock, desktop arrangement and unchanged GX4090 are excluded. */
@media (max-width:480px) {
  body[data-approved-detail="20261022-final"] #sd-rate-summary .ja-cta3,
  body[data-approved-detail="20261022-final"] .sd-rental-rate-actions .ja-cta3 {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  body[data-approved-detail="20261022-final"] #sd-rate-summary .ja-cta3 > .ja-cbtn,
  body[data-approved-detail="20261022-final"] .sd-rental-rate-actions .ja-cta3 > .ja-cbtn {
    height:44px;min-height:44px;font-size:14px;padding:0 8px;
  }
  body[data-approved-detail="20261022-final"] #sd-rate-summary .ja-cta3 > .ja-cbtn--tel,
  body[data-approved-detail="20261022-final"] .sd-rental-rate-actions .ja-cta3 > .ja-cbtn--tel {grid-column:1/-1}
  body[data-approved-detail="20261022-final"] #sd-rate-summary .ja-cta3 > .ja-cbtn > span:not(.ja-cbtn__kk),
  body[data-approved-detail="20261022-final"] .sd-rental-rate-actions .ja-cta3 > .ja-cbtn > span:not(.ja-cbtn__kk) {
    overflow:visible;text-overflow:clip;white-space:nowrap;
  }
}
