.chat-badge{
    display: none !important;
}
.chatbox-info {
    background: #fff3cd;
    color: #856404;
    padding: 1px 12px;
    text-align: center;
    border-radius: 0px;
    font-size: 12px;
    border: 1px solid #ffeeba;
}
.blocked-msg{display:none;color:red;font-weight:bold;margin:10px 0;text-align: center;}
.copilot-login-required {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    padding: 20px;
}

.copilot-login-text {
    font-size: 13px;
    font-weight: bold;
    color: #444;
    margin-bottom: 15px;
}

.copilot-login-btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s ease;
}

.copilot-login-btn:hover {
    background: #005fcc;
}


.chat-body {
    height: 200px;
    overflow-y: auto;
    padding: 10px;
}

#chatbox {
    position: fixed;
    bottom: 10px;
    left: 30px;
    width: 320px;
	height: calc(100vh - 100px);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,.15);
	    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 99999;
}
/* عند التصغير */
#chatbox.minimized {
    transform: translateY(350px);
    opacity: 0.4;
    pointer-events: none;
}

/* الهيدر */
.chatbox-header {
    background: #007bff;
    color: #fff;
    padding: 10px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

/* زر الإغلاق / الفتح */
.chatbox-toggle-btn {
    cursor: pointer;
    font-size: 20px;
}


.chatbox-inbox-item {
    position: relative;
}

.chatbox-inbox-actions {
    position: absolute;
    right: 5px;
    bottom: 5px;
    display: flex;
    gap: 5px;
    z-index: 10;
}
.hidden { display: none; }
.confirm-box {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.confirm-box.hidden {
    display: none;
}

.confirm-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 260px;
}

.confirm-buttons button {
    margin: 10px;
    padding: 8px 20px;
}

.chatbox-hide-btn, .chatbox-block-btn { cursor: pointer; pointer-events: auto; z-index: 20; height: 25px; padding: 0px 10px; }


.start-del{height: 40px;
    text-decoration: none !important;
    width: auto !important;
    color: #c1bbbb !important;
    font-size: 22px !important;
    padding: 10px 5px;
    border-radius: 8px;
	}
.start-chat{
	
    text-decoration: none !important;
    width: auto !important;
    color: #07c140;
    font-size: 22px !important;
    
    
	}
.chatbox-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: red;
    color: #fff;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 50%;
    display: none;
    z-index: 9999;
}
.chatbox-inbox-badge {
    background: red;
    color: #fff;
    padding: 0 6px;
    font-size: 11px;
    border-radius: 10px;
    margin-left: 6px;
}
#chatbox.minimized {
    transform: translateY(calc(100% + 40px));
}
#chatbox.minimized {
    height: 40px;
    overflow: hidden;
}


.chatbox-header {
    background: #007bff;
    color: #fff;
    padding: 8px 10px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
	border-radius: 10px 10px 0 0;
}

.chatbox-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.chatbox-tab {
    flex: 1;
	font-size: 12px;
	font-family: 'Cairo', sans-serif ;
    padding: 6px;
    width: 50%;
    border: none;
    background: #f7f7f7;
    cursor: pointer;
}

.chatbox-tab.active {
    background: #fff;
    border-bottom: 2px solid #007bff;
}

.chatbox-page.hidden {
    display: none;
}

.chatbox-body {
    max-height: 260px;
    min-height: 240px;
    overflow-y: auto;
    padding: 8px;
    background: #fafafa;
}

.chatbox-input-area {
    display: flex;
    border-top: 1px solid #eee;
}
.contact-seller-btn{
	display:inline-block;
        padding:8px 14px;
        background:#007bff;
        color:#fff;
        border-radius:6px;
        font-weight:bold;
        text-decoration:none;
        margin-top:10px;
}
.contact-seller-btn:hover{background: #046ad7;color:#fff;}
.contact-seller-no{
	display:inline-block;
        padding:8px 14px;
        background:#007bff;
        color:#fff;
        border-radius:6px;
        font-weight:bold;
        text-decoration:none;
        margin-top:10px;
}
.go-to-inbox-btn{
	display:inline-block;
        padding:8px 14px;
        background:#007bff;
        color:#fff;
        border-radius:6px;
        font-weight:bold;
        text-decoration:none;
        margin-top:10px;
}
#chatbox-input {
    flex: 1;
    border: none;
    padding: 8px;
	height: 38px;
    font-size: 13px;
	border-bottom: 1px solid #eee;
}

#chatbox-send {
    border: none;
    background: #007bff;
    color: #fff;
	height: 37px;
	border-radius: 0;
    padding: 0 12px;
    cursor: pointer;
    font-size: 13px;
}

.chatbox-msg {
    margin: 4px 0;
    display: flex;
}

.chatbox-msg.me {
    justify-content: flex-start;
}

.chatbox-msg.other {
    justify-content: flex-end;
}

.chatbox-msg .bubble {
    max-width: 80%;
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 13px;
    background: #e1ffc7;
    position: relative;
}

.chatbox-msg.other .bubble {
    background: #fff;
}

.chatbox-msg .time {
    display: block;
    font-size: 10px;
    color: #888;
    margin-top: 2px;
    text-align: right;
}

.chatbox-inbox-list {
    max-height: 260px;
    overflow-y: auto;
	height: 360px;
}

