/**
 * WooCommerce Shopping Assistant Pro - Frontend Styles
 * Modern, responsive chatbot interface
 */

/* Main Container */
#wc-shopping-assistant-container {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
}

#wc-shopping-assistant-container *,
#wc-shopping-assistant-container *::before,
#wc-shopping-assistant-container *::after {
    box-sizing: border-box;
}

/* Position Classes */
#wc-shopping-assistant-container.wc-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

#wc-shopping-assistant-container.wc-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

#wc-shopping-assistant-container.wc-position-top-right {
    top: 20px;
    right: 20px;
}

#wc-shopping-assistant-container.wc-position-top-left {
    top: 20px;
    left: 20px;
}

/* Toggle Button */
.wc-chatbot-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
    color: white;
    font-size: 24px;
    animation: pulse 2s infinite;
    outline: none;
}

.wc-chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.wc-chatbot-toggle:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.wc-chatbot-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: bounce 1s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* Initial Greeting Bubble */
.wc-chatbot-greeting {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    border-radius: 18px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    animation: slideInRight 0.3s ease-out;
    max-width: 200px;
}

/* Position adjustments for greeting */
.wc-position-bottom-left .wc-chatbot-greeting {
    right: auto;
    left: 0;
    animation: slideInLeft 0.3s ease-out;
}

.wc-position-top-right .wc-chatbot-greeting {
    bottom: auto;
    top: 70px;
}

.wc-position-top-left .wc-chatbot-greeting {
    bottom: auto;
    top: 70px;
    right: auto;
    left: 0;
}

.wc-chatbot-greeting-text {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.wc-chatbot-greeting-close {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.wc-chatbot-greeting-close:hover {
    background: #f0f0f0;
    color: #666;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .wc-chatbot-greeting {
        bottom: 70px;
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* Chat Window */
.wc-chatbot-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 500px;
    max-height: calc(100vh - 100px);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid #e9ecef;
    opacity: 0;
    visibility: hidden;
}

.wc-chatbot-window.wc-chatbot-show {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

/* Position adjustments */
.wc-position-bottom-left .wc-chatbot-window {
    right: auto;
    left: 0;
    transform-origin: bottom left;
}

.wc-position-top-right .wc-chatbot-window {
    bottom: auto;
    top: 70px;
    transform-origin: top right;
}

.wc-position-top-left .wc-chatbot-window {
    bottom: auto;
    top: 70px;
    right: auto;
    left: 0;
    transform-origin: top left;
}

/* Header */
.wc-chatbot-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 15px 15px 0 0;
    flex-shrink: 0;
}

.wc-chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wc-chatbot-header-avatar {
    font-size: 20px;
    line-height: 1;
}

.wc-chatbot-header-text h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.wc-chatbot-status {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
    line-height: 1;
}

.wc-chatbot-minimize-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.2s;
    outline: none;
    line-height: 1;
}

.wc-chatbot-minimize-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.wc-chatbot-minimize-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
}

/* Messages Container */
.wc-chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 transparent;
}

.wc-chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.wc-chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.wc-chatbot-messages::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.wc-chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.wc-chatbot-message {
    display: flex;
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease-in;
}

.wc-chatbot-message-bot {
    justify-content: flex-start;
}

.wc-chatbot-message-user {
    justify-content: flex-end;
}

.wc-chatbot-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin: 0 8px;
    flex-shrink: 0;
    line-height: 1;
}

.wc-chatbot-message-bot .wc-chatbot-message-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.wc-chatbot-message-user .wc-chatbot-message-avatar {
    background: #28a745;
    color: white;
    order: 1;
}

.wc-chatbot-message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 250px;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    color: #333;
    line-height: 1.4;
    font-size: 14px;
}

.wc-chatbot-message-user .wc-chatbot-message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.wc-chatbot-message-time {
    font-size: 10px;
    color: #6c757d;
    margin-top: 5px;
    text-align: center;
    line-height: 1;
}

/* Quick Actions */
.wc-chatbot-quick-actions {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.wc-chatbot-quick-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    color: #495057;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    line-height: 1;
}

.wc-chatbot-quick-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
}

.wc-chatbot-quick-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Typing Indicator */
.wc-chatbot-typing {
    display: none;
    padding: 10px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    align-items: center;
    flex-shrink: 0;
}

.wc-chatbot-typing.show {
    display: flex;
}

.wc-chatbot-typing-content {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 40px;
}

.wc-chatbot-typing-dots {
    display: flex;
    gap: 3px;
}

.wc-chatbot-typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #667eea;
    animation: typingDots 1.4s infinite ease-in-out;
}

