:root {
    --dlcs-primary: #1B4332;
    --dlcs-hover: #2D6A4F;
    --dlcs-border: #e4e4e4;
    --dlcs-error: #c62828;
    --dlcs-bg: #FAFAFA;
    --dlcs-text: #333;
    --dlcs-light-bg: #f8f9fa;
    --dlcs-success-bg: #D8F3DC;
    --dlcs-shadow: rgba(0, 0, 0, 0.1);
    --dlcs-shadow-dark: rgba(0, 0, 0, 0.2);
    --dlcs-chat-bg: #ffffff;
    --dlcs-chat-bot: #d2e6ff;
    --dlcs-error-bg: #ffebee;
    --dlcs-error-border: #ffcdd2;
    --dlcs-scrollbar: #cacaca;
}
 
.mode-toggle {
    display: flex;
    align-items: center;
    position: relative;
    background: var(--dlcs-bg-light) !important;
}
 
.mode-toggle::after {
    content: '';
    width: 1px;
    height: 24px;
    background: var(--dlcs-border);
    margin: 0 10px;
}
 
.ai-toggle {
    background: none;
    border: none;
    padding: 3px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: var(--dlcs-light-bg) !important;
}
 
.ai-toggle.active {
    background: var(--dlcs-primary) !important;
}
 
.ai-toggle.active .robot-icon {
    fill: var(--dlcs-bg);
}
 
.robot-icon {
    width: 24px;
    height: 24px;
    fill: white !important;
    transition: fill 0.3s ease;
    vertical-align: middle;
    margin-top: 2px;
}
 
#chat-window {
    display: none;
    flex-direction: column;
    height: 515px;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    max-height: 70vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    overflow-y: auto;
    scroll-behavior: smooth;
}
 
.message {
    margin: 8px 0;
    padding: 12px;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
}
 
.user-message {
    background: var(--dlcs-primary);
    color: white;
    margin-left: auto;
    margin-right: 0;
}
 
.bot-message {
    background: var(--dlcs-chat-bot);
    color: var(--dlcs-text);
    margin-right: auto;
    margin-left: 0;
}
 
.message-content {
    word-wrap: break-word;
    line-height: 1.4;
}
 
@keyframes messageAppear {
}
 
.chip {
    width: 100%;
    padding: 8px 16px;
    background: var(--dlcs-light-bg);
    color: var(--dlcs-text);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 14px;
    text-align: left;
    display: block !important;
}
 
.chip:hover {
    background: var(--dlcs-primary);
    color: white;
}
 
.loading {
    text-align: center;
    padding: 20px;
    color: var(--dlcs-text);
}
 
.product-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}
 
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
 
.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-right: 30px;
    text-align: left;
}
 
.product-card.loading .product-info {
    position: relative;
    z-index: 0;
}
 
.product-title {
    color: var(--dlcs-text) !important;
    text-decoration: none;
    font-weight: 500;
}
 
.product-price {
    color: var(--dlcs-text) !important;
    font-size: 0.9em;
}
 
.product-actions {
    flex-shrink: 0;
}
 
.ai-product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 24px;
    background-color: var(--dlcs-primary) !important;
    color: var(--dlcs-bg) !important;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    margin: 0 4px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px var(--dlcs-shadow);
}
 
.ai-product-link:hover {
    background-color: var(--dlcs-hover);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px var(--dlcs-shadow-dark);
    color: var(--dlcs-bg);
    text-decoration: none;
}
 
.ai-product-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px var(--dlcs-shadow);
}
 
.message.bot-message.error-message {
    background-color: var(--dlcs-error-bg) !important;
    border-color: var(--dlcs-error-border) !important;
}
 
.message.bot-message.error-message .message-content {
    color: var(--dlcs-error) !important;
}
 
.typing-indicator {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--dlcs-chat-bot);
    border-radius: 20px;
    margin: 8px 0;
}
 
.typing-indicator span {
    width: 6px;
    height: 6px;
    margin: 0 2px;
    background: var(--dlcs-primary);
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}
 
.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}
 
.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}
 
@keyframes typing {
    0%, 100% { 
        transform: translateY(0); 
        opacity: 0.5;
    }
    50% { 
        transform: translateY(-3px); 
        opacity: 1;
    }
}
 
.typing {
    max-width: 100px;
}
 
#chat-window::-webkit-scrollbar {
    width: 8px;
}
 
#chat-window::-webkit-scrollbar-track {
    background: var(--dlcs-light-bg);
    border-radius: 4px;
}
 
