/* Public BUGISA consultation. Office support keeps its dedicated presentation. */
.bugisa-renew-chat-ready a.ai { display: none !important; }
#bugiChat[data-office-support="0"] {
  --bugi-brand: #1765de;
  --bugi-ink: #172d4d;
  --bugi-muted: #63758e;
  --bugi-line: #e0e8f3;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--bugi-ink);
  -webkit-font-smoothing: antialiased;
}
#bugiChat[data-office-support="0"] button,
#bugiChat[data-office-support="0"] input,
#bugiChat[data-office-support="0"] textarea,
#bugiChat[data-office-support="0"] select { font-family: inherit; }
#bugiChat[data-office-support="0"] button { -webkit-tap-highlight-color: transparent; }
#bugiChat[data-office-support="0"] [hidden] { display: none !important; }
#bugiChat[data-office-support="0"] :focus-visible { outline: 3px solid #82b0f5; outline-offset: 3px; }

/* A free-standing character and a speech bubble, rather than a boxed icon. */
@media (min-width: 760px) {
  #bugiChat[data-office-support="0"][data-standalone="0"] .bugi-chat__launcher {
    width: 282px; height: 180px; padding: 0; border: 0; border-radius: 0;
    background: transparent; box-shadow: none; overflow: visible;
  }
  #bugiChat[data-office-support="0"] .bugi-chat__launcher::before { display: none; }
  #bugiChat[data-office-support="0"] .bugi-chat__mascot {
    right: 0; bottom: 0; width: 144px; height: 174px;
    overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none;
    animation: none;
  }
  #bugiChat[data-office-support="0"] .bugi-chat__mascot-image--desktop {
    position: absolute; inset: 0; display: block; width: 100%; height: 100%;
    object-fit: contain; object-position: center bottom; animation: none;
    filter: drop-shadow(0 9px 12px #254b7924);
  }
  #bugiChat[data-office-support="0"] .bugi-chat__launcher-speech {
    top: 24px; left: 0; right: auto; bottom: auto;
    display: flex; min-width: 154px; min-height: 65px; padding: 12px 14px;
    border: 1px solid #dbe6f5; border-radius: 18px 18px 4px 18px;
    background: #fff; box-shadow: 0 7px 24px #1d4f8820; backdrop-filter: none;
  }
  #bugiChat[data-office-support="0"] .bugi-chat__launcher-speech small {
    color: var(--bugi-brand); font-size: 11px; font-weight: 750; letter-spacing: 0;
  }
  #bugiChat[data-office-support="0"] .bugi-chat__launcher-speech strong {
    margin-top: 5px; color: var(--bugi-ink); font-size: 14px; font-weight: 750; letter-spacing: -.4px;
  }
  #bugiChat[data-office-support="0"] .bugi-chat__launcher-speech::after { right: -7px; width: 13px; height: 13px; bottom: 11px; }
  #bugiChat[data-office-support="0"] .bugi-chat__sparkle--one { right: 0; top: 20px; font-size: 17px; opacity: .6; }
  #bugiChat[data-office-support="0"] .bugi-chat__sparkle--two { display: none; }
  #bugiChat[data-office-support="0"] .bugi-chat__launcher-caption { display: none; }
  #bugiChat[data-office-support="0"][data-standalone="0"] .bugi-chat__panel {
    width: 440px; height: min(740px, calc(100dvh - 48px)); max-height: calc(100dvh - 48px);
    bottom: 0; border-radius: 24px;
  }
}
#bugiChat[data-office-support="0"][data-standalone="0"].is-open .bugi-chat__launcher { visibility: hidden; }
#bugiChat[data-office-support="0"] .bugi-chat__panel {
  border: 1px solid #dbe5f2; background: #fff;
  box-shadow: 0 24px 70px #173a6426, 0 4px 14px #173a6410;
}
#bugiChat[data-office-support="0"] .bugi-chat__header {
  flex: 0 0 auto; min-height: 78px; gap: 12px; padding: 15px 19px;
  border-bottom: 1px solid var(--bugi-line); background: #fff; color: var(--bugi-ink);
}
#bugiChat[data-office-support="0"] .bugi-chat__header::after { display: none; }
#bugiChat[data-office-support="0"] .bugi-chat__header img {
  width: 46px; height: 46px; padding: 2px; object-fit: contain;
  border: 1px solid #deebfc; border-radius: 16px; background: #f1f6ff; box-shadow: none; animation: none;
}
#bugiChat[data-office-support="0"] .bugi-chat__header strong { color: var(--bugi-ink); font-size: 17px; font-weight: 800; letter-spacing: -.5px; }
#bugiChat[data-office-support="0"] .bugi-chat__header span { color: #60738d; font-size: 11px; line-height: 1.5; opacity: 1; }
#bugiChat[data-office-support="0"] .bugi-chat__header i { width: 6px; height: 6px; margin-right: 5px; background: #2975e7; box-shadow: none; animation: none; }
#bugiChat[data-office-support="0"].is-human .bugi-chat__header i { background: #22a078; }
#bugiChat[data-office-support="0"] .bugi-chat__close {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 12px; background: #f1f5fa;
  color: #536a85; font-size: 26px; font-weight: 400;
}
#bugiChat[data-office-support="0"] .bugi-chat__close:hover { background: #e6eef9; color: #174c91; }
#bugiChat[data-office-support="0"] .bugi-chat__messages {
  min-height: 0; padding: 20px; gap: 16px; background: #f5f8fd;
  overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c8d5e7 transparent;
}
#bugiChat[data-office-support="0"] .bugi-chat__welcome { min-height: 0; gap: 14px; flex: 0 0 auto; }
#bugiChat[data-office-support="0"] .bugi-chat__welcome-copy {
  display: flex; position: relative; min-height: 144px; padding: 20px 112px 20px 19px;
  flex-direction: row; align-items: center; overflow: hidden; text-align: left;
  border: 1px solid #dce9fa; border-radius: 19px;
  background: linear-gradient(115deg, #fff 15%, #edf5ff 100%); box-shadow: none;
}
#bugiChat[data-office-support="0"] .bugi-chat__welcome-copy::before { right: -35px; bottom: -65px; width: 185px; height: 185px; background: #dbeaff75; }
#bugiChat[data-office-support="0"] .bugi-chat__welcome-copy > div { max-width: 100%; min-width: 0; }
#bugiChat[data-office-support="0"] .bugi-chat__welcome-copy strong { color: #153961; font-size: 21px; font-weight: 800; line-height: 1.35; letter-spacing: -.7px; }
#bugiChat[data-office-support="0"] .bugi-chat__welcome-copy span { margin-top: 9px; color: #536b89; font-size: 13px; line-height: 1.65; letter-spacing: -.2px; }
#bugiChat[data-office-support="0"] .bugi-chat__welcome-character {
  position: absolute; right: 10px; top: 50%; bottom: auto; width: 98px; height: 112px;
  align-self: auto; object-fit: contain; transform: translateY(-50%); filter: drop-shadow(0 5px 8px #244d7920);
}
#bugiChat[data-office-support="0"] .bugi-chat__welcome-character--mobile { display: none; }
#bugiChat[data-office-support="0"] .bugi-chat__welcome-trust { justify-content: flex-start; padding: 0 3px; gap: 10px; font-size: 11px; color: #647892; }
#bugiChat[data-office-support="0"] .bugi-chat__welcome-trust i { width: 6px; height: 6px; background: #397de3; box-shadow: none; }
#bugiChat[data-office-support="0"] .bugi-chat__quick {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  width: 100%; padding: 0; background: transparent; overflow: visible;
}
#bugiChat[data-office-support="0"] .bugi-chat__quick p { grid-column: 1 / -1; margin: 3px 0 2px; color: #516986; font-size: 12px; font-weight: 700; }
#bugiChat[data-office-support="0"] .bugi-chat__quick button {
  width: 100%; min-width: 0; min-height: 48px; padding: 11px 24px 11px 13px;
  border: 1px solid #dce6f3; border-radius: 13px; background: #fff;
  color: #2e4a6d; font-size: 13px; font-weight: 650; line-height: 1.5;
  white-space: normal; word-break: keep-all; overflow-wrap: anywhere; text-align: left;
  box-shadow: 0 2px 5px #18396203; transition: border-color .15s, background .15s;
}
#bugiChat[data-office-support="0"] .bugi-chat__quick button::after { right: 10px; color: #8ca5c5; font-size: 18px; }
#bugiChat[data-office-support="0"] .bugi-chat__quick button:last-child:nth-child(even) { grid-column: 1 / -1; background: #eaf2ff; border-color: #d4e4fb; color: #195ab7; }
#bugiChat[data-office-support="0"] .bugi-chat__quick button:hover { border-color: #86ade9; background: #edf5ff; color: #164e9d; box-shadow: none; }
#bugiChat[data-office-support="0"] .bugi-chat__privacy { padding: 0 2px; color: #71829a; font-size: 10px; line-height: 1.6; text-align: left; }

