/* Widget czatu AI na stronie głównej - styl karty produktu */
.chat-prompt-section {
    margin: 20px 0;
}

.chat-prompt-widget {
    background-color: white;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.chat-prompt-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.chat-prompt-label {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #495057;
    white-space: nowrap;
    margin-bottom: 0;
}

.chat-prompt-label i {
    font-size: 20px;
}

.chat-prompt-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.chat-prompt-input {
    flex: 1;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.chat-prompt-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    outline: none;
}

.chat-prompt-input::placeholder {
    color: #6c757d;
    font-style: italic;
}

.chat-prompt-send {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    background-color: #007bff;
    color: white;
}

.chat-prompt-send:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.chat-prompt-send:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Animacja ładowania */
.chat-prompt-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 6px;
    margin-top: 12px;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.chat-prompt-loading.active {
    display: flex;
}

.chat-prompt-loading-dots {
    display: flex;
    gap: 4px;
}

.chat-prompt-loading-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #007bff;
    animation: chat-prompt-bounce 1.4s infinite ease-in-out;
}

.chat-prompt-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.chat-prompt-loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes chat-prompt-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Responsywność */
@media (max-width: 768px) {
    .chat-prompt-widget {
        padding: 16px;
    }
    
    .chat-prompt-label {
        font-size: 14px;
        margin-bottom: 12px;
        justify-content: center;
    }
    
    .chat-prompt-input {
        font-size: 16px; /* Zapobiega zoom na iOS */
        padding: 10px 14px;
    }
    
    .chat-prompt-send {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 576px) {
    .chat-prompt-section {
        margin: 15px 0;
    }
    
    .chat-prompt-widget {
        padding: 12px;
        margin: 0 -15px; /* Rozciągnięcie na pełną szerokość na bardzo małych ekranach */
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .chat-prompt-input::placeholder {
        font-size: 14px;
    }
}

/* Animacja pojawiania się */
.chat-prompt-section {
    animation: chat-prompt-fadeIn 0.6s ease-out;
}

@keyframes chat-prompt-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Usunięto efekt focus dla całego widgetu - tylko input ma mieć focus styling */

/* Stany success/error */
.chat-prompt-input.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
}

.chat-prompt-input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

/* Dodatkowe style dla lepszej integracji z designem strony */
.chat-prompt-widget::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #007bff, transparent);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-prompt-widget:hover::before {
    opacity: 1;
}

/* Styl podobny do kart produktów */
.chat-prompt-widget {
    position: relative;
    overflow: hidden;
}

/* Subtelny gradient na hover podobny do kart produktów */
.chat-prompt-widget:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}