/* Ice Card v7.1 全屏沉浸式聊天页 */
body.ic-fullchat-mode header,
body.ic-fullchat-mode footer,
body.ic-fullchat-mode .site-header,
body.ic-fullchat-mode .site-footer,
body.ic-fullchat-mode #masthead,
body.ic-fullchat-mode .ast-small-footer,
body.ic-fullchat-mode .entry-content,
body.ic-fullchat-mode .site-content,
body.ic-fullchat-mode #content,
body.ic-fullchat-mode .ast-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}
body.ic-fullchat-mode header:not(.ic-fullchat-header),
body.ic-fullchat-mode .site-header,
body.ic-fullchat-mode #masthead,
body.ic-fullchat-mode footer,
body.ic-fullchat-mode .site-footer,
body.ic-fullchat-mode .ast-small-footer {
    display: none !important;
}
body.ic-fullchat-mode { padding: 0 !important; margin: 0 !important; }
body.ic-fullchat-mode #page,
body.ic-fullchat-mode #content { background: #f1f5f9 !important; }
/* 全屏页里藏掉右下角浮窗 */
body.ic-fullchat-mode #ic-chat-fab,
body.ic-fullchat-mode #ic-chat-widget { display: none !important; }

.ic-fullchat {
    position: fixed;
    inset: 0;
    background: #f1f5f9;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ic-fullchat-shell {
    max-width: 100%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: none;
}
.ic-fullchat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    flex: 0 0 auto;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.ic-fullchat-agent { display: flex; align-items: center; gap: 12px; }
.ic-fullchat-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.25);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
}
.ic-fullchat-header strong { font-size: 16px; display: block; }
.ic-fullchat-order { font-size: 12px; opacity: .9; display: block; margin-top: 2px; }
.ic-fullchat-status { font-size: 12px; opacity: .9; display: block; margin-top: 2px; }
.ic-fullchat-msgs {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.ic-fc-msg { max-width: 78%; display: flex; align-items: flex-start; gap: 8px; }
.ic-fc-msg-cust { align-self: flex-end; flex-direction: row-reverse; }
.ic-fc-msg-agent { align-self: flex-start; }
.ic-fc-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: #10b981; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex: 0 0 auto;
}
.ic-fc-msg-body { display: flex; flex-direction: column; min-width: 0; }
.ic-fc-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
}
.ic-fc-msg-cust .ic-fc-bubble { background: #10b981; color: #fff; border-bottom-right-radius: 4px; }
.ic-fc-msg-agent .ic-fc-bubble { background: #fff; color: #1e293b; border: 1px solid #e2e8f0; border-bottom-left-radius: 4px; }
.ic-fc-bubble img { max-width: 100%; border-radius: 8px; display: block; }
.ic-fc-time { font-size: 11px; color: #94a3b8; margin-top: 4px; }
.ic-fc-msg-cust .ic-fc-time { text-align: right; }
.ic-fc-sending { opacity: .6; }

.ic-fullchat-contact {
    padding: 0 16px 8px;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.ic-fullchat-contact input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
}

.ic-fullchat-composer {
    flex: 0 0 auto;
    border-top: 1px solid #e2e8f0;
    padding: 10px 14px;
    background: #fff;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.ic-fullchat-preview { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.ic-fullchat-preview-item { position: relative; }
.ic-fullchat-preview-item img {
    width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid #e2e8f0; display: block;
}
.ic-fullchat-preview-item button {
    position: absolute; top: -6px; right: -6px;
    width: 20px; height: 20px; padding: 0; box-sizing: border-box;
    background: #1e293b; color: #fff; border: none; border-radius: 50%;
    font-size: 12px; line-height: 1; cursor: pointer;
}
.ic-fullchat-input-row { display: flex; gap: 8px; align-items: flex-end; }
.ic-fullchat-attach {
    font-size: 20px; cursor: pointer; padding: 6px;
    background: none; border: none; line-height: 1;
}
#ic-fullchat-contact-toggle {
    font-size: 18px; padding: 6px;
    background: none; border: none; cursor: pointer;
}
#ic-fullchat-text {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 10px 14px;
    font-size: 14px;
    resize: none;
    max-height: 120px;
    line-height: 1.4;
}
#ic-fullchat-send {
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    flex: 0 0 auto;
}
#ic-fullchat-send:disabled { opacity: .5; cursor: default; }

@media (max-width: 600px) {
    .ic-fullchat-shell { box-shadow: none; }
    .ic-fc-msg { max-width: 88%; }
}
