/* Open Sans Font - Self-hosted */
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300;
    src: url("/wp-content/themes/kadence-child/fonts/open-sans-v43-latin-300.woff2") format("woff2");
    font-display: swap;
}
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400;
    src: url("/wp-content/themes/kadence-child/fonts/open-sans-v43-latin-regular.woff2") format("woff2");
    font-display: swap;
}
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 600;
    src: url("/wp-content/themes/kadence-child/fonts/open-sans-v43-latin-600.woff2") format("woff2");
    font-display: swap;
}
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 700;
    src: url("/wp-content/themes/kadence-child/fonts/open-sans-v43-latin-700.woff2") format("woff2");
    font-display: swap;
}

/* Apply Open Sans globally */
#merry-chat-button,
#merry-chat-overlay,
#merry-split-view,
.merry-message-content,
.merry-property-card,
.merry-btn,
input, textarea, select {
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/**
 * Merry AI Chatbot - Frontend Styles
 * Phase 1: Floating button + Chat overlay
 *
 * @package MerryAIChatbot
 */

/* ===========================
   FLOATING CHAT BUTTON
   =========================== */

#merry-chat-button {
    position: fixed;
    bottom: 5px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0000FF 0%, #0000CC 100%);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
    border: none;
    animation: merry-pulse 2s infinite;
}

#merry-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 255, 0.6);
}

#merry-chat-button svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Pulse animation */
@keyframes merry-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 255, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(0, 0, 255, 0.7);
    }
}

/* ===========================
   CHAT OVERLAY
   =========================== */

#merry-chat-overlay {
    position: fixed;
    bottom: 5px;
    right: 30px;
    width: 450px;
    max-height: 600px;
    height: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#merry-chat-overlay.merry-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Chat header */
#merry-chat-header {
    background: linear-gradient(135deg, #0000FF 0%, #0000CC 100%);
    color: white;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#merry-chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

#merry-chat-header p {
    margin: 5px 0 0 0;
    font-size: 13px;
    opacity: 0.9;
}

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

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

/* Messages container */
#merry-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

/* Message styles */
.merry-message {
    margin-bottom: 16px;
    animation: merry-fade-in 0.3s ease;
}

@keyframes merry-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.merry-message-content {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 14px;
}

.merry-message-user .merry-message-content {
    background: #0000FF;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.merry-message-bot .merry-message-content {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.merry-message-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    text-align: right;
}

.merry-message-user .merry-message-time {
    text-align: right;
}

.merry-message-bot .merry-message-time {
    text-align: left;
}

/* Typing indicator */
.merry-typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    width: fit-content;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.merry-typing-indicator span {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: merry-typing 1.4s infinite;
}

.merry-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.merry-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes merry-typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Property card */
.merry-property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: merry-fade-in 0.3s ease;
}

.merry-property-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
}

.merry-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.merry-property-details {
    padding: 16px;
}

.merry-property-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.merry-property-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.merry-meta-item {
    font-size: 13px;
    color: #666;
}

.merry-property-location {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.merry-property-price {
    font-size: 18px;
    font-weight: 700;
    color: #0000FF;
    margin-bottom: 12px;
}

.merry-property-actions {
    display: flex;
    gap: 8px;
}

.merry-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.merry-btn-primary {
    background: #0000FF;
    color: white;
    flex: 1;
}

.merry-btn-primary:hover {
    background: #0000CC;
}

.merry-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.merry-btn-secondary:hover {
    background: #e0e0e0;
}

/* Suggestions */
.merry-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    animation: merry-fade-in 0.3s ease;
}

.merry-suggestion-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #0000FF;
    color: #0000FF;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.merry-suggestion-btn:hover {
    background: #0000FF;
    color: white;
}

/* Input area */
#merry-input-area {
    padding: 16px;
    background: white;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 16px 16px;
    display: flex;
    gap: 12px;
}

#merry-message-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}

#merry-message-input:focus {
    border-color: #0000FF;
}

#merry-send-message {
    width: 44px;
    height: 44px;
    background: #0000FF;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#merry-send-message:hover {
    background: #0000CC;
    transform: scale(1.05);
}

#merry-send-message svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* ===========================
   MOBILE RESPONSIVE
   =========================== */

    #merry-chat-overlay {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    #merry-chat-header {
        border-radius: 0;
    }
    
    #merry-chat-button {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    
    #merry-chat-button svg {
        width: 28px;
        height: 28px;
    }
    
    .merry-message-content {
        max-width: 85%;
    }
}

/* Scrollbar styling */
#merry-messages::-webkit-scrollbar {
    width: 6px;
}

#merry-messages::-webkit-scrollbar-track {
    background: transparent;
}

#merry-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

#merry-messages::-webkit-scrollbar-thumb:hover {
    background: #999;
}


