.wk_mp_chat_container {
    border: 0;
    padding: 10px 0;
    background: transparent;
    margin-bottom: 20px;
}


.wk_mp_chat_header {
    margin-bottom: 6px;
}
.wk_mp_chat_subtitle {
    font-size: 12px;
    color: #767676;
    margin-top: -4px;
    margin-bottom: 8px;
}
.wk_mp_chat_subtitle_link {
    color: #767676;
    text-decoration: none;
}
.wk_mp_chat_subtitle_link:hover {
    color: #333333;
    text-decoration: none;
}

.wk_mp_chat_box {
    display: flex;
    flex-direction: column;
    min-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    border: none;
    padding: 35px 14px 14px 14px; /* Increased top padding to prevent toolbar clipping */
    margin-bottom: 12px;
    background: #f5f7fa;
    border-radius: 8px;
}

.wk_mp_chat_message {
    margin-bottom: 30px; /* Increased margin to accommodate floating toolbar */
    max-width: 75%;
    position: relative;
    width: fit-content;
}

.wk_mp_chat_message.sent {
    align-self: flex-end;
    text-align: right;
    margin-right: 24px;
}

.wk_mp_chat_message.received {
    align-self: flex-start;
    text-align: left;
}

.wk_mp_chat_message .message_content {
    padding: 10px 54px 20px 12px;
    border-radius: 18px;
    display: inline-block;
    position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}

.wk_mp_chat_message.sent .message_content {
    background: #2b2b2b;
    border: 1px solid #2b2b2b;
}

.wk_mp_chat_message.received .message_content {
    background: #f3f3f3;
    border: 1px solid #e5e5e5;
}

