
#ai-chat-floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #3f880b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

#ai-chat-floating-button:hover {
    background-color: #45a049;
    transform: scale(1.1);
}
.product-ai-name {
    margin-block-end: 0 !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: normal;
}
/* Chat container styles */
#ai-chat-wrapper {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1001;
    display: none;
}
#ai-bot-feedback-container {
    display: none;
    background-color: white;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#ai-bot-feedback-stars .star {
    cursor: pointer;
}

#ai-bot-feedback-stars .star path {
    transition: fill 0.3s;
}

#ai-chat-container {
    width: 350px;
    height: 500px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#ai-chat-messages {
    flex-grow: 1;
    overflow-y: auto;
}

/* Stylizacja kontenera czatu */
#ai-chat-container {
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Nagłówek czatu */
#ai-chat-header {
    background-color: #3f880b;
    color: white;
    padding: 15px;
    text-align: center;
}

#ai-chat-bot-name {
    font-size: 20px;
}

/* Kontener wiadomości */
#ai-chat-messages {
    height: 350px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
}

/* Wiadomości */
.chat-message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-message {
    background-color: #DCF8C6;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.bot-message {
    background-color: #E8E8E8;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* Kontener wprowadzania tekstu */
#ai-chat-input-container {
    display: flex;
    padding: 15px;
    background-color: white;
    border-top: 1px solid #ddd;
}

#ai-chat-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 16px;
}

#ai-chat-send-button {
    width: 50px;              /* Zwiększamy rozmiar przycisku */
    height: 50px;             /* Zwiększamy rozmiar przycisku */
    background-color: #3f880b; /* Kolor tła przycisku */
    border: none;             /* Usuń domyślną obwódkę */
    border-radius: 50%;       /* Sprawia, że przycisk staje się kółkiem */
    display: flex;            /* Użyj flexboxa do centrowania */
    justify-content: center;  /* Wycentruj poziomo */
    align-items: center;      /* Wycentruj pionowo */
    cursor: pointer;          /* Kursor wskazuje, że jest to przycisk */
    margin-left: 10px;        /* Dodaj odstęp od pola tekstowego po lewej stronie */
    transition: background-color 0.3s; /* Dodaj animację zmiany koloru */
}

#ai-chat-send-button svg {
    width: 32px; /* Zwiększamy rozmiar ikony SVG */
    height: 32px;
    fill: #FFFFFF; /* Kolor ikony */
}

#ai-chat-send-button:hover {
    background-color: #45a049; /* Zmiana koloru tła po najechaniu */
}


/* Animacja pisania */
.typing-indicator {
    display: flex;
    padding: 10px;
    background-color: #E8E8E8;
    border-radius: 18px;
    width: 50px;
    justify-content: center;
    margin-bottom: 15px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #888;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Stylowanie linków */
.product-link {
    display: inline-block;
    padding: 10px 15px;
    background-color: #3f880b;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
    cursor: pointer;
}

.product-link:hover {
    background-color: #45a049;
}


#ai-chat-info {
	text-align: center;
	font-size: 12px;
	padding: 5px;
}

#ai-chat-header {
	display: flex;
	width: 100%;
	flex-wrap: nowrap;
	align-items: center;
  justify-content: space-between;
}


/* Stylizacja popupu opinii wewnątrz czatu */
#ai-bot-feedback-modal {
    display: none;
    position: absolute; /* Popup wewnątrz kontenera czatu */
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background-color: white;
    border-top: 1px solid #ddd;
    border-radius: 0 0 12px 12px; /* Zaokrąglenie do pasowania z kontenerem */
    z-index: 1002;
    box-shadow: 0px -3px 5px rgba(0, 0, 0, 0.2); /* Lekki cień dla efektu uniesienia */
}

.ai-bot-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#ai-bot-feedback-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 16px;
    cursor: pointer;
}

#ai-bot-feedback-stars {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.ai-bot-star {
    cursor: pointer;
    margin-right: 5px;
    width: 30px;
    height: 30px;
}

.ai-bot-star path {
    transition: fill 0.3s;
}

.ai-bot-star.selected path {
    fill: #FFD700; /* Złote gwiazdki */
}

#ai-bot-feedback-comment {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 14px;
    box-sizing: border-box;
}

#ai-bot-feedback-submit {
    background-color: #3f880b;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    transition: background-color 0.3s;
}

#ai-bot-feedback-submit:hover {
    background-color: #45a049;
}


.typing-indicator {
    display: flex;
    padding: 10px;
    background-color: #E8E8E8;
    border-radius: 18px;
    width: 50px;
    justify-content: center;
    margin-bottom: 15px;
    align-self: flex-start;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #3f880b;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

#ai-chat-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-icon-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

.chat-icon-button:hover {
    background-color: transparent;
}
.chat-icon-button:active {
    background-color: transparent;
}
.chat-icon-button:selected {
    background-color: transparent;
}

.chat-icon-button svg {
    fill: white;
    width: 24px;
    height: 24px;
}

/* Stylizacja modalnego okna */
.ai-bot-modal {
    display: none; /* Ukryte domyślnie */
    position: fixed;
    z-index: 1001; /* Powinno pojawiać się nad innymi elementami */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Półprzezroczyste tło */
    justify-content: center;
    align-items: center;
}

.ai-bot-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.ai-bot-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.ai-bot-close:hover,
.ai-bot-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


.ai-product {
    border: 1px solid #3f880b;
    color: #3f880b;
    width: 100%;
        font-size: 14px;
    border-radius: 30px;
}
.bot-message a {
   color: #3f880b !important;
}
.ai-product:hover {
    background: #3f880b !important;
    color: white;
}

.ai-cart {
    background: #3f880b !important;
    border: none !important;
    width: 100%;
        font-size: 14px;
    border-radius: 30px;
    color: white;
}

.ai-cart:hover {
    background: #3f880b;
}

.cooldown-active {
    position: relative;
    border: 1px solid transparent;
    animation: border-loader 3s linear forwards;
}

@keyframes border-loader {
    0% {
        border-color: red; /* Początkowy kolor */
    }
    100% {
        border-color: transparent; /* Zniknięcie */
    }
}
