html.bc-global-contact-open,
html.bc-global-contact-open body {
  overflow: hidden;
}

.bc-global-contact-dock {
  position: fixed;
  z-index: 11000;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bc-global-contact-button {
  width: 56px;
  height: 56px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0,0,0,.3);
  cursor: pointer;
  overflow: hidden;
  transition: transform .18s ease, filter .18s ease;
}

.bc-global-contact-button:hover,
.bc-global-contact-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  outline: none;
}

.bc-global-contact-button:active { transform: translateY(1px); }
.bc-global-contact-button img { display: block; width: 46px; height: 46px; object-fit: contain; }
.bc-global-contact-button--naver { background: #ffffff; }
.bc-global-contact-button--kakao { background: #fee500; }
.bc-global-contact-button--wechat { background: #07c160; color: #ffffff; font-size: 30px; }

.bc-global-contact-modal[hidden] { display: none !important; }
.bc-global-contact-modal { position: fixed; z-index: 11100; inset: 0; }
.bc-global-contact-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.64); backdrop-filter: blur(4px); }
.bc-global-contact-dialog {
  position: relative;
  z-index: 1;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: 50vh auto 0;
  padding: 30px;
  overflow-y: auto;
  border: 1px solid rgba(216,255,100,.34);
  border-radius: 16px;
  background: #111116;
  box-shadow: 0 26px 70px rgba(0,0,0,.48);
  color: #f5f5f7;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transform: translateY(-50%);
}

.bc-global-contact-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: transparent;
  color: #f5f5f7;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.bc-global-contact-close:hover,
.bc-global-contact-close:focus-visible {
  border-color: #d8ff64;
  color: #d8ff64;
  outline: none;
}

.bc-global-contact-label {
  margin: 0;
  color: #d8ff64;
  font: 700 11px/1.3 "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: .06em;
}

.bc-global-contact-panel h2 {
  max-width: 290px;
  margin: 17px 0 0;
  font-size: 31px;
  line-height: 1.15;
  letter-spacing: -.05em;
  word-break: keep-all;
}

.bc-global-contact-panel > p:not(.bc-global-contact-label) {
  margin: 13px 0 0;
  color: #c7c7cf;
  font-size: 15px;
  line-height: 1.65;
  word-break: keep-all;
}

.bc-global-contact-qr {
  width: 220px;
  margin: 22px auto 0;
  padding: 10px;
  border-radius: 10px;
  background: #ffffff;
  color: #1a1a1d;
  text-align: center;
}

.bc-global-contact-qr img { display: block; width: 200px; height: 200px; object-fit: cover; }
.bc-global-contact-qr figcaption { margin-top: 8px; font: 700 12px/1.2 "JetBrains Mono", "SFMono-Regular", Consolas, monospace; }
.bc-global-contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  margin-top: 22px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.bc-global-contact-link:hover { color: inherit; filter: brightness(1.08); text-decoration: none; }
.bc-global-contact-link--naver { background: #03c75a; color: #071d10; }
.bc-global-contact-link--kakao { background: #fee500; color: #2f2018; }

@media (max-width: 767px) {
  .bc-global-contact-dock { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); gap: 8px; }
  .bc-global-contact-button { width: 51px; height: 51px; }
  .bc-global-contact-button img { width: 42px; height: 42px; }
  .bc-global-contact-button--wechat { font-size: 27px; }
  .bc-global-contact-dialog { width: min(420px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 28px 23px 24px; border-radius: 14px; }
  .bc-global-contact-panel h2 { font-size: 27px; }
  .bc-global-contact-qr { width: 210px; }
  .bc-global-contact-qr img { width: 190px; height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  .bc-global-contact-button { transition: none; }
}
