/* EntGut Core, components. Uses theme palette variables with fallbacks. */
.eg-docs, .eg-videos, .eg-info, .eg-faq, .eg-ctab, .eg-subpages, .eg-review-note, .eg-consent {
	--c-navy: var(--eg-navy, #132B35); --c-teal: var(--eg-teal, #467B78); --c-ivory: var(--eg-ivory, #F8F6F1);
	--c-stone: var(--eg-stone, #E9E5DE); --c-text: var(--eg-charcoal, #262A2B); --c-gold: var(--eg-champagne, #B89B68);
	--c-line: rgba(19, 43, 53, .12); --c-muted: #5d6567;
}
/* Fallback buttons when the EntGut theme is not active */
body:not([class*="eg-"]) .eg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: #467B78; color: #fff; text-decoration: none; font-weight: 600; }
.eg-icon { flex: none; }

/* Doctors */
.eg-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.eg-docs--compact { grid-template-columns: 1fr; gap: 0; }
.eg-doc { background: #fff; border: 1px solid var(--c-line); border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: 42% 1fr; }
.eg-doc__media { background: var(--c-stone); }
.eg-doc__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; aspect-ratio: 4/5; }
.eg-doc__body { padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 8px; }
.eg-doc__area { font-family: var(--eg-font-head, inherit); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--c-teal); font-weight: 600; margin: 0; }
.eg-doc__name { font-size: 1.35rem; margin: 0; }
.eg-doc__name a { color: var(--c-navy); text-decoration: none; }
.eg-doc__quals { font-size: .9rem; color: var(--c-muted); margin: 0; }
.eg-doc__roles, .eg-doc__interests { list-style: none; margin: 6px 0 0; padding: 0; font-size: .86rem; display: grid; gap: 6px; }
.eg-doc__roles li { padding-left: 14px; position: relative; }
.eg-doc__roles li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: var(--c-gold); }
.eg-doc__interests { border-top: 1px solid var(--c-line); padding-top: 12px; }
.eg-doc__interests li { padding-left: 18px; position: relative; }
.eg-doc__interests li::before { content: "✓"; position: absolute; left: 0; color: var(--c-teal); font-size: .8rem; }
.eg-doc__reg { display: flex; gap: 8px; align-items: center; font-size: .78rem; color: var(--c-navy); background: var(--c-ivory); border: 1px solid var(--c-line); border-radius: 999px; padding: 6px 12px; margin: 8px 0 0; width: fit-content; }
.eg-doc__reg .eg-icon { width: 15px; height: 15px; color: var(--c-teal); }
.eg-doc__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 14px; }
.eg-doc__actions .eg-btn { padding: 10px 16px; font-size: .82rem; }
.eg-doc--compact { grid-template-columns: 1fr; border: 0; border-bottom: 1px solid var(--c-line); border-radius: 0; background: transparent; }
.eg-doc--compact .eg-doc__body { padding: 14px 0; gap: 4px; }
.eg-doc--compact .eg-doc__name { font-size: 1rem; }
.eg-doc--compact .eg-doc__reg { font-size: .72rem; }
.eg-doc--compact .eg-doc__actions { display: none; }
.eg-doc--profile { grid-template-columns: 38% 1fr; }

/* Videos (facade) */
.eg-videos__grid { display: grid; grid-template-columns: repeat(var(--eg-cols, 3), minmax(0, 1fr)); gap: 22px; }
.eg-video { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.eg-video[hidden] { display: none; }
.eg-video__frame { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: var(--c-navy); cursor: pointer; }
.eg-video__frame img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .5s, opacity .3s; }
.eg-video__frame:hover img { transform: scale(1.03); opacity: 1; }
.eg-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.eg-video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--c-navy); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s; }
.eg-video__play .eg-icon { width: 24px; height: 24px; margin-left: 3px; }
.eg-video__frame:hover .eg-video__play { transform: translate(-50%, -50%) scale(1.06); }
.eg-video__cap { display: flex; flex-direction: column; gap: 3px; }
.eg-video__title { font-family: var(--eg-font-display, inherit); font-weight: 500; color: var(--c-navy); font-size: .95rem; line-height: 1.4; }
.eg-video__meta { font-size: .76rem; color: var(--c-muted); }
.eg-videos__filters { margin-bottom: 24px; }
.eg-videos__filters .eg-chip { cursor: pointer; font: inherit; font-size: .78rem; }
.eg-videos__note, .eg-videos__channels { font-size: .8rem; color: var(--c-muted); margin: 18px 0 0; }
.eg-widget .eg-videos__grid { gap: 16px; }
.eg-widget .eg-videos__note { display: none; }

