/* Wossap Chatbot Styles (Aïcha v6.0 - CMS) */
#wossap-toggle-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#wossap-marketing-tooltip {
    background: linear-gradient(135deg, #ffffff, #f7fdfa);
    color: #075E54;
    padding: 10px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    margin-bottom: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    position: relative;
    border: 1px solid #d4f3e6;
}

#wossap-marketing-tooltip::after {
    content: '';
    position: absolute;
    bottom: -7px;
    right: 24px;
    border-width: 7px 7px 0;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

#wossap-marketing-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#wossap-marketing-tooltip.hidden {
    display: none;
}

#wossap-chat-toggle {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 26px;
    box-shadow: 0 6px 16px rgba(18, 140, 126, 0.4);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#wossap-chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(18, 140, 126, 0.5);
}

#wossap-chat-container {
    position: fixed;
    bottom: 92px;
    right: 20px;
    width: 360px;
    height: 540px;
    background: #efeae2;
    background-image: radial-gradient(#d1cdc7 1px, transparent 1px);
    background-size: 16px 16px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#wossap-chat-container.wossap-closed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
}

/* Header & Language Switch */
#wossap-chat-header {
    background: linear-gradient(135deg, #075E54, #128C7E);
    color: white;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wossap-header-title {
    display: flex;
    flex-direction: column;
}

.wossap-header-title strong {
    font-size: 14.5px;
    letter-spacing: 0.2px;
}

.status-indicator {
    font-size: 10.5px;
    color: #c9f8d9;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-indicator::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #25D366;
    border-radius: 50%;
}

.wossap-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wossap-lang-switch {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 14px;
    padding: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #dcf8c6;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn.active {
    background: #ffffff;
    color: #075E54;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

#wossap-chat-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 13px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#wossap-chat-close:hover {
    background: rgba(255,255,255,0.3);
}

/* Banniere Marketing */
#wossap-banner {
    background: linear-gradient(135deg, #0f5132, #198754);
    color: white;
    padding: 8px 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.banner-content h4 {
    margin: 0 0 1px 0;
    font-size: 12px;
    font-weight: 700;
    color: #ffd700;
}

.banner-content p {
    margin: 0;
    font-size: 10.5px;
    opacity: 0.95;
    line-height: 1.3;
}

/* Ecran Pre-chat */
#wossap-prechat-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px 20px;
    background: #ffffff;
    text-align: center;
}

#wossap-prechat-screen p {
    font-size: 13px;
    color: #495057;
    margin-bottom: 16px;
    line-height: 1.5;
}

#wossap-contact-input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1.5px solid #dcdfe3;
    border-radius: 8px;
    font-size: 13px;
    box-sizing: border-box;
    outline: none;
}

#wossap-contact-input:focus {
    border-color: #128C7E;
}

#wossap-start-chat-btn {
    background: linear-gradient(135deg, #075E54, #128C7E);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 3px 8px rgba(7, 94, 84, 0.25);
}

/* Messages */
#wossap-chat-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wossap-message {
    max-width: 82%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.wossap-message.bot {
    background-color: #ffffff;
    align-self: flex-start;
    border-top-left-radius: 2px;
    color: #111b21;
}

.wossap-message.user {
    background-color: #d9fdd3;
    align-self: flex-end;
    border-top-right-radius: 2px;
    color: #111b21;
}

.wossap-message.loading {
    font-style: italic;
    color: #667781;
    background-color: #ffffff;
    font-size: 12px;
}

/* Quick Replies (Boutons Rapides) */
#wossap-quick-replies {
    padding: 6px 10px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    background: #f7f9fa;
    border-top: 1px solid #e9edef;
    scrollbar-width: none;
}

#wossap-quick-replies::-webkit-scrollbar {
    display: none;
}

.quick-btn {
    background: #ffffff;
    border: 1px solid #25D366;
    color: #075E54;
    padding: 5px 11px;
    border-radius: 16px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.quick-btn:hover {
    background: #25D366;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Input Area */
#wossap-chat-input-area {
    padding: 8px 10px;
    background: #f0f2f5;
    align-items: center;
    gap: 6px;
    border-top: 1px solid #e2e5e8;
}

#wossap-file-button {
    background: #e4e8ec;
    color: #54656f;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#wossap-message-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d7db;
    border-radius: 20px;
    outline: none;
    font-size: 13px;
    background: #ffffff;
}

#wossap-mic-button {
    background: #128C7E;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    flex-shrink: 0;
}

#wossap-send-button {
    background: #075E54;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}
