/* Chat Widget Container */
.ads-chat-widget {
    max-height: 100vh;
    max-width: 100vw;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: var(--ads-chat-widget-width);
    height: var(--ads-chat-widget-height);
    border-radius: var(--ads-chat-border-radius);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
    display: flex;
    flex-direction: column;
    z-index: 4 !important;
    opacity: 0;
    transform: translateY(20px);
}

.ads-chat-widget.initialized {
    opacity: 1;
    transform: translateY(0);
}


.ads-chat-widget.minimized {
    height: 60px;
    width: 280px;
    transform: translateY(0);
}

/* Chat Header */
.ads-chat-header {
    background: var(--ads-chat-primary-color);
    border-radius: var(--ads-chat-border-radius) var(--ads-chat-border-radius) 0 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

.minimized .ads-chat-header {
    border-radius: var(--ads-chat-border-radius);
}


/* Chat Body */
.ads-chat-body {
    flex: 1;
    overflow-y: auto;
    position: relative;
    min-height: 0;
}

.minimized .ads-chat-body {
    max-height: 0;
    padding: 0;
    opacity: 0;
}

/* Message Styles */
.ads-chat-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    position: relative;
    word-wrap: break-word;
    /* margin-bottom:4px; */
}

.ads-chat-message.incoming {
    background: var(--ads-chat-secondary-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: var(--ads-chat-text-color);
    margin-left: 8px;
    display: flex;
    flex-direction: column;
}

.ads-chat-message.outgoing {
    background: var(--ads-chat-primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ads-chat-message-content {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    gap: 4px;
}

.ads-chat-message-avatar {
    display: flex;
    align-items: center;
}

.ads-chat-message-avatar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.ads-chat-message-sender {
    font-size: 0.8em;
    color: #666;
    margin: 0; /* Remove any default margins */
}

/* Message Footer */
.ads-chat-message-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.8em;
}

.ads-chat-message-time {
    font-size: 11px;
    opacity: 0.7;
    /* margin-top: 4px; */
    display: flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
}

/* Message Status */
.ads-chat-message-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

.ads-chat-status-text {
    opacity: 0.7;
    transition: all 0.2s ease;
}

.ads-chat-status-icon {
    font-size: 12px;
    opacity: 0.7;
    margin-left: 4px;
}


.ads-chat-message.outgoing .ads-chat-status-text,
.ads-chat-message.outgoing .ads-chat-status-icon {
    color: rgba(255, 255, 255, 0.9);
}


/*.ads-chat-message.outgoing .ads-chat-message-status[data-status="seen"] .ads-chat-status-icon,*/
/*.ads-chat-message.outgoing .ads-chat-message-status[data-status="seen"] .ads-chat-status-text {*/
/*    color: #009ef7 !important;*/
/*    opacity: 1;*/
/*}*/


.ads-chat-message.outgoing .ads-chat-message-status[data-status="seen"] .ads-chat-status-icon {
    color: #009ef7 !important;
    opacity: 1;
}


.ads-chat-message-status[data-status="delivered"] .ads-chat-status-icon {
    opacity: 0.9;
}

.ads-chat-message-status[data-status="sending"] .ads-chat-status-icon {
    opacity: 0.5;
    animation: pulse 1.5s infinite;
}

.ads-chat-message-status[data-status="error"] .ads-chat-status-icon,
.ads-chat-message-status[data-status="error"] .ads-chat-status-text {
    color: #ff4444;
    opacity: 1;
}


/* Chat Footer */
.ads-chat-footer {
    display: flex;
    flex-direction: column;
    max-height: 150px; /* Maximum height including padding */
}


.ads-chat-minimized .ads-chat-footer {
    display: none;
    opacity: 0;
}

.ads-chat-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    resize: none;
    max-height: 120px; /* Limit max height */
    min-height: 40px;
    line-height: 1.5;
    overflow-y: auto;
    word-break: break-word;
    scrollbar-width: thin;
}

.ads-chat-input::-webkit-scrollbar-track {
    background: transparent;
}


.ads-chat-input::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}