#chat-window::-webkit-scrollbar-thumb {
    background: var(--dlcs-border);
    border-radius: 4px;
    transition: background 0.3s ease;
}
 
#chat-window::-webkit-scrollbar-thumb:hover {
    background: var(--dlcs-scrollbar);
}
 
#chat-window {
    scrollbar-width: thin;
    scrollbar-color: var(--dlcs-border) var(--dlcs-light-bg);
    margin-bottom: 15px;
}
 
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
 
.chip {
    transition: all 0.3s ease;
    margin-bottom: 10px;
}
 
.chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px var(--dlcs-shadow);
}
 
#chat-window
{
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: transparent;
    border: none;
}
 
.message-content h1,
.message-content h2,
.message-content h3 {
    margin: 6px 0;
    color: var(--dlcs-text);
}
 
.message-content h1 { font-size: 1.4em; }
.message-content h2 { font-size: 1.2em; }
.message-content h3 { font-size: 1.1em; }
 
.message-content p {
    margin: 1em 0;
}
 
.message-content p:first-child {
    margin-top: 0;
}
 
.message-content p:last-child {
    margin-bottom: 0;
}
 
.message-content br {
    line-height: 1.6;
}
 
.message-content ol, 
.message-content ul {
    margin: 0.8em 0;
    padding-left: 2em;
}
 
.message-content li {
    margin: 0.4em 0;
    line-height: 1.5;
}
 
.message-content strong {
    word-break: keep-all;
    display: inline-block;
}
 
.message-content em {
    font-style: italic;
}
 
#chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: var(--dlcs-light-bg);
    border-radius: 12px 12px 0 0;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}
 
.clear-chat-button {
    width: 100%;
    padding: 8px 16px;
    background: var(--dlcs-error);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 14px;
}
 
.clear-chat-button:hover {
    background: var(--dlcs-error-bg);
    color: var(--dlcs-error);
}

.clear-chat-container {
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 15px;
    padding-top: 15px;
    background: var(--dlcs-light-bg);
}
 
.widget-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--dlcs-bg);
    z-index: 97;
}
 
.loader-circle {
    width: 30px;
    height: 30px;
    border: 2px solid var(--dlcs-border);
    border-top: 2px solid var(--dlcs-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
 
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
 
#dlcs-chat-container {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 98 !important;
}
 
#chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--dlcs-primary);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#chat-toggle:hover {
    transform: scale(1.1);
    background: var(--dlcs-hover);
}

#chat-window.active {
    display: flex;
    animation: slideIn 0.3s ease;
}

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

#chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: var(--dlcs-light-bg);
    border-radius: 12px 12px 0 0;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

.chat-input {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: white;
    border-top: 1px solid #e4e4e4;
    border-radius: 0 0 12px 12px;
}

#chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    font-size: 14px;
    background: var(--dlcs-light-bg) !important;
}

#send-button {
    padding: 10px 20px;
    background: var(--dlcs-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

#send-button:hover {
    background: var(--dlcs-hover);
    transform: scale(1.05);
}

.message {
    margin: 8px 0;
    padding: 12px;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message {
    background: var(--dlcs-primary);
    color: white;
    margin-left: auto;
    margin-right: 0;
}

.bot-message {
    background: var(--dlcs-chat-bot);
    color: var(--dlcs-text);
    margin-right: auto;
    margin-left: 0;
}

@media (max-width: 480px) {
    #dlcs-chat-container {
        left: 20px !important;
    }
    
    #chat-window {
        width: 90vw;
        left: 5vw;
        bottom: 80px;
    }
}
 
#send-button {
    padding: 10px 20px;
    background: var(--dlcs-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

#send-button:hover {
    background: var(--dlcs-hover);
    transform: scale(1.05);
}

.typing-indicator {
    display: inline-flex;
    padding: 8px 16px;
    background: var(--dlcs-chat-bot);
    border-radius: 20px;
    margin: 8px 0;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    margin: 0 2px;
    background: var(--dlcs-primary);
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% { 
        transform: translateY(0); 
        opacity: 0.5;
    }
    50% { 
        transform: translateY(-3px); 
        opacity: 1;
    }
}
 
.chips-container {
    transition: opacity 0.3s ease, height 0.3s ease;
    background: var(--dlcs-light-bg);
    padding-top: 15px;
    align-items: center;
    justify-content: center;
    padding-left: 15px;
    padding-right: 15px;
}

