/* Frontend Chatbot Transcript Styles */
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; 
    background-color: #f9f9f9; 
    margin: 20px auto; 
    padding: 0 20px; 
}

h1 { 
    text-align: center; 
}

.message-container { 
    margin-bottom: 20px; 
}

.user-message-wrapper, .bot-message-wrapper { 
    display: flex; 
    align-items: flex-start; 
}

.user-message-wrapper { 
    flex-direction: row-reverse; 
}

.message-avatar { 
    width: 30px; 
    height: 30px; 
    margin: 0 10px; 
    border-radius: 50%; 
}

.message-avatar.user-avatar { 
    display: flex; 
    border: 1px solid; 
    padding: 3px; 
    max-height: 18px; 
    max-width: 18px; 
}

.bot-message, .user-message { 
    padding: 10px 15px; 
    border-radius: 10px; 
    max-width: 70%;
    font-size: 14px;
    line-height: 1.7;
}

.bot-message { 
    background: #fbfbfb;
}

.user-message {  
    border: 1px solid;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

.product-link-container {
    margin: 8px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    background-color: #fff;
    max-width: 300px;
    padding: 0;
    font-size: 0; 
    line-height: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-link-container:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-link {
    display: block;
    text-decoration: none;
}

.product-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 8px 8px 0 0;
    position: relative; 
    top: 0;
}

.product-info {
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
}

.product-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    display: block;
    margin-top: 5px;
    margin-bottom: 10px;
}

.product-description {
    font-weight: 400;
    color: #333;
    line-height: 1.5;
    display: block;
    margin-bottom: 10px;
}

.product-price {
    font-weight: 500;
    color: #333;
    padding: 6px;
    border-top: 1px solid #eeebeb;
    display: block;
    padding-top: 10px;
}