.wk_mp_chat_message .message_text {
    display: inline-block;
    color: #2c3e50;
    line-height: 1.35;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.wk_translation_block {
    margin-top: 6px;
    background: #eef3ff;
    border: 1px solid #d6e0ff;
    border-radius: 8px;
    padding: 8px 10px;
    color: #2c3e50;
    max-width: 100%;
}
.wk_translation_title {
    font-size: 12px;
    color: #5b6da0;
    margin-bottom: 4px;
}
.wk_translation_text {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 6px;
}
.wk_translation_hide {
    display: inline-block;
    font-size: 12px;
    color: #3a56cc;
    text-decoration: none;
}
.wk_translation_hide:hover {
    text-decoration: underline;
}
.wk_translate_loading {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    color: #8e9aa7;
}
.wk_mp_chat_message.sent .message_text { color: #ffffff; }
.wk_mp_chat_message.received .message_text { color: #222222; }

.wk_mp_chat_message .message_meta {
    position: absolute;
    right: 10px;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    line-height: 1;
    color: #8e9aa7;
}

.wk_mp_chat_message.sent .message_meta { color: rgba(255,255,255,0.75); }
.wk_mp_chat_message.received .message_meta { color: #8e9aa7; }

.wk_mp_chat_message .message_time {
    font-weight: 500;
    letter-spacing: 0.3px;
}

.wk_mp_chat_message .message_status {
    margin-left: 4px;
    opacity: 0.85;
}
.wk_reply_inline {
    background: rgba(255,255,255,0.6);
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 6px 8px;
    margin-bottom: 6px;
}
.wk_msg_highlight .message_content {
    box-shadow: 0 0 0 2px #3a8cff inset, 0 0 10px rgba(58,140,255,0.35);
}
.wk_reply_inline_title {
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
}
.wk_reply_inline_text {
    font-size: 12px;
    color: #555;
    cursor: pointer;
}
.wk_mp_actions {
    position: absolute;
    right: 10px;
    top: -18px;
    display: none;
    gap: 8px;
    font-size: 11px;
}
.wk_mp_actions a {
    color: #666;
    margin-left: 8px;
}
.wk_mp_chat_message .message_content:hover .wk_mp_actions { display: none; }

/* Reaction Toolbar - Hidden by default, shown on hover */
.wk_msg_toolbar {
    display: none;
    position: absolute;
    top: -38px;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 4px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 100;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* Ensure toolbar is always on the right for consistency, EXCEPT for received messages which align left to avoid clipping */
.wk_mp_chat_message.received .wk_msg_toolbar {
    right: auto;
    left: 0;
}

.wk_mp_chat_message .message_content:hover .wk_msg_toolbar {
    display: flex;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.wk_msg_reaction_btn, 
.wk_msg_reaction_more_btn, 
.wk_msg_more_btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 6px;
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    width: 28px;
    height: 28px;
}

.wk_msg_reaction_btn:hover, 
.wk_msg_reaction_more_btn:hover, 
.wk_msg_more_btn:hover {
    background: #f0f0f0;
    transform: scale(1.15);
}

.wk_msg_more_btn i, .wk_msg_reaction_more_btn i {
    font-size: 14px;
}

/* Existing Reactions Display (MS Teams Style - Bottom Positioned) */
.wk_msg_reactions {
    position: absolute;
    top: auto;
    bottom: -18px;
    right: -4px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.wk_msg_reaction_item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 2px 8px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.wk_msg_reaction_item:hover {
    border-color: #b0b0b0;
    background: #f9f9f9;
    transform: scale(1.05);
}

.wk_msg_reaction_item.wk_my_reacted {
    background: #e6f7ff;
    border-color: #1890ff;
}

.wk_mp_chat_error {
    color: #e74c3c;
    margin: 4px 0 0;
    padding: 0;
    background: transparent;
    border: none;
    display: block;
    font-weight: 600;
    font-size: 12px;
}

.wk_mp_chat_message.sent .wk_mp_chat_error { text-align: right; }
.wk_mp_chat_warn_icon { color: #e74c3c; }
.wk_mp_warn {
    width: 14px;
    height: 14px;
    display: inline-block;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    line-height: 14px;
}
.wk_mp_error_text { color: #e74c3c; }
.wk_mp_fail_icon {
    position: absolute;
    right: -22px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    font-size: 12px;
    line-height: 18px;
    background: #fff;
}

.wk_mp_chat_day_separator {
    text-align: center;
    font-size: 12px;
    color: #484848;
    display: block;
    align-self: center;
    width: 100%;
    margin: 16px auto;
    padding: 0;
    background: transparent;
    font-weight: 600;
}

.wk_mp_chat_input_area {
    margin-top: 10px;
}

/* Input Area Redesign */
.wk_mp_chat_input_wrapper {
    display: flex;
    flex-direction: column;
    border: 1px solid #b0b0b0;
    border-radius: 16px;
    background: #fff;
    padding: 14px;
    margin-top: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    overflow: visible;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative; /* Context for emoji picker if needed */
}



.wk_mp_chat_input_wrapper:focus-within {
    border-color: #2b2b2b;
    box-shadow: 0 0 0 1px #2b2b2b;
}

/* Previews */
#wk_reply_preview,
#wk_edit_preview {
    background: #f7f7f7;
    padding: 12px 44px 12px 16px;
    border-bottom: 1px solid #ebebeb;
    /* border-left removed */
    position: relative;
    display: none;
    width: fit-content;
    max-width: 100%;
    margin: 8px;
    border-radius: 8px;
}

.wk_reply_title, .wk_edit_title {
    font-weight: 600;
    font-size: 13px;
    color: #222;
    margin-bottom: 2px;
}

.wk_reply_text, .wk_edit_text {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wk_reply_cancel, .wk_edit_cancel {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 14px;
    color: #717171;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif; /* Ensure consistent cross rendering */
}

.wk_reply_cancel:hover, .wk_edit_cancel:hover {
    background: #ddd;
    color: #000;
}

/* Input Inner Row */
.wk_mp_input_inner {
    display: flex;
    align-items: flex-end;
    position: relative;
    width: 100%;
    padding: 0;
    gap: 8px;
}
.wk_context_menu {
    position: fixed;
    z-index: 9999;
    min-width: 160px;
    background: #2b2b2b;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    overflow: hidden;
    padding: 8px 0;
}
.wk_context_menu.hidden {
    display: none;
}
.wk_context_menu a {
    display: block;
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}
.wk_context_menu a:hover {
    background: #3a3a3a;
}
.wk_context_menu a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
    display: inline-block;
}
.wk_context_menu.wk_ctx_left::after,
.wk_context_menu.wk_ctx_right::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}
.wk_context_menu.wk_ctx_left::after {
    right: -8px;
    border-left: 8px solid #2b2b2b;
}
.wk_context_menu.wk_ctx_right::after {
    left: -8px;
    border-right: 8px solid #2b2b2b;
}
.wk_context_menu.wk_ctx_overlay::after {
    display: none;
}
#wk_delete_overlay {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.35);
    z-index: 9998;
}
.wk_modal {
    position: fixed;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
    width: 360px;
    z-index: 9999;
}
.wk_modal.hidden, #wk_delete_overlay.hidden { display: none; }
.wk_modal_body {
    padding: 16px 16px 8px 16px;
}
.wk_modal_title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}
.wk_modal_checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
}
.wk_modal_actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 8px 16px 16px 16px;
}
.wk_btn {
    border: 1px solid #ccc;
    background: #f8f8f8;
    color: #333;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}
.wk_btn_delete {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}
/* Textarea */
#wk_mp_chat_message_input {
    width: auto;
    flex: 1;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 15px;
    resize: none;
    outline: none;
    box-shadow: none;
    max-height: 200px;
    min-height: 24px;
    line-height: 1.5;
    height: auto;
    margin-bottom: 0;
}

/* Send Button */
#wk_mp_chat_send_btn {
    border: 1px solid #222;
    background: #222;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s ease;
    margin: 0;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

/* Mobile input layout: avoid overlaying send button over content */
@media (max-width: 992px) {
    /* .wk_mp_input_inner { display: flex; align-items: flex-end; gap: 10px; } -> Already global */
    /* #wk_mp_chat_message_input { padding-right: 0; } -> Already global */
    /* #wk_mp_chat_send_btn { position: static; bottom: auto; right: auto; width: 36px; height: 36px; } -> Already global */
}
#wk_mp_chat_send_btn.empty {
    border-color: #ccc;
    background: #fff;
    color: #999;
}

#wk_mp_chat_send_btn.active {
    border-color: #222;
    background: #222;
    color: #fff;
}

