@charset "utf-8";
/* Основни стилове за асистента */
.bs-assistant-button {
    width: 100%;
    border: 0px;
    border-radius: 10px; 
    text-decoration: none;  
    background: #b0971a;
    text-align: center;
    color: #333333;
    padding: 12px 20px;
    cursor: pointer;
    margin: 15px 0;
    font-size: 15px;
    text-transform: none;
}

.bs-assistant-button:hover {
    background: #1678c2;
}

.bs-assistant-hidden {
    display: none !important;
}

#bs-assistant-container {
    float: left;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100%;
    max-width: calc(100% - 40px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    max-height: 200vh;
}

.bs-assistant-header {
    background: #f9f9f9;
    color: #FFFFFF;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bs-assistant-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

#bs-close-assistant {
    background: none;
    border: none;
    color: #333333 !important;
    font-size: 35px;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 4px 10px;
}

.bs-assistant-body {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

#bs-current-product-name {
    font-weight: bold;
    color: #2185d0;
}

#bs-question-input, textarea {
    width: 100%;
    width: 100%;
    height: 100px;       
    min-height: 100px;   
    max-height: 100px;   
    resize: none;        
    overflow-y: auto;   
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
}
.bs-response p {
    font-family: Arial, sans-serif;
    font-size: 18px;              
    line-height: 1.6;             
    margin-bottom: 15px;          
    font-weight: normal;           
    text-align: left;              
}
#bs-submit-question {
    background: #21ba45;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s;
}

#bs-submit-question:hover {
    background: #16ab39;
}

#bs-submit-question:disabled {
    background: #cccccc;
    cursor: not-allowed;
}
.bs-button-submit-question {
    display: flex;
align-items: center;
gap: 10px;
margin-top: 10px;
}
#bs-assistant-response {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
}

.bs-notice {
    padding: 10px 15px;
    border-radius: 4px;
    margin: 5px 0;
}

.bs-loading {
    background: #f8f9fa;
    color: #555;
}

.bs-error {
    background: #fff6f6;
    color: #9f3a38;
    border-left: 3px solid #db2828;
}

.bs-response {
    line-height: 1.6;
}

.bs-response p {
    margin: 0 0 10px 0;
}

.bs-response strong {
    font-weight: 600;
}

.bs-response em {
    font-style: italic;
}
.bs-voice-btn {
    background: url('../../img/voice.png') center/55px no-repeat;
    border: none;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
}


.bs-voice-btn.recording {
    background: #ff0000 url('../../img/voice-white.png') center/55px no-repeat;
    animation: pulse 1.5s infinite;
}

.bs-voice-btn.recording img {
    filter: brightness(10) invert(1) !important;
}

.bs-voice-btn:hover {
    background: #f0f0f0;
}

.bs-voice-btn.recording:hover {
    background: #cc0000 !important;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Адаптивни стилове за мобилни устройства */
@media (max-width: 767px) {
    #bs-assistant-container {
        width: 100%;
		max-width:100%;
        max-height: 400vh;
        bottom: 0;
        right: 0;
        left: 0;
        border-radius: 0;
		position: relative;
		float:left;
    }
 .bs-assistant-button {
    width: 100%;
    border: 0px;
    border-radius: 5px; 
    text-decoration: none;  
    background: #b0971a;
    text-align: center;
    color: #333333;
    padding:5px;
    cursor: pointer;
    font-size: 12px;
    text-transform: none;
	 white-space: normal; /* Позволява текста да се пренася */
    word-wrap: break-word; /* Разделя дълги думи */
    overflow-wrap: break-word; /* Модерен вариант на word-wrap */
    padding: 10px 15px; /* Малко намаляване на падинга за мобилни */
}   
    .bs-assistant-header,
    .bs-assistant-body,
    #bs-assistant-response {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    
    .bs-assistant-header {
        border-radius: 0;
        width: 100%;
    }
    
    #bs-question-input, textarea {
        width: 100%;
        height: 120px;
        box-sizing: border-box;
    }
    
    #bs-submit-question {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
    
    .bs-notice,
    .bs-response {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Гарантираме, че всички вътрешни елементи са 100% ширина */
    #bs-assistant-container > * {
        width: 100%;
    }
}