/**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License version 3.0
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * @author    PrestaShop SA and Contributors <contact@prestashop.com>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
 */
.onlinechat-container,
.onlinechat-button {
    position: fixed;
    bottom: 20px;
    z-index: 1000;
}

.onlinechat-button {
    border: none;
    border-radius: 50%;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.onlinechat-chat-window {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 80px;
    width: 300px;
    max-height: 50%;
    height: 100%;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1001;
    background: #ffffff;
}

.onlinechat-hidden {
    display: none;
}

.onlinechat-chat-message {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}

.onlinechat-chat-header {
    flex-shrink: 0;
    padding: 10px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #ccc;
}

.onlinechat-chat-header span {
    font-weight: normal;
}

#onlinechat-chat-message>p.onlinechat-employee-message,
#onlinechat-chat-message>p.onlinechat-offline-welcome {
    margin: -10px -10px 10px -10px;
    padding: 10px;
}

#onlinechat-chat-message>p.onlinechat-offline-welcome {
    background: rgba(246, 246, 246, 0.6);
}

.onlinechat-chat-input-container {
    flex-shrink: 0;
    padding: 10px;
    display: flex;
    gap: 5px;
}

.onlinechat-chat-message .wrapper_onlinechat-customer-message,
.onlinechat-chat-message .wrapper_onlinechat-employee-message {
    display: grid;
    margin-bottom: 8px;
}

.onlinechat-chat-message .wrapper_onlinechat-customer-message {
    text-align: right;
}

.onlinechat-chat-message .wrapper_onlinechat-customer-message .onlinechat-customer-message,
.onlinechat-chat-message .wrapper_onlinechat-employee-message .onlinechat-employee-message {
    width: 80%;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 0;
}

.onlinechat-chat-message .wrapper_onlinechat-customer-message .onlinechat-customer-message {
    margin-left: 20%;
    text-align: right;
}

.onlinechat-chat-message .wrapper_onlinechat-customer-message .onlinechat-customer-date,
.onlinechat-chat-message .wrapper_onlinechat-employee-message .onlinechat-employee-date {
    font-style: italic;
    font-size: 10px;
}

.onlinechat-chat-message .wrapper_onlinechat-employee-message .wrapper_employee_info {
    display: grid;
    grid-template-columns: 25px auto;
    gap: 8px;
    align-items: center;
}

.onlinechat-chat-message .wrapper_onlinechat-employee-message .wrapper_employee_info .onlinechat-employee-name {
    margin: 0;
    line-height: 25px;
    font-size: 12px;
}

.onlinechat-chat-message .wrapper_onlinechat-employee-message .wrapper_employee_info img {
    width: 100%;
}

.onlinechat-chat-message .wrapper_onlinechat-employee-message .wrapper_employee_info img.circular {
    border-radius: 100%;
}

.onlinechat-chat-message .wrapper_onlinechat-employee-message .wrapper_employee_info img.sharp {
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
}

#onlinechat-chat-input,
.onlinechat-chat-input-container input {
    flex-grow: 1;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 5px;
    width: 100%;
}

#onlinechat-offline-confirmation {
    text-align: center;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.85);
    padding: 20px;
    margin: -10px;
}

.onlinechat-chat-message .wrapper_input {
    display: grid;
    margin-bottom: 8px;
}

.onlinechat-chat-message .wrapper_input label {
    margin-bottom: 0;
    text-align: left;
}

.onlinechat-chat-message .wrapper_input input {
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 5px;
}

.onlinechat-offline-confirmation {
    display: none;
}

.onlinechat-chat-input-container button {
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
}