:root {
  --pkcb-kakao: #fee500;
  --pkcb-ink: #191600;
  --pkcb-muted: #6c6650;
  --pkcb-panel: #fffaf0;
  --pkcb-line: rgba(25, 22, 0, 0.13);
  --pkcb-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
  --pkcb-radius: 24px;
}

.pkcb-widget {
  --pkcb-primary: var(--pkcb-kakao);
  --pkcb-accent: #241f0a;
  --pkcb-surface: var(--pkcb-panel);
  --pkcb-bot-bubble: #ffffff;
  --pkcb-user-bubble: var(--pkcb-kakao);
  --pkcb-button-text: var(--pkcb-ink);
  --pkcb-floating-bottom: 24px;
  --pkcb-floating-right: 24px;
}
body .cosmosfarm-floating-menu { display: none !important; visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
body #scroll-top-link { right: 24px !important; bottom: 108px !important; }
.pkcb-widget, .pkcb-widget * { box-sizing: border-box; }
.pkcb-floating { position: fixed; right: var(--pkcb-floating-right); bottom: var(--pkcb-floating-bottom); z-index: 99999; font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
.pkcb-inline { width: min(100%, 620px); margin: 24px auto; font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
.pkcb-launcher { display: inline-flex; align-items: center; gap: 10px; min-height: 64px; border: 1px solid rgba(216,180,94,.36); border-radius: 999px; padding: 10px 14px 10px 10px; background: linear-gradient(135deg,#071b36 0%,#10284f 58%,#173967 100%); color: #fff !important; font-weight: 800; cursor: pointer; box-shadow: 0 18px 42px rgba(7,27,54,.34); text-decoration: none !important; line-height: 1; letter-spacing: -.03em; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.pkcb-launcher:hover { transform: translateY(-2px); background: linear-gradient(135deg,#06172f 0%,#0d2449 62%,#15335e 100%); box-shadow: 0 22px 50px rgba(7,27,54,.4); }
.pkcb-launcher-icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg,#d8b45e 0%,#f1d48a 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.34), 0 8px 18px rgba(7,27,54,.22); }
.pkcb-launcher-icon svg { width: 25px; height: 25px; display: block; fill: none; stroke: #071b36; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pkcb-launcher-icon svg circle { fill: #071b36; stroke: none; }
.pkcb-launcher-label { display: flex; flex-direction: column; line-height: 1.08; letter-spacing: -.03em; text-align: left; }
.pkcb-launcher-label strong { color: #fff !important; font-size: 16px; font-weight: 950; }
.pkcb-launcher-label span { color: rgba(255,255,255,.78) !important; font-size: 13px; font-weight: 800; margin-top: 2px; }
.pkcb-panel { width: min(92vw, 440px); }
.pkcb-inline .pkcb-panel { width: 100%; }
.pkcb-card { position: relative; overflow: hidden; border: 1px solid var(--pkcb-line); border-radius: var(--pkcb-radius); background: linear-gradient(180deg, #fff 0%, var(--pkcb-surface) 100%); color: var(--pkcb-ink); box-shadow: var(--pkcb-shadow); }
.pkcb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 20px 12px; border-bottom: 1px solid rgba(25, 22, 0, 0.08); background: rgba(255, 255, 255, 0.64); }
.pkcb-head h2 { margin: 4px 0 0; color: var(--pkcb-ink); font-size: 21px; line-height: 1.28; letter-spacing: -0.03em; }
.pkcb-eyebrow { margin: 0; color: var(--pkcb-accent); font-size: 13px; font-weight: 800; }
.pkcb-close { flex: 0 0 auto; width: 32px; height: 32px; border: 1px solid var(--pkcb-line); border-radius: 50%; background: rgba(255,255,255,.75); color: var(--pkcb-ink); font-size: 22px; line-height: 1; cursor: pointer; }
.pkcb-chat { padding: 16px 16px 18px; }
.pkcb-chat-log { display: flex; flex-direction: column; gap: 11px; min-height: 310px; max-height: 52vh; overflow-y: auto; padding: 3px 3px 12px; scroll-behavior: smooth; }
.pkcb-bubble-row { display: flex; align-items: flex-end; gap: 8px; }
.pkcb-bubble-row-user { justify-content: flex-end; }
.pkcb-avatar { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--pkcb-accent); color: #fff; font-size: 12px; font-weight: 900; }
.pkcb-bubble-row-user .pkcb-avatar { background: var(--pkcb-user-bubble); color: var(--pkcb-button-text); }
.pkcb-bubble { max-width: min(82%, 420px); padding: 12px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.58; word-break: keep-all; }
.pkcb-bubble-bot { background: var(--pkcb-bot-bubble); border: 1px solid var(--pkcb-line); color: #29220a; border-bottom-left-radius: 6px; }
.pkcb-bubble-user { background: var(--pkcb-user-bubble); color: var(--pkcb-button-text); border-bottom-right-radius: 6px; font-weight: 700; }
.pkcb-typing { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0 9px 36px; padding: 10px 12px; border: 1px solid var(--pkcb-line); border-radius: 15px; background: var(--pkcb-bot-bubble); width: max-content; }
.pkcb-typing span { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--pkcb-accent); animation: pkcbBlink 1s infinite ease-in-out; }
.pkcb-typing span:nth-child(2) { animation-delay: .16s; }
.pkcb-typing span:nth-child(3) { animation-delay: .32s; }
@keyframes pkcbBlink { 0%, 80%, 100% { opacity: .24; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.pkcb-replies { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pkcb-reply { min-height: 40px; padding: 10px 13px; border: 1px solid rgba(116, 93, 0, .23); border-radius: 999px; background: #fff; color: var(--pkcb-accent); font-weight: 800; cursor: pointer; text-align: left; box-shadow: 0 4px 12px rgba(70, 55, 0, .06); }
.pkcb-reply:hover { background: color-mix(in srgb, var(--pkcb-primary) 24%, #fff); border-color: var(--pkcb-primary); transform: translateY(-1px); }
.pkcb-note { margin: 13px 4px 0; color: var(--pkcb-muted); font-size: 12.5px; line-height: 1.55; }
.pkcb-note-form { margin-top: 12px; padding: 12px; border: 1px solid rgba(25, 22, 0, 0.1); border-radius: 18px; background: rgba(255, 255, 255, .72); }
.pkcb-note-form label { display: block; margin-bottom: 8px; color: #312b11; font-size: 13px; font-weight: 800; }
.pkcb-note-form textarea { width: 100%; resize: vertical; border: 1px solid var(--pkcb-line); border-radius: 14px; padding: 11px 12px; background: #fff; color: #211b05; font: inherit; line-height: 1.55; }
.pkcb-result { margin-top: 14px; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .82); border: 1px solid rgba(25, 22, 0, .1); }
.pkcb-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.pkcb-actions-stack { flex-direction: column; align-items: stretch; }
.pkcb-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 16px; border-radius: 999px; border: 1px solid transparent; font-weight: 800; text-decoration: none !important; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.pkcb-button:hover { transform: translateY(-1px); }
.pkcb-button-primary { background: var(--pkcb-primary); color: var(--pkcb-button-text) !important; box-shadow: 0 10px 22px rgba(0, 0, 0, .16); }
.pkcb-button-secondary { background: var(--pkcb-accent); color: #fff !important; }
.pkcb-button-ghost { background: transparent; color: var(--pkcb-accent) !important; border-color: var(--pkcb-line); }
.pkcb-copy-label { display: block; margin: 0 0 8px; font-weight: 800; color: var(--pkcb-ink); }
.pkcb-copy-box { width: 100%; resize: vertical; border: 1px solid var(--pkcb-line); border-radius: 16px; padding: 13px; background: #fff; color: #211b05; font: inherit; line-height: 1.55; }
.pkcb-paste-help { margin: 9px 0 0; color: var(--pkcb-accent); font-size: 13px; font-weight: 800; line-height: 1.5; }
.pkcb-returned-from-kakao .pkcb-paste-help { padding: 9px 11px; border-radius: 12px; background: color-mix(in srgb, var(--pkcb-primary) 18%, #fff); }
.pkcb-desktop-help { margin-top: 14px; border-top: 1px solid var(--pkcb-line); padding-top: 12px; }
.pkcb-desktop-help p { color: var(--pkcb-muted); font-size: 13px; line-height: 1.55; }
.pkcb-desktop-help img { display: block; width: 132px; height: 132px; object-fit: contain; margin: 0 auto 8px; }
.pkcb-toast { position: absolute; left: 18px; right: 18px; bottom: 16px; padding: 12px 14px; border-radius: 14px; background: #211b05; color: #fff; font-weight: 800; text-align: center; opacity: 0; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
.pkcb-toast.is-visible { opacity: 1; transform: translateY(0); }
.pkcb-noscript { padding: 14px 22px 22px; }
[hidden] { display: none !important; }

@supports not (background: color-mix(in srgb, #fff 50%, #000)) {
  .pkcb-reply:hover { background: #fff7bf; }
  .pkcb-returned-from-kakao .pkcb-paste-help { background: #fff7bf; }
}

/* Prestige floating consultation panel theme — restored from the prepared custom modal design. */
.pkcb-floating {
  z-index: 2147483647;
  --pkcb-primary: #10284f !important;
  --pkcb-accent: #071b36 !important;
  --pkcb-surface: #f5f8fc !important;
  --pkcb-bot-bubble: #ffffff !important;
  --pkcb-user-bubble: #10284f !important;
  --pkcb-button-text: #ffffff !important;
  --pkcb-ink: #071b36 !important;
  --pkcb-muted: #53647a !important;
  --pkcb-line: rgba(16, 40, 79, .14) !important;
  --pkcb-shadow: 0 26px 70px rgba(7, 27, 54, .26) !important;
}
.pkcb-floating .pkcb-panel {
  position: fixed;
  right: 22px;
  bottom: calc(var(--pkcb-floating-bottom) + 68px);
  width: min(440px, calc(100vw - 36px));
  height: min(760px, calc(100svh - 120px));
  max-height: min(760px, calc(100svh - 120px));
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(7, 27, 54, .34);
  overflow: hidden;
}
.pkcb-floating .pkcb-card {
  height: 100%;
  max-height: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%) !important;
  border-color: rgba(16, 40, 79, .16) !important;
  box-shadow: none !important;
}
.pkcb-floating .pkcb-head {
  flex: 0 0 auto;
  padding-right: 58px !important;
  background: linear-gradient(135deg, #071b36 0%, #10284f 72%, #173967 100%) !important;
  border-bottom: 0 !important;
  color: #fff !important;
}
.pkcb-floating .pkcb-head h2 {
  color: #fff !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .1);
}
.pkcb-floating .pkcb-eyebrow {
  color: #e7c978 !important;
  letter-spacing: .01em;
}
.pkcb-floating .pkcb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, .94) !important;
  border-color: rgba(255, 255, 255, .45) !important;
  color: #071b36 !important;
  box-shadow: 0 8px 18px rgba(7, 27, 54, .13);
}
.pkcb-floating .pkcb-chat {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.pkcb-floating .pkcb-chat-log {
  flex: 1 1 auto;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.pkcb-floating .pkcb-replies {
  flex: 0 0 auto;
  max-height: none !important;
  overflow-y: visible !important;
  overscroll-behavior: contain;
  scrollbar-width: auto;
  padding-right: 2px;
}
.pkcb-floating .pkcb-note-form,
.pkcb-floating .pkcb-result,
.pkcb-floating .pkcb-note {
  flex: 0 0 auto;
}
.pkcb-floating .pkcb-bubble {
  max-width: 78% !important;
}
.pkcb-floating .pkcb-bubble-row-bot .pkcb-avatar {
  background: linear-gradient(135deg, #d8b45e 0%, #f1d48a 100%) !important;
  color: #071b36 !important;
  border: 1px solid rgba(7, 27, 54, .12) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 6px 14px rgba(7, 27, 54, .12) !important;
}
.pkcb-floating .pkcb-bubble-row-user .pkcb-avatar {
  background: #10284f !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
}
.pkcb-floating .pkcb-bubble-bot {
  border-color: rgba(16, 40, 79, .13) !important;
  color: #17243a !important;
  box-shadow: 0 6px 16px rgba(7, 27, 54, .05);
}
.pkcb-floating .pkcb-bubble-user {
  background: linear-gradient(135deg, #10284f 0%, #173967 100%) !important;
  color: #fff !important;
}
.pkcb-floating .pkcb-reply {
  min-height: 36px !important;
  padding: 9px 12px !important;
  border-color: rgba(16, 40, 79, .18) !important;
  color: #10284f !important;
  font-size: 13px !important;
  box-shadow: 0 7px 18px rgba(7, 27, 54, .07);
}
.pkcb-floating .pkcb-reply:hover {
  background: #eef4fb !important;
  border-color: #10284f !important;
}
.pkcb-floating .pkcb-typing span {
  background: #d8b45e !important;
}
.pkcb-floating .pkcb-paste-help,
.pkcb-floating .pkcb-button-ghost {
  color: #10284f !important;
}
.pkcb-floating .pkcb-copy-label {
  color: #071b36 !important;
}
.pkcb-floating .pkcb-copy-box,
.pkcb-floating .pkcb-note-form textarea {
  border-color: rgba(16, 40, 79, .18) !important;
  color: #17243a !important;
}
.pkcb-floating .pkcb-note-form label {
  color: #10284f !important;
}
.pkcb-floating .pkcb-result {
  background: rgba(255, 255, 255, .9) !important;
  border-color: rgba(16, 40, 79, .13) !important;
}
.pkcb-floating .pkcb-button-primary {
  background: linear-gradient(135deg, #10284f 0%, #173967 100%) !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(7, 27, 54, .22) !important;
}
.pkcb-floating .pkcb-button-secondary {
  background: #d8b45e !important;
  color: #071b36 !important;
  border-color: #d8b45e !important;
}
.pkcb-floating .pkcb-button-ghost {
  border-color: rgba(16, 40, 79, .18) !important;
  background: rgba(255, 255, 255, .6) !important;
}
.pkcb-floating .pkcb-note {
  display: none !important;
}
.pkcb-floating .pkcb-chat-log::-webkit-scrollbar,
.pkcb-floating .pkcb-replies::-webkit-scrollbar { width: 7px; }
.pkcb-floating .pkcb-chat-log::-webkit-scrollbar-thumb,
.pkcb-floating .pkcb-replies::-webkit-scrollbar-thumb { background: rgba(16, 40, 79, .42); border-radius: 999px; }

@media (max-width: 760px) {
  body #scroll-top-link { right: 18px !important; bottom: 86px !important; }
  .pkcb-floating { right: 14px; bottom: var(--pkcb-floating-bottom); left: auto; }
  .pkcb-floating .pkcb-panel { left: 12px; right: 12px; bottom: calc(var(--pkcb-floating-bottom) + 66px); width: auto; height: calc(100svh - 104px); max-height: calc(100svh - 104px); border-radius: 24px; }
  .pkcb-floating .pkcb-card { border-radius: 24px !important; }
  .pkcb-launcher { min-height: 52px; padding: 8px; border-radius: 50%; }
  .pkcb-launcher-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pkcb-launcher-icon { width: 52px; height: 52px; flex-basis: 52px; }
  .pkcb-head { padding: 18px 16px 10px; }
  .pkcb-chat { padding: 14px; }
  .pkcb-chat-log { min-height: 300px; max-height: 56vh; }
  .pkcb-bubble { max-width: 86%; font-size: 14px; }
  .pkcb-replies { flex-direction: column; }
  .pkcb-reply { width: 100%; }
}
