:root {
--clinic-navy: #1f3a5f;
--clinic-greige: #6f6a64;
--clinic-light-greige: #eaeae8; } #chat-button-container {
position: fixed;
bottom: 20px;
right: 25px;
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
z-index: 1000;
transition: all 0.3s ease;
}
@media (max-width: 768px) {
#chat-button-container {
bottom: 65px;
right: 5px;
}
} #chat-button-container:hover {
transform: translateY(-5px);
} .chat-icon-bubble {
background-color: var(--clinic-navy);
color: white;
width: 90px; height: 90px;
border-radius: 50%;
display: flex;
flex-direction: column; justify-content: center;
align-items: center;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#icon-closed {
font-size: 28px; line-height: 1;
} .chat-button-text {
margin-top: 2px; font-size: 14px; font-weight: bold;
color: #fff; letter-spacing: 0.05em; }
.hidden {
display: none !important;
}
html.chat-open,
body.chat-open {
overflow: hidden;
height: 100%;
overscroll-behavior: none;
}
#yo-ai-chat-root,
#yo-ai-chat-root-inner {
position: fixed;
inset: 0;
z-index: 9999;
pointer-events: none;
overscroll-behavior: none;
}
#chat-button-container,
#chat-window {
pointer-events: auto;
} #chat-window {
position: fixed;
bottom: 110px; right: 25px;
width: 370px;
height: 550px;
background: rgba(255, 255, 255, 0.75);
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
border-radius: 20px;
border: 1px solid rgba(255, 255, 255, 0.3);
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
display: flex;
flex-direction: column;
overflow: hidden;
z-index: 1000;
transition: all 0.3s ease;
}
@media screen and (max-width: 768px) {
#chat-window {
position: fixed !important;
inset: 0 !important;
width: 100vw !important;
height: var(--chat-app-height, 100vh) !important;
max-width: 100vw !important;
max-height: var(--chat-app-height, 100vh) !important;
margin: 0 !important;
border-radius: 0 !important;
right: auto !important;
bottom: auto !important;
left: 0 !important;
top: 0 !important;
transform: none !important;
z-index: 10002 !important;
}
} #chat-header {
background: rgba(31, 58, 95, 0.9);
color: white;
padding: 15px 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.header-left {
display: flex;
align-items: center;
}
.clinic-logo {
height: 30px;
width: auto;
margin-right: 10px;
}
.clinic-name {
font-size: 17px;
font-weight: 600;
letter-spacing: 0.5px;
}
.close-button {
font-size: 24px;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
} #chat-messages {
flex: 1;
padding: 20px;
overflow-y: auto;
min-height: 0;
background: transparent;
display: flex;
flex-direction: column;
gap: 15px;
}
.message {
padding: 12px 16px;
border-radius: 15px;
max-width: 85%;
font-size: 14px;
line-height: 1.6;
word-wrap: break-word;
}
.message.user {
white-space: pre-wrap;
} .message.user {
background: var(--clinic-navy);
color: white;
align-self: flex-end;
border-bottom-right-radius: 2px;
} .message.bot {
background: rgba(234, 234, 232, 0.8);
color: #333;
align-self: flex-start;
border-bottom-left-radius: 2px;
} .typing {
display: flex;
gap: 4px;
padding: 10px 15px !important;
}
.dot {
width: 6px;
height: 6px;
background: var(--clinic-navy);
border-radius: 50%;
animation: wave 1.3s linear infinite;
}
.dot:nth-child(2) {
animation-delay: -1.1s;
}
.dot:nth-child(3) {
animation-delay: -0.9s;
}
@keyframes wave {
0%,
60%,
100% {
transform: translateY(0);
}
30% {
transform: translateY(-6px);
}
} #chat-input-area {
position: relative;
padding: 20px;
background: transparent;
border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.input-bubble {
display: flex;
align-items: center;
background: rgba(255, 255, 255, 0.95);
padding: 6px;
border-radius: 30px;
border: 1px solid rgba(0, 0, 0, 0.08);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
#user-input {
flex: 1;
padding: 8px 15px;
border: none;
background: transparent;
font-size: 16px;
outline: none;
} .send-icon-button {
background-color: var(--clinic-greige);
color: white;
width: 36px;
height: 36px;
border-radius: 50%;
border: none;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: background-color 0.2s;
}
.send-icon-button:hover {
background-color: var(--clinic-navy);
} .bot-link-container {
display: flex;
justify-content: center; margin-top: 10px; margin-bottom: 15px;
padding-left: 0; background: transparent !important;
padding: 0 !important;
} .detail-button {
display: inline-block;
padding: 10px 30px; background-color: white; color: #001f5b !important; border: 2px solid #001f5b; text-decoration: none !important;
border-radius: 25px; font-size: 14px;
font-weight: bold;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); transition: all 0.2s ease;
cursor: pointer;
} .detail-button:hover {
background-color: #f0f0f0; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transform: translateY(-1px);
} .detail-button:active {
background-color: #001f5b !important; color: white !important; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); transform: translateY(1px); }
.message.bot p {
margin: 0 0 10px 0;
}
.message.bot p:last-child {
margin-bottom: 0;
}
.message.bot br+br {
display: none;
}
.message.bot h1,
.message.bot h2,
.message.bot h3,
.message.bot h4,
.message.bot h5,
.message.bot h6 {
margin: 0 0 10px 0;
line-height: 1.4;
color: var(--clinic-navy);
font-weight: 700;
}
.message.bot h1 {
font-size: 1.25rem;
}
.message.bot h2 {
font-size: 1.15rem;
}
.message.bot h3 {
font-size: 1.05rem;
}
.message.bot h4,
.message.bot h5,
.message.bot h6 {
font-size: 1rem;
}
.message.bot ul,
.message.bot ol {
margin: 6px 0 10px 0;
padding-left: 1.6em;
list-style-position: outside;
}
.message.bot ul {
list-style-type: disc !important;
}
.message.bot ol {
list-style-type: decimal !important;
}
.message.bot li {
display: list-item !important;
margin-bottom: 4px;
}
.message.bot ul li::marker {
color: #333;
}
.message.bot ol li::marker {
color: #333;
}
.message.bot li:last-child {
margin-bottom: 0;
}
.message.bot blockquote {
margin: 10px 0;
padding: 8px 12px;
border-left: 4px solid var(--clinic-greige);
background: rgba(255, 255, 255, 0.45);
color: #444;
}
.message.bot a {
color: var(--clinic-navy);
text-decoration: underline;
word-break: break-word;
}
.message.bot hr {
border: 0;
border-top: 1px solid #d8d8d8;
margin: 12px 0;
}
.message.bot code {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 0.92em;
background: rgba(255, 255, 255, 0.8);
padding: 2px 6px;
border-radius: 6px;
}
.message.bot pre {
margin: 10px 0;
padding: 12px;
overflow-x: auto;
background: #f7f7f7;
border: 1px solid #dddddd;
border-radius: 10px;
}
.message.bot pre code {
background: transparent;
padding: 0;
border-radius: 0;
display: block;
line-height: 1.6;
white-space: pre;
}
.message.bot table {
width: 100%;
max-width: 100%;
table-layout: auto;
margin-top: 10px;
border-collapse: collapse;
display: block;
overflow-x: auto;
}
.message.bot th {
background: #f7f7f7;
font-weight: 700;
padding: 10px 8px;
border: 1px solid #d9d9d9;
text-align: center;
white-space: nowrap;
}
.message.bot td {
padding: 12px 8px;
border: 1px solid #d9d9d9;
text-align: center;
line-height: 1.5;
white-space: nowrap;
}
.message.bot td:first-child {
font-weight: 600;
white-space: nowrap;
} .bot-action-row {
display: flex;
gap: 16px;
margin-top: 12px;
justify-content: center;
flex-wrap: nowrap;
}
.action-button {
min-width: 122px;
height: 58px;
padding: 0 18px;
border-radius: 10px;
color: #fff;
text-decoration: none !important;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
font-size: 18px;
font-weight: 700;
line-height: 1;
letter-spacing: 0.01em;
box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.action-button:hover {
transform: translateY(-1px);
box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
opacity: 0.97;
}
.action-button-icon {
width: 24px;
height: 24px;
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 24px;
}
.action-button-icon svg {
width: 24px;
height: 24px;
display: block;
stroke: #fff;
fill: none;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}
.action-line .action-button-icon svg {
fill: #fff;
stroke: none;
}
.action-line .action-button-icon svg text {
fill: #49a847;
font-size: 5px;
font-weight: 700;
font-family: Arial, sans-serif;
}
.action-button-label {
white-space: nowrap;
}
.action-web {
background: linear-gradient(180deg, #2e5588 0%, #244975 100%);
}
.action-line {
background: linear-gradient(180deg, #63be58 0%, #4faa48 100%);
}
@media (max-width: 480px) {
.bot-action-row {
gap: 12px;
}
.action-button {
min-width: 116px;
height: 54px;
padding: 0 16px;
font-size: 17px;
}
.action-button-icon,
.action-button-icon svg {
width: 22px;
height: 22px;
}
}
.message.bot table {
width: auto;
table-layout: auto;
margin-top: 10px;
border-collapse: collapse;
}
.message.bot th {
background: #f7f7f7;
font-weight: 700;
padding: 10px 8px;
border: 1px solid #d9d9d9;
text-align: center;
white-space: nowrap;
}
.message.bot td {
padding: 12px 8px;
border: 1px solid #d9d9d9;
text-align: center;
line-height: 1.5;
white-space: nowrap;
}
.message.bot td:first-child {
font-weight: 600;
white-space: nowrap;
}