.cv-quick-contact {
  position: fixed;
  right:max(24px,env(safe-area-inset-right)); bottom:max(24px,env(safe-area-inset-bottom));
  z-index:40; display:flex; flex-direction:column; gap:10px;
}
.cv-quick-contact a, .cv-dialog-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
.cv-quick-contact a {
  box-sizing:border-box; width:88px; height:88px; padding:0; flex-direction:column; gap:5px; border-radius:50%;
  border:1px solid #0001; box-shadow:0 5px 20px #10203430;
}
.cv-quick-contact svg { width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.cv-quick-contact a:focus-visible,.cv-dialog-head button:focus-visible { outline:3px solid #2876e0; outline-offset:2px; }
.cv-quick-kakao { background: #fee500; color: #251d12; gap: 5px; }
.cv-quick-project { background: #173d70; color: white; }
body[data-public-consult] > .cv-quick-contact { font-family:Pretendard,system-ui,sans-serif; }
body[data-public-consult] > .cv-quick-contact .cv-quick-kakao { color:#251d12; }
body[data-public-consult] > .cv-quick-contact .cv-quick-project { color:white; }
body[data-public-consult] #ek-consent-trigger { left:16px; right:auto; }
body[data-public-consult] #ek-consent-banner { right:132px; }
body:has(#ek-consent-banner:not([hidden])) #ek-consent-trigger { visibility:hidden; }
body[data-public-consult]:has(:modal, .lbx[aria-modal="true"]:not([hidden]), #dc-root [data-mice-header] [data-menu], [data-mice-header] details[open]) > .cv-quick-contact,
body[data-public-consult][data-inline-consult] > .cv-quick-contact,
body[data-company-home]:has(:modal, #dc-root [data-mice-header] [data-menu]) .cv-quick-contact { display:none; }
/* Keep the visitor's unmade consent choice while another control owns the screen. */
body[data-public-consult]:has(#dc-root [data-mice-header] [data-menu], [data-mice-header] details[open], .lbx[aria-modal="true"]:not([hidden])) :is(#ek-consent-banner,#ek-consent-trigger) { visibility:hidden; }
@media (max-width:760px) {
  html:has(body[data-public-consult]) { scroll-padding-bottom:calc(76px + env(safe-area-inset-bottom)); }
  body[data-public-consult]::after { display:block; content:""; height:calc(80px + env(safe-area-inset-bottom) + var(--consult-notice-height,0px)); }
  body[data-public-consult] #ek-consent-banner { right:12px; bottom:calc(74px + env(safe-area-inset-bottom)); }
  body[data-public-consult] #ek-consent-trigger { position:relative; inset:auto; display:block; margin:8px auto; }
  body[data-public-consult][data-inline-consult] #ek-consent-banner { position:static; margin:12px; }
}
.cv-home .cv-hero-bottom { justify-content: flex-start; }
@media (max-width: 760px) {
  .cv-home .cv-hero-bottom {
    bottom: calc(74px + env(safe-area-inset-bottom));
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }
}
body[data-company-home] main.cv-home .cv-quick-project { color: white; }
body[data-company-home] .cv-work-more { border-top: 0; padding-top: 0; }
body[data-company-home] .cv-home hr { display: none; }
html:has(body[data-company-home] #inquiry:modal),body[data-company-home]:has(#inquiry:modal) { overflow:hidden; overscroll-behavior:none; }
body[data-company-home] dialog#inquiry {
  box-sizing:border-box; width:min(960px,calc(100% - 48px));
  max-width: none;
  max-height: min(90dvh,980px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  border: 1px solid #dce2eb;
  border-radius: 20px;
  background: white;
  color: #191f28;
  box-shadow: 0 20px 70px #10203440;
}
body[data-company-home] dialog#inquiry[open] { display:flex; flex-direction:column; }
@media (min-width:761px) {
  #inquiry form > div:has(> label input[name="phone"]) { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
}
body[data-company-home] dialog#inquiry:not([open]) { display: none; }
body[data-company-home] dialog#inquiry::backdrop { background: #101b2bbb; }
body[data-company-home] .cv-dialog-head {
  flex:none; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; padding:16px 32px; background: white;
  border-bottom: 1px solid #e5e8eb;
}
body[data-company-home] #inquiry .cv-dialog-head h2 { margin: 0; font-size: 23px; line-height: 1.35; }
.cv-dialog-head button { border: 1px solid #d1d6db; color: #333d4b; background: #fff; cursor: pointer; }
body[data-company-home] #inquiry .cv-inquiry-form { min-width:0; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable;
  margin:0 6px 12px; padding:24px 26px 12px; scroll-padding-block:16px; }
@media (max-width:760px) {
  .cv-quick-contact {
    inset:auto 0 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px;
    padding:8px max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));
    border-top:1px solid #dce2eb; background:white;
  }
  .cv-quick-contact a { width:100%; height:48px; flex-direction:row; gap:8px; border-radius:10px; box-shadow:none; font-size:15px; }
  .cv-quick-contact svg { width:21px; height:21px; }
  body[data-company-home] footer { padding-bottom:calc(84px + env(safe-area-inset-bottom))!important; }
  body[data-company-home] dialog#inquiry {
    position:fixed; top:var(--inquiry-viewport-top,0px); bottom:auto; inset-inline:0; margin:8px auto 0;
    width:calc(100% - 16px); max-height:calc(var(--inquiry-viewport-height,100dvh) - 16px - env(safe-area-inset-bottom)); border-radius:16px;
  }
  body[data-company-home] #inquiry .cv-inquiry-form { margin:0 3px 8px; padding:10px 7px 6px; }
  body[data-company-home] .cv-dialog-head { padding:10px 16px; }
  body[data-company-home] #inquiry :is(input,textarea,select) { font-size:16px!important; }
}
