/* Med IT Miami AI chat widget */
.mimc-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 9998; width: 68px; height: 68px; padding: 0; border: 3px solid #0F766E; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 12px 30px rgba(14, 42, 51, .3); cursor: pointer; transition: transform .2s, border-color .2s, opacity .2s; }
.mimc-launcher:hover { border-color: #0E2A33; transform: translateY(-2px); }
.mimc-launcher.is-waiting { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px); }
.mimc-face { display: block; width: 100%; height: 100%; object-fit: cover; }
.mimc-head-face { width: 36px; height: 36px; border-radius: 50%; background: #fff; flex: none; }
/* Medi's greeting bubble */
.mimc-greet { position: fixed; right: 20px; bottom: 100px; z-index: 9998; max-width: min(290px, calc(100vw - 40px)); display: flex; align-items: flex-start; gap: .25rem; padding: .35rem .35rem .35rem 0; background: #fff; border: 1px solid rgba(14, 42, 51, .12); border-radius: 16px 16px 4px 16px; box-shadow: 0 16px 40px rgba(14, 42, 51, .22); font-family: "Poppins", system-ui, sans-serif; animation: mimc-pop .25s ease-out; }
.mimc-greet-text { flex: 1; padding: .7rem .4rem .7rem 1rem; border: 0; background: transparent; text-align: left; color: #0E2A33; font: 500 .95rem/1.4 "Poppins", system-ui, sans-serif; cursor: pointer; border-radius: 12px; }
.mimc-greet-close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #3D525A; cursor: pointer; }
.mimc-greet-close:hover { background: #F3F7F6; }
.mimc-greet :focus-visible { outline: 3px solid rgba(15, 118, 110, .45); outline-offset: 2px; }
@keyframes mimc-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mimc-greet { animation: none; } .mimc-launcher { transition: none; } }
.mimc-launcher:focus-visible { outline: 3px solid #5EEAD4; outline-offset: 3px; }
.mimc-panel { position: fixed; right: 20px; bottom: 100px; z-index: 9999; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(14, 42, 51, .3); font-family: "Poppins", system-ui, sans-serif; }
.mimc-panel[hidden] { display: none; }
.mimc-head { display: flex; align-items: center; gap: .6rem; background: #0F766E; color: #fff; padding: .9rem 1rem; }
.mimc-head strong { font-size: .98rem; }
.mimc-status { font-size: .72rem; background: rgba(255, 255, 255, .18); padding: .2rem .55rem; border-radius: 999px; }
.mimc-close { margin-left: auto; background: transparent; border: 0; color: #fff; cursor: pointer; padding: .25rem; border-radius: 8px; line-height: 0; }
.mimc-close:hover { background: rgba(255, 255, 255, .15); }
.mimc-notice { margin: 0; padding: .55rem 1rem; font-size: .76rem; line-height: 1.4; color: #3D525A; background: #E3F2EF; }
.mimc-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: #F3F7F6; }
.mimc-msg { max-width: 85%; padding: .65rem .9rem; border-radius: 14px; font-size: .9rem; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; animation: mimc-in .25s ease both; }
.mimc-assistant { background: #fff; color: #0E2A33; border: 1px solid #DCE6E4; border-bottom-left-radius: 4px; align-self: flex-start; }
.mimc-user { background: #0E2A33; color: #F3F7F6; border-bottom-right-radius: 4px; align-self: flex-end; }
.mimc-msg a { color: #0F766E; font-weight: 600; }
.mimc-user a { color: #5EEAD4; }
.mimc-typing { color: #3D525A; font-style: italic; }
.mimc-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid #DCE6E4; background: #fff; }
.mimc-input { flex: 1; resize: none; border: 1px solid #DCE6E4; border-radius: 10px; padding: .6rem .75rem; font: inherit; font-size: .9rem; max-height: 120px; }
.mimc-input:focus { outline: 2px solid #0F766E; border-color: #0F766E; }
.mimc-send { border: 0; border-radius: 10px; background: #0F766E; color: #fff; width: 44px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mimc-send:hover { background: #0E2A33; }
@keyframes mimc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
	.mimc-launcher-label { display: none; }
	.mimc-launcher { padding: .9rem; }
	.mimc-panel { right: 8px; left: 8px; bottom: 80px; width: auto; height: calc(100vh - 100px); }
}
@media (prefers-reduced-motion: reduce) { .mimc-msg { animation: none; } .mimc-launcher { transition: none; } }
/* Keep the theme's generic button:hover/:focus colours off the chat widget */
.mimc-launcher:hover, .mimc-launcher:focus { background: #fff; }
.mimc-greet-text:hover, .mimc-greet-text:focus { background: #F3F7F6; color: #0E2A33; }
.mimc-greet-close:focus { background: #F3F7F6; color: #3D525A; }
/* Quick options under the welcome message (outline chips: the panel keeps a single filled button, Send) */
.mimc-quick { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; flex: none; max-width: 100%; }
.mimc-chip { display: inline-flex; align-items: center; flex: none; box-sizing: border-box; min-height: 44px; padding: .5rem 1rem; border: 1.5px solid #0F766E; border-radius: 999px; background: #fff; color: #0F766E; font: 600 .84rem/1.2 "Poppins", system-ui, sans-serif; text-decoration: none; transition: background .15s, color .15s; }
.mimc-chip:hover, .mimc-chip:focus { background: #0F766E; color: #fff; }
.mimc-chip:focus-visible { outline: 3px solid rgba(15, 118, 110, .45); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .mimc-chip { transition: none; } }
