:root { color-scheme: light;
--medicarama-teal: #4ab4af;
--medicarama-bg: #ffffff;
--medicarama-surface: #f9f9f9;
--medicarama-text: #222;
--medicarama-muted: #6b7280;
--medicarama-font: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
--radius: 12px;
--shadow: 0 10px 30px rgba(0, 0, 0, .15);
} #full-chat-container {
width: 100%;
max-width: 1000px; margin: 1rem auto; height: 60vh; display: flex;
flex-direction: column;
border: 1px solid #e5e7eb;
border-radius: var(--radius);
box-shadow: var(--shadow);
overflow: hidden;
} #chat-window {
position: relative; width: 100%;
height: 100%;
max-width: none;
max-height: none;
display: flex !important; flex-direction: column;
z-index: 1;
box-shadow: none; border: none;
border-radius: 0;
} #chat-header {
background: var(--medicarama-teal);
color: #fff;
padding: 12px 14px;
display: flex;
align-items: center;
gap: 10px;
}
#chat-header .avatar {
width: 52px;
height: 52px;
border-radius: 50%;
background: rgba(255, 255, 255, .25); display: block;
overflow: hidden; }
#chat-header .avatar img {
width: 100%;
height: 100%;
object-fit: cover; }
#chat-header .title { font-weight: 700; line-height: 1.2; }
#chat-header .subtitle { font-size: 12px; opacity: .9; }
#chat-tools { margin-left: auto; display: flex; gap: 6px; align-items: center; }
#chat-clear { background: transparent;
border: 0;
color: #fff;
cursor: pointer;
font-size: 18px;
line-height: 1;
display: grid;
place-items: center;
}
#chat-messages {
flex: 1;
padding: 14px;
overflow: auto;
background: var(--medicarama-surface);
color: var(--medicarama-text);
scroll-behavior: smooth;
}
.msg { max-width: 85%; margin: 8px 0; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.msg p, .msg ul, .msg ol { margin: 0 0 10px 0; }
.msg p:last-child { margin: 0; }
.msg ul, .msg ol { padding-left: 20px; }
.msg time { display: block; margin-top: 6px; font-size: 11px; color: var(--medicarama-muted); }
.msg.user { margin-left: auto; background: #e9e9eb !important; color: #333 !important; border-bottom-right-radius: 6px; }
.msg.bot { margin-right: auto; background: var(--medicarama-teal) !important; color: #fff !important; border-bottom-left-radius: 6px; }
.msg.bot a { color: #fff; text-decoration: underline; font-weight: 600; }
.msg.bot a:hover { text-decoration: none; }
.typing { display: inline-flex; gap: 6px; align-items: center; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; animation: blink 1s infinite; }
.dot:nth-child(2) { animation-delay: .15s }
.dot:nth-child(3) { animation-delay: .3s }
@keyframes blink { 0%, 80%, 100% { opacity: .2 } 40% { opacity: 1 } }
#chat-input-bar {
display: flex;
gap: 8px;
align-items: flex-end;
padding: 10px;
background: var(--medicarama-bg);
border-top: 1px solid #e5e7eb;
}
#chat-input {
flex: 1;
resize: none;
border: 1px solid #cfd4dc;
border-radius: 10px;
padding: 10px 12px;
min-height: 42px;
max-height: 120px;
font: 14px/1.4 var(--medicarama-font);
box-sizing: border-box;
transition: border-color .15s, box-shadow .15s;
color: var(--medicarama-text);
background-color: var(--medicarama-bg);
}
#chat-input:focus { outline: none; border-color: var(--medicarama-teal); box-shadow: 0 0 0 .2rem rgba(74, 180, 175, .25); }
#send-btn {
height: 42px;
padding: 0 14px;
border-radius: 10px;
border: 0;
cursor: pointer;
font-weight: 700;
color: #fff;
background: var(--medicarama-teal);
transition: filter .15s, transform .1s;
display: inline-grid;
place-items: center;
}
#send-btn:hover { filter: brightness(1.05) }
#send-btn:active { transform: translateY(1px) }
#send-btn[disabled] { opacity: .6; cursor: not-allowed }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; } .msg.bot pre,
.msg.bot code {
background: transparent; color: inherit; font-family: inherit; padding: 0; white-space: pre-wrap; }  @media (max-width: 921px) {
.miriam-alumnado-page.ast-separate-container .ast-article-single,
.miriam-alumnado-page .ast-separate-container .ast-article-single {
padding-left: 0 !important;
padding-right: 0 !important;
}
.miriam-alumnado-page.ast-separate-container .entry-content,
.miriam-alumnado-page .ast-separate-container .entry-content {
padding-left: 0 !important;
padding-right: 0 !important;
}
.miriam-alumnado-page .site-content > .ast-container {
padding-left: 0 !important;
padding-right: 0 !important;
}
}
@media (max-width: 768px) {
#full-chat-container {
width: 100%;
max-width: none;
height: 65vh;
margin: 0;
border: none;
border-radius: 0;
box-shadow: none;
}
#chat-header {
padding: 10px 14px;
}
#chat-header .avatar {
width: 36px;
height: 36px;
}
#chat-header .title {
font-size: 15px;
}
#chat-header .subtitle {
font-size: 11px;
}
#chat-messages {
padding: 10px;
scroll-behavior: auto;
color: var(--medicarama-text) !important;
}
.msg {
font-size: 14px;
padding: 8px 12px;
border-radius: 16px;
}
.msg time {
font-size: 10px;
}
.msg.user {
background: #e9e9eb !important;
color: #333 !important;
}
.msg.bot {
background: var(--medicarama-teal) !important;
color: #fff !important;
}
#send-btn {
display: none !important;
}
#chat-input {
border-radius: 20px;
font-size: 16px; padding: 10px 14px;
-webkit-appearance: none;
appearance: none;
color: var(--medicarama-text) !important;
background-color: var(--medicarama-bg) !important;
}
#chat-input-bar {
padding: 8px 12px;
padding-bottom: calc(8px + env(safe-area-inset-bottom));
gap: 0;
} #full-chat-container.keyboard-open {
position: fixed !important;
inset: 0 !important;
width: 100% !important;
height: 100% !important;
max-width: none !important;
max-height: none !important;
z-index: 9999 !important;
margin: 0 !important;
border-radius: 0 !important;
}
}