#wk_mp_chat_send_btn:hover {
    border-color: #222;
    background: #222;
    color: #fff;
    transform: scale(1.05);
}

#wk_mp_chat_send_btn:disabled {
    border-color: #e0e0e0;
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    transform: none;
}

#wk_mp_chat_send_btn i {
    font-size: 12px;
}
1
.wk_mp_chat_inquiry_block {
    text-align: center;
    margin: 8px auto 20px auto;
    font-size: 13px;
    color: #717171;
    max-width: 90%;
    line-height: 1.5;
}

.wk_mp_chat_inquiry_text {
    /* inline text */
}

.wk_mp_chat_inquiry_link {
    color: #717171;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
    margin-left: 4px;
    font-size: 13px;
}

.wk_mp_chat_inquiry_link:hover {
    color: #222;
}

.wk_mp_chat_sender_header {
    margin-bottom: 4px;
    font-size: 12px;
    color: #767676;
    margin-left: 2px;
}

.wk_mp_chat_message.sent .wk_mp_chat_sender_header {
    display: none;
}

.wk_mp_sender_name {
    font-weight: 500;
}

.wk_mp_sender_role {
    font-weight: 400;
}

.wk_mp_sender_time {
    margin-left: 4px;
    color: #767676;
}

.wk_mp_chat_message.received .message_content {
    background: #f3f3f3;
    border: none;
    border-top-left-radius: 4px;
}

.wk_mp_chat_message.received .message_meta {
    display: inline-flex !important;
}

.wk_mp_chat_message.sent .message_meta {
    display: inline-flex !important;
}



/* Removed global container overrides to avoid affecting chat container */

/* Wider content container on chat page without affecting header/footer */
body#module-wkmpchat-chat .columns-container .container {
    max-width: 1400px;
    width: 96%;
}
@media (max-width: 1400px) {
    body#module-wkmpchat-chat .columns-container .container {
        max-width: 98%;
        width: 98%;
    }
}

/* =========================================
   NEW LAYOUT: 3 Columns (Sidebar | Main | Details)
   ========================================= */

.wk_mp_chat_layout {
    display: flex;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    background: #fff;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0px;
    position: relative; /* Enable in-container overlays on mobile */
}

/* Sidebar */
.wk_mp_chat_sidebar {
    width: 380px;
    border-right: 1px solid #ebebeb;
    display: flex;
    flex-direction: column;
    background: #fff;
    flex-shrink: 0;
    overflow-y: auto;
}

.wk_mp_sidebar_title {
    padding: 25px;
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    border-bottom: 1px solid #ebebeb;
    color: #222;
}

.wk_mp_thread_list {
    flex: 1;
    overflow-y: auto;
}

.wk_mp_thread_item {
    display: block;
    padding: 16px 20px;
    border-left: 4px solid transparent;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #222;
    transition: background 0.2s;
}

