/* Transcript Generator Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.transcript-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.transcript-header h1 {
    color: #0968fe;
    margin-bottom: 10px;
}

.transcript-header p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.messages-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
}

.message-text {
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.7;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    background: #ffffff;
    padding: 5px;
    border-radius: 8px;
}

.message.user {
    background: #f8fafc;
    font-weight: 500;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid rgba(58, 79, 102, 0.1);
}

.message.user .message-header .role-label {
    color: #3c434a;
    font-weight: bold;
}

.message.bot {
    background: #fbfbfb;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #EFF2F6;
}

.message.bot .message-header .role-label {
    color: #3c434a;
    font-weight: bold;
}

.message.admin {
    background: #f5f9ff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid rgba(9, 104, 254, 0.12);
}

.message.admin .message-header .role-label {
    color: #0968fe;
    font-weight: bold;
}

.message.error .message-header .role-label {
    color: #dc3545;
    font-weight: bold;
}

.timestamp {
    color: #3A4F66;
}

a {
    color: #0968fe;
    text-decoration: none !important;
}

.footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #666;
}

/* Product Card */
.product-link-container {
    margin: 8px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    background: #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;
    color: #0968fe;
}

.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: 0.5;
    text-align: center;
}

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

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

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

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
