#wfw-container { 
    position: fixed; 
    bottom: 25px; 
    z-index: 9999; 
    display: flex; 
    flex-direction: column; 
}
#wfw-toggle-button { 
    width: 60px; height: 60px; 
    background: var(--wfw-main-button-bg);
    color: var(--wfw-icon-color); border-radius: 50%; 
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.2); 
    transition: all 0.25s ease-out; position: relative; 
    flex-shrink: 0; white-space: nowrap; 
}
#wfw-toggle-button:hover { 
    transform: scale(1.1); 
}
#wfw-toggle-button.has-text { 
    width: auto; border-radius: 30px; padding: 0 20px; 
    display: flex; flex-direction: row; align-items: center; justify-content: center;
}
#wfw-toggle-button.has-text .wfw-main-button-text { 
    padding-left: 10px; font-size: 16px; font-weight: 500; 
}

/* DÜZELTME: Wrapper artık esnek, sabit boyutu kaldırıldı */
#wfw-toggle-button .wfw-main-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
/* Metin varken de esnek kalacak */
#wfw-toggle-button.has-text .wfw-main-icon-wrapper {
    width: auto;
    height: auto;
}

#wfw-toggle-button .wfw-icon-main { 
    width: 28px; height: 28px; 
}

/* DÜZELTME: Logo boyutu artık inline style ile belirlenecek, sabit max değerler yok */
#wfw-toggle-button .wfw-main-logo {
    display: block;
    object-fit: contain;
    /* max-width ve max-height kaldırıldı */
}

#wfw-toggle-button .wfw-icon-close { 
    width: 32px; height: 32px; 
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.wfw-mode-toggle.active #wfw-toggle-button { 
    background-color: var(--wfw-close-color); 
    background-image: none;
}
.wfw-mode-toggle.active #wfw-toggle-button .wfw-main-icon-wrapper { transform: rotate(45deg); opacity: 0; }
.wfw-mode-toggle.active #wfw-toggle-button .wfw-main-button-text { opacity: 0; width: 0; padding-left: 0; }
.wfw-mode-toggle.active #wfw-toggle-button .wfw-icon-close { transform: translate(-50%, -50%) rotate(0deg); opacity: 1; }

.wfw-buttons { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.wfw-mode-toggle .wfw-buttons { margin-bottom: 15px; }
.wfw-button { 
    height: 50px; width: 50px; border-radius: 50%; color: #fff; display: flex; justify-content: center; align-items: center; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); 
    text-decoration: none; white-space: nowrap; position: relative;
    transition: transform 0.2s ease-out;
}
.wfw-button:last-child { margin-bottom: 0; }
.wfw-button:hover { 
    transform: scale(1.1) translateY(-2px); 
    box-shadow: 0 6px 16px rgba(0,0,0,0.2); 
}
.wfw-button svg { width: 28px; height: 28px; flex-shrink: 0; }
.wfw-button.has-text { width: auto; border-radius: 25px; padding: 0 20px 0 12px; }
.wfw-button.has-text span { margin-left: 10px; font-size: 15px; font-weight: 500; line-height: 1; }

.wfw-whatsapp { background: var(--wfw-whatsapp-bg); } 
.wfw-instagram { background: var(--wfw-instagram-bg); } 
.wfw-facebook { background: var(--wfw-facebook-bg); } 
.wfw-call { background: var(--wfw-call-bg); } 
.wfw-linkedin { background: var(--wfw-linkedin-bg); }
.wfw-custom { background: var(--wfw-custom-bg); }

.wfw-mode-toggle .wfw-button { 
    opacity: 0; transform: translateY(20px) scale(0.8) rotate(-10deg); 
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(.18,.89,.32,1.28);
}
.wfw-mode-toggle.active .wfw-button { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
.wfw-mode-toggle.active .wfw-button:hover { 
    transform: scale(1.1) translateY(-2px) rotate(0deg); 
}
.wfw-mode-toggle.active .wfw-buttons a:nth-last-child(1) { transition-delay: 0.1s; }
.wfw-mode-toggle.active .wfw-buttons a:nth-last-child(2) { transition-delay: 0.15s; }
.wfw-mode-toggle.active .wfw-buttons a:nth-last-child(3) { transition-delay: 0.2s; }
.wfw-mode-toggle.active .wfw-buttons a:nth-last-child(4) { transition-delay: 0.25s; }
.wfw-mode-toggle.active .wfw-buttons a:nth-last-child(5) { transition-delay: 0.3s; }
.wfw-mode-toggle.active .wfw-buttons a:nth-last-child(6) { transition-delay: 0.35s; }
.wfw-mode-stack .wfw-button { opacity: 1; transform: translateY(0); }
a[data-wfw-tooltip] { position: relative; }
a[data-wfw-tooltip]::after { content: attr(data-wfw-tooltip); position: absolute;  top: 50%; transform: translateY(-50%); background-color: #333; color: #fff; padding: 6px 12px; border-radius: 5px; font-size: 14px; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease; pointer-events: none; }
a[data-wfw-tooltip]:hover::after { opacity: 1; visibility: visible; }
.wfw-cta-bubble { position: absolute; bottom: 85px; background: #fff; color: #333; padding: 10px 15px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); font-size: 15px; white-space: nowrap; opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.4s ease; visibility: hidden; z-index: -1; }
.wfw-cta-bubble::after { content: ''; position: absolute; bottom: -8px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 8px solid #fff; }
.wfw-mode-toggle .wfw-cta-bubble.is-visible { opacity: 1; transform: translateY(0); visibility: visible; }
#wfw-container.cta-interacted .wfw-cta-bubble { display: none; }

.wfw-position-right { right: 25px; left: auto; align-items: flex-end; }
.wfw-position-left { left: 25px; right: auto; align-items: flex-start; }
.wfw-position-right a[data-wfw-tooltip]::after { right: 115%; left: auto; }
.wfw-position-left a[data-wfw-tooltip]::after { left: 115%; right: auto; }
.wfw-position-right .wfw-cta-bubble { right: 0; }
.wfw-position-left .wfw-cta-bubble { left: 0; }
.wfw-position-right .wfw-cta-bubble::after { right: 20px; }
.wfw-position-left .wfw-cta-bubble::after { left: 20px; }