/* EYPCLK Sticky Chat Butonları Stil Dosyası */

/* Elementor ve diğer tema stillerinden etkilenmemesi için yüksek öncelikli CSS kuralları */

/* Sticky butonlar için ana container */
body .eypclk-sticky-buttons {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 20px !important; /* Butonlar arasında boşluk eklendi */
}

/* Buton stilleri */
body .eypclk-sticky-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    margin-top: 0px !important; /* 10px'ten 0px'e düşürüldü çünkü gap kullanıyoruz */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

body .eypclk-sticky-button:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25) !important;
}

/* WhatsApp butonu - Altta olması için */
body .eypclk-whatsapp-button {
    background-color: #25D366 !important;
    color: white !important;
    margin-top: auto !important; /* Altta olmasını sağlamak için */
}

/* Telefon butonu */
body .eypclk-phone-button {
    background-color: #007bff !important;
    color: white !important;
}

/* Buton ikonu */
body .eypclk-sticky-button .eypclk-button-icon {
    font-size: 24px !important;
    color: white !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* WhatsApp popup container */
body .eypclk-whatsapp-popup {
    position: fixed !important;
    bottom: 100px !important;
    right: 20px !important;
    width: 350px !important;
    background-color: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2) !important;
    z-index: 999999 !important;
    overflow: hidden !important;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* Popup başlık */
body .eypclk-popup-header {
    background-color: #075E54 !important;
    color: white !important;
    padding: 15px !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

body .eypclk-popup-header img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    margin-right: 10px !important;
}

/* WhatsApp Destek yazısını küçültme */
body .eypclk-header-info h3 {
    margin: 0 !important;
    font-size: 14px !important;
    color: white !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

body .eypclk-header-info p {
    margin: 0 !important;
    font-size: 11px !important;
    opacity: 0.8 !important;
    color: white !important;
    line-height: 1.4 !important;
}

/* Popup içerik */
body .eypclk-popup-body {
    padding: 15px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    background-color: #E5DDD5 !important;
}

/* Mesaj container - Birden fazla mesaj için eklendi */
body .eypclk-messages-container {
    position: relative !important;
    width: 100% !important;
    min-height: 60px !important; /* Minimum yükseklik belirle */
}

/* Mesaj balonu */
body .eypclk-message {
    padding: 10px 15px !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
    position: relative !important;
    max-width: 80% !important;
    word-wrap: break-word !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    display: none; /* Javascript ile kontrol edilecek */
}

body .eypclk-received-message {
    background-color: #DCF8C6 !important;
    float: left !important;
    color: #000 !important;
}

/* Yazıyor animasyonu */
body .eypclk-typing {
    display: flex !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    background-color: #f1f1f1 !important;
    width: fit-content !important;
    margin-bottom: 15px !important;
}

body .eypclk-typing-dot {
    width: 8px !important;
    height: 8px !important;
    background-color: #999 !important;
    border-radius: 50% !important;
    margin: 0 2px !important;
    animation: eypclkTypingAnimation 1.5s infinite !important;
}

body .eypclk-typing-dot:nth-child(2) {
    animation-delay: 0.5s !important;
}

body .eypclk-typing-dot:nth-child(3) {
    animation-delay: 1s !important;
}

@keyframes eypclkTypingAnimation {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* Popup footer */
body .eypclk-popup-footer {
    display: flex !important;
    padding: 10px !important;
    background-color: #F0F0F0 !important;
    align-items: center !important;
}

body .eypclk-popup-footer input {
    flex: 1 !important;
    padding: 10px 15px !important;
    border: none !important;
    border-radius: 20px !important;
    outline: none !important;
    background-color: white !important;
    margin-right: 10px !important;
    font-size: 14px !important;
    color: #333 !important;
}

body .eypclk-popup-footer button {
    background-color: #25D366 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    padding: 0 !important;
    margin: 0 !important;
}

body .eypclk-popup-footer button:hover {
    background-color: #1a9946 !important;
}

/* Temizleme sınıfı */
body .eypclk-clearfix::after {
    content: "" !important;
    clear: both !important;
    display: table !important;
}

/* Kapat butonu - küçültülmüş */
body .eypclk-close-button {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    color: white !important;
    background: transparent !important;
    border: none !important;
    font-size: 16px !important;
    cursor: pointer !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    z-index: 1 !important;
}

body .eypclk-close-button span {
    line-height: 1 !important;
    display: block !important;
}

/* Mobil cihazlar için düzenleme */
@media (max-width: 480px) {
    body .eypclk-whatsapp-popup {
        width: 90% !important;
        bottom: 80px !important;
    }
}