/* ============================================================
   AI Chatbot Module Styles
   mod_aichatbot - default & chat-trigger templates
   ============================================================ */

/* --- Floating Widget Base --- */
.aichatbot-floating-widget {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 9999;
    direction: rtl;
}

.aichatbot-chat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00473A 0%, #006B5A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 71, 58, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.aichatbot-chat-icon.custom-ai-icon {
    width: 63px;
    height: 63px;
    background: transparent;
    box-shadow: none;
    border-radius: 50%;
    overflow: visible;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.aichatbot-chat-icon.custom-ai-icon.chat-icon-hidden {
    display: none;
}

.aichatbot-chat-icon.custom-ai-icon.chat-window-open {
    display: none;
}

.aichatbot-chat-icon.custom-ai-icon .launcher-brain-icon {
    width: 63px;
    height: 63px;
    display: block;
}

.aichatbot-chat-icon.custom-ai-icon:hover {
    box-shadow: none;
}

.aichatbot-chat-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 71, 58, 0.4);
}

.aichatbot-chat-icon .chat-icon {
    color: white;
    transition: opacity 0.3s ease;
}

.aichatbot-chat-icon .close-icon {
    color: white;
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aichatbot-chat-icon.open .chat-icon {
    opacity: 0;
}

.aichatbot-chat-icon.open .close-icon {
    opacity: 1;
}

/* --- Chat Window --- */
.aichatbot-chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 450px;
    height: min(800px, calc(100vh - 110px));
    max-height: calc(100vh - 110px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.aichatbot-chat-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* --- Header --- */
.aichatbot-chat-header {
    background: linear-gradient(135deg, #00473A 0%, #006B5A 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aichatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.aichatbot-header-text h3 {
    margin: 0;
    font-size: 15px !important;
    line-height: 1.3;
    color: #fff;
}

.aichatbot-header-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.aichatbot-minimize-btn,
.aichatbot-close-keyboard-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.aichatbot-minimize-btn:hover,
.aichatbot-close-keyboard-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- Chat Body --- */
.aichatbot-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.aichatbot-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.aichatbot-message {
    margin-bottom: 16px;
    animation: fadeInUp 0.3s ease;
}

.aichatbot-bot-message {
    text-align: right;
}

.aichatbot-user-message {
    text-align: right;
}

.aichatbot-message-timestamp {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin-bottom: 8px;
}

.aichatbot-message-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.aichatbot-bot-message .aichatbot-message-wrapper {
    flex-direction: row;
}

.aichatbot-user-message .aichatbot-message-wrapper {
    flex-direction: row-reverse;
}

.aichatbot-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    order: 1;
    align-self: center;
}

.aichatbot-user-message .aichatbot-avatar {
    background: linear-gradient(135deg, #00473A 0%, #006B5A 100%);
}

.aichatbot-user-message .aichatbot-avatar svg {
    color: white;
}

.aichatbot-message-content {
    width: 100%;
    padding: 8px;
    line-height: 1.4;
    font-size: 15px;
}

.aichatbot-bot-message .aichatbot-message-content {
    color: #333;
}

.aichatbot-user-message .aichatbot-message-content {
    background: linear-gradient(135deg, #00473A 0%, #006B5A 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.aichatbot-message-content p {
    margin: 0;
    word-wrap: break-word;
}

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

/* --- Login Popup --- */
.aichatbot-login-popup {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    overflow: hidden;
}

.aichatbot-login-popup.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.aichatbot-popup-header {
    background: linear-gradient(135deg, #00473A 0%, #006B5A 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aichatbot-popup-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.aichatbot-close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.aichatbot-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.aichatbot-popup-body {
    padding: 20px;
    text-align: center;
}

.aichatbot-popup-body p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.5;
}

.aichatbot-login-btn {
    display: inline-block;
    background: linear-gradient(135deg, #00473A 0%, #006B5A 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.aichatbot-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 71, 58, 0.3);
    color: white;
    text-decoration: none;
}

.aichatbot-notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff4444;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* --- Bot Response --- */
.bot-response-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.3;
}

.bot-response-content a {
    color: #007bff;
    text-decoration: underline;
    word-break: break-all;
    text-decoration-skip-ink: none;
    text-underline-offset: 2px;
}

.bot-response-content a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* --- Typing Indicator --- */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 20px;
    padding: 10px 0;
}

.typing-label {
    font-size: 13px;
    color: #888;
    margin-left: 6px;
    direction: rtl;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #999;
    margin: 0 2px;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

.products-loading-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 0;
    color: #888;
    font-size: 14px;
    direction: rtl;
}

.products-loading-indicator .typing-dot {
    width: 6px;
    height: 6px;
}

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Processing Indicator --- */
.processing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
}

.processing-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.processing-icon {
    animation: rotate 2s linear infinite;
}

.processing-text {
    color: #666;
    font-size: 14px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* --- Welcome Screen --- */
.aichatbot-welcome-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.aichatbot-welcome-content {
    max-width: 330px;
}


.aichatbot-welcome-title {
    font-size: 17px !important;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.4;
    text-align: right;
}

.aichatbot-start-chat-btn {
    background: linear-gradient(135deg, #00473A 0%, #006B5A 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 71, 58, 0.2);
}

.aichatbot-start-chat-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 71, 58, 0.3);
}

.aichatbot-start-chat-btn:active {
    transform: translateY(0);
}

/* --- Input Area --- */
.aichatbot-input-bottom {
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 12px 16px;
    border-radius: 0 0 16px 16px;
}

.aichatbot-input-bottom .aichatbot-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.aichatbot-input-bottom .aichatbot-input-container:focus-within {
    border-color: #00473A;
    box-shadow: 0 0 0 2px rgba(0, 71, 58, 0.1);
}

.aichatbot-input-bottom textarea {
    flex: 1;
    border: none;
    background: transparent;
    resize: none;
    outline: none;
    font-size: 14px;
    line-height: 1.4;
    padding: 6px 0;
    max-height: 80px;
    min-height: 20px;
    -webkit-appearance: none;
    appearance: none;
}

.aichatbot-input-bottom .aichatbot-send-btn {
    background: linear-gradient(135deg, #00473A 0%, #006B5A 100%);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.aichatbot-input-bottom .aichatbot-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 71, 58, 0.3);
}

.aichatbot-input-bottom .aichatbot-send-btn svg {
    color: white;
    transform: rotate(180deg);
}

/* --- Screenshot Button --- */
.aichatbot-screenshot-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #666;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s, background 0.2s;
}

.aichatbot-screenshot-btn.visible {
    display: flex;
}

.aichatbot-screenshot-btn:hover {
    color: #00473A;
    background: rgba(0, 71, 58, 0.08);
}

.aichatbot-screenshot-btn:disabled {
    cursor: not-allowed;
}

/* --- Screenshot Preview --- */
.aichatbot-screenshot-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    position: relative;
}

.aichatbot-screenshot-preview img {
    height: 48px;
    width: auto;
    border-radius: 4px;
    border: 1px solid #ccc;
    object-fit: cover;
    cursor: zoom-in;
}

.aichatbot-screenshot-zoom-hint {
    font-size: 11px;
    color: #888;
    flex: 1;
}

.aichatbot-screenshot-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aichatbot-screenshot-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.aichatbot-screenshot-lightbox-inner {
    position: relative;
    z-index: 1;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.aichatbot-screenshot-lightbox-inner img {
    max-width: 95vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: block;
}

.aichatbot-screenshot-lightbox-close {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aichatbot-screenshot-remove {
    background: #e53935;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    flex-shrink: 0;
}

/* --- Screenshot Consent Popup --- */
.aichatbot-screenshot-consent {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aichatbot-screenshot-consent-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.aichatbot-screenshot-consent-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    width: 300px;
    max-width: 90vw;
    direction: rtl;
    text-align: right;
}

.aichatbot-screenshot-consent-box p {
    margin: 0 0 16px 0;
}

.aichatbot-screenshot-consent-btns {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.aichatbot-consent-ok {
    background: linear-gradient(135deg, #00473A 0%, #006B5A 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.aichatbot-consent-cancel {
    background: #f0f0f0;
    color: #555;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

/* --- Screenshot in Message --- */
.aichatbot-screenshot-sent {
    margin-bottom: 6px;
}

.aichatbot-screenshot-sent img {
    max-width: 180px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: block;
    margin-bottom: 4px;
}

.aichatbot-screenshot-label {
    font-size: 11px;
    opacity: 0.8;
}

/* --- Messages List --- */
.aichatbot-messages-list {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- Disclaimer Popup --- */
.aichatbot-disclaimer-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    direction: rtl;
    padding: 20px;
}

.aichatbot-disclaimer-popup.show {
    display: flex;
}

.aichatbot-disclaimer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.aichatbot-disclaimer-content {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: disclaimerSlideIn 0.3s ease;
    text-align: right;
}

.aichatbot-disclaimer-content p {
    margin: 0 0 20px 0;
    color: #333;
    line-height: 1.6;
    font-size: 15px;
}

.aichatbot-disclaimer-content a {
    color: #00473A;
    text-decoration: underline;
    word-break: break-all;
}

.aichatbot-disclaimer-content a:hover {
    color: #006B5A;
}

.aichatbot-disclaimer-btn {
    background: linear-gradient(135deg, #00473A 0%, #006B5A 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 71, 58, 0.2);
    width: 100%;
}

.aichatbot-disclaimer-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 71, 58, 0.3);
}

.aichatbot-disclaimer-btn:active {
    transform: translateY(0);
}

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

/* --- Product Cards --- */
.chatbot-product-card {
    display: block;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin: 0 0 -18px;
    transition: box-shadow 0.2s ease;
}

.chatbot-product-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chatbot-product-link {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    padding: 8px;
}

.chatbot-product-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.chatbot-product-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chatbot-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chatbot-product-info {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.chatbot-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.3;
    word-wrap: break-word;
}

.chatbot-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #4CAF50;
    direction: rtl;
}

.chatbot-product-sale {
    font-size: 14px;
    font-weight: 600;
    color: #FF6210;
    margin-top: 4px;
    direction: rtl;
}

.chatbot-product-desc {
    font-size: 14px;
    color: #000;
    margin-top: 2px;
    padding-top: 2px;
    line-height: 1.2;
    width: 100%;
    text-align: right;
    word-break: break-word;
}

/* --- Post-message Inline Disclaimer (non-blocking) --- */
.aichatbot-inline-disclaimer {
    padding: 8px 12px;
    margin: 0 8px 12px;
    background: #f5f5f5;
    border-radius: 8px;
    direction: rtl;
    text-align: right;color: #333;
    font-size: 15px;
    line-height: 1.2;
}
.aichatbot-inline-disclaimer a{color:#007bff;text-decoration: underline;}

/* --- Inline Disclaimer (bot message) --- */
.chatbot-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    margin-bottom: 12px;
    background-color: #f8f8f8;
    border-radius: 8px;
    direction: rtl;
    font-size: 15px;color: #333;
    line-height: 1.2;
}

.chatbot-disclaimer-streaming {
    opacity: 0.75;
}

.chatbot-disclaimer-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px; display: none;
}

.chatbot-disclaimer-text {
    flex: 1;
}

.article-link {
    line-height: 1.5;
}

/* --- Chat Trigger Banner --- */
.aichatbot-chat-trigger {
    display: flex;
    align-items: center;
    direction: rtl;
    background: #f8f8f8;
    box-shadow: 0px 0px 4px #999;
    padding: 0 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
    width: 100%;
    box-sizing: border-box;margin-bottom: 15px;
}

.aichatbot-chat-trigger:hover {
    background: #e6e6e6;
}

.act-icon {
    flex-shrink: 0;
    width: 15%;
    height: auto;
    margin-right: -20px;margin-left: -25px;
}

.act-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    alignment-baseline: middle;position: relative;top: 3px;
}

.act-text {
    flex: 1;
    text-align: center;
    line-height: 1.3;
}

.act-line-1 {
    font-size: 23px;color: #00473A;
    font-family: 'Rubik-mid', sans-serif;
}

.act-line-2 {
    font-size: 22px;
    color: #00473A;
}

.act-line-mobile {
    display: none;
    font-size: 18px;
  
    color: #00473A;
    font-family: 'Rubik-mid', sans-serif;
}

@media (max-width: 768px) {
    .act-desktop {
        display: none;
    }
    .act-line-mobile {
        display: block;
    }
}

.act-arrow {
    flex-shrink: 0;
    background: #58595b;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 14px;
    cursor: pointer;
    color: white;
    transform: rotate(180deg);
}
.act-arrow svg {
    width: 50%;
    height: auto;
}
/* ============================================================
   Responsive - Mobile
   ============================================================ */
@media (max-width: 768px) {
    .aichatbot-chat-window {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: none !important;
        max-width: none !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        z-index: 9999 !important;
    }

    .ai-contact-page .aichatbot-chat-window {
        position: fixed !important;
        bottom: 20px !important;
        right: 10px !important;
        left: 10px !important;
        top: auto !important;
        width: auto !important;
        height: 80vh !important;
        max-width: none !important;
        border-radius: 12px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        z-index: 9999 !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    }

    .aichatbot-chat-window.open {
        transform: none !important;
    }

    .ai-contact-page .aichatbot-chat-window.keyboard-open {
        bottom: auto !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .aichatbot-chat-window.keyboard-open {
        bottom: auto !important;
        overflow: hidden !important;
    }

    .aichatbot-chat-header {
        flex-shrink: 0;
        height: 54px;
        min-height: 54px;
        border-radius: 0;
        position: relative;
        z-index: 10;
    }

    .aichatbot-chat {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
        position: relative;
        height: calc(100% - 54px);
    }

    .ai-contact-page .aichatbot-chat {
        height: calc(80vh - 54px);
    }

    .ai-contact-page .aichatbot-chat-window.keyboard-open .aichatbot-chat {
        height: calc(100% - 54px);
    }

    .aichatbot-messages {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        display: flex;
        flex-direction: column;
        background: #fff;
        touch-action: pan-y;
        height: calc(100% - 100px);
    }

    .ai-contact-page .aichatbot-messages {
        height: calc(80vh - 154px);
    }

    .ai-contact-page .aichatbot-chat-window.keyboard-open .aichatbot-messages {
        height: calc(100% - 100px);
    }

    .aichatbot-welcome-center {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        min-height: 0;
    }

    .aichatbot-messages-list {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px;
        padding-bottom: 20px;
        touch-action: pan-y;
        min-height: 0;
    }

    .aichatbot-input-bottom {
        flex-shrink: 0;
        background: white;
        border-radius: 0;
        border-top: 1px solid #e0e0e0;
        padding: 12px 16px;
        padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
        position: relative;
        z-index: 10;
        height: auto;
        min-height: 80px;
        margin-bottom: 0;
    }

    .aichatbot-input-bottom textarea {
        font-size: 16px;
    }

   

    .aichatbot-disclaimer-popup {
        padding: 16px;
    }

    .aichatbot-disclaimer-content {
        padding: 24px 20px;
        max-height: 85vh;
    }

    .aichatbot-disclaimer-content p {
        font-size: 14px;
        line-height: 1.5;
    }

    .aichatbot-disclaimer-btn {
        font-size: 15px;
        padding: 10px 24px;
    }
}

@media (max-width: 667px) {
    .aichatbot-chat-header {
        min-height: 50px;
        padding: 10px 15px !important;
    }

    .aichatbot-header-text h3 {
        line-height: 1.2;
        margin: 0;
    }

    .aichatbot-header-info {
        gap: 8px;
    }

    .aichatbot-input-bottom {
        padding: 10px 12px;
    }

    .aichatbot-input-bottom .aichatbot-input-container {
        padding: 6px;
    }

    .aichatbot-input-bottom textarea {
        font-size: 13px;
    }
    .aichatbot-chat-trigger{
        padding: 0 1px;
    }
    .act-icon{width:19%;margin-right: -10px;margin-left: -15px;}
    
    .act-arrow{width:28px;height:28px;}
    .act-arrow svg{width:47%;}
    .product-desc-left .aichatbot-chat-trigger{width:94%;margin: 0 auto 10px;}
    nav.right .act-icon{margin-right:0;margin-left: -10px;}
    nav.right .act-line-mobile{font-size: 18px;}
    nav.right  .act-arrow {background:none;}
    nav.right  .act-arrow::after{content:"<";font-size: 27px;color: #00473A;font-family: 'Rubik-mid', sans-serif;margin-right:-11px;}
    nav.right  .act-arrow svg{display: none;}
    nav.right .act-icon img{position: relative;top:4px; alignment-baseline: inherit;}
}