/* Reading and replying remain the main actions after the first question. */
#bugiChat[data-office-support="0"] .bugi-chat__bubble { max-width: 91%; padding: 13px 15px; font-size: 14px; line-height: 1.7; border-radius: 18px; box-shadow: none; }
#bugiChat[data-office-support="0"] .bugi-chat__bubble--bot { max-width: 97%; margin-top: 16px; color: #2b415e; border: 1px solid #e0e7f2; border-top-left-radius: 5px; background: #fff; }
#bugiChat[data-office-support="0"] .bugi-chat__bubble--bot::before { top: -20px; left: 2px; color: #627b9b; font-size: 11px; font-weight: 700; }
#bugiChat[data-office-support="0"] .bugi-chat__bubble--user { color: #fff; background: #1765de; border-bottom-right-radius: 5px; }
#bugiChat[data-office-support="0"] .bugi-chat__bubble--system { max-width: 100%; padding: 10px 13px; margin: 0 auto; border-color: #e3eaf4; border-radius: 12px; color: #62748c; background: #edf2f9; font-size: 12px; line-height: 1.6; }
#bugiChat[data-office-support="0"] .bugi-chat__answer-title { color: #1d4379; font-size: 15px; line-height: 1.5; font-weight: 800; }
#bugiChat[data-office-support="0"] .bugi-chat__answer-line { margin: 7px 0; color: #3c526e; line-height: 1.75; }
#bugiChat[data-office-support="0"] .bugi-chat__answer-note { color: #446487; font-size: 12px; line-height: 1.6; background: #f0f6ff; }
#bugiChat[data-office-support="0"] .bugi-chat__message-meta { color: #6e8199; font-size: 11px; }
#bugiChat[data-office-support="0"] .bugi-chat__feedback { gap: 6px; margin-top: 13px; padding-top: 10px; border-color: #edf1f7; }
#bugiChat[data-office-support="0"] .bugi-chat__feedback small { color: #73859b; font-size: 11px; }
#bugiChat[data-office-support="0"] .bugi-chat__feedback button { min-height: 30px; padding: 5px 9px; color: #627a97; font-size: 11px; border-radius: 9px; }
#bugiChat[data-office-support="0"] .bugi-chat__product-choices button,
#bugiChat[data-office-support="0"] .bugi-chat__cta button { min-height: 37px; height: auto; padding: 8px 11px; border-radius: 10px; font-size: 12px; line-height: 1.5; white-space: normal; }
#bugiChat[data-office-support="0"] .bugi-chat__links {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 0 0 auto;
  gap: 7px; padding: 12px 16px 4px; border-top: 1px solid #e8edf5; background: #fff;
}
#bugiChat[data-office-support="0"] .bugi-chat__links button {
  min-width: 0; min-height: 36px; padding: 8px 4px; border: 1px solid #dfE8f5;
  border-radius: 10px; color: #42658e; background: #f5f8fd; font-size: 12px; font-weight: 700; line-height: 1.4;
}
#bugiChat[data-office-support="0"] .bugi-chat__links .bugi-chat__handoff { border-color: #cfdef7; color: #195ac0; background: #edf4ff; }
#bugiChat[data-office-support="0"] .bugi-chat__links .bugi-chat__finish { color: #697c93 !important; background: #fff !important; border-color: #e1e8f2 !important; }
#bugiChat[data-office-support="0"] .bugi-chat__links button:hover { background: #e8f1ff; border-color: #b8cfef; }
#bugiChat[data-office-support="0"] .bugi-chat__form { flex: 0 0 auto; align-items: flex-end; padding: 8px 16px; gap: 8px; background: #fff; }
#bugiChat[data-office-support="0"] .bugi-chat__form textarea {
  min-width: 0; min-height: 48px; max-height: 110px; padding: 12px 13px; border: 1px solid #d6e1f0;
  border-radius: 15px; background: #f8fafd; color: #223d5c; font-size: 15px; line-height: 1.5; box-shadow: none;
}
#bugiChat[data-office-support="0"] .bugi-chat__form textarea::placeholder { color: #8596ae; }
#bugiChat[data-office-support="0"] .bugi-chat__form textarea:focus { background: #fff; border-color: #73a4ef; box-shadow: 0 0 0 3px #1765de0a; outline: none; }
#bugiChat[data-office-support="0"] .bugi-chat__form button { flex: 0 0 48px; width: 48px; height: 48px; padding: 0; border-radius: 15px; color: #fff; background: #1765de; box-shadow: none; font-size: 20px; }
#bugiChat[data-office-support="0"] button:disabled { cursor: default; opacity: .48; box-shadow: none; }
#bugiChat[data-office-support="0"] .bugi-chat__form button:disabled { opacity: 1; color: #97abc6; background: #e8eef7; }
#bugiChat[data-office-support="0"] .bugi-chat__notice { flex: 0 0 auto; margin: 0; padding: 0 14px 12px; color: #76879d; font-size: 10px; line-height: 1.5; }
#bugiChat[data-office-support="0"] .bugi-chat__contact { margin: 7px 16px; padding: 14px; border-color: #dbe6f5; background: #f5f8fe; border-radius: 15px; }
#bugiChat[data-office-support="0"] .bugi-chat__contact strong,
#bugiChat[data-office-support="0"] .bugi-chat__intake-head strong { color: #244a7c; font-size: 15px; }
#bugiChat[data-office-support="0"] .bugi-chat__contact label,
#bugiChat[data-office-support="0"] .bugi-chat__intake-grid label,
#bugiChat[data-office-support="0"] .bugi-chat__consent { color: #566e8b; font-size: 12px; line-height: 1.5; }
#bugiChat[data-office-support="0"] .bugi-chat__contact input:not([type="checkbox"]),
#bugiChat[data-office-support="0"] .bugi-chat__intake input:not([type="checkbox"]),
#bugiChat[data-office-support="0"] .bugi-chat__intake textarea,
#bugiChat[data-office-support="0"] .bugi-chat__intake select { font-size: 15px; border-color: #ccdbee; border-radius: 10px; }
#bugiChat[data-office-support="0"] .bugi-chat__intake-head small,
#bugiChat[data-office-support="0"] .bugi-chat__contact small { color: #71829a; font-size: 11px; line-height: 1.5; }

