/* Główny kontener chatbota */
#chatbot-container {
    position: fixed;      
    bottom: 20px;         
    left: 20px;          
    width: 380px;         
    max-height: 500px;   
    min-height: 20vh; 
    background-color: #036aae;  
    border-radius: 12px;  
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    z-index: 9999;
    overflow: hidden;
    font-size: 0.9rem;
}

/* Nagłówek okna */
#chatbot-container .chat-header {
    background-color: #024f7a;
    color: #fff;
    padding: 10px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}

/* Okno wiadomości */
#chatbot-container .chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #f8f8f8;
}

/* Wiadomość użytkownika */
#chatbot-container .chat-message.user {
    background-color: #036aae;
    color: #fff;
    padding: 8px 12px;
    border-radius: 12px 12px 0 12px;
    margin: 6px 0;
    align-self: flex-end;
    max-width: 80%;
    margin-top: 2rem
}

/* Wiadomość bota */
#chatbot-container .chat-message.bot {
    background-color: #e2e7ee;
    color: #000;
    padding: 8px 12px;
    border-radius: 12px 12px 12px 0;
    margin: 6px 0;
    align-self: flex-start;
    max-width: 80%;
    font-size: 0.9rem;
}

/* Formularz do wpisywania pytania */
#chatbot-container .chat-input {
    display: flex;
    border-top: 1px solid #ccc;
}

/* Pole tekstowe */
#chatbot-container .chat-input input {
    flex: 1;
    padding: 1rem;
    border: none;
    outline: none;
font-size: 0.85rem;
  font-family: "poppins";
}

/* Przycisk wyślij */
#chatbot-container .chat-input button {
    background-color: #d92b23;
    color: #fff;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

#chatbot-container .chat-input button:hover {
    background-color: #ff0150;
}

/* Pasek przewijania w oknie wiadomości */
#chatbot-container .chat-messages::-webkit-scrollbar {
    width: 6px;
}

#chatbot-container .chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* === RESPONSYWNOŚĆ - URZĄDZENIA MOBILNE === */
@media (max-width: 768px) {
    #chatbot-container {
width: 50%;
    max-height: 50%;
    bottom: 0;
    right: 1%;
    border-radius: 0;
    left: 1%;
    }

    #chatbot-container .chat-messages {
        padding: 8px;
    }

    #chatbot-container .chat-input input {
        font-size: 0.85rem;
        padding: 10px;
    }

    #chatbot-container .chat-input button {
        padding: 0 12px;
        font-size: 0.85rem;
    }
}



@media (max-width: 500px) {

  #chatbot-container {
    width: 84%;
    max-height: 50%;
    bottom: 65px;
    right: 1%;
    border-radius: 0;
    left: 15%;
    z-index: 1;
  }
  
}


.chatbot-wrapper {
    width: 350px;
    border: 1px solid #036aae;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 9999;
}

.chatbot-header {
    background: #036aae;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.chatbot-content {
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
    display: block;
}



#minimalizuj_oknobota{
display: inline-block;
  width: 20px;
  height: 4px;
  background: #fff;
  margin-left: 20px;
  margin-bottom: 4px;    
}