#merry-split-view.merry-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.merry-hidden {
    display: none !important;
}

/* Mobile Tab Navigation */
#merry-tab-nav {
    display: none;
    background: white;
    border-bottom: 2px solid #e0e0e0;
    padding: 0;
}

#merry-tab-nav .merry-tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: white;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

#merry-tab-nav .merry-tab-btn.merry-tab-active {
    color: #0000FF;
    border-bottom: 3px solid #0000FF;
}

.merry-unread-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    background: #f44336;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.merry-results-count {
    display: inline-block;
    background: #0000FF;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 5px;
}

/* Split Content Container */
#merry-split-content {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* Panels */
.merry-panel {
    display: flex;
    flex-direction: column;
    background: white;
    overflow: hidden;
}

#merry-chat-panel {
    width: 40%;
    border-right: 1px solid #e0e0e0;
}

#merry-results-panel {
    width: 60%;
}

/* Chat Panel Header */
#merry-chat-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #0000FF 0%, #0000CC 100%);
    color: white;
}

#merry-chat-panel-header h3 {
    margin: 0;
    font-size: 18px;
}

#merry-chat-panel-header p {
    margin: 3px 0 0 0;
    font-size: 13px;
    opacity: 0.9;
}

.merry-header-actions {
    display: flex;
    gap: 8px;
}

.merry-icon-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.merry-icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Messages Container */
.merry-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

/* Input Container */
.merry-input-container {
    padding: 16px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.merry-message-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    max-height: 100px;
    outline: none;
    transition: border-color 0.2s;
}

.merry-message-input:focus {
    border-color: #0000FF;
}

.merry-send-btn {
    width: 44px;
    height: 44px;
    background: #0000FF;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.merry-send-btn:hover {
    background: #0000CC;
    transform: scale(1.05);
}

/* Results Panel Header */
#merry-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

#merry-results-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

#merry-results-header p {
    margin: 3px 0 0 0;
    font-size: 13px;
    color: #666;
}

.merry-results-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.merry-sort-dropdown {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    background: white;
    outline: none;
}

/* Property Grid */
.merry-property-grid {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    align-content: start;
}

/* Property Card in Grid */
.merry-grid-property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    animation: merry-fade-in-up 0.4s ease;
}

.merry-grid-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@keyframes merry-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.merry-grid-property-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.merry-grid-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.merry-grid-property-card:hover .merry-grid-property-image img {
    transform: scale(1.05);
}

.merry-property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #0000FF;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.merry-property-like-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.merry-property-like-btn:hover {
    transform: scale(1.1);
}

.merry-property-like-btn.liked {
    color: #f44336;
}

.merry-grid-property-content {
    padding: 16px;
}

.merry-grid-property-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.merry-grid-property-location {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.merry-grid-property-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.merry-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
}

.merry-grid-property-price {
    font-size: 20px;
    font-weight: 700;
    color: #0000FF;
    margin-bottom: 12px;
}

.merry-grid-property-actions {
    display: flex;
    gap: 8px;
}

.merry-btn-primary {
    flex: 1;
    padding: 10px;
    background: #0000FF;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.merry-btn-primary:hover {
    background: #0000CC;
}

.merry-btn-secondary {
    padding: 10px;
    background: #f5f5f5;
    color: #333;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.merry-btn-secondary:hover {
    background: #e0e0e0;
}

/* Empty State */
.merry-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #999;
    text-align: center;
}

.merry-empty-state svg {
    margin-bottom: 20px;
    opacity: 0.3;
}

.merry-empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #666;
}

.merry-empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Resize Handle */
#merry-resize-handle {
    position: absolute;
    left: 40%;
    top: 0;
    width: 8px;
    height: 100%;
    cursor: col-resize;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

#merry-resize-handle:hover .merry-resize-line {
    background: #0000FF;
}

.merry-resize-line {
    width: 2px;
    height: 60px;
    background: #ccc;
    border-radius: 2px;
    transition: background 0.2s;
}

/* Mobile Responsive */
    .merry-mobile-only {
        display: flex !important;
    }
    
    .merry-desktop-only {
        display: none !important;
    }
    
    #merry-tab-nav {
        display: flex;
    }
    
    #merry-split-content {
        position: relative;
    }
    
    #merry-chat-panel,
    #merry-results-panel {
        position: absolute;
        width: 100%;
        height: 100%;
        transition: transform 0.3s ease;
    }
    
    #merry-chat-panel {
        transform: translateX(0);
        border-right: none;
    }
    
    #merry-results-panel {
        transform: translateX(100%);
    }
    
    /* Tab States */
    #merry-split-view.merry-show-results #merry-chat-panel {
        transform: translateX(-100%);
    }
    
    #merry-split-view.merry-show-results #merry-results-panel {
        transform: translateX(0);
    }
    
    .merry-property-grid {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 12px;
    }
    
    #merry-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .merry-results-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .merry-sort-dropdown {
        flex: 1;
    }
}