@media (max-width: 760px) {
  #bugiChat[data-office-support="0"][data-standalone="1"] .bugi-chat__header { min-height: 65px; padding: 10px 15px; }
  #bugiChat[data-office-support="0"][data-standalone="1"] .bugi-chat__header img { width: 39px; height: 39px; }
  #bugiChat[data-office-support="0"][data-standalone="1"] .bugi-chat__welcome-character--desktop { display: none; }
  #bugiChat[data-office-support="0"][data-standalone="1"] .bugi-chat__welcome-character--mobile { display: block; }
}
@media (max-width: 759px) {
  #bugiChat[data-office-support="0"][data-standalone="0"] { bottom: var(--bugi-renew-bottom, calc(70px + env(safe-area-inset-bottom, 0px))); }
  #bugiChat[data-office-support="0"][data-standalone="0"] .bugi-chat__launcher { width: 68px; height: 88px; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
  #bugiChat[data-office-support="0"] .bugi-chat__launcher::before { display: none; }
  #bugiChat[data-office-support="0"] .bugi-chat__mascot { right: 3px; bottom: 25px; width: 62px; height: 62px; border: 2px solid #fff; border-radius: 22px; background: #eef5ff; box-shadow: 0 6px 20px #25518b24; animation: bugi-brand-float 6s ease-in-out infinite; }
  #bugiChat[data-office-support="0"] .bugi-chat__mascot-image--desktop { display: none; }
  #bugiChat[data-office-support="0"] .bugi-chat__mascot-image--mobile { display: block; top: -2px; left: -2px; width: 63px; height: 66px; object-fit: cover; object-position: center top; animation: none; }
  #bugiChat[data-office-support="0"] .bugi-chat__launcher-speech,
  #bugiChat[data-office-support="0"] .bugi-chat__sparkle { display: none; }
  #bugiChat[data-office-support="0"] .bugi-chat__launcher-caption { right: 0; bottom: 0; min-width: 68px; height: 24px; padding: 0 8px; gap: 4px; border-color: #d9e5f6; color: #205aab; font-size: 10px; box-shadow: 0 3px 10px #244c8014; backdrop-filter: none; }
  #bugiChat[data-office-support="0"] .bugi-chat__launcher-caption i { width: 5px; height: 5px; background: #377cdc; animation: none; }
  #bugiChat[data-office-support="0"][data-standalone="0"] .bugi-chat__panel {
    right: 8px; left: 8px; top: calc(var(--bugi-viewport-top, 0px) + env(safe-area-inset-top, 0px) + 8px); bottom: auto;
    width: auto; height: calc(var(--bugi-viewport-height, 100dvh) - var(--bugi-renew-bottom, calc(70px + env(safe-area-inset-bottom, 0px))) - 16px - env(safe-area-inset-top, 0px));
    max-height: none; border-radius: 22px;
  }
  #bugiChat[data-office-support="0"] .bugi-chat__header { min-height: 65px; padding: 10px 14px; gap: 10px; }
  #bugiChat[data-office-support="0"] .bugi-chat__header img { width: 40px; height: 40px; border-radius: 13px; }
  #bugiChat[data-office-support="0"] .bugi-chat__header strong { font-size: 16px; }
  #bugiChat[data-office-support="0"] .bugi-chat__messages { padding: 14px; gap: 14px; }
  #bugiChat[data-office-support="0"] .bugi-chat__welcome { gap: 12px; }
  #bugiChat[data-office-support="0"] .bugi-chat__welcome-copy { min-height: 136px; padding: 17px 99px 17px 15px; border-radius: 16px; }
  #bugiChat[data-office-support="0"] .bugi-chat__welcome-copy strong { font-size: 20px; }
  #bugiChat[data-office-support="0"] .bugi-chat__welcome-copy span { font-size: 13px; line-height: 1.6; }
  #bugiChat[data-office-support="0"] .bugi-chat__welcome-character--desktop { display: none; }
  #bugiChat[data-office-support="0"] .bugi-chat__welcome-character--mobile { display: block; right: 6px; width: 88px; height: 96px; }
  #bugiChat[data-office-support="0"] .bugi-chat__quick button { min-height: 47px; padding: 10px 22px 10px 11px; font-size: 12px; }
  #bugiChat[data-office-support="0"] .bugi-chat__quick p { font-size: 12px; }
  #bugiChat[data-office-support="0"] .bugi-chat__welcome-trust { gap: 7px; font-size: 10px; }
  #bugiChat[data-office-support="0"] .bugi-chat__privacy { font-size: 10px; }
  #bugiChat[data-office-support="0"] .bugi-chat__bubble { font-size: 14px; }
  #bugiChat[data-office-support="0"] .bugi-chat__links { padding: 10px 12px 4px; gap: 6px; }
  #bugiChat[data-office-support="0"] .bugi-chat__links button { min-height: 35px; font-size: 11px; }
  #bugiChat[data-office-support="0"] .bugi-chat__form { padding: 7px 12px; }
  #bugiChat[data-office-support="0"] .bugi-chat__form textarea { min-height: 46px; padding: 10px 12px; font-size: 16px; }
  #bugiChat[data-office-support="0"] .bugi-chat__form button { flex-basis: 46px; width: 46px; height: 46px; border-radius: 14px; }
  #bugiChat[data-office-support="0"] .bugi-chat__contact { margin: 6px 12px; }
  #bugiChat[data-office-support="0"] .bugi-chat__contact input:not([type="checkbox"]),
  #bugiChat[data-office-support="0"] .bugi-chat__intake input:not([type="checkbox"]),
  #bugiChat[data-office-support="0"] .bugi-chat__intake textarea,
  #bugiChat[data-office-support="0"] .bugi-chat__intake select { font-size: 16px; }
  #bugiChat[data-office-support="0"] .bugi-chat__notice { padding: 0 12px 9px; font-size: 10px; }
}
@media (max-width: 360px) {
  #bugiChat[data-office-support="0"] .bugi-chat__welcome-copy { padding-right: 78px; }
  #bugiChat[data-office-support="0"] .bugi-chat__welcome-character--mobile { right: 3px; width: 70px; height: 86px; }
  #bugiChat[data-office-support="0"] .bugi-chat__welcome-copy strong { font-size: 18px; }
  #bugiChat[data-office-support="0"] .bugi-chat__quick button { font-size: 12px; padding-left: 9px; }
}
@keyframes bugi-brand-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-4px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) {
  #bugiChat[data-office-support="0"] *, #bugiChat[data-office-support="0"] *::before, #bugiChat[data-office-support="0"] *::after { animation: none !important; transition: none !important; }
}
