/* Chat Widget Admin Styles */

/* Main wrapper */
#wnt-chat-widget-wrap {}

#wnt-chat-widget-wrap h1 {}

/* Page content layout */
.wnt-page-content {}

/* Section headers */
.wnt-section-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(57, 203, 155, 0.25);
}

.wnt-section-header h2 {
    color: #1f3448;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wnt-section-header .description {
    color: rgba(31, 52, 72, 0.7);
    font-size: 14px;
    margin: 0;
}

/* Preview section */
.wnt-chat-widget-preview-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid rgba(57, 203, 155, 0.25);
}

.wnt-preview-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border: 2px solid #dee2e6;
}

.wnt-chat-widget {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Chat widget styles */
#wnt-chat-wrapper,
.wnt-chat-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	position: fixed;
	bottom: 20px;
	left: 16px;
	z-index: 9999;
    box-sizing: border-box;
    line-height: 1.4;
}

body.wp-admin #wnt-chat-wrapper {
    position: absolute;
}

#wnt-chat-wrapper * {
    box-sizing: border-box;
}

/* Position classes for frontend */
#wnt-chat-wrapper.wnt-position-bottom-right {
	bottom: 20px;
	right: 20px;
	left: auto;
}

#wnt-chat-wrapper.wnt-position-bottom-left {
	bottom: 20px;
	left: 20px;
	right: auto;
}

.wnt-position-bottom-right .wnt-chat-window {
    right: 0;
}

/* Remix Icon styles for chat widget */
#wnt-chat-wrapper .ri-whatsapp-line,
#wnt-chat-wrapper .ri-subtract-fill,
#wnt-chat-wrapper .ri-time-line,
#wnt-chat-wrapper .ri-hand-heart-line,
#wnt-chat-wrapper .ri-qr-scan-2-line {
	font-family: 'remixicon' !important;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.wnt-whatsapp-button {
	position: relative;
	z-index: 99999;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
}

.wnt-whatsapp-button:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.wnt-whatsapp-button:hover .wnt-button-icon {
	display: none;
}

.wnt-whatsapp-button:hover::after {
	content: '';
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 24px;
	height: 6px;
}

.wnt-whatsapp-button:hover::before {
	content: '• • •';
	position: absolute;
	top: 50%;
	left: 50%;
    width: 30px;
    margin-top: -3px;
	transform: translate(-50%, -50%);
	color: #fff;
	font-size: 22px;
	letter-spacing: -2px;
	animation: typingDots 1.4s infinite ease-in-out;
}

@keyframes typingDots {
	0%, 60%, 100% {
		opacity: 0.3;
		transform: translate(-50%, -50%) scale(0.95);
	}
	30% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

.wnt-whatsapp-button:hover .wnt-button-text {
    opacity: 0;
}

/* Button Style 1 - Round Icon Only (Default) */
.wnt-button-style1 {
	width: 60px;
	height: 60px;
	/* border-radius will be set dynamically via JavaScript */
	display: flex;
	align-items: center;
	justify-content: center;
}

.wnt-button-style1 .wnt-button-icon {
	font-size: 36px;
	line-height: 1;
    height: 58px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wnt-button-style1 .wnt-button-text {
	display: none;
}

/* Button Style 2 - Fully Rounded Button with Icon & Text */
.wnt-button-style2 {
	padding: 12px 20px;
	/* border-radius will be set dynamically via JavaScript */
	min-width: 180px;
	height: auto;
    min-height: 52px;
    text-align: center;
}

.wnt-button-style2 .wnt-button-icon {
	font-size: 20px;    
}

.wnt-button-style2 .wnt-button-text {
	display: inline;
	font-size: 16px;
}

/* Button Style 3 - Similar to Style 2 but with Top Rounded Corners Only */
.wnt-button-style3 {
	padding: 8px 20px;
	/* border-radius will be set dynamically via JavaScript for top corners only */
	min-width: 180px;
	height: auto;
    min-height: 44px;
    text-align: center;
}

.wnt-button-style3 .wnt-button-icon {
	font-size: 20px;
}

.wnt-button-style3 .wnt-button-text {
	display: inline;
	font-size: 16px;
}

/* Adjust chat wrapper for style 3 */
#wnt-chat-wrapper:has(.wnt-button-style3) {
	bottom: 0 !important;
}

/* Adjust chat window for style 3 */
#wnt-chat-wrapper:has(.wnt-button-style3) .wnt-chat-window {
	bottom: 50px !important;
}