/* Desktop Only */
@media (min-width: 769px) {
    .merry-mobile-only {
        display: none !important;
    }
    
    .merry-desktop-only {
        display: block !important;
    }
}

/* List View (Alternative) */
.merry-property-grid.merry-list-view {
    grid-template-columns: 1fr;
}

.merry-property-grid.merry-list-view .merry-grid-property-card {
    display: flex;
    flex-direction: row;
}

.merry-property-grid.merry-list-view .merry-grid-property-image {
    width: 300px;
    height: auto;
}

.merry-property-grid.merry-list-view .merry-grid-property-content {
    flex: 1;
}

/* Scrollbar Styling */
.merry-messages-container::-webkit-scrollbar,
.merry-property-grid::-webkit-scrollbar {
    width: 8px;
}

.merry-messages-container::-webkit-scrollbar-track,
.merry-property-grid::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.merry-messages-container::-webkit-scrollbar-thumb,
.merry-property-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.merry-messages-container::-webkit-scrollbar-thumb:hover,
.merry-property-grid::-webkit-scrollbar-thumb:hover {
    background: #999;
}


.merry-bot-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: merry-bounce 2s ease-in-out infinite;
}

.merry-bot-icon svg {
    width: 26px;
    height: 26px;
}

@keyframes merry-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.merry-header-text {
    flex: 1;
}

#merry-chat-header h3 {
    color: white !important;
    font-weight: 700 !important;
    font-size: 19px !important;
    margin: 0 !important;
    letter-spacing: 0.3px;
}

#merry-chat-header p {
    color: white !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    margin: 3px 0 0 0 !important;
    opacity: 0.95 !important;
}

#merry-chat-header {
    padding: 18px 20px !important;
}

    .merry-bot-icon {
        width: 40px;
        height: 40px;
    }
    .merry-bot-icon svg {
        width: 24px;
        height: 24px;
    }
    #merry-chat-header h3 {
        font-size: 17px !important;
    }
    #merry-chat-header p {
        font-size: 12px !important;
    }
}

/* ===========================
   MOBILE RESPONSIVE (UPDATED)
   =========================== */
@media (max-width: 768px) {
    #merry-chat-overlay {
        bottom: 65px !important;
        left: 3px;
        right: 3px;
        width: calc(100% - 6px);
        max-height: 75vh !important;
        height: auto;
        border-radius: 16px;
    }
    
    #merry-chat-header {
        border-radius: 16px 16px 0 0;
    }
    
    #merry-input-area {
        border-radius: 0 0 16px 16px;
    }
    
    #merry-chat-button {
        bottom: 65px;
        right: 15px;
        width: 60px;
        height: 60px;
    }
    
    #merry-chat-button svg {
        width: 28px;
        height: 28px;
    }
    
    .merry-message-content {
        max-width: 85%;
    }
    
    /* Bot icon mobile adjustments */
    .merry-bot-icon {
        width: 40px;
        height: 40px;
    }
    
    .merry-bot-icon svg {
        width: 24px;
        height: 24px;
    }
    
    #merry-chat-header h3 {
        font-size: 17px !important;
    }
    
    #merry-chat-header p {
        font-size: 12px !important;
    }
}

/* ===========================
   MOBILE ENHANCEMENTS - BLUR & PADDING
   =========================== */
@media (max-width: 768px) {
    /* Backdrop blur effect */
    #merry-chat-overlay::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 65px;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: -1;
        pointer-events: none;
    }
    
    /* Better positioning with padding */
    #merry-chat-overlay {
        bottom: 65px !important;
        left: 5px !important;
        right: 5px !important;
        width: calc(100% - 20px) !important;
        max-height: 75vh !important;
        height: auto !important;
        border-radius: 20px !important;
        overflow: hidden;
    }
    
    /* Ensure header rounds match */
    #merry-chat-header {
        border-radius: 20px 20px 0 0 !important;
    }
    
    /* Ensure input area rounds match */
    #merry-input-area {
        border-radius: 0 0 20px 20px !important;
    }
}

/* Backdrop blur overlay for mobile */
@media (max-width: 768px) {
    /* Create dark blurred background */
    body.merry-chat-active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 65px;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 998;
        animation: merry-fade-in 0.3s ease;
    }
    
    #merry-chat-overlay {
        z-index: 999 !important;
    }
}

@keyframes merry-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Ensure chat is above sticky footer */
@media (max-width: 768px) {
    #merry-chat-button {
        z-index: 1001 !important;
    }
    #merry-chat-overlay {
        z-index: 1002 !important;
    }
}

/* Hide suggestion buttons - more professional, text-only chat */
.merry-suggestions {
    display: none !important;
}