.chips-container.hidden {
    height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
 
.product-link-container {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 5px 0;
}

.ai-product-link:not(.round-button) {
    padding: 4px 12px;
    border-radius: 4px;
    background: var(--dlcs-primary);
    color: white !important;
    text-decoration: none;
    font-size: 0.9em;
    transition: background 0.3s;
}

.ai-product-link:not(.round-button):hover {
    background: var(--dlcs-hover);
}

.product-title-link {
    display: block;
    width: 100%;
    height: 100%;
}

.ai-product-link.round-button {
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 18px;
    line-height: 24px;
    text-align: center;
    overflow: hidden;
    text-indent: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ai-product-link.round-button::after {
    content: "+";
    display: block;
    width: 100%;
    height: 100%;
    line-height: 24px;
}

.ai-product-link.round-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px var(--dlcs-shadow-dark);
    background: var(--dlcs-hover);
}
 
.product-added-message {
    display: flex;
    align-items: center;
    padding: 10px;
    background: var(--dlcs-success-bg);
    border-radius: 8px;
    margin: 10px 0;
}
 
.product-name-link {
    color: var(--dlcs-primary) !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.product-name-link:hover {
    color: var(--dlcs-hover) !important;
    text-decoration: underline;
}
 
.beta-message {
    background: var(--dlcs-light-bg) !important;
    border: 1px solid var(--dlcs-border);
    position: relative;
    max-width: 95% !important;
}

.beta-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--dlcs-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px var(--dlcs-shadow);
}

.beta-message .message-content h3 {
    color: var(--dlcs-primary);
    margin-bottom: 12px;
    font-size: 16px;
}

.beta-message .message-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.beta-message .message-content li {
    color: var(--dlcs-text);
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.4;
}

.ai-response-text {
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 15px;
    color: var(--dlcs-text);
}

.product-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0;
    width: 100%;
}

.product-card {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    border-color: #e0e0e0;
}

.product-card:after {
    content: "→";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--dlcs-primary);
    opacity: 0;
    transition: opacity 0.2s ease, right 0.2s ease;
}

.product-card:hover:after {
    opacity: 1;
    right: 10px;
}

.product-card.loading {
    opacity: 0.7;
    pointer-events: none;
    text-align: left;
}

.product-card.loading * {
    text-align: left;
}

.product-card.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    text-align: initial;
}

.product-card.loading::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--dlcs-border);
    border-top: 2px solid var(--dlcs-primary);
    border-radius: 50%;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    z-index: 1;
    animation: spin 1s linear infinite;
    text-align: initial;
}

.product-title {
    font-weight: 600;
    color: var(--dlcs-text);
    font-size: 14px;
    margin-bottom: 4px;
}

.product-price {
    font-weight: 600;
    color: var(--dlcs-primary);
    font-size: 15px;
}

.product-weight {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}

.product-actions {
    display: flex;
    align-items: center;
}

.product-card .ai-product-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--dlcs-primary);
    color: white;
    border-radius: 50%;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-card .ai-product-link:hover {
    background-color: var(--dlcs-hover);
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.product-name-link {
    color: var(--dlcs-primary) !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.product-name-link:hover {
    color: var(--dlcs-hover) !important;
    text-decoration: underline;
}
 
.beta-message {
    background: var(--dlcs-light-bg) !important;
    border: 1px solid var(--dlcs-border);
    position: relative;
    max-width: 95% !important;
}

.beta-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--dlcs-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px var(--dlcs-shadow);
}

.beta-message .message-content h3 {
    color: var(--dlcs-primary);
    margin-bottom: 12px;
    font-size: 16px;
}

.beta-message .message-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.beta-message .message-content li {
    color: var(--dlcs-text);
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.4;
}

.ai-response-text {
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 15px;
    color: var(--dlcs-text);
}

.product-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0;
    width: 100%;
}
 
.ai-product-link.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.ai-product-link.loading::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid white;
    border-radius: 50%;
    top: calc(50% - 8px);
    left: calc(50% - 8px);
    animation: spin 1s linear infinite;
}

.ai-product-link.loading svg {
    opacity: 0;
}
 
#send-button.disabled, 
#search-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #aaa !important;
    transform: none !important;
    box-shadow: none !important;
}

#send-button.disabled:hover, 
#search-button.disabled:hover {
    background: #aaa !important;
    transform: none !important;
}
 
.product-link-container {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 5px 0;
}
 
 
 