.wc-chatbot-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.wc-chatbot-typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingDots {
    0%, 80%, 100% { 
        transform: scale(0);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

.wc-chatbot-typing-text {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
    line-height: 1;
}

/* Input Area */
.wc-chatbot-input-area {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
    flex-shrink: 0;
}

.wc-chatbot-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 5px;
    border: 1px solid #dee2e6;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wc-chatbot-input-container:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#wc-chatbot-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    resize: none;
    font-family: inherit;
    color: #333;
    line-height: 1.4;
}

#wc-chatbot-input::placeholder {
    color: #6c757d;
}

#wc-chatbot-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wc-chatbot-send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    flex-shrink: 0;
    outline: none;
}

.wc-chatbot-send-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.wc-chatbot-send-btn:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

.wc-chatbot-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.wc-chatbot-send-btn svg {
    width: 20px;
    height: 20px;
}

/* Product Recommendations */
.wc-chatbot-products {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    display: none;
    animation: slideUp 0.3s ease-out;
}

.wc-chatbot-products.show {
    display: block;
}

.wc-chatbot-products-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wc-chatbot-products-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.wc-chatbot-products-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.2s;
    outline: none;
    line-height: 1;
}

.wc-chatbot-products-close:hover {
    background: #e9ecef;
}

.wc-chatbot-products-close:focus {
    outline: 2px solid #667eea;
}

.wc-chatbot-products-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 transparent;
}

.wc-chatbot-products-grid::-webkit-scrollbar {
    width: 6px;
}

.wc-chatbot-products-grid::-webkit-scrollbar-track {
    background: transparent;
}

.wc-chatbot-products-grid::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.wc-chatbot-product-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    outline: none;
}

.wc-chatbot-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
    text-decoration: none;
    color: inherit;
}

.wc-chatbot-product-card:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.wc-chatbot-product-image {
    text-align: center;
    margin-bottom: 10px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
}

.wc-chatbot-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.wc-chatbot-product-image:empty::before {
    content: "📦";
    font-size: 24px;
    color: #6c757d;
}

.wc-chatbot-product-info {
    text-align: left;
}

.wc-chatbot-product-name {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wc-chatbot-product-price {
    line-height: 1.2;
}

.wc-chatbot-product-description {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.3;
    margin: 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wc-chatbot-product-rating {
    font-size: 11px;
    color: #ffc107;
    margin-top: 5px;
    line-height: 1.2;
}

.wc-chatbot-product-sale-badge {
    color: #dc3545;
    font-size: 11px;
    font-weight: bold;
    margin-top: 5px;
    line-height: 1.2;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Loading States */
.wc-chatbot-loading {
    opacity: 0.6;
    pointer-events: none;
}

.wc-chatbot-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Error States */
.wc-chatbot-error {
    background: #fee;
    border-color: #fcc;
}

.wc-chatbot-error .wc-chatbot-message-content {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    /* Chat-Window auf Mobile anpassen */
    .wc-chatbot-window {
        position: fixed !important;
        width: calc(100vw - 20px) !important;
        height: 50vh !important;
        max-height: 400px !important;
        max-width: none;
    }
    
    /* Position umkehren für bessere Sichtbarkeit */
    .wc-position-bottom-right .wc-chatbot-window.wc-chatbot-show {
        bottom: 10px !important;  /* Statt top: 10px */
        right: auto !important;
        top: auto !important;
        left: 10px !important;
        transform-origin: bottom left !important;
    }

    .wc-position-bottom-left .wc-chatbot-window.wc-chatbot-show {
        bottom: 10px !important;  /* Statt top: 10px */
        left: auto !important;
        top: auto !important;
        right: 10px !important;
        transform-origin: bottom right !important;
    }
    
    .wc-position-top-right .wc-chatbot-window.wc-chatbot-show {
        top: auto !important;
        right: auto !important;
        bottom: 80px !important;
        left: 10px !important;
        transform-origin: bottom left !important;
    }
    
    .wc-position-top-left .wc-chatbot-window.wc-chatbot-show {
        top: auto !important;
        left: auto !important;
        bottom: 80px !important;
        right: 10px !important;
        transform-origin: bottom right !important;
    }
    
    /* Container Positionen für Toggle Button */
    #wc-shopping-assistant-container {
        bottom: 10px;
        right: 10px;
        left: auto;
        top: auto;
    }
    
    #wc-shopping-assistant-container.wc-position-bottom-left {
        bottom: 10px;
        left: 10px;
        right: auto;
        top: auto;
    }
    
    #wc-shopping-assistant-container.wc-position-top-right {
        top: 10px;
        right: 10px;
        bottom: auto;
        left: auto;
    }
    
    #wc-shopping-assistant-container.wc-position-top-left {
        top: 10px;
        left: 10px;
        bottom: auto;
        right: auto;
    }
    
    .wc-chatbot-toggle {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
    
    .wc-chatbot-header {
        padding: 12px 16px;
    }
    
    .wc-chatbot-header-text h4 {
        font-size: 15px;
    }
    
    .wc-chatbot-messages {
        padding: 16px;
    }
    
    .wc-chatbot-message-content {
        max-width: 220px;
        font-size: 13px;
        padding: 10px 14px;
    }
    
    .wc-chatbot-quick-actions {
        padding: 12px 16px;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .wc-chatbot-quick-btn {
        width: 100%;
        text-align: center;
        padding: 10px 8px;
        font-size: 11px;
        white-space: normal;  /* Erlaubt Zeilenumbruch */
    }
    
    .wc-chatbot-input-area {
        padding: 12px 16px;
    }
    
    .wc-chatbot-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
        padding: 16px;
    }
    
    .wc-chatbot-product-card {
        padding: 10px;
    }
    
    .wc-chatbot-product-image {
        height: 70px;
    }
    
    .wc-chatbot-typing {
        padding: 8px 16px;
    }
}