.wnt-chat-window {
	font-family: inherit;
	transition: all 0.3s ease;
	transform-origin: bottom left;
	position: absolute;
	bottom: 0px;
	z-index: 999999;
    padding: 10px;
}

.wnt-chat-window.scale-toggle {
	animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Layout customization section */
.wnt-chat-widget-layout-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(57, 203, 155, 0.25);
}

.wnt-chat-widget-layout-section .form-table {
    margin-bottom: 30px;
}

.wnt-chat-widget-layout-section .form-table th {
    color: #1f3448;
    font-weight: 600;
    padding: 15px 20px 15px 0;
    width: 200px;
}

.wnt-chat-widget-layout-section .form-table td {
    padding: 15px 0;
    vertical-align: middle;
}

.wnt-chat-widget-layout-section input[type="text"],
.wnt-chat-widget-layout-section input[type="url"],
.wnt-chat-widget-layout-section select {
    width: 100%;
    max-width: 400px;
    height: 42px;
    padding: 8px 12px;
    border: 1px solid rgba(57, 203, 155, 0.25);
    border-radius: 4px;
    font-size: 16px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.wnt-chat-widget-layout-section input[type="text"]:focus,
.wnt-chat-widget-layout-section input[type="url"]:focus,
.wnt-chat-widget-layout-section select:focus {
    outline: none;
    border-color: #21eeab;
    box-shadow: 0 0 0 2px rgba(33, 238, 171, 0.1);
}

.wnt-chat-widget-layout-section input[type="color"] {
    width: 60px;
    height: 42px;
    border: 1px solid rgba(57, 203, 155, 0.25);
    border-radius: 4px;
    cursor: pointer;
}

/* Contact management */
.wnt-chat-contact-item {
    position: relative;
    margin: 20px 0;
}

.wnt-chat-contact-item h4 {
    color: #1f3448;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wnt-remove-contact {
    background: #fff;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wnt-remove-contact:hover {
    background: #dc3545;
    color: #fff;
}

/* Drag and drop styles */
.wnt-chat-contact-item[draggable="true"] {
    cursor: move;
    transition: all 0.3s ease;
}

.wnt-chat-contact-item.wnt-dragging {
    opacity: 0.5;
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 2px dashed #21eeab;
    background: rgba(33, 238, 171, 0.05);
}

.wnt-chat-contact-item.wnt-drag-over {
    border: 2px solid #21eeab;
    background: rgba(33, 238, 171, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 238, 171, 0.3);
}

.wnt-chat-contact-item .wnt-accordion-header {
    cursor: move;
    position: relative;
}

.wnt-chat-contact-item .wnt-accordion-header::before {
    content: "⋮⋮";
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 14px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wnt-chat-contact-item:hover .wnt-accordion-header::before {
    opacity: 1;
}

/* Buttons */
#wnt-add-contact {
    background: #2271b1;
    border: 1px solid #2271b1;
    border-radius: 6px;
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

#wnt-add-contact:hover {
    background: #135e96;
    border-color: #135e96;
}

.upload-btn {
    background: rgba(33, 238, 171, 0.1);
    border: 1px solid #21eeab;
    color: #1f3448;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: #21eeab;
    color: #fff;
}

/* Chat Window Styles */
.wnt-chat-window {
    width: 340px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: none;
}

/* Chat Content Styles */
.wnt-chat-content {
	padding: 0px;
	max-height: 300px;
	overflow-y: auto;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Conversation bubbles container */
.wnt-conversation-bubbles {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 15px 15px 0;
	margin: 0;
	max-height: 250px;
	min-height: 55px;
	overflow-y: auto;
}

.wnt-chat-content:has(.wnt-conversation-bubble) {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Chat Header Styles */
.wnt-chat-header {
    padding: 8px 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.wnt-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.wnt-chat-header > div {
    flex: 1;
}

.wnt-widget-title {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.wnt-widget-message {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.wnt-minimize-icon {
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}

/* Chat Data Styles */
.wnt-chat-data {
    padding: 16px;
    background: #fff;
    border-radius: 8px;
}

.wnt-chat-data.wnt-conversation-mode {
    padding: 0;
    overflow: hidden;
    background: #eee;
}

.wnt-reply-time-container {
    text-align: center;
    margin-bottom: 8px;
}

.wnt-reply-time-bubble {
    background: #f0f0f0;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-flex;
    text-align: center;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    width: 100%;
    box-sizing: border-box;
}

/* Contact Item Styles */
.wnt-contact-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.wnt-avatar-wrapper {
    position: relative;
}

.wnt-contact-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.wnt-contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wnt-contact-name {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.wnt-contact-role {
    font-size: 12px;
    color: #666;
}

.wnt-contact-info > div,
.wnt-contact-status {
    color: #999;
    font-size: 11px;
}

.wnt-online-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wnt-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.wnt-status-dot.wnt-online {
    background-color: #22c55e;
}

.wnt-status-dot.wnt-offline {
    background-color: #ef4444;
}

/* Chat Actions Styles */
.wnt-chat-actions {
    display: flex;
    gap: 8px;
}

.wnt-chat-actions a,
.wnt-chat-actions i {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.wnt-chat-actions a,
.wnt-whatsapp-action {
    background: #22c55e;
}

.wnt-chat-actions i.wnt-qr-chat-icon {
    background: #666;
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
}

/* Button Text Styles */
.wnt-button-text {
    color: #fff;
    font-weight: 600;
    margin-left: 8px;
}

.wnt-button-icon {
    color: #fff;
}

/* Powered By Styles */
.wnt-powered_by {
    text-align: center;
    padding: 12px 12px 4px;
    font-size: 11px;
    color: #fff;
}

.wnt-powered_by a {
    color: #fff;
    text-decoration: none;
}

/* Footer */
.wnt-chat-widget-layout-section .wnt-panel-footer {
    margin: 0 -30px -30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    text-align: right;
    border: 1px solid rgba(57, 203, 155, 0.25);
}

.wnt-chat-widget-layout-section .wnt-panel-footer .button-primary {
    background: #2271b1;
    border: 1px solid #2271b1;
    border-radius: 6px;
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wnt-chat-widget-layout-section .wnt-panel-footer .button-primary:hover {
    background: #135e96;
    border-color: #135e96;
}

/* Responsive design */
@media (max-width: 768px) {
    .wnt-preview-container {
        padding: 20px;
        min-height: 300px;
    }
    
    .wnt-chat-widget-section,
    .wnt-chat-widget-layout-section {
        padding: 20px;
    }
    
    .wnt-chat-widget-layout-section .form-table th {
        width: auto;
        display: block;
        padding-bottom: 5px;
    }
    
    .wnt-chat-widget-layout-section .form-table td {
        display: block;
        padding-top: 5px;
    }
    
    .wnt-chat-contact-item h4 {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Accordion Styles */
.wnt-accordion-section {
    background: #fff;
    border: 1px solid rgba(57, 203, 155, 0.25);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wnt-accordion-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(57, 203, 155, 0.25);
    transition: all 0.3s ease;
    user-select: none;
}

.wnt-accordion-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.wnt-accordion-header h3 {
    margin: 0;
    color: #1f3448;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wnt-accordion-header h3 i {
    color: #39cb9b;
    font-size: 20px;
}

.wnt-accordion-toggle {
    font-size: 16px;
    color: #666;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.wnt-accordion-header.active .wnt-accordion-toggle {
    transform: rotate(180deg);
}

.wnt-accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
}

.wnt-accordion-content.active {
    max-height: 2000px;
    padding: 20px;
}

.wnt-accordion-content .description {
    color: rgba(31, 52, 72, 0.7);
    font-size: 14px;
    margin: 5px 0 10px 0;
    font-style: italic;
}

.wnt-accordion-content .form-table {
    margin: 0;
}

.wnt-accordion-content .form-table th {
    padding: 15px 0;
    width: 200px;
    font-weight: 600;
    color: #1f3448;
}

.wnt-accordion-content .form-table td {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f1;
}

.wnt-accordion-content .form-table tr:last-child td {
    border-bottom: none;
}

/* Responsive accordion */
@media (max-width: 768px) {
    .wnt-accordion-header {
        padding: 15px;
    }
    
    .wnt-accordion-header h3 {
        font-size: 16px;
    }
    
    .wnt-accordion-content.active {
        padding: 15px;
    }
    
    .wnt-accordion-content .form-table th {
        width: auto;
        display: block;
        padding: 10px 0 5px 0;
    }
    
    .wnt-accordion-content .form-table td {
        display: block;
        padding: 5px 0 15px 0;
    }
}

/* Utility classes */
.wnt-mb-20 {
    margin-bottom: 20px;
}

.wnt-mt-20 {
    margin-top: 20px;
}

.wnt-text-center {
    text-align: center;
}

.wnt-text-muted {
    color: rgba(31, 52, 72, 0.7);
}

/* Loading states */
.wnt-loading {
    opacity: 0.6;
    pointer-events: none;
}

.wnt-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #21eeab;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Chat Contact Accordion Styles */
.wnt-chat-contact-item .wnt-accordion-header {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    margin-bottom: 0;
    transition: background-color 0.3s ease;
}

.wnt-chat-contact-item .wnt-accordion-header:hover {
    background: #f0f0f0;
}

.wnt-chat-contact-item .wnt-accordion-header.opened {
    border-radius: 4px 4px 0 0;
}

.wnt-chat-contact-item .wnt-accordion-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.wnt-accordion-icon {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.wnt-chat-contact-item .wnt-accordion-content {
    display: none;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    margin-bottom: 15px;
}

.wnt-chat-contact-item .wnt-accordion-content.active {
    display: block;
}

/* Status Indicator Styles */
.wnt-online-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #666;
}

.wnt-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.wnt-status-dot.wnt-online {
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
    animation: pulse-online 2s infinite;
}

.wnt-status-dot.wnt-offline {
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

@keyframes pulse-online {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Contact list container with max height and scrollbar */
#wnt-contact-list {
    max-height: 216px; /* Approximately 3 contacts (72px each) */
    overflow-y: auto;
    overflow-x: hidden;
}

.wnt-chat-data.wnt-conversation-mode #wnt-contact-list {
    max-height: 90%;
    padding: 0;
    background: #f4f1ec;
}

/* Custom scrollbar styling */
#wnt-contact-list::-webkit-scrollbar {
    width: 6px;
}

#wnt-contact-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#wnt-contact-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
    transition: background 0.3s ease;
}

#wnt-contact-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Conversation Mode Styles - WhatsApp-like Design */
.wnt-conversation-bubble {
    background: #ffffff;
    border-radius: 18px 18px 18px 4px;
    margin: 0px 40px 0px 15px;
    margin-right: auto;
    background: #ffffff;
    padding: 8px 12px 8px 12px;
    position: relative;
    max-width: 85%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    animation: bubbleSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: calc(var(--bubble-index, 0) * 0.5s);
    transform-origin: bottom right;
    display: inline-block;
    opacity: 0;
}

.wnt-conversation-bubble-user {
    background-color: #e2fcd7;
    color: white;
    margin-left: auto;
    margin-right: 0;
    align-self: flex-end;
}

.wnt-conversation-bubble-admin {
    background-color: #fff;
    color: #333;
    margin-left: 0;
    margin-right: auto;
    align-self: flex-start;
}

.wnt-conversation-bubble::before {
    content: '';    
    position: absolute;
    left: -8px;
    right: auto;
    border-left-color: transparent;
    border-right-color: #ffffff;
    border-left: 0;
    border-right: 8px solid #ffffff;
    transform: rotate(45deg);
    bottom: 0;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-bottom: 0;
}

.wnt-conversation-image {
    margin-bottom: 6px;
}

.wnt-conversation-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wnt-conversation-text {
    font-size: 14px;
    line-height: 1.3;
    color: #303030;
    word-wrap: break-word;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
}

.wnt-message-input-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 0px 15px 15px 15px;
    margin-top: 5px;
}

.wnt-conversation-mode .wnt-message-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    outline: none;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    resize: none;
    min-height: 20px;
    max-height: 100px;
    line-height: 1.4;
}

.wnt-conversation-mode .wnt-message-input:focus {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.wnt-conversation-mode .wnt-message-input::placeholder {
    color: #8696a0;
    font-size: 15px;
}

.wnt-message-input-container .wnt-send-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: none;
    background: #00a884;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(0, 168, 132, 0.3);
    flex-shrink: 0;
}

.wnt-message-input-container .wnt-send-button:hover {
    background: #008f72;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 168, 132, 0.4);
}

.wnt-message-input-container .wnt-send-button:active {
    transform: scale(0.95);
    box-shadow: 0 1px 3px rgba(0, 168, 132, 0.3);
}

@keyframes bubbleSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(20px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* WhatsApp Interruption Button Styles */
.wnt-whatsapp-interruption-button {
    display: block;
}

.wnt-whatsapp-interruption-button:hover {
    text-decoration: none;
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Firefox scrollbar styling */
#wnt-contact-list {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Offline contact styles */
.wnt-contact-item:has(.wnt-status-dot.wnt-offline) img,
.wnt-contact-item.wnt-offline img {
    filter: grayscale(100%);
    opacity: 0.6;
}

.wnt-contact-item:has(.wnt-status-dot.wnt-offline) .wnt-chat-actions,
.wnt-contact-item.wnt-offline .wnt-chat-actions {
    pointer-events: none;
}

.wnt-contact-item:has(.wnt-status-dot.wnt-offline) .wnt-chat-actions a,
.wnt-contact-item:has(.wnt-status-dot.wnt-offline) .wnt-chat-actions i,
.wnt-contact-item.wnt-offline .wnt-chat-actions a,
.wnt-contact-item.wnt-offline .wnt-chat-actions i {
    background: #999 !important;
    filter: grayscale(100%);
    opacity: 0.5;
    cursor: not-allowed;
}

/* Online/Offline Status Indicator Styles */
.wnt-online-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
}

.wnt-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

.wnt-status-dot.wnt-online {
    background-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
}

.wnt-status-dot.wnt-offline {
    background-color: #9ca3af;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.3);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* QR Overlay Styles */
.wnt-qr-overlay {
    position: relative;
    width: 100%;
    z-index: 1000;
    text-align: center;
    box-sizing: border-box;
}

.wnt-qr-overlay .wnt-qr-header {
    position: relative;
    margin-bottom: 5px;
    text-align: center;
}

.wnt-qr-overlay .wnt-qr-back {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    padding: 4px;
}

.wnt-qr-overlay .wnt-qr-title {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.wnt-qr-overlay .wnt-qr-description {
    margin-bottom: 15px;
}

.wnt-qr-overlay .wnt-qr-description p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.wnt-qr-overlay .wnt-qr-code-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.wnt-qr-overlay .wnt-qr-code-image {
    max-width: 150px;
    max-height: 150px;
}

.wnt-qr-overlay .wnt-qr-error {
    display: none;
    padding: 30px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
}

.wnt-qr-overlay .wnt-qr-start-chat {
    display: block;
    width: 100%;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    box-sizing: border-box;
}

.wnt-qr-overlay .wnt-qr-start-chat:hover {
    background: #1da851;
    color: #fff;
    text-decoration: none;
}