/* TCPMAX Chat Widget */
#tcpmax-chat-btn {
    position: fixed; bottom: 24px; right: 24px;
    width: 60px; height: 60px;
    background: #FF6210; border-radius: 50%;
    cursor: pointer; z-index: 99999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.28);
    display: flex; align-items: center; justify-content: center;
    transition: transform .2s, box-shadow .2s;
}
#tcpmax-chat-btn:hover { transform: scale(1.08); box-shadow: 0 6px 22px rgba(0,0,0,0.34); }
#tcpmax-chat-btn svg { width: 28px; height: 28px; fill: #fff; }
#tcpmax-chat-window {
    position: fixed; bottom: 96px; right: 24px;
    width: 360px; background: #fff;
    border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    z-index: 99998; display: none; flex-direction: column;
    overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
#tcpmax-chat-window.tcpmax-open { display: flex; }
#tcpmax-chat-header {
    background: #1C0D0A; padding: 16px 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.tcpmax-chat-title { color: #fff; font-size: 15px; font-weight: 600; }
.tcpmax-chat-subtitle { color: rgba(255,255,255,.55); font-size: 12px; margin-top: 2px; }
#tcpmax-chat-close { color: rgba(255,255,255,.6); cursor: pointer; font-size: 22px; line-height: 1; }
#tcpmax-chat-close:hover { color: #fff; }
#tcpmax-chat-messages {
    padding: 16px; background: #F8F5F4;
    display: flex; flex-direction: column; gap: 10px;
    min-height: 260px; max-height: 320px; overflow-y: auto;
}
.tcpmax-msg {
    max-width: 83%; padding: 10px 14px; border-radius: 14px;
    font-size: 14px; line-height: 1.5;
    animation: tcpmaxIn .22s ease;
}
@keyframes tcpmaxIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.tcpmax-msg.bot { background: #fff; color: #1C0D0A; border-bottom-left-radius: 3px; align-self: flex-start; box-shadow: 0 1px 4px rgba(0,0,0,.09); }
.tcpmax-msg.user { background: #FF6210; color: #fff; border-bottom-right-radius: 3px; align-self: flex-end; }
.tcpmax-typing { display: flex; gap: 5px; align-items: center; padding: 12px 16px; background: #fff; border-radius: 14px; border-bottom-left-radius: 3px; align-self: flex-start; box-shadow: 0 1px 4px rgba(0,0,0,.09); }
.tcpmax-typing span { width: 7px; height: 7px; background: #bbb; border-radius: 50%; animation: tcpmaxBounce 1.1s infinite; }
.tcpmax-typing span:nth-child(2) { animation-delay: .18s; }
.tcpmax-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes tcpmaxBounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-7px); } }
#tcpmax-chat-input-area { padding: 12px 14px; background: #fff; border-top: 1px solid #eee; display: flex; gap: 8px; }
#tcpmax-chat-input-area input {
    flex: 1; border: 1.5px solid #ddd; border-radius: 24px;
    padding: 9px 16px; font-size: 14px; outline: none; color: #1C0D0A;
    font-family: inherit;
}
#tcpmax-chat-input-area input:focus { border-color: #FF6210; }
#tcpmax-chat-input-area button.send-btn {
    background: #FF6210; color: #fff; border: none; border-radius: 50%;
    width: 40px; height: 40px; cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
#tcpmax-chat-input-area button.send-btn:hover { background: #e0540d; }
#tcpmax-chat-input-area button.send-btn svg { width: 17px; height: 17px; fill: #fff; }
.tcpmax-choices { padding: 10px 14px 14px; background: #fff; border-top: 1px solid #eee; display: flex; gap: 10px; flex-wrap: wrap; }
.tcpmax-choice { background: #fff; border: 2px solid #FF6210; color: #FF6210; border-radius: 20px; padding: 7px 20px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .18s; font-family: inherit; }
.tcpmax-choice:hover { background: #FF6210; color: #fff; }

/* Action message with booking button */
.tcpmax-msg-action { display: flex; flex-direction: column; gap: 10px; }
.tcpmax-action-btn {
    display: inline-block;
    background: #FF6210;
    color: #fff !important;
    text-decoration: none !important;
    padding: 9px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s;
    align-self: flex-start;
}
.tcpmax-action-btn:hover { background: #e0540d; color: #fff !important; }
