/* REVIX client-approved incremental UI refinements. Loaded last; does not rewrite baseline CSS. */
/* Menu: preserve the approved light identity instead of changing to a dark redesign. */
body.revix-v7 .rev9-mobile-nav .rev9-drawer-top{padding:15px 17px!important;min-height:70px;gap:12px}
body.revix-v7 .rev9-mobile-nav .rev9-drawer-top img{width:125px!important;height:auto;max-height:43px}
body.revix-v7 .rev9-mobile-nav .rev9-drawer-top button{width:40px;height:40px;flex:none}
body.revix-v7 .rev9-mobile-nav .rev9-drawer-label{padding:10px 17px 5px!important}
body.revix-v7 .rev9-mobile-nav .rev9-drawer-links{gap:3px!important;padding:0 11px!important}
body.revix-v7 .rev9-mobile-nav .rev9-drawer-links>a{min-height:43px!important;padding:5px 9px!important;display:flex!important;align-items:center;justify-content:flex-start;gap:10px;font-size:12px!important;color:#173f62!important;background:#f6faff!important;border:1px solid #e6f2fb!important;box-shadow:none!important;border-radius:11px!important;line-height:1.5!important}
body.revix-v7 .rev9-mobile-nav .rev9-drawer-links>a:hover{background:#e8f5ff!important;color:#086eaa!important}
body.revix-v7 .rev9-mobile-nav .rev9-drawer-links>a>svg:first-child{width:28px!important;height:28px!important;padding:5px!important;background:#e6f4ff!important;color:#1687cb!important;flex:none}
body.revix-v7 .rev9-mobile-nav .rev9-drawer-links>a>svg:last-child{display:none!important}
body.revix-v7 .rev9-mobile-nav .rev9-drawer-footer{padding:12px 17px 20px!important;margin-top:auto}
body.revix-v7 .rev9-mobile-nav .rev9-drawer-cta{color:#fff!important;justify-content:center;min-height:45px!important;padding:10px 15px!important;font-size:12px!important}
body.revix-v7 .rev9-mobile-nav .rev9-drawer-cta svg{stroke:#fff!important;color:#fff!important}
body.revix-v7 .rev9-mobile-nav .rev9-drawer-social{padding:12px 0 0!important;align-items:center}
body.revix-v7 .rev9-mobile-nav .rev9-drawer-social a{display:grid!important;place-items:center!important;padding:0!important;width:40px;height:40px}
body.revix-v7 .rev9-mobile-nav .rev9-drawer-social a svg{display:block;margin:auto}
@media(max-height:700px){body.revix-v7 .rev9-mobile-nav .rev9-drawer-links>a{min-height:38px!important}}

/* Modal isolation and real scroll: a popup must never be behind the sticky navigation. */
body.revix-v7 .modal-backdrop:not([hidden]){position:fixed!important;inset:0!important;z-index:5000!important;display:flex!important;align-items:center;justify-content:center;padding:max(9px,env(safe-area-inset-top)) 9px max(9px,env(safe-area-inset-bottom));overflow-y:auto!important;overscroll-behavior:contain;background:rgba(5,25,44,.7)!important}
body.revix-v7 .modal-backdrop:not([hidden])>.modal{position:relative;z-index:1;max-height:calc(100dvh - 22px)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;scrollbar-width:thin;min-width:0}
body.revix-v7 .chat-panel:not([hidden]){z-index:4500!important}
body.revix-v7:has(.modal-backdrop:not([hidden])){overflow:hidden!important}
body.revix-v7 :is(#chat-lead-form,#consult-form) :is(label,.form-grid>label){display:flex!important;flex-direction:column!important;gap:7px!important;text-align:right!important;position:static!important;min-width:0;line-height:1.8!important}
body.revix-v7 :is(#chat-lead-form,#consult-form) :is(.form-grid){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px!important}
body.revix-v7 :is(#chat-lead-form,#consult-form) :is(input:not([type=checkbox]),select,textarea){display:block!important;width:100%!important;min-width:0!important;position:static!important;margin:0!important;padding:11px 13px!important;min-height:45px!important;font-size:14px!important}
body.revix-v7 :is(#chat-lead-form,#consult-form) label.consent{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:10px!important}
body.revix-v7 :is(#chat-lead-form,#consult-form) label.consent input{width:18px!important;min-width:18px!important;height:18px!important;min-height:18px!important;margin:5px 0 0!important}
body.revix-v7 .booking-form .time-wrap{display:flex;flex-direction:column;gap:8px;min-width:0}
body.revix-v7 .booking-form .time-wrap select{width:100%;cursor:pointer;min-height:47px}
body.revix-v7 .booking-form .time-wrap select:disabled{opacity:.78;cursor:not-allowed;background:#f3f8fc}
body.revix-v7 .booking-form .time-wrap .slots-message{line-height:1.8;min-height:26px;color:#397294;font-weight:600}
@media(max-width:700px){body.revix-v7 :is(#chat-lead-form,#consult-form) .form-grid{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}body.revix-v7 .modal-backdrop:not([hidden])>.modal{width:calc(100% - 4px)!important;padding:17px!important}body.revix-v7 :is(#chat-lead-form,#consult-form) :is(input:not([type=checkbox]),select,textarea){font-size:16px!important}}

/* Chat: latest answers always readable, with a clear gap between doctor name and specialty. */
body.revix-v7 .chat-stream{overflow-y:auto!important;overscroll-behavior:contain!important}
body.revix-v7 .chat-msg{white-space:pre-wrap;overflow-wrap:anywhere;line-height:2!important}
body.revix-v7 .revix-chat-doc{display:flex!important;align-items:center;gap:12px;padding:11px 12px!important;margin:12px 13px!important;border:1px solid #dcecf7;border-radius:15px;background:#f7fbff}
body.revix-v7 .revix-chat-doc img{width:56px;height:61px;flex:none;object-fit:cover;border-radius:11px}
body.revix-v7 .revix-chat-doc>div{min-width:0;display:flex;flex-direction:column;gap:7px;line-height:1.65}
body.revix-v7 .revix-chat-doc strong{display:block;font-size:13px;color:#0b4f81;margin:0;line-height:1.7}
body.revix-v7 .revix-chat-doc small{display:block;font-size:11px;color:#647f93;line-height:1.8;margin:0}

/* Matching doctor cards in the inner listing: two per row on desktop, full width on mobile. */
body.revix-v7 .revix-inner-doctors .revix-all-doctors-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px!important;max-width:1100px;margin-inline:auto;overflow:visible!important}
body.revix-v7 .revix-inner-doctors .revix-all-doctors-grid>.rev9-doctor-card{width:100%;height:100%;min-width:0}
@media(max-width:700px){body.revix-v7 .revix-inner-doctors .revix-all-doctors-grid{grid-template-columns:minmax(0,1fr)!important;gap:17px!important}}

/* Premium embossed REVIX mark behind PNG/WebP portraits; no modification to source photos. */
body.revix-v7 :is(.rev9-doctor-photo,.doctor-visual,.profile-photo){position:relative;isolation:isolate;background:radial-gradient(ellipse at 54% 38%,#f9fdff 0,#daf1ff 55%,#b8e2f8 100%)!important}
body.revix-v7 :is(.rev9-doctor-photo,.doctor-visual,.profile-photo) img{position:relative;z-index:1}
body.revix-v7 .rev9-doctor-info h3{margin-bottom:9px!important}
body.revix-v7 .rev9-doctor-info p{margin-top:0!important}

/* Existing video player with resilient Instagram external fallback. */
body.revix-v7 .video-frame{display:flex;flex-direction:column;align-items:stretch;gap:11px}
body.revix-v7 .video-frame>iframe{width:100%;min-height:360px;aspect-ratio:16/9;border:0;border-radius:13px}
body.revix-v7 .video-frame .revix-ig-fallback{display:block;padding:12px 14px;border:1px solid #b9dff5;border-radius:12px;background:#f1faff;color:#096ba5;text-align:center;font-weight:800}
body.revix-v7 .revix-instagram-video-card{font:inherit;text-align:right;cursor:pointer;width:100%;padding:0}
body.revix-v7 .revix-social-video-card{font:inherit;text-align:right;cursor:pointer}
@media(max-width:700px){body.revix-v7 .video-frame>iframe{min-height:290px}}

/* The photos already contain opaque clinic interiors; an embossed corner watermark remains visible without masking a doctor's face. */
body.revix-v7 :is(.rev9-doctor-photo,.doctor-visual,.profile-photo)::before{z-index:3!important;inset:12px auto auto 12px!important;width:auto!important;height:auto!important;display:block!important;opacity:.56!important;pointer-events:none!important;color:#6eb8ef!important;background:linear-gradient(130deg,#e2f6ff,#67b7e4)!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent;font-size:clamp(21px,2vw,27px)!important;letter-spacing:-1px!important;transform:perspective(290px) rotateY(-14deg) rotateX(8deg)!important;text-shadow:0 1px 0 #dff5ff,1px 2px 0 #7db5d6,2px 3px 1px #518db7,3px 4px 1px #2474ab,4px 5px 7px #02427645!important}