/* Clinic info */
.eg-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.eg-info__row { display: flex; gap: 12px; align-items: flex-start; }
.eg-info__row > .eg-icon { width: 20px; height: 20px; color: var(--c-teal); margin-top: 2px; }
.eg-info__label { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; }
.eg-info__value, .eg-info__value a { color: var(--c-text); text-decoration: none; line-height: 1.5; }
.eg-info__value a:hover { color: var(--c-teal); }
.eg-map { margin-top: 20px; border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; background: var(--c-stone); }
.eg-map iframe { width: 100%; height: 100%; border: 0; }

/* FAQ */
.eg-faq { display: grid; gap: 10px; }
.eg-faq__item { background: #fff; border: 1px solid var(--c-line); border-radius: 14px; }
.eg-faq__q { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-family: var(--eg-font-display, inherit); font-weight: 500; color: var(--c-navy); position: relative; line-height: 1.45; }
.eg-faq__q::-webkit-details-marker { display: none; }
.eg-faq__q::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--c-teal); font-weight: 300; }
.eg-faq__item[open] .eg-faq__q::after { content: "-"; }
.eg-faq__a { padding: 0 22px 18px; color: var(--c-text); font-size: .95rem; }
.eg-faq__a p:last-child { margin-bottom: 0; }

/* CTA band */
.eg-ctab { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; padding: clamp(28px, 5vw, 52px); border-radius: 22px; background: var(--c-navy); color: rgba(255, 255, 255, .82); }
.eg-ctab--teal { background: var(--c-teal); }
.eg-ctab--light { background: var(--c-stone); color: var(--c-text); }
.eg-ctab__title { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 10px; }
.eg-ctab--light .eg-ctab__title { color: var(--c-navy); }
.eg-ctab__text { margin: 0; }
.eg-ctab .eg-eyebrow { color: var(--c-gold); }
.eg-ctab__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Sub-pages grid */
.eg-subpages { display: grid; grid-template-columns: repeat(var(--eg-cols, 3), minmax(0, 1fr)); gap: 18px; }
.eg-subpage { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: #fff; border: 1px solid var(--c-line); border-radius: 16px; text-decoration: none; color: var(--c-text); transition: border-color .2s, transform .25s, box-shadow .25s; min-height: 100%; }
.eg-subpage:hover { border-color: var(--c-teal); transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(19, 43, 53, .35); }
.eg-subpage__title { font-family: var(--eg-font-display, inherit); font-weight: 600; color: var(--c-navy); font-size: 1.05rem; line-height: 1.35; }
.eg-subpage__text { font-size: .88rem; color: var(--c-muted); flex: 1; line-height: 1.6; }
.eg-subpage__more { font-size: .8rem; font-weight: 600; color: var(--c-teal); }

/* Review note */
.eg-review-note { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--c-line); border-left: 3px solid var(--c-gold); border-radius: 12px; padding: 16px 20px; font-size: .84rem; color: var(--c-muted); margin: 32px 0; line-height: 1.6; }
.eg-review-note .eg-icon { width: 20px; height: 20px; color: var(--c-teal); margin-top: 2px; }
.eg-review-note p { margin: 0 0 6px; }
.eg-review-note p:last-child { margin: 0; }
.eg-reviewer { margin: 24px 0 8px; }
.eg-byline { font-size: .85rem; color: var(--c-muted, #5d6567); margin: 14px 0 0; }
.eg-byline strong { color: var(--eg-navy, #132B35); font-weight: 600; }

/* Sidebar booking card + speciality links */
.eg-widget--book { background: var(--eg-navy, #132B35) !important; border-color: transparent !important; color: rgba(255, 255, 255, .82); }
.eg-widget--book .eg-widget__title { color: var(--eg-champagne, #B89B68); }
.eg-bookcard__title { font-family: var(--eg-font-display, inherit); color: #fff; font-size: 1.2rem; line-height: 1.35; margin: 0 0 8px; }
.eg-bookcard__text { font-size: .86rem; margin: 0 0 16px; }
.eg-bookcard__row { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: .82rem; }
.eg-bookcard__row a { color: #fff; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.eg-bookcard__row .eg-icon { width: 16px; height: 16px; color: var(--eg-champagne, #B89B68); }
.eg-speclinks ul { padding-left: 12px !important; margin-top: 6px !important; }
.eg-speclinks ul li { border: 0 !important; padding: 4px 0 !important; font-size: .86rem !important; }

/* Consent */
.eg-consent { position: fixed; left: 16px; bottom: 16px; z-index: 300; max-width: 420px; background: #fff; border: 1px solid var(--c-line); border-radius: 16px; box-shadow: 0 20px 50px -20px rgba(19, 43, 53, .45); padding: 18px 20px; font-size: .84rem; color: var(--c-text); }
.eg-consent[hidden] { display: none; }
.eg-consent__text { margin: 0 0 12px; line-height: 1.55; }
.eg-consent__actions { display: flex; gap: 8px; justify-content: flex-end; }
.eg-consent__actions .eg-btn { padding: 9px 18px; font-size: .82rem; }

@media (max-width: 1024px) {
	.eg-videos__grid { grid-template-columns: repeat(min(var(--eg-cols, 3), 2), minmax(0, 1fr)); }
	.eg-subpages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.eg-ctab { grid-template-columns: 1fr; }
	.eg-ctab__actions { justify-content: flex-start; }
}
@media (max-width: 767px) {
	.eg-doc, .eg-doc--profile { grid-template-columns: 1fr; }
	.eg-doc__media img { aspect-ratio: 4/3; }
	.eg-videos__grid, .eg-subpages { grid-template-columns: 1fr; }
	.eg-consent { left: 10px; right: 10px; bottom: 76px; max-width: none; }
}

/* ---------- Clinic sidebar widgets (v1.0.3) ---------- */
/* Your specialist */
.eg-widget--specialist { background: var(--eg-navy, #132B35) !important; border-color: transparent !important; color: rgba(255, 255, 255, .82); position: relative; overflow: hidden; }
.eg-widget--specialist::before { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(184, 155, 104, .28); box-shadow: 0 0 0 22px rgba(184, 155, 104, .06), 0 0 0 44px rgba(184, 155, 104, .04); pointer-events: none; }
.eg-widget--specialist .eg-widget__title { color: var(--eg-champagne, #B89B68) !important; position: relative; }
.eg-sw { position: relative; display: grid; gap: 14px; }
.eg-sw__doc { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.eg-sw__img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--eg-champagne, #B89B68); }
.eg-sw__meta p { margin: 0; }
.eg-sw__name { font-family: var(--eg-font-display, inherit); font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.eg-sw__name a { color: #fff; text-decoration: none; }
.eg-sw__name a:hover { color: var(--eg-champagne, #B89B68); }
.eg-sw__spec { font-size: .8rem; color: var(--eg-champagne, #B89B68); margin-top: 3px !important; line-height: 1.4; }
.eg-sw__quals { font-size: .78rem; margin-top: 4px !important; line-height: 1.45; }
.eg-sw__reg { font-size: .7rem; color: rgba(255, 255, 255, .6); margin-top: 4px !important; }
.eg-sw .eg-open { color: #fff; }
.eg-sw-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eg-sw-contact a { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 10px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; color: #fff; text-decoration: none; font-size: .84rem; font-weight: 500; transition: border-color .2s, background .2s; }
.eg-sw-contact a:hover { border-color: var(--eg-champagne, #B89B68); background: rgba(255, 255, 255, .06); color: #fff; }
.eg-sw-contact .eg-icon { width: 16px; height: 16px; color: var(--eg-champagne, #B89B68); }

/* Live walk-in status */
.eg-open { display: flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 500; margin: 0; }
.eg-open__dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa5a8; flex: none; }
.eg-open.is-open .eg-open__dot { background: #3fb67b; box-shadow: 0 0 0 0 rgba(63, 182, 123, .6); animation: eg-pulse 2s infinite; }
.eg-open.is-soon .eg-open__dot { background: var(--eg-champagne, #B89B68); }
@keyframes eg-pulse { 70% { box-shadow: 0 0 0 8px rgba(63, 182, 123, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 182, 123, 0); } }
@media (prefers-reduced-motion: reduce) { .eg-open.is-open .eg-open__dot { animation: none; } }

/* When to see a specialist */
.eg-when__list li { position: relative; padding: 8px 0 8px 26px !important; font-size: .88rem !important; }
.eg-when__list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px; border-radius: 50%; background: rgba(46, 125, 132, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232E7D84'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 11px no-repeat; }
.eg-when__urgent { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fdf3f1; border-left: 3px solid #c0533f; font-size: .82rem; line-height: 1.5; color: #5c2a20; }
.eg-when__urgent strong { color: #a2402e; }
.eg-when__note { margin: 12px 0 0; font-size: .74rem; color: var(--eg-muted, #6b7476); line-height: 1.5; }
.eg-when__group { border-bottom: 1px solid var(--eg-line, #e6e2da); padding: 4px 0 10px; }
.eg-when__group + .eg-when__group { padding-top: 10px; }
.eg-when__group summary, .eg-visit__bring summary { cursor: pointer; list-style: none; font-weight: 600; font-size: .92rem; color: var(--eg-navy, #132B35); display: flex; justify-content: space-between; align-items: center; }
.eg-when__group summary::-webkit-details-marker, .eg-visit__bring summary::-webkit-details-marker { display: none; }
.eg-when__group summary::after, .eg-visit__bring summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; color: var(--eg-teal, #2E7D84); }
.eg-when__group[open] summary::after, .eg-visit__bring[open] summary::after { content: "\2212"; }

/* Care guides */
.eg-guides { display: grid; gap: 12px; }
.eg-guides__feature { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; text-decoration: none; background: linear-gradient(135deg, rgba(46, 125, 132, .1), rgba(184, 155, 104, .12)); border: 1px solid rgba(46, 125, 132, .2); transition: border-color .2s; }
.eg-guides__feature:hover { border-color: var(--eg-teal, #2E7D84); }
.eg-guides__kicker { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--eg-teal, #2E7D84); }
.eg-guides__name { font-family: var(--eg-font-display, inherit); font-weight: 600; color: var(--eg-navy, #132B35); font-size: .98rem; line-height: 1.35; }
.eg-guides__name::after { content: " \2192"; color: var(--eg-champagne, #B89B68); }
.eg-guides__list li a { display: flex; justify-content: space-between; gap: 10px; }
.eg-guides__list li a::after { content: "\203A"; color: var(--eg-champagne, #B89B68); font-size: 1.1rem; line-height: 1; }
.eg-guides__hub a { font-weight: 600; color: var(--eg-navy, #132B35) !important; }
.eg-guides__all { font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--eg-teal, #2E7D84); text-decoration: none; }
.eg-guides__all:hover { text-decoration: underline; }

/* Related reading */
.eg-reading { display: grid; gap: 14px; }
.eg-reading__item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; text-decoration: none; }
.eg-reading__img { width: 72px; height: 56px; border-radius: 10px; object-fit: cover; }
.eg-reading__title { font-size: .88rem; line-height: 1.4; font-weight: 500; color: var(--eg-charcoal, #2b3133); }
.eg-reading__item:hover .eg-reading__title { color: var(--eg-teal, #2E7D84); }

/* Visit the clinic */
.eg-visit { display: grid; gap: 12px; }
.eg-visit p { margin: 0; }
.eg-visit .eg-open { color: var(--eg-navy, #132B35); font-weight: 600; }
.eg-visit__hours { font-size: .8rem; color: var(--eg-muted, #6b7476); line-height: 1.5; }
.eg-visit__addr { display: flex; gap: 10px; font-size: .86rem; line-height: 1.5; }
.eg-visit__addr .eg-icon { flex: none; width: 18px; height: 18px; color: var(--eg-teal, #2E7D84); margin-top: 2px; }
.eg-visit__fee { font-size: .84rem; font-weight: 600; color: var(--eg-navy, #132B35); padding: 10px 14px; border-radius: 12px; background: rgba(184, 155, 104, .12); }
.eg-visit__bring { border-top: 1px solid var(--eg-line, #e6e2da); border-bottom: 1px solid var(--eg-line, #e6e2da); padding: 10px 0; }
.eg-visit__bring ul { margin-top: 8px !important; }
.eg-visit__bring li { font-size: .84rem !important; padding: 6px 0 6px 16px !important; position: relative; border: 0 !important; }
.eg-visit__bring li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 5px; height: 5px; border-radius: 50%; background: var(--eg-champagne, #B89B68); }
.eg-visit__actions { display: grid; gap: 10px; }
.eg-visit__actions .eg-btn { justify-content: center; }

/* Sidebar scrolls normally; the last widget (Visit the clinic) stays in view on desktop */
.eg-sidebar__inner { position: static !important; }
@media (min-width: 1025px) {
	.eg-layout--sidebar > .eg-sidebar { align-self: stretch; }
	.eg-sidebar__inner { height: 100%; align-content: start; }
	.eg-sidebar__inner > .eg-widget:last-child { position: sticky; top: calc(var(--eg-header-h, 80px) + 24px); }
}

/* ---------- Floating WhatsApp button (includes/whatsapp.php) ----------
   Sits on the same line as the theme's back-to-top button, one slot to its left. */
.eg-wa-float {
	position: fixed; z-index: 9000;
	right: calc(var(--eg-top-right, 20px) + var(--eg-top-size, 44px) + var(--eg-top-gap, 12px));
	bottom: var(--eg-wa-bottom, 20px);
	width: var(--eg-wa-size, 56px); height: var(--eg-wa-size, 56px); border-radius: 999px;
	display: inline-flex; align-items: center; justify-content: center;
	background: #25D366; color: #fff; text-decoration: none;
	box-shadow: 0 6px 18px -6px rgba(19,43,53,.45);
	animation: eg-wa-in .35s ease-out var(--eg-wa-delay, 2s) both;
	transition: background .2s, transform .2s;
}
.eg-wa-float:hover, .eg-wa-float:focus-visible { background: #1EBE5A; color: #fff; transform: translateY(-2px); }
.eg-wa-float:focus-visible { outline: 2px solid var(--eg-champagne, #B89B68); outline-offset: 3px; }
.eg-wa-float__tip {
	position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%);
	white-space: nowrap; background: var(--eg-navy, #132B35); color: #fff; font-size: 13px; font-weight: 500; line-height: 1;
	padding: 9px 12px; border-radius: 8px; opacity: 0; visibility: hidden; pointer-events: none;
	transition: opacity .2s, transform .2s, visibility .2s;
}
.eg-wa-float:hover .eg-wa-float__tip, .eg-wa-float:focus-visible .eg-wa-float__tip { opacity: 1; visibility: visible; transform: translate(0, -50%); }
@keyframes eg-wa-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
	.eg-wa-float { display: none; }
	.eg-wa-float.eg-wa-float--phones { display: inline-flex; }
	.eg-wa-float__tip { display: none; }
}
@media (prefers-reduced-motion: reduce) { .eg-wa-float { animation: none; transition: none; } }
@media print { .eg-wa-float { display: none !important; } }