.chatbox-inbox-item {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
	height: 95px;
}

.chatbox-inbox-name {
    cursor: pointer;
}

.chatbox-tab {
    color: #333 !important;
}

.chatbox-tab.active {
    background: #449eff;
    color: #fff !important;
	border-radius: 0;
}

.chatbox-inbox-item:hover {
    background: #f5f5f5;
}

.chatbox-inbox-name {
    font-weight: bold;
    font-size: 13px;
}

.chatbox-inbox-last {
    font-size: 12px;
    color: #666;
}

.chatbox-inbox-time {
    font-size: 11px;
    color: #999;
    text-align: left;
}

.chat-header {
    background: #0078ff;
    color: #fff;
    padding: 10px;
    font-weight: bold;
}

.chat-body {
    height: 200px;
    overflow-y: auto;
    padding: 10px;
}
.msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 4px;
    color: #444;
}
.delete-conv{margin: -40px 0 0 0;}
.restore-conv{background:#4CAF50; color:#fff; border:none; padding:5px 10px; border-radius:5px;margin: -30px 0 0 0;}
.msg-header .username {
    font-weight: bold;
}

.delete-msg {
    background: none;
    border: none;
    color: #c00;
    cursor: pointer;
    font-size: 14px;
}
.deleted-msg {
    font-style: italic;
    color: #888;
}

#chat-input {
    width: 100%;
    border: none;
    padding: 10px;
    border-top: 1px solid #ddd;
}
.chat-input-area {
    display: flex;
    border-top: 1px solid #ddd;
}

#chat-input {
    flex: 1;
    border: none;
    padding: 10px;
}
.chat-live{padding: 10px 14px 0;}
.msg {
    max-width: 70%;
    padding: 10px 14px;
    margin: 8px 0;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}


.msg.me {
    background: #dcf8c6;
    margin-left: auto;
}

.msg.other {
    background: #f1f1f1;
    margin-right: auto;
	border-bottom: 1px solid #eee;
}
.title-list{text-align: center;padding: 5px;font-weight: bold;border-bottom: 1px solid #eee;background: #f1f1f1;}
#chat-send:hover {
    background: #005fcc;
}
/* الصندوق المصغّر */
#copilot-chat-box {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 300px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px ;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* الهيدر */
#copilot-chat-box .chat-header {
    background: #007bff;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
}

/* الجسم مخفي افتراضياً */
#copilot-chat-box.minimized .chat-body,
#copilot-chat-box.minimized .chat-input-area {
    display: none;
}

/* الجسم يظهر عند التوسيع */
#copilot-chat-box .chat-body {
    height: 250px;
    overflow-y: auto;
    padding: 10px;
}

#copilot-chat-box .chat-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
	height: 60px;
}

#chat-input {
    flex: 1;
    padding: 5px;
}

#chat-send {
    margin-left: 5px;
	    height: 37px;
}
.chat-header {
    background: #007bff;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-notification-popup{display:none;}
.chat-badge-popup{display:none;}
.inboxOverlay-popup{display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); z-index:99998;}
.inboxPopup-popup{display:none; position:fixed; top:50%; left:50%; transform:translate(-50%, -50%); width:80%; max-width:900px; height:600px; background:#fff; border-radius:12px; overflow:hidden; z-index:99999; box-shadow:0 0 20px rgba(0,0,0,0.3); font-family:sans-serif;}
.closeInbox-popup{background:#075e54;color:#fff;padding:12px;font-size:18px;display:flex;justify-content:space-between;align-items:center;}
.closeInboxa-popup{cursor:pointer; font-size:22px;}
.inbox-container{height:calc(100% - 50px); display:flex;}
.chat-list{width:30%; border-right:1px solid #ddd; overflow-y:auto;}
.chat-item{padding:10px; cursor:pointer; border-bottom:1px solid #eee;background: #ecffdd;}
.chat-item:hover{background: #f5ffec;}
.name{font-weight:bold;}
.last{font-size:13px; color:#666;}
.chat-box{width:70%; display:flex; flex-direction:column;}
.chat-messages{flex:1; overflow-y:auto; padding:10px;}
.chat-input{display:none; padding:10px; border-top:1px solid #ddd;  gap:10px;}
.msgInput-popup{flex:1; padding:8px;}
.button-submit-popup{padding:8px 15px;height: 50px;}
#chat-launcher {
    position: fixed !important;
    bottom: 200px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,.2);
}

#chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: none;
    align-items: center;
    justify-content: center;
}
#chat-launcher,
.open-chat {
    position: relative;
    z-index: 999;
}

.chat-badge{display: inline-block; margin: 0px 0 5px 40px; align-items: center; gap: 6px; background: #ff0000; color: #fff; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: bold;}
.chat-notification{display: none; position: fixed; top: 65px; left: 50%; transform: translateX(-50%); width: auto; min-width: 30%; background: #ff4444; color: #fff; padding: 5px 20px; text-align: center; font-size: 16px; font-weight: bold; z-index: 999999; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); border-radius: 4px;}
#chat-notification:hover {
    background: #0056c7;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.2; }
    100% { opacity: 1; }
}

@media screen and (max-width: 767px) {
#chat-launcher {bottom: 50px;}
}
