
 .chatbotsearch-widget * {
    box-sizing: border-box;
}

.chatbotsearch-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/*
 * Toggle button styles
 * 08-01-2025
 */
/*
 * Updated to use dynamic color from admin customization settings
 * 13-01-2025
 */
/*
 * Updated to support position settings (top-left, top-right, bottom-left, bottom-right)
 * 06-01-2026
 */
#chatbotsearch-toggle {
    position: fixed;
    width: 60px;
    height: 60px;
    background: var(--chatbot-button-color, #007bff);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    /* Default position: bottom-right */
    bottom: 20px;
    right: 20px;
    top: auto;
    left: auto;
}

/* Position styles for chatbot button */
.chatbotsearch-position-top-left #chatbotsearch-toggle {
    top: 20px;
    left: 20px;
    bottom: auto;
    right: auto;
}

.chatbotsearch-position-top-right #chatbotsearch-toggle {
    top: 20px;
    right: 20px;
    bottom: auto;
    left: auto;
}

.chatbotsearch-position-bottom-left #chatbotsearch-toggle {
    bottom: 20px;
    left: 20px;
    top: auto;
    right: auto;
}

.chatbotsearch-position-bottom-right #chatbotsearch-toggle {
    bottom: 20px;
    right: 20px;
    top: auto;
    left: auto;
}

#chatbotsearch-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
    filter: brightness(0.9);
}

/*
 * Chatbot window styles - full screen mobile, modal desktop
 * 08-01-2025
 */
/*
 * Updated to use dynamic popup background color from admin customization settings
 * 13-01-2025
 */
/*
 * Updated to support position settings for popup window
 * 06-01-2026
 */
