/* User Requests chat widget (new). Styles do not depend on other pages. */
#urChatOverlay{position:fixed;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.55);display:none;z-index:9999;}
#urChatOverlay.urc-open{display:block;}
#urChatWin{position:fixed;right:24px;bottom:24px;width:790px;max-width:96vw;height:720px;max-height:92vh;
  background:#0f1720;color:#e8eef5;border:1px solid #24313f;border-radius:10px;display:flex;flex-direction:column;
  box-shadow:0 10px 40px rgba(0,0,0,.5);z-index:10000;overflow:hidden;font-size:14px;}
#urChatWin.urc-hidden{display:none;}
#urChatHead{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:#16202b;border-bottom:1px solid #24313f;}
#urChatHead .urc-title{font-weight:600;color:#ffc451;}
#urChatHead .urc-sub{font-size:11px;color:#8ea3b8;}
#urChatHead button{background:transparent;border:1px solid #3a4a5c;color:#cfe0f0;border-radius:6px;padding:2px 8px;cursor:pointer;}
#urChatBody{flex:1;overflow-y:auto;padding:10px 12px;background:#0f1720;}
.urc-msg{margin:0 0 10px 0;max-width:82%;}
.urc-msg .urc-meta{font-size:11px;color:#8ea3b8;margin-bottom:2px;}
.urc-msg .urc-text{background:#1b2733;border-radius:8px;padding:7px 10px;white-space:pre-wrap;word-wrap:break-word;}
.urc-msg.urc-mine{margin-left:auto;text-align:right;}
.urc-msg.urc-mine .urc-text{background:#1d3b57;}
.urc-att{margin-top:5px;font-size:12px;}
.urc-att a{color:#7fd0ff;}
.urc-sys{text-align:center;color:#8ea3b8;font-size:12px;margin:6px 0;}
#urChatFoot{border-top:1px solid #24313f;background:#16202b;padding:8px 10px;}
#urChatFoot textarea{width:100%;min-height:46px;max-height:120px;resize:vertical;background:#0b1119;color:#e8eef5;
  border:1px solid #2b3a4a;border-radius:8px;padding:7px 9px;box-sizing:border-box;}
#urChatFoot .urc-row{display:flex;align-items:center;gap:8px;margin-top:6px;flex-wrap:wrap;}
#urChatFoot button{cursor:pointer;border-radius:6px;border:1px solid #3a4a5c;background:#1d3b57;color:#e8eef5;padding:5px 12px;}
#urChatFoot button:disabled{opacity:.6;cursor:default;}
#urChatFoot .urc-status{font-size:11px;color:#8ea3b8;flex:1;}
#urChatFoot .urc-err{font-size:12px;color:#ff8a8a;}
#urChatFoot .urc-err:empty{display:none;}

/* File upload progress (attach file in the chat) */
#urChatFoot .urc-prog{height:6px;margin:6px 0 0 0;border-radius:4px;background:#0b1119;border:1px solid #2b3a4a;overflow:hidden;}
#urChatFoot .urc-prog-fill{height:100%;width:0%;background:#34d399;transition:width .15s linear;}
.urc-badge{background:#c62828;color:#fff;border-radius:10px;font-size:11px;padding:0 6px;margin-left:6px;}

/* Buttons inside the chat window (for example "Open chat" in the unread list) */
#urChatBody .urc-msg button{display:inline-block;margin-top:7px;padding:7px 18px;border:0;border-radius:20px;
  background:#2F6F9E;color:#ffffff;font-weight:600;font-size:13px;cursor:pointer;transition:background .15s ease;}
#urChatBody .urc-msg button:hover{background:#3B86BD;}
#urChatBody .urc-msg button:active{background:#255C85;}

/* New-messages notification, when the chat window is closed: clickable badge
   in the page corner with the wording and the number of requests with unread
   messages (for example: "3 New Unread Messages"). */
#urcNotify{position:fixed;top:14px;right:18px;z-index:10001;display:none;align-items:center;gap:10px;
  background:#c62828;color:#fff;border:2px solid #ff9a9a;border-radius:30px;padding:14px 22px;cursor:pointer;
  font:800 15px/1 "Segoe UI",Arial,sans-serif;text-transform:uppercase;letter-spacing:1.1px;
  white-space:nowrap;max-width:min(80vw,560px);overflow:hidden;text-overflow:ellipsis;
  box-shadow:0 8px 28px rgba(0,0,0,.6);animation:urcNotifyPulse 1.8s ease-in-out infinite;}
#urcNotify:hover{background:#e53935;}
#urcNotify:focus{outline:3px solid #ffd166;outline-offset:3px;}
@keyframes urcNotifyPulse{
  0%,100%{transform:scale(1);box-shadow:0 8px 28px rgba(0,0,0,.6);}
  50%{transform:scale(1.07);box-shadow:0 10px 32px rgba(198,40,40,.7);}
}
@media (max-width:900px){#urcNotify{font-size:13px;letter-spacing:.8px;padding:12px 16px;}}
@media (max-width:640px){#urcNotify{top:10px;right:10px;font-size:11px;letter-spacing:.5px;padding:10px 13px;
  min-width:0;}}

/* Search in the chat */
.urc-search{display:flex;align-items:center;gap:6px;padding:6px 12px;background:#131c26;border-bottom:1px solid #24313f;}
.urc-search input[type=search]{flex:1;background:#0b1119;color:#e8eef5;border:1px solid #2b3a4a;border-radius:6px;padding:4px 8px;box-sizing:border-box;}
.urc-search button{background:#1d3b57;color:#e8eef5;border:1px solid #3a4a5c;border-radius:6px;padding:4px 10px;cursor:pointer;}
.urc-search label{font-size:11px;color:#8ea3b8;cursor:pointer;white-space:nowrap;}
.urc-results{border-bottom:1px solid #24313f;background:#101924;max-height:38%;overflow-y:auto;}
.urc-res-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 12px;font-size:12px;color:#ffc451;}
.urc-res-head button{background:transparent;border:1px solid #3a4a5c;color:#cfe0f0;border-radius:6px;padding:2px 8px;cursor:pointer;}
.urc-res-body{padding:0 12px 8px 12px;}
.urc-res-item{padding:6px 8px;border:1px solid #1f2b38;border-radius:6px;margin-bottom:6px;cursor:pointer;background:#0d151e;}
.urc-res-item:hover{border-color:#3a4a5c;background:#132030;}
.urc-res-meta{font-size:11px;color:#8ea3b8;margin-bottom:2px;}
.urc-res-text{font-size:12px;color:#dbe6f0;white-space:pre-wrap;word-wrap:break-word;}
.urc-flash{outline:2px solid #ffc451;border-radius:8px;transition:outline-color .4s;}
.urc-tpl-row{gap:8px;}
.urc-tpl-row select{background:#0b1119;color:#e8eef5;border:1px solid #2b3a4a;border-radius:6px;padding:4px 8px;max-width:240px;}
.urc-tpl-panel{max-height:250px;overflow-y:auto;border:1px solid #24313f;border-radius:8px;padding:8px;margin-bottom:6px;background:#0b1119;}
.urc-tpl-edit{margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid #1b2733;}
.urc-tpl-meta{display:flex;gap:6px;align-items:center;margin-bottom:4px;}
.urc-tpl-title{flex:1;background:#0f1720;color:#e8eef5;border:1px solid #2b3a4a;border-radius:6px;padding:3px 7px;}
.urc-tpl-sort{width:72px;background:#0f1720;color:#e8eef5;border:1px solid #2b3a4a;border-radius:6px;padding:3px 7px;}
.urc-tpl-body{width:100%;min-height:52px;background:#0f1720;color:#e8eef5;border:1px solid #2b3a4a;border-radius:6px;padding:5px 7px;box-sizing:border-box;resize:vertical;}
.urc-tpl-meta button{padding:3px 10px;}
@media (max-width:640px){
  #urChatWin{right:0;bottom:0;width:100vw;height:100vh;max-width:100vw;max-height:100vh;border-radius:0;}
}