.ads-chat-input:focus {
    border-color: var(--ads-chat-primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}


/* Send Button */
.ads-chat-send-button {
    background: var(--ads-chat-primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.ads-chat-send-button:hover {
    background-color: #1d4ed8;
}

.ads-chat-send-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.ads-chat-send-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Status Indicator */
.ads-chat-status-indicator {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ads-chat-status-dot {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
}

.ads-chat-status-dot[data-status="connected"],
.ads-chat-status-dot[data-status="authenticated"] {
    color: #22c55e;
}

.ads-chat-status-dot[data-status="connecting"] {
    color: #f59e0b;
}

.ads-chat-status-dot[data-status="disconnected"],
.ads-chat-status-dot[data-status="error"] {
    color: #ef4444;
}


/* Adjust empty state container for options */
.ads-chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6b7280;
    text-align: center;
}



/* Loading States */
.ads-chat-loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ads-chat-loading.active {
    display: flex;
}

.ads-chat-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--ads-chat-primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Desktop Animation */
@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


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

@keyframes pulse {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.5;
    }
}

/* Body scroll lock */
.body-chat-expanded {
    position: fixed;
    width: 100%;
    overflow: hidden;
    /* Remove height: 100% to prevent scroll reset */
}


/* Mobile Responsiveness */
@media (max-width: 480px) {

    .body-chat-expanded {
        overflow: hidden;
        width: 100%;
        height: 100%;
        position: relative; /* Fixed yerine relative kullan */
    }


    .ads-chat-widget {
        transition: opacity 0.2s ease; /* Sadece opacity için yumuşak geçiş */
    }

    .ads-chat-widget.minimized #minimizeBtn .minimize-icon {
        display: none !important;
    }

    .ads-chat-widget.minimized #minimizeBtn .mobile-icon {
        display: block !important;
    }

    .ads-chat-widget:not(.minimized) #minimizeBtn .mobile-icon {
        display: none !important;
    }

    .ads-chat-widget:not(.minimized) #minimizeBtn .minimize-icon {
        display: block !important;
    }


    /* Expand edilmiş widget için full screen tasarım */
    .ads-chat-widget:not(.minimized) {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        min-height: 100% !important;
        margin: 0;
        padding: 0;
        border-radius: 0;
        z-index: 99999;
        background: white;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }


    .ads-chat-widget.minimized {
        position: fixed !important;
        width: 60px !important;
        height: 60px !important;
        bottom: 20px !important;
        right: 20px !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        opacity: 1;
        z-index: 99999;
    }

    /* İnline style kullanımını engellemek için override */
    .ads-chat-widget[style*="height"],
    .ads-chat-widget[style*="width"] {
        height: auto !important;
        width: auto !important;
    }


    /* Expand edilmiş durumda header ve footer */
    .ads-chat-widget:not(.minimized) .ads-chat-header {
        flex-shrink: 0;
        width: 100%;
        border-radius: 0;
    }


    .ads-chat-widget:not(.minimized) .ads-chat-body {
        flex: 1;
        width: 100%;
        height: 0; /* Flexbox'ın doğru çalışması için */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }


    /* Minimize edilmiş durumda header tasarımı */
    .ads-chat-widget.minimized .ads-chat-header {
        height: 100% !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }


    .ads-chat-widget:not(.minimized) .ads-chat-footer {
        flex-shrink: 0;
        width: 100%;
        background: white;
        position: relative;
        z-index: 2;
    }


    .ads-chat-widget.minimized .ads-chat-status-indicator,
    .ads-chat-widget.minimized div {
        display: none;
    }

    .ads-chat-widget.minimized #minimizeBtn {
        position: static;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        padding: 0;
        margin: 0;
    }

    .ads-chat-widget.minimized .ads-chat-body,
    .ads-chat-widget.minimized .ads-chat-footer {
        display: none;
    }

    /* Hide provider info on mobile */
    .ads-chat-widget .chat-provider-info {
        display: none;
    }

    .ads-chat-message {
        max-width: 95%;
    }

    /* Adjust message container padding */
    #chatMessages {
        padding: 1rem;
        min-height: 100%;
    }

    /* Ensure messages fill available space */
    .ads-chat-body .d-flex.flex-column {
        min-height: 100%;
    }


    /* Animasyon için slide-up efekti */
    .ads-chat-widget.expanding {
        animation: expandMobile 0.3s ease-out forwards;
    }

    @keyframes expandMobile {
        from {
            transform: scale(0.2);
            opacity: 0;
            border-radius: 50%;
        }
        to {
            transform: scale(1);
            opacity: 1;
            border-radius: 0;
        }
    }

    /* Ensure content fills available space */
    .ads-chat-widget:not(.minimized) #chatMessages {
        height: 100%;
        width: 100%;
    }


    /* iOS özel düzeltmeler */
    @supports (-webkit-touch-callout: none) {
        .ads-chat-widget:not(.minimized) {
            height: -webkit-fill-available !important;
        }

        .ads-chat-widget:not(.minimized) .ads-chat-body {
            height: auto;
        }
    }

}


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