.chatbotsearch-window {
    position: fixed;
    width: 100%;
    height: 100%;
    background: var(--chatbot-popup-bg-color, #ffffff);
    display: none;
    flex-direction: column;
    z-index: 9999;
    min-height: 0;
    /* Default position: bottom-right */
    bottom: 0;
    right: 0;
    top: auto;
    left: auto;
}

/* Position styles for chatbot window */
.chatbotsearch-position-top-left .chatbotsearch-window {
    top: 0;
    left: 0;
    bottom: auto;
    right: auto;
}

.chatbotsearch-position-top-right .chatbotsearch-window {
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
}

.chatbotsearch-position-bottom-left .chatbotsearch-window {
    bottom: 0;
    left: 0;
    top: auto;
    right: auto;
}

.chatbotsearch-position-bottom-right .chatbotsearch-window {
    bottom: 0;
    right: 0;
    top: auto;
    left: auto;
}

.chatbotsearch-window.open {
    display: flex;
}

/*
 * Header styles
 * Updated to use popup background color from admin customization settings
 * 13-01-2025
 */
.chatbotsearch-header {
    background: var(--chatbot-popup-bg-color, #ffffff);
    color: #1a1a1a;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.chatbotsearch-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

/*
 * Updated logo to display image instead of text
 * 06-01-2026
 */
.chatbotsearch-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.chatbotsearch-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.chatbotsearch-header-text h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.chatbotsearch-header-text p {
    margin: 0;
    font-size: 13px;
    color: #999;
}

.chatbotsearch-close {
    background: #f5f5f5;
    border: none;
    color: #1a1a1a;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
}

.chatbotsearch-close:hover {
    background: #e5e5e5;
}

/*
 * Messages container with proper scrolling
 * 08-01-2025
 */
/*
 * Updated to use dynamic chat background color from admin customization settings
 * 13-01-2025
 */
.chatbotsearch-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--chatbot-chat-bg-color, #ffffff);
    min-height: 0;
}

/*
 * Custom scrollbar styling
 * 08-01-2025
 */
.chatbotsearch-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbotsearch-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbotsearch-messages::-webkit-scrollbar-thumb {
    background: #d4c5a9;
    border-radius: 3px;
}

.chatbotsearch-messages::-webkit-scrollbar-thumb:hover {
    background: #c4a962;
}

/*
 * Message styles with avatar
 * 08-01-2025
 */
.chatbotsearch-message {
    display: flex;
    gap: 12px;
    animation: slideIn 0.3s ease;
    max-width: 85%;
    flex-shrink: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
 * User messages aligned to right
 * 06-01-2026
 */
.chatbotsearch-message-user {
    flex-direction: row-reverse;
    align-self: flex-end;
    margin-left: auto;
}

/*
 * System messages aligned to left
 * 06-01-2026
 */
.chatbotsearch-message-bot {
    align-self: flex-start;
    margin-right: auto;
}

.chatbotsearch-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

/*
 * Bot avatar styling
 * 06-01-2026
 */
.chatbotsearch-message-bot .chatbotsearch-avatar {
    background: #ffffff;
    color: white;
}

/*
 * User avatar styling
 * 06-01-2026
 */
.chatbotsearch-message-user .chatbotsearch-avatar {
    background: #e8e8e8;
    color: #1a1a1a;
}

.chatbotsearch-bubble {
    padding: 14px 18px;
    border-radius: 20px;
    line-height: 1.6;
    font-size: 15px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/*
 * Added lighter shade of brown background for system/bot messages
 * 06-01-2026
 */
/*
 * Updated to use dynamic system response color from admin customization settings
 * 13-01-2025
 */
.chatbotsearch-message-bot .chatbotsearch-bubble {
    background: var(--chatbot-system-response-color, #e3f2fd);
    color: var(--chatbot-text-color, #333333);
    border-bottom-left-radius: 4px;
}

/*
 * Added lighter shade of grey background for user messages
 * 06-01-2026
 */
/*
 * Updated to use dynamic user response color from admin customization settings
 * 13-01-2025
 */
.chatbotsearch-message-user .chatbotsearch-bubble {
    background: var(--chatbot-user-response-color, #f5f5f5);
    color: var(--chatbot-text-color, #333333);
    border-bottom-right-radius: 4px;
}

/*
 * Typing indicator
 * 08-01-2025
 */
.chatbotsearch-typing-wrapper {
    display: flex;
    gap: 12px;
    animation: slideIn 0.3s ease;
    align-self: flex-start;
}

/*
 * Updated typing indicator background to match bot message color
 * 06-01-2026
 */
/*
 * Updated to use dynamic system response color from admin customization settings
 * 13-01-2025
 */
.chatbotsearch-typing {
    display: flex;
    gap: 6px;
    padding: 14px 18px;
    background: var(--chatbot-system-response-color, #e3f2fd);
    border-radius: 20px;
    border-bottom-left-radius: 4px;
}

.chatbotsearch-typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--chatbot-button-color, #007bff);
    animation: bounce 1.4s infinite ease-in-out;
}

.chatbotsearch-typing span:nth-child(1) {
    animation-delay: -0.32s;
}

.chatbotsearch-typing span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/*
 * Product cards styling
 * 08-01-2025
 */
.chatbotsearch-products {
    margin-top: 10px;
    width: 100%;
    overflow-x: hidden;
}

/*
 * Related products section styling
 * 08-01-2025
 */
.chatbotsearch-related-products {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
}

.chatbotsearch-product {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 12px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 12px;
}

.chatbotsearch-product:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.chatbotsearch-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    background: #f5f5f5;
    flex-shrink: 0;
}

.chatbotsearch-product-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.chatbotsearch-product-name {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    margin-bottom: 5px;
    font-size: 14px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.chatbotsearch-product-name:hover {
    color: #c4a962;
}

.chatbotsearch-product-price {
    color: #c4a962;
    font-weight: 600;
    margin-bottom: 8px;
}

/*
 * Product attributes styling
 * 06-01-2026
 */
.chatbotsearch-product-attributes {
    margin: 8px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chatbotsearch-attribute-item {
    display: inline-block;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1.4;
}

.chatbotsearch-attribute-item strong {
    color: #333;
    margin-right: 4px;
}
    font-weight: 700;
    font-size: 16px;
}

.chatbotsearch-product-link {
    display: inline-block;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 8px;
}

.chatbotsearch-product-link:hover {
    background: #333;
    transform: translateY(-1px);
}

/*
 * Offers and discounts styling
 * 06-01-2026
 */
.chatbotsearch-offers {
    margin-top: 15px;
    width: 100%;
    overflow-x: hidden;
}

.chatbotsearch-offers-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #c4a962;
}

.chatbotsearch-offer {
    background: white;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #c4a962;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 12px;
    padding: 16px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.chatbotsearch-offer:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.chatbotsearch-offer-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.chatbotsearch-offer-discount {
    font-size: 18px;
    font-weight: 700;
    color: #c4a962;
    margin: 8px 0;
}

.chatbotsearch-offer-code {
    margin: 10px 0;
    padding: 10px;
    background: #fef5e7;
    border-radius: 8px;
    font-size: 14px;
}

.chatbotsearch-offer-code-label {
    font-weight: 600;
    color: #1a1a1a;
}

.chatbotsearch-offer-code-value {
    font-weight: 700;
    color: #c4a962;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    letter-spacing: 1px;
    margin-left: 8px;
    padding: 4px 8px;
    background: white;
    border-radius: 4px;
    border: 1px dashed #c4a962;
}

.chatbotsearch-offer-auto {
    font-weight: 600;
    color: #1a1a1a;
    font-style: italic;
}

.chatbotsearch-offer-validity {
    font-size: 13px;
    color: #666;
    margin: 8px 0;
}

.chatbotsearch-offer-minimum {
    font-size: 13px;
    color: #666;
    margin: 8px 0;
    font-style: italic;
}

/*
 * Order tracking styling
 * Format order tracking information with proper UI structure
 * 06-01-2026
 */
.chatbotsearch-order-tracking {
    margin-top: 15px;
    width: 100%;
    overflow-x: hidden;
}

.chatbotsearch-order-tracking-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #c4a962;
}

.chatbotsearch-order-tracking-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.chatbotsearch-order-reference {
    font-size: 14px;
    font-weight: 600;
    color: #c4a962;
}

.chatbotsearch-order-tracking-info {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.chatbotsearch-tracking-item {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}

.chatbotsearch-tracking-item:last-child {
    margin-bottom: 0;
}

.chatbotsearch-tracking-label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.chatbotsearch-tracking-value {
    color: #333;
    font-size: 14px;
}

.chatbotsearch-tracking-na {
    color: #999;
    font-style: italic;
}

.chatbotsearch-tracking-link {
    color: #c4a962;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.chatbotsearch-tracking-link:hover {
    color: #b59952;
    text-decoration: underline;
}

.chatbotsearch-shipment-history {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.chatbotsearch-shipment-history-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.chatbotsearch-shipment-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chatbotsearch-shipment-item {
    background: #fef5e7;
    border-left: 4px solid #c4a962;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s;
}

.chatbotsearch-shipment-item:hover {
    background: #f9ecd4;
    transform: translateX(2px);
}

.chatbotsearch-shipment-status {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    margin-bottom: 4px;
}

.chatbotsearch-shipment-date {
    font-size: 13px;
    color: #666;
}

/*
 * Orders list styling
 * Format order list with proper UI structure
 * 06-01-2026
 */
.chatbotsearch-orders {
    margin-top: 15px;
    width: 100%;
    overflow-x: hidden;
}

.chatbotsearch-orders-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #c4a962;
}

.chatbotsearch-order {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 12px;
    padding: 16px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.chatbotsearch-order:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.chatbotsearch-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
}

.chatbotsearch-order-ref {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
}

.chatbotsearch-order-date {
    font-size: 13px;
    color: #666;
}

.chatbotsearch-order-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chatbotsearch-order-status {
    font-size: 14px;
    color: #1a1a1a;
}

.chatbotsearch-order-status-value {
    font-weight: 600;
    color: #c4a962;
}

.chatbotsearch-order-total {
    font-size: 14px;
    color: #1a1a1a;
}

.chatbotsearch-order-total-value {
    font-weight: 700;
    color: #c4a962;
    font-size: 16px;
}

/*
 * Order products styling
 * Format order products list with proper UI structure
 * 06-01-2026
 */
.chatbotsearch-order-products {
    margin-top: 15px;
    width: 100%;
    overflow-x: hidden;
}

.chatbotsearch-order-products-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #c4a962;
}

.chatbotsearch-order-product {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 12px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 12px;
}

.chatbotsearch-order-product:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.chatbotsearch-order-product-image-link {
    display: block;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.chatbotsearch-order-product-image-link:hover {
    transform: scale(1.05);
}

.chatbotsearch-order-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    background: #f5f5f5;
    flex-shrink: 0;
    display: block;
}

.chatbotsearch-order-product-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.chatbotsearch-order-product-name {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.chatbotsearch-order-product-name:hover {
    color: #c4a962;
}

.chatbotsearch-order-product-details {
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.chatbotsearch-order-product-quantity {
    font-size: 13px;
    color: #666;
}

.chatbotsearch-order-product-price {
    font-size: 13px;
    color: #666;
}

.chatbotsearch-order-product-total {
    font-size: 14px;
    font-weight: 600;
    color: #c4a962;
}

/*
 * Input area - sticky at bottom
 * 08-01-2025
 */
/*
 * Updated input area to use popup background color from admin customization settings
 * 13-01-2025
 */
.chatbotsearch-input-area {
    padding: 12px 12px 12px;
    background: var(--chatbot-popup-bg-color, #ffffff);
    border-top: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.chatbotsearch-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chatbotsearch-input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid #e5e5e5;
    border-radius: 24px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
    background: #faf8f5;
    min-width: 0;
    width: 100%;
}

.chatbotsearch-input:focus {
    border-color: #c4a962;
    background: white;
}

.chatbotsearch-input::placeholder {
    color: #999;
}

.chatbotsearch-send {
    background: #fef5e7;
    color: #1a1a1a;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    padding: 0;
}

/*
 * Updated send button hover to use dynamic button color from admin customization settings
 * 13-01-2025
 */
.chatbotsearch-send:hover:not(:disabled) {
    background: var(--chatbot-button-color, #007bff);
    color: white;
    transform: scale(1.05);
}

.chatbotsearch-send:disabled {
    background: #e5e5e5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

/*
 * Voice search button styles - Consistent with send button
 * 06-01-2026
 */
.chatbotsearch-record-btn {
    background: #fef5e7;
    color: #1a1a1a;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    padding: 0;
    position: relative;
}

/*
 * Updated record button hover to use dynamic button color from admin customization settings
 * 06-01-2026
 */
.chatbotsearch-record-btn:hover:not(.recording) {
    background: var(--chatbot-button-color, #007bff);
    color: white;
    transform: scale(1.05);
}

/* Recording state - animated pulsing red */
.chatbotsearch-record-btn.recording {
    background: #ff6b6b;
    color: white;
    animation: recordingPulse 1.2s ease-in-out infinite;
}

.chatbotsearch-record-btn.recording:hover {
    background: #ee5a6f;
    transform: scale(1.05);
}

/* Icon styles */
.chatbotsearch-record-icon__recording {
    width: 20px;
    height: 20px;
    color: currentColor;
}

.chatbotsearch-record-icon__mic {
    width: 20px;
    height: 20px;
    color: currentColor;
}

/* Pulse animation for recording state */
@keyframes recordingPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 107, 107, 0);
        transform: scale(1.05);
    }
}

/*
 * Mobile responsive styles
 * 08-01-2025
 */
/*
 * Desktop styles with position support
 * Updated to respect position settings
 * 06-01-2026
 */
@media (min-width: 768px) {
    .chatbotsearch-window {
        width: 400px;
        height: 520px;
        max-height: calc(100vh - 40px);
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        /* Default position: bottom-right */
        bottom: 20px;
        right: 20px;
        top: auto;
        left: auto;
    }

    /* Position-specific styles for desktop window */
    .chatbotsearch-position-top-left .chatbotsearch-window {
        top: 20px;
        left: 20px;
        bottom: auto;
        right: auto;
    }

    .chatbotsearch-position-top-right .chatbotsearch-window {
        top: 20px;
        right: 20px;
        bottom: auto;
        left: auto;
    }

    .chatbotsearch-position-bottom-left .chatbotsearch-window {
        bottom: 20px;
        left: 20px;
        top: auto;
        right: auto;
    }

    .chatbotsearch-position-bottom-right .chatbotsearch-window {
        bottom: 20px;
        right: 20px;
        top: auto;
        left: auto;
    }

    .chatbotsearch-header {
        border-radius: 16px 16px 0 0;
    }
    
    #chatbotsearch-toggle {
        display: block;
    }
}

@media (max-width: 767px) {
    .chatbotsearch-window.open ~ #chatbotsearch-toggle {
        display: none;
    }
}

