/* Web W18: the patient site's base look (it used to come from the global app.css / modules.css). Everything is scoped with
   :where(), so each rule keeps the specificity it had and nothing here can reach the doctor app. */
*{box-sizing:border-box}
:where(body:has(.pt)){margin:0;color:#173052;background:#f5f8fc;font:14px Vazirmatn,Tahoma,Arial,sans-serif}
:where(.pt) :where(button,input,select,textarea){font:inherit;font-family:Vazirmatn,Tahoma,Arial,sans-serif}
:where(.pt) button{border:1px solid #2f73e8;background:#2f73e8;color:#fff;border-radius:7px;padding:11px 17px;cursor:pointer;transition:.15s}
:where(.pt) button:hover{filter:brightness(.96)}
:where(.pt) button:disabled{opacity:.5;cursor:wait}
:where(.pt) .outline{background:#fff;color:#2f73e8;border-color:#d8e4fa}
:where(.pt) .danger{background:#fff;color:#dc576a;border-color:#facbd6}
:where(.pt) :where(input,select,textarea){width:100%;border:1px solid #d7e3f4;border-radius:6px;background:white;padding:11px;color:#173052;outline:0}
:where(.pt) input:focus,:where(.pt) textarea:focus{border-color:#2f73e8;box-shadow:0 0 0 3px #2f73e818}
:where(.pt) input[readonly]{background:#edf1f7}
:where(.pt) label{display:block;margin:12px 0;line-height:2}
:where(.pt) small{color:#7485a6;display:block;font-size:11px}
:where(.pt) :where(h1,h2,h3,p){margin-top:0}
:where(.pt) h1{font-size:29px}
:where(.pt) h3{font-size:17px}
:where(.pt) p{line-height:2}
:where(.pt) nav{margin-top:32px;text-align:right}
:where(.pt) nav button{display:flex;gap:15px;width:100%;border:0;background:none;padding:17px;margin:5px 0;text-align:right;color:#f1f5ff}
:where(.pt) nav button span{font-size:20px}
:where(.pt) header{display:flex;align-items:center;gap:24px;height:78px;padding:15px 25px;background:#fafdff;border-bottom:1px solid #dfe8f5;position:sticky;top:0;z-index:5}
:where(.pt) header strong{font-size:13px;color:#496691}
:where(.pt) header button{white-space:nowrap}
:where(.pt) .toast{position:fixed;bottom:20px;left:25px;right:270px;background:#fff4df;border:1px solid #f5d69b;color:#735225;padding:15px 20px;border-radius:9px;z-index:30;display:flex;justify-content:space-between}
:where(.pt) .toast button{background:none;color:#735225;border:0;padding:0 10px}
@media(max-width:760px){
:where(.pt) nav{margin:0;display:flex;gap:2px}
:where(.pt) nav button{padding:9px 12px;margin:0;white-space:nowrap;font-size:12px;gap:8px;width:auto}
:where(.pt) nav button span{font-size:15px}
:where(.pt) header{position:static;height:auto;flex-wrap:wrap;gap:8px;padding:10px 12px}
:where(.pt) .toast{left:10px;right:10px}
}
@media print{:where(.pt) :where(header,.toast){display:none!important}:where(.pt) button{border:0!important}}

/* WP-65: patient website (/patient); phone-first, RTL. */
.pt{max-width:980px;margin:0 auto;padding:16px 16px 40px;color:#173052}
.pt-top{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid #e0e7f1;border-radius:14px;padding:12px 16px;position:static;height:auto}
.pt-hello{display:flex;align-items:center;gap:12px}
.pt-hello strong{display:block;font-size:16px}
.pt-avatar{width:42px;height:42px;border-radius:50%;background:#2f73e8;color:#fff;display:grid;place-items:center;font-size:19px;font-weight:700}
.pt-tabs{display:flex;gap:6px;overflow-x:auto;margin:14px 0 !important;text-align:start;padding-bottom:4px;scrollbar-width:thin}
.pt-tabs button{flex:none;width:auto;margin:0;display:flex;align-items:center;gap:8px;background:#fff;color:#4b6492;border:1px solid #d7e3f4;border-radius:22px;padding:10px 16px !important;white-space:nowrap}
.pt-tabs button.on{background:#2f73e8;color:#fff;border-color:#2f73e8}
.pt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.pt-card{background:#fff;border:1px solid #e0e7f1;border-radius:14px;padding:18px;box-shadow:0 2px 10px #17305206}
.pt-card h3{margin-bottom:10px}
.pt-card h3 small{display:inline;margin-right:8px}
.pt-muted{color:#7485a6;margin-bottom:10px}
.pt-big{font-size:20px;font-weight:700;margin-bottom:6px}
.pt-big small{display:inline;font-weight:400;margin-right:6px}
.pt-wide{width:100%;margin-top:14px}
.pt-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:10px 0;border-bottom:1px solid #edf2fa}
.pt-row:last-child{border-bottom:0}
.pt-row small{flex-basis:100%}
.pt-row button{padding:6px 12px}
.pt-chips{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.pt-chips span{background:#eaf2ff;color:#2f73e8;border-radius:16px;padding:6px 14px}
.pt-chips span.ok{background:#e4f7ef;color:#16845f}
.pt-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.pt-info{background:#f5f8fc;border-radius:10px;padding:12px 14px;margin-top:12px}
.pt-info p{margin-bottom:6px}
.pt-check{display:flex;align-items:center;gap:10px;margin:4px 0}
.pt-check input{width:auto}
.pt-auth{display:grid;grid-template-columns:1fr 1fr;gap:16px;min-height:80vh;align-items:center}
.pt-hero{background:linear-gradient(140deg,#203957,#13263f);color:#fff;border:0;text-align:center;padding:40px 20px}
.pt-hero p{color:#c4d6ee}
.pt-switch{display:flex;gap:6px;margin-bottom:8px}
.pt-switch button{flex:1;background:#fff;color:#4b6492;border-color:#d7e3f4}
.pt-switch button.on{background:#2f73e8;color:#fff;border-color:#2f73e8}
.pt-chat{max-width:680px;margin:0 auto}
.pt-msgs{display:flex;flex-direction:column;gap:8px;min-height:220px;max-height:50vh;overflow-y:auto;padding:12px 0}
.pt-msg{max-width:80%;border-radius:14px;padding:9px 13px}
.pt-msg small{margin-top:4px}
.pt-msg.me{align-self:flex-start;background:#2f73e8;color:#fff}
.pt-msg.me small{color:#d8e6ff}
.pt-msg.them{align-self:flex-end;background:#edf3fd}
.pt-send{display:flex;gap:8px}
@media(max-width:700px){
.pt{padding:10px 12px 40px}
.pt-grid,.pt-auth{grid-template-columns:1fr}
.pt-auth{min-height:auto}
.pt-card{padding:15px}
.pt-msg{max-width:92%}
}

.pt-advice p{line-height:1.9;white-space:pre-wrap}
.pt-advice.done{opacity:.6}
/* WP-65 + WP-64: doctor directory in the booking tab */
.pt-wideCard{grid-column:1/-1}
.pt-grow{flex:1;min-width:0}
.pt-inline{display:inline;margin-right:6px}
.pt-send input{flex:1;min-width:0}
@media(max-width:700px){.pt-send{flex-wrap:wrap}.pt-send button{width:100%}}