.ads-chat-date-separator {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    padding: 0 10px;
}

.ads-chat-date-line {
    flex: 1;
    height: 1px;
    background-color: #e5e7eb;
}

.ads-chat-date-text {
    color: #6b7280;
    font-size: 0.75rem;
    padding: 0 10px;
    background-color: white;
}


.ads-chat-header {
    position: relative;
    z-index: 0;
}

.ads-chat-typing-indicator {
    padding: 0; /* 8px'ten 0'a değiştirdik */
    transition: all 0.3s ease;
}

.ads-chat-typing-indicator.d-none {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.ads-chat-typing-indicator .ads-chat-message {
    margin-bottom: 0;
    max-width: 85%;
    margin-left: 8px; /* Normal mesajlarla aynı margin */
}

.ads-chat-typing-indicator .ads-chat-message-content {
    padding: 10px 14px; /* Normal mesajlarla aynı padding */
}


.ads-chat-typing-indicator .ads-chat-message-sender {
    font-size: 0.9em;
    color: #666;
}

.ads-chat-typing-indicator .ads-chat-message-avatar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* Optional: Add a subtle animation to the "typing" text */
.ads-chat-typing-indicator .ads-chat-message-sender::after {
    content: '';
    animation: typingDots 1.5s infinite;
}

@keyframes typingDots {
    0% {
        content: '';
    }
    25% {
        content: '.';
    }
    50% {
        content: '..';
    }
    75% {
        content: '...';
    }
    100% {
        content: '';
    }
}


/* Quick Options Styling */
.ads-chat-quick-options {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.ads-chat-quick-option-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--ads-chat-secondary-color);
    border: 1px solid #e5e7eb;
    border-radius: var(--ads-chat-border-radius);
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
}

.ads-chat-quick-option-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.ads-chat-quick-option-icon {
    font-size: 1.25rem;
    min-width: 24px;
}

.ads-chat-quick-option-text {
    font-size: 0.875rem;
    color: var(--ads-chat-text-color);
    flex: 1;
}




/* Emoji button styling */
.ads-chat-emoji-button {
    background: none;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    font-size: 16px;
}

.ads-chat-emoji-button:hover {
    background-color: var(--ads-chat-secondary-color);
}

/* Emoji picker styling */
.emoji-wrapper {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: white;
    border-radius: var(--ads-chat-border-radius);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.emoji-picker {
    padding: 8px;
    max-width: 280px;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.emoji-item {
    cursor: pointer;
    padding: 8px;
    font-size: 20px;
    text-align: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.emoji-item:hover {
    background-color: var(--ads-chat-secondary-color);
}

/* Add this to ensure proper positioning */
.ads-chat-footer {
    position: relative;
}


.ads-chat-message-sender {
    font-size: 0.875rem;
    color: var(--ads-chat-text-color);
    margin: 0;
}

.ads-chat-message-job-title {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: -2px;
}

.ads-chat-message-avatar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.ads-chat-typing-dots {
    display: flex;
    gap: 4px;
    min-height: 24px;
    align-items: center;
    padding: 0; /* 12px'ten 0'a değiştirdik */
}

.ads-chat-typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--ads-chat-text-color);
    opacity: 0.4;
    display: inline-block;
    animation: typingAnimation 1.4s infinite;
}

.ads-chat-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.ads-chat-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}


@keyframes typingAnimation {
    0% {
        transform: translateY(0px);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-4px);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0px);
        opacity: 0.4;
    }
}


.ads-chat-event {
    margin: 0 0;
    padding: 0 12px;
    clear: both;
    width: 100%;
}

.ads-chat-event-content {
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
    background: rgba(0, 0, 0, 0.03);
    padding: 6px 12px;
    border-radius: 12px;
    display: inline-block;
    max-width: 80%;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .ads-chat-event-mobile {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}


.ads-chat-unread-badge {
    position: absolute;
    background-color: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-bottom-left-radius: 50%;
    padding: 4px 8px;
    text-align: center;
    z-index: 1;
    right: 0;
    top: 0;
    min-width: 24px;
    min-height: 24px;
}


@media (max-width: 480px) {
    .ads-chat-unread-badge {
        border-radius: 50%;
        right: 8px;
        top: 4px;
    }

}

/* Link Preview Styles */
.ads-chat-link-preview {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: background-color 0.2s ease;
}

.ads-chat-preview-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    gap: 12px;
    padding: 8px;
}

.ads-chat-preview-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.ads-chat-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ads-chat-preview-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ads-chat-preview-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--ads-chat-text-color);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ads-chat-preview-description {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ads-chat-preview-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    gap: 12px;
    padding: 8px;
}


