.product-ai-chat-container {
    max-width: 800px;
    width: 100%;
    margin: 20px auto;
    border: 1px solid #ececec;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #4343bc #f5f5f5; /* Firefox */
}

/* Webkit (Chrome, Safari, Edge) scrollbar stiliai */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #4343bc;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #b3b6ff;
}

.chat-message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
    color: #272a39;
}

.chat-message p {
    margin: 0 0 10px 0;
}
.chat-message p:last-child {
    margin: 0;
}
.chat-message ul {
    margin: 10px 0;
    padding: 0 0 0 20px;
}


.user-message {
    background: #4343bc;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.assistant-message {
    background: #fff;
    color: #0d0e18;
    margin-right: auto;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    padding: 15px;
}

.assistant-message .ai-response {
    margin: 0;
}

.chat-input-container {
    display: flex;
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid #ececec;
}

#ai-chat-input {
    flex: 1;
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ececec;
    border-radius: 20px;
    outline: none;
    color: #0d0e18;
}

#ai-chat-input::placeholder {
    color: #0d0e18;
    opacity: 1;
}

#ai-chat-input:focus {
    border-color: #4343bc;
}

#ai-chat-send {
    padding: 10px 20px;
    background-color: #b3b6ff;
    color: #0d0e18;  /* or 0d0e18 */
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

#ai-chat-send:hover {
    background-color: #4343bc;
    color: #fff;
}

#ai-chat-send:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#ai-chat-clear {
    padding: 10px 16px;
    margin-left: 8px;
    background-color: #fff;
    color: #4343bc;
    border: 1px solid #4343bc;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

#ai-chat-clear:hover {
    background-color: #edeeff;
}

#ai-chat-clear:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-loading {
    text-align: center;
    padding: 10px;
    color: #7c7c7c;
    font-style: italic;
}

/* Animacija loading indikatoriui */
@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}

.chat-loading::after {
    content: '';
    animation: dots 1.5s infinite;
}

.ai-response {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #0d0e18;
}

.ai-response h3.product-title {
    color: #0d0e18;
    margin: 1.5em 0 1em;
    font-size: 1.2em;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5em;
}

.ai-response strong.product-label {
    color: #0d0e18;
    font-weight: 600;
    display: block;
    margin-top: 0.5em;
}

.ai-response a {
    color: #4343bc;
    text-decoration: none;
    border-bottom: 1px dotted #4343bc;
    text-decoration: none !important;
}

.ai-response a:not(.example-question):hover {
    color: #4343bc;
    border-bottom-style: solid;
}

.ai-response img.product-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1em 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.example-questions {
    list-style: none;
    padding: 0 !important;
    margin: 10px 0 !important;
}

.example-question {
    text-decoration: none !important;
    /* text-decoration: none !important;
    cursor: pointer;
    display: inline-block;
    margin: 5px 0;
    padding: 6px 12px !important;
    font-size: 10px !important; */
}

.token-info-message {
    font-size: 0.7em;
    color: #7c7c7c;
    background: transparent;
    padding: 0;
    margin: -5px 0 15px 0;
    border-radius: 0;
    text-align: right;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
}

.token-info {
    font-family: monospace;
    font-size: 0.9em;
    color: #7c7c7c;
}

.ai-product-placeholder {
    display: block;
    min-height: 72px;
    margin: 12px 0;
    background: #f0f0f5;
    border-radius: 8px;
    animation: ai-product-pulse 1.2s ease-in-out infinite;
}

@keyframes ai-product-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

.ai-product-card {
    margin: 12px 0 0;
    padding: 12px 14px;
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fff;
}

.ai-product-card__name {
    font-weight: 600;
    font-size: 1em;
    color: #0d0e18;
    margin-bottom: 6px;
}

.ai-product-card__period {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.ai-product-card__period-btn {
    padding: 6px 10px;
    font-size: 0.8em;
    border: 1px solid #ececec;
    border-radius: 16px;
    background: #fff;
    color: #0d0e18;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.ai-product-card__period-btn:hover {
    border-color: #4343bc;
}

.ai-product-card__period-btn.is-active {
    background-color: #4343bc;
    border-color: #4343bc;
    color: #fff;
}

.ai-product-card__price {
    font-size: 0.95em;
    color: #4343bc;
    margin-bottom: 10px;
}

.ai-product-card__price-suffix {
    font-size: 0.85em;
    color: #7c7c7c;
    margin-left: 2px;
}

.ai-product-card__price .amount,
.ai-product-card__price ins {
    text-decoration: none;
}

.ai-product-card__atc {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4343bc;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s, opacity 0.2s;
}

.ai-product-card__atc:hover:not(:disabled) {
    background-color: #3535a8;
}

.ai-product-card__atc:disabled,
.ai-product-card__atc.is-loading {
    opacity: 0.7;
    cursor: wait;
}