.wk_mp_thread_item:hover {
    background: #f3f3f3;
    text-decoration: none;
}

.wk_mp_thread_item.active {
    background: #f3f3f3;
    border-left-color: #222;
    text-decoration: none;
}

.wk_mp_thread_row_top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.wk_mp_thread_name {
    font-weight: 600;
    font-size: 15px;
}

.wk_mp_thread_date {
    font-size: 12px;
    color: #717171;
}

.wk_mp_thread_row_bottom {
    font-size: 13px;
    color: #717171;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wk_mp_no_threads {
    padding: 24px;
    color: #717171;
    text-align: center;
}

/* Main Chat Area */
.wk_mp_chat_main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Fix flex child overflow */
    background: #fff;
}

/* Overriding old container styles for new layout */
.wk_mp_chat_layout .wk_mp_chat_container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden; /* Ensure flex children are contained */
}

/* Force Chat Box to use Flexbox resizing instead of JS height */
.wk_mp_chat_layout .wk_mp_chat_box {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
}

/* Ensure Input Area doesn't shrink and has correct background */
.wk_mp_chat_layout .wk_mp_chat_input_area {
    flex: 0 0 auto !important;
    background: #fff;
    width: 100%;
    z-index: 20;
}

/* Header inside layout */
.wk_mp_chat_layout .wk_mp_chat_header {
    padding: 0px 24px;
    border-bottom: 1px solid #ebebeb;
    margin: 0 !important;
    flex-shrink: 0;
    background: #fff;
}

/* Mobile controls */
.wk_mobile_controls {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 8px 0;
    gap: 12px;
}
.wk_mobile_controls .wk_mobile_back,
.wk_mobile_controls .wk_mobile_details,
.wk_mobile_close_details {
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1;
    color: #222 !important;
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none;
}
.wk_mobile_controls .wk_mobile_back i,
.wk_mobile_controls .wk_mobile_details i { color: #222 !important; }
.wk_desktop_title { display: none !important; }
.wk_mobile_title { text-align: center; }
.wk_mobile_title h3 { margin: 0; font-size: 16px; }

/* Desktop: hide mobile controls and show desktop title */
@media (min-width: 993px) {
    .wk_mobile_controls { display: none !important; }
    .wk_mobile_close_details { display: none !important; }
    .wk_desktop_title { display: block !important; }
}
/* Chat Box inside layout */
.wk_mp_chat_layout .wk_mp_chat_box {
    flex: 1;
    padding: 24px;
    margin: 0 !important;
    border: none !important;
    border-radius: 0;
    background: #fff !important;
    overflow-y: auto;
    min-height: 0 !important; /* Allow shrinking */
}

/* Input Area inside layout */
.wk_mp_chat_layout .wk_mp_chat_input_area {
    padding: 16px;
    margin: 0 !important;
    background: #fff;
    flex-shrink: 0;
}

/* Details Panel */
.wk_mp_chat_details {
    width: 400px;
    border-left: 1px solid #ebebeb;
    overflow-y: auto;
    background: #fff;
    padding: 15px 24px;
    display: none; /* Hidden by default on mobile */
    flex-shrink: 0;
    height: 100%;
}

@media (min-width: 1100px) {
    .wk_mp_chat_details {
        display: block;
    }
}

/* Mobile overlays */
@media (max-width: 992px) {
    .wk_desktop_title { display: none; }
    .wk_mobile_controls { display: flex; }
    .wk_mp_chat_layout .wk_mp_chat_header { position: sticky; top: 0; z-index: 5; padding: 8px 12px; }
    .wk_mp_chat_layout { overflow: visible; padding-bottom: 12px; }
    .wk_mp_chat_subtitle { 
        display: block; 
        margin-top: 2px; 
        font-size: 11px; 
        text-align: center;
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis; 
    }
    .wk_mp_chat_sidebar { display: none; }
    body.mobile_show_sidebar .wk_mp_chat_sidebar {
        display: block;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100%;
        height: 100%;
        z-index: 1000;
        padding-top: 70px; /* Push content down below site header */
        border-right: none;
        box-shadow: none;
        background: #fff;
    }
    body.mobile_show_sidebar .wk_mp_chat_main,
    body.mobile_show_sidebar .wk_mp_chat_details { display: none; }

    body.mobile_show_details .wk_mp_chat_details {
        display: block;
        position: absolute; /* Overlay inside chat container */
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100%;
        height: 100%;
        z-index: 10;
        background: #fff;
        border-left: none;
        padding: 16px;
        border-radius: 16px;
        box-shadow: 0 -8px 24px rgba(0,0,0,0.12);
        animation: wkSlideUp 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    }
    body.mobile_show_sidebar .wk_mp_chat_layout::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(58,140,255,0.18);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 8;
    }
    body.mobile_show_details .wk_mobile_close_details { display: inline-block; }
    .wk_mobile_close_details { display: none; }
    body.mobile_show_details .wk_mp_chat_main,
    body.mobile_show_details .wk_mp_chat_sidebar { display: none; }
}