.ads-chat-message-link:hover {
    text-decoration: underline;
}

/* Adjustments for outgoing messages */
.ads-chat-message.outgoing .ads-chat-link-preview {
    border-color: rgba(255, 255, 255, 0.2);

}

.ads-chat-link-preview:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.ads-chat-message.outgoing .ads-chat-link-preview:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.ads-chat-message-link {
    color: var(--ads-chat-primary-color);
    text-decoration: none;
}


.ads-chat-message.outgoing .ads-chat-preview-title,
.ads-chat-message.outgoing .ads-chat-preview-description {
    color: rgba(255, 255, 255, 0.8);
}

.ads-chat-message.outgoing .ads-chat-message-link {
    color: white;
    text-decoration: underline;
    opacity: 0.9;
}

.ads-chat-message.outgoing .ads-chat-message-link:hover {
    opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .ads-chat-preview-image {
        width: 48px;
        height: 48px;
    }

    .ads-chat-preview-title {
        font-size: 13px;
    }

    .ads-chat-preview-description {
        font-size: 11px;
    }
}


.ads-chat-message-content > div:first-child:not(.ads-chat-message-footer):not(.ads-chat-link-previews) {
    white-space: pre-wrap;
    word-break: break-word;
}

.ads-chat-link-previews {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}


.ads-chat-timeout-message {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* REACTION */
.ads-chat-message-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    position: relative;
    min-height: 0;
    padding: 0;
}

.ads-chat-message-reactions.has-reactions {
    margin-top: 4px;
    padding-right: 12px;
    /* min-height: 24px; */
}


.ads-chat-reaction-button {
    position: absolute;
    bottom: -8px;
    right: -24px;
    transform: translateY(50%);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s, background-color 0.2s;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ads-chat-message-reaction-picker {
    position: absolute;
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    min-height: 100px;
    right: 0;
    top: 0;
    min-width: 200px;
    max-width: 200px;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    z-index: 1000;
}

.ads-chat-reaction-emoji-button {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-size: 16px;
}

.ads-chat-reaction-emoji-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.ads-chat-reaction-badge {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-right: 4px;
    margin-bottom: 4px;
}

.ads-chat-reaction-badge .reaction-emoji {
    margin-right: 4px;
}

.ads-chat-reaction-badge .reaction-count {
    min-width: 12px;
    text-align: center;
}

.outgoing .ads-chat-reaction-button {
    background: var(--ads-chat-primary-color);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.ads-chat-message.outgoing .ads-chat-reaction-badge {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.ads-chat-message.outgoing .ads-chat-reaction-badge.active {
    background: var(--ads-chat-primary-color);
    color: white;
}

.ads-chat-reaction-badge.active {
    background: var(--ads-chat-primary-color);
    color: white;
    border-color: transparent;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    /* Prevent header overlap */
    .ads-chat-empty-state {
        padding-top: 8rem;
    }


    .ads-chat-reaction-button {
        width: 28px;
        height: 28px;
    }

    .ads-chat-message {
        position: relative;  /* Ensure proper positioning context */
    }


    .ads-chat-message-reaction-picker {
        position: fixed;
        left: 16px;  /* Add consistent margins */
        right: 16px;
        bottom: 80px;
        transform: none;  /* Remove transform as we're using left/right */
        width: auto;  /* Let width be determined by left/right */
        max-width: none;  /* Remove max-width constraint */
        min-height: 200px;  /* Increased minimum height */
        max-height: 40vh;   /* Maximum height relative to viewport */
        border-radius: 16px;
        padding: 16px;      /* Increased padding */
        z-index: 1001;      /* Ensure picker is above other elements */
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        overflow-y: auto;   /* Allow scrolling if content exceeds max-height */
        -webkit-overflow-scrolling: touch;  /* Smooth scrolling on iOS */
        scroll-behavior: smooth;
    }

    .ads-chat-message-reaction-picker .ads-chat-reaction-emoji-button {
        flex: 0 0 20%;  /* 5 emojis per row */
        display: flex;
        align-items: center;
        justify-content: center;
        height: 48px;      /* Fixed height for better touch targets */
        font-size: 24px;   /* Larger emoji size */
        padding: 0;        /* Remove padding in favor of fixed height */
        margin: 4px 0;     /* Add vertical spacing between rows */
    }


    .ads-chat-reaction-emoji-button {
        font-size: 20px;
        padding: 8px;
    }

    .ads-chat-reaction-badge {
        padding: 4px 8px;
        font-size: 14px;
    }
}