/* ============================================
   CHAT WIDGET STYLES
   ============================================ */

.chat-widget-container {
    position: fixed !important;
    bottom: 20px !important;
    right: 100px !important;
    left: auto !important;
    top: auto !important;
    z-index: 99999 !important;
    display: none;
    width: 380px;
    height: 550px;
}

.chat-box {
    width: 100% !important;
    height: 100% !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.25) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

@keyframes minimizeAnim {
    from { height: 100%; }
    to { height: 40px; }
}

@keyframes maximizeAnim {
    from { height: 40px; }
    to { height: 100%; }
}

.chat-box.showing { animation: slideUp 0.3s ease forwards; }
.chat-box.closing { animation: slideDown 0.3s ease forwards; }
.chat-box.minimized { 
    height: 40px !important; 
    min-height: 40px !important; 
    max-height: 40px !important; 
    width: 100% !important; 
    position: absolute !important; 
    bottom: 0 !important; 
    left: 0 !important; 
    right: 0 !important; 
    top: auto !important; 
    animation: minimizeAnim 0.3s ease forwards; 
}
.chat-box.maximizing { animation: maximizeAnim 0.3s ease forwards; }
.chat-box.minimized .chat-messages,
.chat-box.minimized .chat-contact-form,
.chat-box.minimized .chat-input-area { display: none !important; }
.chat-box.minimized .chat-header { border-radius: 12px !important; }

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%) !important;
    color: white !important;
    padding: 12px 16px !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    user-select: none !important;
    border-radius: 12px 12px 0 0 !important;
    flex-shrink: 0;
}

.chat-header h6 { margin: 0 !important; font-size: 14px !important; font-weight: 600 !important; color: white !important; }
.chat-header h6 i { margin-right: 8px !important; }
.chat-header .chat-controls { display: flex !important; gap: 12px !important; }
.chat-header .chat-controls button { background: none !important; border: none !important; color: white !important; cursor: pointer !important; padding: 0 !important; font-size: 14px !important; transition: opacity 0.2s !important; }
.chat-header .chat-controls button:hover { opacity: 0.8 !important; }

/* Chat Messages Area */
.chat-messages {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 16px !important;
    background: #f8f9fc !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    min-height: 0 !important;
}

/* Force show chat messages when needed */
.chat-messages[style*="display: flex"] {
    display: flex !important;
}