/* Desktop keeps mobile controls visible; overlays still only active <=992px */

.wk_mp_details_header h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 24px 0;
    color: #222;
}
/* Sticky header inside reservation overlay on mobile */
.wk_mp_details_header {
    position: sticky;
    top: 0;
    background: #fff;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #ebebeb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 11;
}

.wk_mp_listing_card {
    margin-bottom: 24px;
}

.wk_mp_listing_img_wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}
.wk_mp_listing_img {
    width: 100%;
    height: auto;
    display: block;
}
.wk_mp_listing_info h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #222;
}
.wk_mp_listing_sub {
    font-size: 14px;
    color: #717171;
}

/* Buttons in details */
.wk_btn_book {
    display: block;
    width: 100%;
    text-align: center;
    background: #fff;
    color: #222;
    border: 1px solid #222;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 24px;
    transition: background 0.2s;
}
.wk_btn_book:hover {
    background: #f7f7f7;
    color: #222;
    text-decoration: none;
}

.wk_mp_trip_details h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #222;
}

.wk_mp_detail_item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.wk_mp_detail_label {
    color: #222;
}

.wk_mp_detail_value {
    color: #717171;
    text-align: right;
}

.wk_mp_badge_sent {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.wk_mp_no_details {
    color: #717171;
    text-align: center;
    margin-top: 40px;
}

/* Responsive Hide */
@media (max-width: 768px) {
    .wk_mp_chat_sidebar {
        display: none; /* Hide sidebar on mobile when viewing chat */
    }
}

/* Emoji Picker - Fixed Position Popover */
#wk_emoji_picker {
    position: absolute;
    bottom: 80px; /* Above the input area */
    left: 20px;
    width: 380px; /* Wider for better view */
    height: 460px; /* Taller */
    background: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: wkPopIn 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes wkSlideUp {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}
/* Blur the entire page container when dialog is displayed - Mobile Only */
@media (max-width: 992px) {
    body.mobile_show_details .columns-container,
    body.mobile_show_sidebar .columns-container { position: relative; }
    body.mobile_show_details .columns-container::before,
    body.mobile_show_sidebar .columns-container::before {
        content: '';
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(58,140,255,0.18);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 5; /* below overlay inside chat layout */
        pointer-events: none;
    }
}
@keyframes wkPopIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

#wk_emoji_picker.hidden {
    display: none !important;
}

.wk_emoji_header {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    flex-shrink: 0;
}

#wk_emoji_search_input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    background: #f7f7f7;
    transition: all 0.2s;
}

#wk_emoji_search_input:focus {
    background: #fff;
    border-color: #2b2b2b;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.wk_emoji_categories {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.wk_emoji_cat {
    cursor: pointer;
    font-size: 20px;
    opacity: 0.4;
    transition: all 0.2s;
    padding: 6px;
    border-radius: 8px;
    filter: grayscale(100%);
}

.wk_emoji_cat:hover {
    background: #f7f7f7;
    opacity: 0.8;
    filter: grayscale(0%);
}

.wk_emoji_cat.active {
    opacity: 1;
    background: #f0f0f0;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.wk_emoji_grid {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
    gap: 4px;
    align-content: start;
}

/* Updated class name to match JS generation */
.wk_emoji_btn {
    cursor: pointer;
    font-size: 24px; /* Smaller emojis */
    line-height: 1.2;
    text-align: center;
    padding: 6px;
    border-radius: 8px;
    transition: transform 0.1s, background 0.1s;
    user-select: none;
    display: inline-block;
}

.wk_emoji_btn:hover {
    background: #f0f0f0;
    transform: scale(1.2);
}

.wk_emoji_empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

.wk_mp_unread_badge {
    background-color: #ff3b30;
    color: #fff;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    margin-left: 6px;
    font-weight: 600;
    vertical-align: middle;
    display: inline-block;
    line-height: 1.2;
}
