/* Rever AI Engine Styles for WooCommerce */
.rever-search-wrapper {
    position: relative;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rever-input-box {
    display: flex;
    gap: 10px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.rever-input-box:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.rever-input-field {
    flex: 1;
    border: none !important;
    outline: none !important;
    font-size: 15px;
    color: #1e293b;
    background: transparent;
    padding: 8px 0;
}

.rever-submit-btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.rever-submit-btn:hover {
    background: #1d4ed8;
}

@keyframes reverPulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.rever-pulse {
    animation: reverPulse 1.5s infinite ease-in-out;
}

@keyframes reverEq {
    0% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.4);
    }

    100% {
        transform: scaleY(1);
    }
}

.rever-eq1 {
    animation: reverEq 1s ease-in-out infinite;
    transform-origin: center;
}

.rever-eq2 {
    animation: reverEq 1s ease-in-out infinite 0.2s;
    transform-origin: center;
}

.rever-eq3 {
    animation: reverEq 1s ease-in-out infinite 0.4s;
    transform-origin: center;
}

@keyframes rever-pulse-bg {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        opacity: 0.6;
    }
}

.rever-ai-response-card {
    margin-top: 15px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
}

.rever-ai-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-weight: 700;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.rever-floating-chat-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    color: #ffffff;
    border: none;
    padding: 14px 22px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s ease;
}

.rever-floating-chat-trigger:hover {
    transform: translateY(-2px);
}

.rever-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

.rever-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.2s ease;
}

.rever-product-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
    transform: translateY(-3px);
}

.rever-prod-link {
    text-decoration: none !important;
    color: inherit;
}

.rever-prod-img-wrap {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background: #f8fafc;
}

.rever-prod-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.rever-prod-title {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
    margin-top: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rever-prod-price {
    font-weight: 700;
    font-size: 14px;
    color: #2563eb;
    margin-top: 6px;
}

.rever-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.rever-quick-reply-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.rever-quick-reply-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

/* Chat UI Styles */
.rever-chat-history-details {
    margin-top: 15px;
    margin-bottom: 15px;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 10px 15px;
}

.rever-chat-history-details summary {
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    list-style: none;
    outline: none;
    padding: 5px 0;
}

.rever-chat-history-details summary::-webkit-details-marker {
    display: none;
}

.rever-chat-history-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rever-msg {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 90%;
}

.rever-msg-user {
    align-self: flex-end;
    background: #e0e7ff;
    color: #1e3a8a;
    border-bottom-right-radius: 4px;
}

.rever-msg-ai {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    border-bottom-left-radius: 4px;
}