/* Contact Form Area */
.chat-contact-form {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

.chat-contact-form form {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

.chat-contact-form .chat-form-header {
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 12px 16px !important;
}

.chat-contact-form .chat-form-body {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    padding: 16px !important;
    overflow-y: auto !important;
}

.chat-contact-form .chat-form-footer {
    flex-shrink: 0 !important;
    margin-top: auto !important;
    padding: 12px 16px !important;
    border-top: 1px solid #e3e6f0 !important;
    display: flex !important;
    gap: 8px !important;
    justify-content: flex-end !important;
}

/* Force hide contact form when chat mode is active */
.chat-contact-form[style*="display: none"] {
    display: none !important;
}

.chat-form-header {
    background: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    font-weight: 600;
    color: #4e73df;
    font-size: 14px;
}

.chat-form-group { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.chat-form-label { font-size: 12px; font-weight: 600; color: #333; margin: 0; }
.chat-form-hint { font-size: 10px !important; color: #858796 !important; margin-left: 4px !important; }

.chat-form-select,
.chat-form-input,
.chat-form-textarea,
.chat-form-file {
    padding: 8px 12px !important;
    border: 1px solid #d1d3e2 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-family: inherit !important;
    transition: all 0.2s !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.chat-form-select:focus,
.chat-form-input:focus,
.chat-form-textarea:focus {
    outline: none !important;
    border-color: #4e73df !important;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25) !important;
}

.chat-form-textarea { resize: vertical !important; min-height: 80px !important; }
.chat-form-counter { font-size: 10px !important; color: #858796 !important; margin-top: 4px !important; }

.chat-btn-cancel,
.chat-btn-submit {
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    border: none !important;
}

.chat-btn-cancel { background: #f8f9fc !important; color: #858796 !important; border: 1px solid #d1d3e2 !important; }
.chat-btn-cancel:hover { background: #e9ecef !important; }
.chat-btn-submit { background: #4e73df !important; color: white !important; }
.chat-btn-submit:hover:not(:disabled) { background: #224abe !important; }
.chat-btn-submit:disabled { background: #b7b9c2 !important; cursor: not-allowed !important; }

/* Chat Input Area */
.chat-input-area {
    padding: 12px 16px !important;
    background: white !important;
    border-top: 1px solid #e3e6f0 !important;
    display: flex !important;
    gap: 8px !important;
    align-items: flex-end !important;
    flex-shrink: 0;
    min-height: 45px !important;
}

.chat-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-input-area textarea {
    flex: 1 !important;
    border: 1px solid #d1d3e2 !important;
    border-radius: 20px !important;
    padding: 8px 12px !important;
    resize: none !important;
    font-size: 13px !important;
    font-family: inherit !important;
    max-height: 80px !important;
    background: white !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.chat-input-area textarea::-webkit-scrollbar {
    display: none !important;
}

.chat-input-area textarea:focus { outline: none !important; border-color: #4e73df !important; }
.chat-input-area textarea:disabled { background-color: #e9ecef !important; cursor: not-allowed !important; }

.chat-input-area button {
    background: #4e73df !important;
    border: none !important;
    color: white !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.chat-input-area button:hover:not(:disabled) { background: #224abe !important; transform: scale(1.05) !important; }
.chat-input-area button:disabled { background: #b7b9c2 !important; cursor: not-allowed !important; }

/* Attach Image Button */
.attach-image-btn {
    background: none !important;
    border: none !important;
    color: #858796 !important;
    cursor: pointer !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
}

.attach-image-btn:hover { background: #f8f9fc !important; color: #4e73df !important; }

/* Image preview container above text input */
.chat-image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    padding: 4px;
    background: #f8f9fc;
    border-radius: 12px;
}

/* Individual image preview item */
.chat-image-preview-item {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e3e6f0;
    background: white;
}

.chat-image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-image-preview-item .remove-image {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.2s;
    border: 2px solid white;
}

.chat-image-preview-item .remove-image:hover {
    transform: scale(1.1);
    background: #c82333;
}

/* Attach image button - active state when images are attached */
.attach-image-btn.has-image {
    color: #4e73df !important;
    background: #e7f1ff !important;
}

/* Image group wrapper */
.message-attachments-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 100%;
}

/* Main container for images - single border */
.message-images {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #f0f2f5;
    border-radius: 16px;
    padding: 8px;
    border: 1px solid #e4e6eb;
}

/* Individual image items - with border */
.message-image-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e4e6eb;
    flex: 1;
    min-width: 0;
}

.message-image-item img {
    width: 100%;
    height: auto;
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: 8px;
}

.message-image-item img:hover {
    transform: scale(1.02);
}

/* Ensure individual image items in sent messages also have consistent border */
.message.sent .message-image-item {
    border: 1px solid #0084ff30 !important;
    background: #ffffff !important;
}

/* Ensure individual image items in received messages have consistent border */
.message.received .message-image-item {
    border: 1px solid #e4e6eb !important;
    background: #ffffff !important;
}

/* For multiple images grid - sent messages */
.message.sent .message-images.multiple {
    background: #e7f3ff !important;
    border: 1px solid #0084ff30 !important;
}

/* For multiple images grid - received messages */
.message.received .message-images.multiple {
    background: #f0f2f5 !important;
    border: 1px solid #e4e6eb !important;
}

/* Caption text styling */
.message-image-caption {
    padding: 0px 10px;
    font-size: 12px;
    color: #65676b;
    border-top: 1px solid #e4e6eb;
    background: transparent;
}

.message.sent .message-image-caption {
    border-top-color: #0084ff30;
    color: #050505;
}

/* Caption below images (for multiple images) */
.message-caption-below {
    background: #f0f2f5;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    color: #050505;
    max-width: 100%;
    word-wrap: break-word;
    border: 1px solid #e4e6eb;
}

/* For the caption below images in sent messages */
.message.sent .message-caption-below {
    background: #e7f3ff !important;
    border: 1px solid #0084ff30 !important;
    color: #050505 !important;
}

/* For the caption below images in received messages */
.message.received .message-caption-below {
    background: #f0f2f5 !important;
    border: 1px solid #e4e6eb !important;
    color: #050505 !important;
}

/* Multiple images layout */
.message-images.multiple {
    display: grid;
    gap: 6px;
    background: #f0f2f5;
    border-radius: 16px;
    padding: 8px;
    border: 1px solid #e4e6eb;
}

/* 1 image - with border */
.message-images.multiple:has(.message-image-item:nth-child(1)) {
    grid-template-columns: 1fr;
}
.message-images.multiple:has(.message-image-item:nth-child(1)) .message-image-item {
    max-width: 200px;
    border: 1px solid #e4e6eb !important;
}
.message-images.multiple:has(.message-image-item:nth-child(1)) .message-image-item img {
    width: 100%;
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
}

/* 2 images - side by side, each 100x100 max */
.message-images.multiple:has(.message-image-item:nth-child(2)) {
    grid-template-columns: repeat(2, 1fr);
}
.message-images.multiple:has(.message-image-item:nth-child(2)) .message-image-item {
    max-width: 100px;
    border: 1px solid #e4e6eb !important;
}
.message-images.multiple:has(.message-image-item:nth-child(2)) .message-image-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

/* 3 images - first: 200x100, below: two 100x100 */
.message-images.multiple:has(.message-image-item:nth-child(3)) {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.message-images.multiple:has(.message-image-item:nth-child(3)) .message-image-item:first-child {
    grid-column: span 2;
    max-width: 200px;
    border: 1px solid #e4e6eb !important;
}
.message-images.multiple:has(.message-image-item:nth-child(3)) .message-image-item:first-child img {
    width: 200px;
    height: 100px;
    object-fit: cover;
}
.message-images.multiple:has(.message-image-item:nth-child(3)) .message-image-item:nth-child(2),
.message-images.multiple:has(.message-image-item:nth-child(3)) .message-image-item:nth-child(3) {
    max-width: 100px;
    border: 1px solid #e4e6eb !important;
}
.message-images.multiple:has(.message-image-item:nth-child(3)) .message-image-item:nth-child(2) img,
.message-images.multiple:has(.message-image-item:nth-child(3)) .message-image-item:nth-child(3) img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

/* 4 images - 2x2 grid, each 100x100 max */
.message-images.multiple:has(.message-image-item:nth-child(4)):has(.message-image-item:nth-child(4)) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.message-images.multiple:has(.message-image-item:nth-child(4)):has(.message-image-item:nth-child(4)) .message-image-item:first-child {
    grid-column: auto;
    max-width: 100px;
    border: 1px solid #e4e6eb !important;
}
.message-images.multiple:has(.message-image-item:nth-child(4)):has(.message-image-item:nth-child(4)) .message-image-item:first-child img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}
.message-images.multiple:has(.message-image-item:nth-child(4)):has(.message-image-item:nth-child(4)) .message-image-item {
    max-width: 100px;
    border: 1px solid #e4e6eb !important;
}
.message-images.multiple:has(.message-image-item:nth-child(4)):has(.message-image-item:nth-child(4)) .message-image-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

/* Individual image items in multiple */
.message-images.multiple .message-image-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e4e6eb;
    padding: 0;
}

.message.sent .message-images.multiple .message-image-item {
    border: 1px solid #0084ff30;
}

.message.received .message-images.multiple .message-image-item {
    border: 1px solid #e4e6eb;
}

/* Sent message image group background and border */
.message.sent .message-images {
    background: #e7f3ff !important;
    border: 1px solid #0084ff30 !important;
}

/* Received message image group background and border */
.message.received .message-images {
    background: #f0f2f5 !important;
    border: 1px solid #e4e6eb !important;
}

/* Sent message attachments alignment */
.message.sent .message-attachments {
    justify-content: flex-end;
}

/* Received message attachments alignment */
.message.received .message-attachments {
    justify-content: flex-start;
}

/* Message Bubbles - Clean Style */
.message { 
    display: flex !important; 
    flex-direction: column !important; 
    max-width: 80% !important; 
    margin-bottom: 4px !important;
}
.message.sent { align-items: flex-end !important; margin-left: auto !important; }
.message.received { align-items: flex-start !important; }

.message-content { 
    padding: 8px 12px !important; 
    border-radius: 18px !important; 
    word-wrap: break-word !important; 
    font-size: 13px !important; 
    line-height: 1.4 !important; 
    display: inline-block !important;
}
.message.sent .message-content { 
    background: #0084ff !important; 
    color: white !important; 
    border-bottom-right-radius: 4px !important; 
}
.message.received .message-content { 
    background: #e4e6eb !important; 
    color: #050505 !important; 
    border-bottom-left-radius: 4px !important; 
}

/* Message Footer - Time and Status on same line */
.message-footer {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-top: 2px !important;
    font-size: 10px !important;
}
.message.sent .message-footer { justify-content: flex-end !important; }
.message.received .message-footer { justify-content: flex-start !important; }

.message-time {
    color: #65676b !important;
    font-size: 10px !important;
}

/* Status Icons - Correct order */
.message-status {
    font-size: 10px !important;
    margin-left: 2px !important;
}

/* Clock icon - sending */
.message-status.sending {
    color: #65676b !important;
}

/* Single gray check - sent */
.message-status.sent {
    color: #65676b !important;
}

/* Double gray check - delivered */
.message-status.delivered {
    color: #65676b !important;
}

/* Double blue check - read / AI has processed (WhatsApp blue) */
.message-status.read {
    color: #34b7f1 !important;
}

/* Red exclamation - error */
.message-status.error {
    color: #ef4444 !important;
    cursor: pointer !important;
}

.message-status.error:hover {
    opacity: 0.8;
}

/* Chat Empty State */
.chat-empty { text-align: center !important; padding: 40px 20px !important; color: #65676b !important; }
.chat-empty i { font-size: 48px !important; color: #d1d3e2 !important; margin-bottom: 16px !important; display: block !important; }

/* Typing Indicator */
.typing-indicator { display: flex !important; gap: 4px !important; padding: 8px 12px !important; background: #e4e6eb !important; border-radius: 18px !important; width: fit-content !important; margin-bottom: 8px !important; }
.typing-indicator span { width: 6px !important; height: 6px !important; background: #65676b !important; border-radius: 50% !important; animation: typing 1.4s infinite !important; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s !important; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s !important; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-10px); opacity: 1; } }

/* ── AI Typing Bubble ────────────────────────────────────────────────────────
   Shown on the received (left) side while the AI gateway is generating.
   Uses the same bouncing-dot animation as the human typing indicator
   but with a soft purple tint to signal it's an AI agent responding.
   ─────────────────────────────────────────────────────────────────────────── */
.ai-typing-bubble {
    max-width: fit-content !important;
    margin-bottom: 4px !important;
}

.ai-typing-inner {
    background: #ece5ff !important;  /* Soft purple — signals AI, not human */
    border-radius: 18px 18px 18px 4px !important;
    padding: 10px 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    border: 1px solid #d8bfff !important;
}

.ai-typing-dots {
    display: flex !important;
    gap: 4px !important;
    align-items: center !important;
}

.ai-typing-dots span {
    width: 7px !important;
    height: 7px !important;
    background: #7c3aed !important; /* Purple dot — AI brand color */
    border-radius: 50% !important;
    animation: aiTypingBounce 1.2s infinite ease-in-out !important;
    opacity: 0.6 !important;
}

.ai-typing-dots span:nth-child(2) { animation-delay: 0.2s !important; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.4s !important; }

@keyframes aiTypingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40%           { transform: translateY(-8px); opacity: 1; }
}

/* Chat Badge */
.chat-badge {
    position: fixed !important;
    bottom: 20px !important;
    right: 100px !important;
    left: auto !important;
    top: auto !important;
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%) !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 12px 20px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    display: none !important;
    align-items: center !important;
    gap: 8px !important;
    z-index: 99998 !important;
    transition: all 0.2s !important;
}

.chat-badge:hover { transform: translateY(-2px) !important; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important; }
.chat-badge i { font-size: 18px !important; }
.chat-badge .unread-badge { background: #e74a3b !important; border-radius: 50% !important; min-width: 20px !important; height: 20px !important; font-size: 11px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; position: absolute !important; top: -8px !important; right: -8px !important; padding: 0 5px !important; font-weight: bold !important; }

/* Scrollbar */
.chat-messages::-webkit-scrollbar,
.chat-contact-form::-webkit-scrollbar { width: 6px !important; }
.chat-messages::-webkit-scrollbar-track,
.chat-contact-form::-webkit-scrollbar-track { background: #f1f1f1 !important; border-radius: 3px !important; }
.chat-messages::-webkit-scrollbar-thumb,
.chat-contact-form::-webkit-scrollbar-thumb { background: #c1c1c1 !important; border-radius: 3px !important; }

.is-invalid { border-color: #e74a3b !important; }
.is-invalid:focus { box-shadow: 0 0 0 0.2rem rgba(231, 74, 59, 0.25) !important; }

/* Alert styles */
.chat-alert-container {
    position: relative;
    z-index: 100;
    margin: 0;
    padding: 0;
}

.chat-alert {
    padding: 10px 12px;
    margin: 0 10px 10px 10px;
    border-radius: 8px;
    font-size: 12px;
    animation: slideDown 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chat-alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-left: 3px solid #0f5132;
}

.chat-alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.chat-alert-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: inherit;
    padding: 0 5px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.chat-alert-close:hover { opacity: 1; }

/* Responsive */
@media (max-width: 768px) {
    .chat-widget-container { right: 10px !important; bottom: 10px !important; width: calc(100% - 20px) !important; height: calc(100% - 20px) !important; max-width: 400px !important; }
    .chat-badge { right: 20px !important; bottom: 20px !important; }
    .chat-box.minimized { width: calc(100% - 20px) !important; max-width: 400px !important; }
    .chat-alert { margin: 0 5px 5px 5px; padding: 8px 10px; font-size: 11px; }
    
    /* Mobile 2 images */
    .message-images.multiple:has(.message-image-item:nth-child(2)) .message-image-item {
        max-width: 75px !important;
    }
    .message-images.multiple:has(.message-image-item:nth-child(2)) .message-image-item img {
        width: 75px !important;
        height: 75px !important;
    }
    
    /* Mobile 3 images */
    .message-images.multiple:has(.message-image-item:nth-child(3)) .message-image-item:first-child {
        max-width: 156px !important;
    }
    .message-images.multiple:has(.message-image-item:nth-child(3)) .message-image-item:first-child img {
        width: 156px !important;
        height: 75px !important;
    }
    .message-images.multiple:has(.message-image-item:nth-child(3)) .message-image-item:nth-child(2),
    .message-images.multiple:has(.message-image-item:nth-child(3)) .message-image-item:nth-child(3) {
        max-width: 75px !important;
    }
    .message-images.multiple:has(.message-image-item:nth-child(3)) .message-image-item:nth-child(2) img,
    .message-images.multiple:has(.message-image-item:nth-child(3)) .message-image-item:nth-child(3) img {
        width: 75px !important;
        height: 75px !important;
    }
    
    /* Mobile 4 images */
    .message-images.multiple:has(.message-image-item:nth-child(4)):has(.message-image-item:nth-child(4)) {
        grid-template-columns: repeat(2, 75px) !important;
        gap: 6px !important;
    }
    .message-images.multiple:has(.message-image-item:nth-child(4)):has(.message-image-item:nth-child(4)) .message-image-item {
        max-width: 75px !important;
    }
    .message-images.multiple:has(.message-image-item:nth-child(4)):has(.message-image-item:nth-child(4)) .message-image-item img {
        width: 75px !important;
        height: 75px !important;
    }
    
    /* Mobile 1 image */
    .message-images.multiple:has(.message-image-item:nth-child(1)) .message-image-item {
        max-width: 160px !important;
    }
}