/* Marketectify Dental Suite - public styles. Brand colour comes from Settings (--mdent-brand). */
:root { --mdent-brand: #0e7c86; }

.mdent-app, .mdent-grid, .mdent-info, .mdent-hours, .mdent-profiles, .mdent-sticky, #mdent-chat-root {
	--b: var(--mdent-brand);
	--b-soft: color-mix(in srgb, var(--mdent-brand) 10%, #fff);
	--b-mid: color-mix(in srgb, var(--mdent-brand) 25%, #fff);
	--ink: #14282b; --muted: #5d6f72; --line: #dbe5e6; --bg: #fff; --ok: #1a7f45; --bad: #b3261e;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Naskh Arabic", "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", Tahoma, sans-serif;
	color: var(--ink); box-sizing: border-box; line-height: 1.5;
}
.mdent-app *, .mdent-grid *, .mdent-info *, .mdent-hours *, .mdent-profiles *, .mdent-sticky *, #mdent-chat-root * { box-sizing: border-box; }
.mdent-app, .mdent-grid, .mdent-info, .mdent-hours, .mdent-profiles { width: 100%; max-width: 100%; min-width: 0; }
.mdent-grid > *, .mdent-profile > *, .mdent-info > *, .mdent-profile-body > * { min-width: 0; }
.mdent-grid img, .mdent-profiles img, .mdent-app img { max-width: 100%; }
.mdent-tcard, .mdent-dcard, .mdent-profile-body, .mdent-info-text { overflow-wrap: anywhere; }
/* Elementor: a Shortcode widget inside a flex/row container shrinks to its content; keep ours full width */
.elementor-widget:has(> .elementor-widget-container > :is(.mdent-grid, .mdent-info, .mdent-profiles, .mdent-hours, .mdent-app)) { width: 100%; min-width: 0; max-width: 100%; }
.mdent-app { max-width: 760px; margin: 0 auto; }
.mdent-app.mdent-is-ur { line-height: 1.9; }

/* top bar */
.mdent-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mdent-clinic { font-weight: 700; color: var(--b); }
.mdent-lang { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 4px 14px; cursor: pointer; font: inherit; font-size: 14px; }
.mdent-lang:hover { border-color: var(--b); color: var(--b); }

/* progress */
.mdent-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; }
.mdent-step { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 8px 10px; border-radius: 10px; background: #f3f7f7; min-width: 0; }
.mdent-step-n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #dfe9ea; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.mdent-step-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mdent-step.is-active { background: var(--b-soft); color: var(--b); font-weight: 600; }
.mdent-step.is-active .mdent-step-n { background: var(--b); color: #fff; }
.mdent-step.is-done .mdent-step-n { background: var(--b); color: #fff; }
@media (max-width: 520px) { .mdent-step-l { display: none; } .mdent-step { justify-content: center; padding: 8px 6px; } .mdent-step.is-active { flex: 3 1 0; } .mdent-step.is-active .mdent-step-l { display: inline; } }

/* card */
.mdent-card { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 6px 24px rgba(14, 60, 66, .06); }
@media (max-width: 520px) { .mdent-card { padding: 16px; border-radius: 14px; } }
.mdent-h { margin: 0 0 6px; font-size: 24px; line-height: 1.25; color: var(--ink); }
.mdent-h3 { margin: 18px 0 8px; font-size: 17px; }
.mdent-sub, .mdent-muted { color: var(--muted); margin: 0 0 16px; }
.mdent-muted { margin: 10px 0; }
.mdent-note { background: #fff8e1; border: 1px solid #f2dc8c; padding: 10px 12px; border-radius: 10px; }
.mdent-loading { padding: 24px; text-align: center; color: var(--muted); }

/* alerts */
.mdent-alert { padding: 10px 14px; border-radius: 10px; margin: 0 0 14px; font-size: 15px; }
.mdent-alert.is-error { background: #fdecea; color: var(--bad); border: 1px solid #f4c7c3; }
.mdent-alert.is-ok { background: #e8f5ee; color: var(--ok); border: 1px solid #bfe3cd; }
.mdent-urgentbox { background: #fff4f2; border: 1px solid #f4c7c3; color: #7a1d17; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 15px; }
.mdent-urgentbox a { color: inherit; font-weight: 700; }

/* option cards */
.mdent-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 520px) { .mdent-opts { grid-template-columns: 1fr; } }
.mdent-opt { text-align: start; display: flex; flex-direction: column; gap: 4px; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 16px; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s, transform .05s; }
.mdent-opt:hover, .mdent-opt:focus-visible { border-color: var(--b); box-shadow: 0 0 0 3px var(--b-soft); outline: none; }
.mdent-opt:active { transform: scale(.99); }
.mdent-opt-t { font-weight: 650; font-size: 16px; }
.mdent-opt-d { color: var(--muted); font-size: 13.5px; }
.mdent-opt-m { display: flex; gap: 10px; font-size: 13px; color: var(--b); font-weight: 600; margin-top: 2px; }
.mdent-opt-m span + span::before { content: "\00b7"; margin-inline-end: 10px; color: var(--muted); }
.mdent-opts-d .mdent-opt { flex-direction: column; align-items: flex-start; }
.mdent-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--b-soft); color: var(--b); display: grid; place-items: center; font-weight: 700; font-size: 20px; margin-bottom: 4px; }
.mdent-avatar-any { background: var(--b); color: #fff; }

/* chosen bar */
.mdent-chosen { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--b-soft); border-radius: 12px; padding: 10px 14px; margin: 8px 0 16px; }
.mdent-chosen strong { display: block; }
.mdent-chosen span { font-size: 14px; color: var(--muted); }
.mdent-link { background: none; border: 0; color: var(--b); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }

/* calendar */
.mdent-cal { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 8px; }
.mdent-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mdent-nav-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.mdent-nav-btn:disabled { opacity: .35; cursor: default; }
.mdent-nav-btn:not(:disabled):hover { border-color: var(--b); color: var(--b); }
.mdent-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.mdent-cal-dow { font-size: 12px; color: var(--muted); padding: 4px 0; }
.mdent-day { box-sizing: border-box; min-width: 0; width: 100%; padding: 0; aspect-ratio: 1; min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: #a9b7b9; font: inherit; font-size: 15px; cursor: default; }
.mdent-day.is-free { background: var(--b-soft); color: var(--ink); font-weight: 600; cursor: pointer; }
.mdent-day.is-free:hover { background: var(--b-mid); }
.mdent-day.is-today { box-shadow: inset 0 0 0 1.5px var(--b-mid); }
.mdent-day.is-sel { background: var(--b); color: #fff; }

/* slots */
.mdent-slotgroup { margin: 10px 0; }
.mdent-slotlabel { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.mdent-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.mdent-slot { border: 1.5px solid var(--b-mid); background: #fff; color: var(--b); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.mdent-slot:hover, .mdent-slot:focus-visible { background: var(--b); color: #fff; outline: none; }

/* forms */
.mdent-form { display: grid; gap: 12px; }
.mdent-field { display: grid; gap: 4px; font-size: 14px; }
.mdent-field > span { color: var(--muted); }
.mdent-in { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.mdent-in:focus { border-color: var(--b); outline: 3px solid var(--b-soft); }
.mdent-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.mdent-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--b); flex: none; }
.mdent-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.mdent-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
@media (max-width: 520px) { .mdent-row { grid-template-columns: 1fr; } }
.mdent-waitlist { border: 1px dashed var(--b-mid); border-radius: 14px; padding: 14px; margin-top: 14px; background: #fcfefe; }
.mdent-waitlist p { margin: 4px 0 10px; color: var(--muted); font-size: 14px; }
.mdent-wl-details { margin-top: 14px; }
.mdent-wl-details summary { cursor: pointer; color: var(--b); font-size: 14px; }

/* buttons */
.mdent-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--b); color: #fff !important; border: 1.5px solid var(--b); border-radius: 12px; padding: 12px 20px; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none !important; transition: filter .15s; }
.mdent-btn:hover { filter: brightness(1.08); }
.mdent-btn:disabled { opacity: .6; cursor: default; }
.mdent-btn-ghost { background: #fff; color: var(--b) !important; }
.mdent-btn-wa { background: #1faa59; border-color: #1faa59; }
.mdent-btn-danger { background: #fff; color: var(--bad) !important; border-color: #e5b4b0; }
.mdent-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.mdent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }

/* summary + done */
.mdent-summary { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 14px 0; background: #fbfdfd; }
.mdent-sum-row { display: flex; justify-content: space-between; gap: 10px; }
.mdent-sum-big { font-size: 18px; margin: 8px 0; }
.mdent-sum-big strong { color: var(--b); font-size: 26px; }
.mdent-done { text-align: center; }
.mdent-done .mdent-summary { text-align: start; }
.mdent-done .mdent-actions { justify-content: center; }
.mdent-done-icon { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: var(--b-soft); color: var(--b); display: grid; place-items: center; font-size: 32px; }
.mdent-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #e6eef0; color: #35505a; }
.mdent-pill.s-confirmed, .mdent-pill.s-completed { background: #e3f4ea; color: var(--ok); }
.mdent-pill.s-pending { background: #fff3d6; color: #8a5a00; }
.mdent-pill.s-cancelled, .mdent-pill.s-no_show { background: #fdecea; color: var(--bad); }

/* shortcode grids */
.mdent-grid { display: grid; gap: 18px; }
.mdent-cols-1 { grid-template-columns: 1fr; }
.mdent-cols-2 { grid-template-columns: repeat(2, 1fr); }
.mdent-cols-3 { grid-template-columns: repeat(3, 1fr); }
.mdent-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .mdent-cols-3, .mdent-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mdent-grid { grid-template-columns: 1fr !important; } }
.mdent-tcard, .mdent-dcard { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 6px 24px rgba(14, 60, 66, .06); transition: transform .18s, box-shadow .18s; }
.mdent-tcard:hover, .mdent-dcard:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(14, 60, 66, .12); }
.mdent-tcard h3, .mdent-dcard h3 { margin: 0; font-size: 20px; line-height: 1.3; }
.mdent-tcard p, .mdent-dcard p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.mdent-ur { color: var(--b); font-size: 17px; text-align: left; }
html[dir="rtl"] .mdent-ur { text-align: right; }
.mdent-ico { display: block; flex: none; }
.mdent-ico-chip { width: 52px; height: 52px; border-radius: 16px; background: var(--b-soft); color: var(--b); display: grid; place-items: center; flex: none; margin-bottom: 6px; }
.mdent-ico-chip.mdent-ico-sm { width: 40px; height: 40px; border-radius: 12px; margin: 0; }
.mdent-tcard:hover .mdent-ico-chip { background: var(--b); color: #fff; }
.mdent-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.mdent-pill { display: inline-flex; align-items: center; gap: 5px; background: #f3f7f7; color: var(--ink); border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; }
.mdent-pill .mdent-ico { color: var(--b); }
.mdent-pill-price { background: var(--b-soft); color: var(--b); }
.mdent-qual { color: var(--muted); font-size: 14px; }
.mdent-dcard img, .mdent-dph { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 6px; }
.mdent-dph { background: var(--b-soft); color: var(--b); display: grid; place-items: center; font-size: 36px; font-weight: 700; }
.mdent-tcard .mdent-btn, .mdent-dcard .mdent-btn { align-self: flex-start; margin-top: 8px; padding: 9px 18px; font-size: 14px; }
.mdent-tcard .mdent-btn-ghost:hover { background: var(--b); color: #fff !important; filter: none; }

/* dentist profile layout: [dental_dentists layout="profile"] */
.mdent-profiles { display: grid; gap: 64px; }
.mdent-profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.mdent-profile.is-rev .mdent-profile-img { order: 2; }
.mdent-profile-img { border-radius: 28px; overflow: hidden; background: var(--b-soft); aspect-ratio: 4 / 5; box-shadow: 0 18px 50px rgba(14, 60, 66, .14); }
.mdent-profile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mdent-profile-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: clamp(80px, 14vw, 160px); font-weight: 700; color: var(--b); background: linear-gradient(145deg, var(--b-soft), var(--b-mid)); }
.mdent-profile-body { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.mdent-eyebrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--b); }
.mdent-profile-name { margin: 0; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.12; font-weight: 700; }
.mdent-profile-bio { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 56ch; }
.mdent-profile-qual { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; max-width: 520px; width: 100%; }
.mdent-profile-qual .mdent-ico-chip { margin: 0; width: 48px; height: 48px; border-radius: 14px; }
.mdent-profile-qual div { display: flex; flex-direction: column; min-width: 0; }
.mdent-profile-qual b { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mdent-profile-qual span:not(.mdent-ico-chip) { font-weight: 600; }
.mdent-profile-treat { display: flex; flex-direction: column; gap: 8px; }
.mdent-profile-treat b { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mdent-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mdent-chip { background: var(--b-soft); color: var(--b); border-radius: 999px; padding: 5px 13px; font-size: 14px; font-weight: 600; }
.mdent-profile .mdent-btn { margin-top: 6px; padding: 14px 26px; font-size: 16px; border-radius: 14px; }
@media (max-width: 820px) { .mdent-profile { grid-template-columns: 1fr; gap: 22px; } .mdent-profile.is-rev .mdent-profile-img { order: 0; } .mdent-profile-img { aspect-ratio: 4 / 4.2; max-height: 460px; } .mdent-profiles { gap: 48px; } }

/* contact info + opening hours */
.mdent-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px 28px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: 0 6px 24px rgba(14, 60, 66, .06); }
.mdent-info-row { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.mdent-info-wide { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); }
.mdent-info-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mdent-info-text small { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-bottom: 2px; }
.mdent-info-text > span, .mdent-info-text > a { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.mdent-info a { color: var(--b); text-decoration: none; }
.mdent-info a:hover { text-decoration: underline; }
.mdent-hours { display: grid; gap: 6px; width: 100%; max-width: 460px; }
.mdent-hours-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 14px; background: #f3f7f7; border-radius: 12px; font-size: 16px; }
.mdent-hours-day { font-weight: 700; }
.mdent-hours-time { color: var(--ink); font-variant-numeric: tabular-nums; text-align: end; }
.mdent-hours-row.is-closed { background: #fdf3f2; }
.mdent-hours-row.is-closed .mdent-hours-time { color: var(--bad); font-weight: 600; }
.mdent-info .mdent-hours { max-width: none; }
.mdent-map { width: 100%; height: 280px; border: 0; border-radius: 14px; }

/* sticky mobile bar */
.mdent-sticky { display: none; }
@media (max-width: 782px) {
	.mdent-sticky { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 9990; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(0, 0, 0, .08); padding-bottom: env(safe-area-inset-bottom); }
	.mdent-sticky a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--ink); }
	.mdent-sticky-wa { color: #1a8f4b !important; }
	.mdent-sticky-book { background: var(--b); color: #fff !important; }
	body.mdent-has-sticky { padding-bottom: 64px; }
}

/* chat bubble */
#mdent-chat-root { position: fixed; z-index: 9995; right: 18px; bottom: 18px; }
html[dir="rtl"] #mdent-chat-root { right: auto; left: 18px; }
@media (max-width: 782px) { body.mdent-has-sticky #mdent-chat-root { bottom: 78px; } }
/* Themes often style every <button>/<input>; pin the chat controls so they cannot be stretched */
#mdent-chat-root button, #mdent-chat-root input { font-family: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; margin: 0; min-height: 0; line-height: 1.25; }
#mdent-chat-root .mdent-lang, #mdent-chat-root .mdent-chat-x { width: auto !important; height: auto !important; min-width: 0 !important; padding: 6px 12px !important; border: 0 !important; border-radius: 999px !important; background: rgba(255, 255, 255, .2) !important; color: #fff !important; font-size: 13px !important; font-weight: 600; cursor: pointer; }
#mdent-chat-root .mdent-chat-x { width: 32px !important; height: 32px !important; padding: 0 !important; font-size: 22px !important; line-height: 1 !important; }
#mdent-chat-root .mdent-chat-tools { display: flex; gap: 8px; align-items: center; }
#mdent-chat-root .mdent-chat-fab { width: 58px !important; height: 58px !important; padding: 0 !important; border-radius: 50% !important; }
#mdent-chat-root .mdent-chat-form .mdent-in { width: auto !important; height: auto !important; min-width: 0; font-size: 16px !important; border: 1px solid var(--line) !important; border-radius: 12px !important; background: #fff !important; color: var(--ink) !important; }
#mdent-chat-root .mdent-chat-form .mdent-btn { width: auto !important; height: auto !important; border-radius: 12px !important; font-size: 15px !important; }
.mdent-chat-head strong { font-size: 16px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mdent-chat-fab { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--b); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 30px; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
.mdent-chat-panel { position: absolute; bottom: 70px; right: 0; width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100vh - 150px)); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 48px rgba(0, 0, 0, .25); display: flex; flex-direction: column; overflow: hidden; }
html[dir="rtl"] .mdent-chat-panel { right: auto; left: 0; }
.mdent-chat-head { background: var(--b); color: #fff; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.mdent-chat-head .mdent-lang { background: rgba(255, 255, 255, .15); color: #fff; border-color: transparent; }
.mdent-chat-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #f6fafa; }
.mdent-msg { max-width: 86%; padding: 9px 13px; border-radius: 14px; font-size: 15px; word-wrap: break-word; }
.mdent-msg.is-bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.mdent-msg.is-me { background: var(--b); color: #fff; align-self: flex-end; }
.mdent-msg a { color: inherit; text-decoration: underline; }
.mdent-msg-card { margin-top: 8px; padding: 8px 10px; background: var(--b-soft); border-radius: 10px; font-size: 14px; color: var(--ink); }
.mdent-chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.mdent-chat-form .mdent-in { flex: 1; padding: 9px 12px; }
.mdent-chat-form .mdent-btn { padding: 9px 14px; }
.mdent-typing { display: flex; gap: 4px; padding: 12px 14px; }
.mdent-typing span { width: 7px; height: 7px; background: #9bb0b3; border-radius: 50%; animation: mdent-bounce 1s infinite ease-in-out; }
.mdent-typing span:nth-child(2) { animation-delay: .15s; }
.mdent-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes mdent-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }

@media (max-width: 520px) {
	/* phone: the chat opens as a near-full-screen sheet (JS keeps it above the keyboard) */
	.mdent-chat-panel { position: fixed; left: 8px; right: 8px; top: 8px; bottom: 8px; width: auto; height: auto; border-radius: 16px; }
	html[dir="rtl"] .mdent-chat-panel { left: 8px; right: 8px; }
	#mdent-chat-root .mdent-chat-fab.is-open { display: none; }
	.mdent-msg { max-width: 90%; }
}
@media (min-width: 521px) { #mdent-chat-root .mdent-chat-x { display: none; } }
@media (prefers-reduced-motion: reduce) { .mdent-opt, .mdent-btn { transition: none; } .mdent-typing span { animation: none; } }

/* Phone numbers and emails always read left-to-right, even inside Urdu (RTL) layout */
.mdent-app input[type=tel], .mdent-app input[type=email], .mdent-app input[type=number] { direction: ltr; text-align: left; }
.mdent-app a[href^="tel:"] { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* v1.3.1: narrow containers (Elementor padding + small phones) */
.mdent-hours-day { white-space: nowrap; }
.mdent-grid, .mdent-profiles, .mdent-info, .mdent-hours { width: 100%; max-width: 100%; }
.mdent-info { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
@media (max-width: 520px) {
	.mdent-info { padding: 18px; gap: 16px; border-radius: 18px; }
	.mdent-info-row { gap: 12px; }
	.mdent-info-wide { flex-direction: column; gap: 10px; }
	.mdent-hours-row { flex-wrap: wrap; gap: 2px 12px; padding: 10px 12px; }
	.mdent-hours-time { text-align: start; }
	.mdent-tcard, .mdent-dcard { padding: 20px; }
}
