.sl-chat-container {
    border: 1px solid #ccd0d4;
    background: #f0f0f1;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
    margin-bottom: 20px;
    border-radius: 4px;
}

.sl-chat-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 12px;
    max-width: 75%;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    clear: both;
}

.sl-chat-message.is-admin {
    background-color: #d6f0f9; /* Light blue for admin */
    border: 1px solid #bce0ee;
    float: right;
    border-bottom-right-radius: 2px;
}

.sl-chat-message.is-customer {
    background-color: #ffffff; /* White for customer */
    border: 1px solid #ccd0d4;
    float: left;
    border-bottom-left-radius: 2px;
}

.sl-chat-header {
    font-size: 0.85em;
    margin-bottom: 8px;
    color: #50575e;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 5px;
}

.sl-chat-author {
    font-weight: 600;
}

.sl-chat-date {
    font-style: italic;
}

.sl-chat-body {
    font-size: 1.1em;
    line-height: 1.5;
    color: #1d2327;
}

.sl-chat-attachment {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-size: 0.9em;
}

.sl-chat-attachment a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.sl-chat-attachment .dashicons {
    margin-right: 5px;
}

/* Clearfix for the container to handle floating elements */
.sl-chat-container::after {
    content: "";
    clear: both;
    display: table;
}

/* Frontend View Quote Styles */
.sl-view-quote-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .sl-view-quote-container {
        grid-template-columns: 1fr;
    }
}

.sl-quote-main-content table td,
.sl-quote-main-content table th {
    color: #333 !important; /* Ensure high contrast */
}

.sl-quote-main-content table td a {
    color: #0073aa;
    text-decoration: none;
}

.sl-quote-main-content table td a:hover {
    text-decoration: underline;
}

.sl-quote-main-content img {
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}