/* Mehtab Restaurant Chatbot */
#mcb-root {
	--mcb-accent: #F7A21B;
	--mcb-bg: #0d0d0d;
	--mcb-panel: #141414;
	--mcb-card: #1c1c1c;
	--mcb-line: #2a2a2a;
	--mcb-text: #f1f1f1;
	--mcb-muted: #a9a9a9;
	--mcb-veg: #3fb950;
	--mcb-nonveg: #e5534b;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99999;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.45;
	color: var(--mcb-text);
}
#mcb-root *, #mcb-root *::before, #mcb-root *::after { box-sizing: border-box; }
/* Reset theme / Elementor button styles inside the widget */
#mcb-root button {
	font-family: inherit !important; font-size: 13px; font-weight: 500; line-height: 1.2 !important;
	text-transform: none !important; letter-spacing: normal !important; text-decoration: none !important;
	min-height: 0 !important; min-width: 0 !important; margin: 0; box-shadow: none; text-shadow: none !important;
	white-space: normal; width: auto;
}
#mcb-root button:hover, #mcb-root button:focus { text-decoration: none !important; }

/* Launcher */
.mcb-launcher {
	width: 60px; height: 60px; border-radius: 50%;
	border: 0; cursor: pointer; padding: 0;
	background: var(--mcb-accent) !important; color: #111 !important; border: 0 !important; border-radius: 50% !important; padding: 0 !important; width: 60px !important; height: 60px !important;
	box-shadow: 0 8px 24px rgba(0,0,0,.45);
	display: grid; place-items: center;
	transition: transform .2s ease;
	margin-left: auto;
}
.mcb-launcher:hover { transform: scale(1.06); }
.mcb-launcher:focus-visible, .mcb-chip:focus-visible, .mcb-close:focus-visible, .mcb-send:focus-visible, .mcb-li:focus-visible, .mcb-link:focus-visible {
	outline: 2px solid #fff; outline-offset: 2px;
}
.mcb-launcher svg { width: 28px; height: 28px; fill: currentColor; grid-area: 1/1; transition: opacity .2s, transform .2s; }
.mcb-launcher .mcb-x { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; opacity: 0; transform: rotate(-45deg); }
.mcb-open .mcb-launcher svg:first-child { opacity: 0; transform: rotate(45deg); }
.mcb-open .mcb-launcher .mcb-x { opacity: 1; transform: none; }

/* Teaser */
.mcb-teaser {
	position: absolute; right: 0; bottom: 74px;
	white-space: nowrap; cursor: pointer;
	background: #fff !important; color: #111 !important; border: 0 !important;
	padding: 10px 14px !important; border-radius: 14px 14px 4px 14px !important;
	font-size: 13px !important; font-weight: 600;
	box-shadow: 0 6px 20px rgba(0,0,0,.35);
	animation: mcb-pop .3s ease;
}
.mcb-teaser[hidden], #mcb-root .mcb-teaser[hidden] { display: none !important; }

/* Panel */
.mcb-panel {
	position: absolute; right: 0; bottom: 76px;
	width: 370px; height: min(600px, calc(100vh - 110px));
	background: var(--mcb-bg);
	border: 1px solid var(--mcb-line);
	border-radius: 18px;
	box-shadow: 0 18px 50px rgba(0,0,0,.55);
	display: flex; flex-direction: column; overflow: hidden;
	opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98);
	transform-origin: bottom right;
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.mcb-open .mcb-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }

.mcb-head {
	display: flex; align-items: center; gap: 10px;
	padding: 14px 14px 14px 16px;
	background: linear-gradient(135deg, #1d1406, #0d0d0d 70%);
	border-bottom: 1px solid var(--mcb-line);
}
.mcb-avatar {
	width: 38px; height: 38px; border-radius: 50%;
	background: var(--mcb-accent); display: grid; place-items: center; font-size: 19px; flex: none;
}
.mcb-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mcb-title strong { font-size: 15px; color: #fff; }
.mcb-title span { font-size: 12px; color: var(--mcb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcb-close {
	width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
	background: transparent !important; color: var(--mcb-muted) !important; display: grid; place-items: center; padding: 0 !important; border: 0 !important; border-radius: 50% !important;
}
.mcb-close:hover { background: #222 !important; color: #fff !important; }
.mcb-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* Messages */
.mcb-log {
	flex: 1; overflow-y: auto; padding: 16px 14px 8px;
	display: flex; flex-direction: column; gap: 8px;
	scrollbar-width: thin; scrollbar-color: #333 transparent;
}
.mcb-row { display: flex; }
.mcb-user { justify-content: flex-end; }
.mcb-bubble {
	max-width: 85%; padding: 10px 13px; border-radius: 16px;
	word-wrap: break-word; overflow-wrap: anywhere;
	animation: mcb-pop .18s ease;
}
.mcb-bot .mcb-bubble { background: var(--mcb-panel); border: 1px solid var(--mcb-line); border-bottom-left-radius: 4px; }
.mcb-user .mcb-bubble { background: var(--mcb-accent); color: #111; font-weight: 500; border-bottom-right-radius: 4px; }
.mcb-bubble.mcb-wide { max-width: 100%; width: 100%; }
.mcb-lead { margin: 0 0 8px; }

/* Typing */
.mcb-typing { display: flex; gap: 4px; padding: 13px 14px; }
.mcb-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mcb-muted); animation: mcb-blink 1.2s infinite; }
.mcb-typing i:nth-child(2) { animation-delay: .2s; }
.mcb-typing i:nth-child(3) { animation-delay: .4s; }

/* Dish cards */
.mcb-card {
	background: var(--mcb-card); border: 1px solid var(--mcb-line);
	border-radius: 12px; padding: 10px 12px; margin-top: 8px;
}
.mcb-card:first-of-type { margin-top: 0; }
.mcb-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.mcb-card-name { color: var(--mcb-accent); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 7px; }
.mcb-card-price { color: var(--mcb-accent); font-weight: 600; white-space: nowrap; }
.mcb-opts { margin-top: 6px; display: grid; gap: 3px; }
.mcb-opt { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.mcb-opt span:first-child { color: #ddd; }
.mcb-card-note { font-size: 12px; color: #fff; margin-top: 4px; font-style: italic; }
.mcb-card-desc { font-size: 12.5px; color: var(--mcb-muted); margin-top: 5px; }
.mcb-card-cat { font-size: 11px; color: #777; margin-top: 6px; text-transform: uppercase; letter-spacing: .04em; }

/* Veg / non-veg markers */
.mcb-dot { width: 11px; height: 11px; border: 1.5px solid; border-radius: 2px; display: inline-grid; place-items: center; flex: none; }
.mcb-dot::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.mcb-veg { color: var(--mcb-veg); }
.mcb-nonveg { color: var(--mcb-nonveg); }
.mcb-mixed { color: var(--mcb-veg); border-color: var(--mcb-nonveg); }

/* Compact list */
.mcb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mcb-li {
	width: 100%; display: flex; align-items: center; gap: 8px;
	background: var(--mcb-card); border: 1px solid var(--mcb-line); border-radius: 9px;
	padding: 8px 10px !important; cursor: pointer; color: var(--mcb-text) !important; text-align: left; font-size: 13.5px !important;
	background: var(--mcb-card) !important; border: 1px solid var(--mcb-line) !important; border-radius: 9px !important; width: 100% !important;
}
.mcb-li:hover { border-color: var(--mcb-accent) !important; }
.mcb-li-name { flex: 1; min-width: 0; }
.mcb-li-price { color: var(--mcb-accent); white-space: nowrap; font-weight: 600; }

/* Link buttons */
.mcb-links { display: flex; flex-wrap: wrap; gap: 6px; }
.mcb-link {
	display: inline-block; text-decoration: none !important;
	background: var(--mcb-accent); color: #111 !important; font-weight: 600; font-size: 13px;
	padding: 7px 12px; border-radius: 999px;
}
.mcb-link:hover { filter: brightness(1.08); }

/* Quick replies */
.mcb-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 10px; flex: none; max-height: 40%; overflow-y: auto; }
.mcb-quick:empty { display: none; }
.mcb-chip {
	border: 1px solid var(--mcb-accent); background: transparent; color: var(--mcb-accent);
	border-radius: 999px !important; padding: 6px 12px !important; font-size: 13px !important; cursor: pointer; line-height: 1.2 !important;
	background: transparent !important; color: var(--mcb-accent) !important; border: 1px solid var(--mcb-accent) !important; height: auto !important;
}
.mcb-chip:hover, .mcb-chip:focus-visible { background: var(--mcb-accent) !important; color: #111 !important; }

/* Input */
.mcb-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--mcb-line); background: var(--mcb-bg); margin: 0; }
.mcb-input {
	flex: 1; min-width: 0; height: 42px; margin: 0;
	background: var(--mcb-panel) !important; color: var(--mcb-text) !important;
	border: 1px solid var(--mcb-line) !important; border-radius: 999px !important;
	padding: 0 16px !important; font-size: 16px !important; font-family: inherit; box-shadow: none !important;
}
.mcb-input:focus { outline: none; border-color: var(--mcb-accent) !important; }
.mcb-input::placeholder { color: #777; }
.mcb-send {
	width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
	background: var(--mcb-accent) !important; color: #111 !important; display: grid; place-items: center; flex: none; padding: 0 !important; border: 0 !important; border-radius: 50% !important; width: 42px !important; height: 42px !important;
}
.mcb-send svg { width: 18px; height: 18px; fill: currentColor; }

@keyframes mcb-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes mcb-blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* Mobile: full-screen sheet */
@media (max-width: 600px) {
	#mcb-root { right: 14px; bottom: 14px; }
	.mcb-panel {
		position: fixed; inset: 0; width: 100%; height: 100%;
		height: 100dvh; border-radius: 0; border: 0;
	}
	.mcb-open .mcb-launcher { display: none; }
	.mcb-teaser { bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
	#mcb-root * { animation: none !important; transition: none !important; }
}