@media (max-width: 320px) {
    .wc-chatbot-window {
        width: calc(100vw - 10px);
        left: 5px;
        right: 5px;
    }
    
    .wc-chatbot-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .wc-chatbot-message-content {
        max-width: 180px;
    }
}

/* Tablet Responsive */
@media (min-width: 481px) and (max-width: 768px) {
    .wc-chatbot-window {
        width: 360px;
        height: 480px;
    }
    
    .wc-chatbot-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Large Screens */
@media (min-width: 1200px) {
    .wc-chatbot-window {
        width: 400px;
        height: 550px;
    }
    
    .wc-chatbot-products {
        max-height: 450px;
    }
    
    .wc-chatbot-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 18px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .wc-chatbot-toggle {
        animation: none;
    }
    
    .wc-chatbot-window {
        transition: opacity 0.2s, visibility 0.2s;
        transform: none !important;
    }
    
    .wc-chatbot-message {
        animation: none;
    }
    
    .wc-chatbot-products {
        animation: none;
    }
    
    .wc-chatbot-notification-badge {
        animation: none;
    }
    
    .wc-chatbot-typing-dots span {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .wc-chatbot-toggle {
        border: 2px solid white;
    }
    
    .wc-chatbot-window {
        border: 2px solid #000;
    }
    
    .wc-chatbot-message-content {
        border: 1px solid #000;
    }
    
    .wc-chatbot-product-card {
        border: 2px solid #000;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .wc-chatbot-window {
        background: #1a1a1a;
        border-color: #333;
        color: #fff;
    }
    
    .wc-chatbot-messages {
        background: #2a2a2a;
    }
    
    .wc-chatbot-message-content {
        background: #333;
        color: #fff;
    }
    
    .wc-chatbot-message-bot .wc-chatbot-message-content {
        background: #333;
        color: #fff;
    }
    
    .wc-chatbot-quick-actions,
    .wc-chatbot-input-area,
    .wc-chatbot-products-header {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .wc-chatbot-quick-btn {
        background: #333;
        border-color: #555;
        color: #fff;
    }
    
    .wc-chatbot-input-container {
        background: #333;
        border-color: #555;
    }
    
    #wc-chatbot-input {
        color: #fff;
    }
    
    #wc-chatbot-input::placeholder {
        color: #aaa;
    }
    
    .wc-chatbot-products {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .wc-chatbot-product-card {
        background: #333;
        border-color: #555;
        color: #fff;
    }
    
    .wc-chatbot-product-image {
        background: #2a2a2a;
    }
    
    .wc-chatbot-typing {
        background: #2a2a2a;
        border-color: #333;
    }
}

/* Print Styles */
@media print {
    #wc-shopping-assistant-container {
        display: none !important;
    }
}

/* CSS-ERGÄNZUNG für Shop-Notifications (füge in deine frontend.css ein):*/
.wc-chatbot-shop-notification {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 4px;
    padding: 12px;
    margin: 15px 0;
    font-size: 14px;
    position: relative;
}

.wc-chatbot-shop-notification .reset-link {
    color: #1976d2;
    cursor: pointer;
    text-decoration: underline;
}

.wc-chatbot-shop-notification .close-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #666;
}

.wc-chatbot-reset-filter button:hover {
    background: #218838 !important;
}

.wc-chatbot-greeting {
    animation-duration: 0.3s;
    animation-timing-function: ease-out;
    animation-fill-mode: both;
}

.wc-chatbot-greeting.fade-in {
    animation-name: fadeInGreeting;
}

.wc-chatbot-greeting.fade-out {
    animation-name: fadeOutGreeting;
}

@keyframes fadeInGreeting {
    from { 
        opacity: 0; 
        transform: translateY(10px) scale(0.9);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOutGreeting {
    from { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
    to { 
        opacity: 0; 
        transform: translateY(-10px) scale(0.9);
    }
}