

:root {
    --wa-green: #25D366;
    --wa-green-dark: #1EB457;
    --wa-bg: #ffffff;
    --wa-header: #075E54;
    --wa-shadow: 0 18px 40px rgba(0,0,0,0.35);
    --wa-radius-lg: 18px;
    --wa-radius-full: 999px;
    --wa-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Ana kapsayıcı – sol altta sabit */
.wa-launcher {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 9999;
    font-family: var(--wa-font);
}

/* Yuvarlak buton */
.wa-button {
    width: 60px;
    height: 60px;
    border-radius: var(--wa-radius-full);
    border: none;
    outline: none;
    cursor: pointer;
    background: var(--wa-green);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wa-button__icon svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

.wa-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.3);
    background: var(--wa-green-dark);
}

/* Sohbet kutusu */
.wa-chat {
    position: absolute;
    left: 0;
    bottom: 76px;
    width: 340px;
    max-width: min(90vw, 360px);
    background: var(--wa-bg);
    border-radius: var(--wa-radius-lg);
    box-shadow: var(--wa-shadow);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.98);
    transform-origin: left bottom;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Açık state */
.wa-chat--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Header */
.wa-chat__header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: var(--wa-header);
    color: #fff;
}

.wa-chat__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4a261, #e76f51);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-right: 10px;
    flex-shrink: 0;
}

.wa-chat__avatar span {
    text-transform: uppercase;
}

.wa-chat__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wa-chat__title {
    font-size: 14px;
    font-weight: 600;
}

.wa-chat__status {
    font-size: 11px;
    opacity: 0.9;
}

.wa-chat__close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

/* Gövde */
.wa-chat__body {
    padding: 12px;
    background: #e5ddd5;
}

.wa-chat__bubble {
    display: inline-block;
    max-width: 90%;
    padding: 9px 12px;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 14px;
        color: #1d1d1d;

    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.wa-chat__bubble--incoming {
    background: #fff;
    border-radius: 14px 14px 14px 4px;
}

/* Footer */
.wa-chat__footer {
    padding: 10px 12px 12px;
    background: #f8f9fa;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.wa-chat__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 12px;
    background: var(--wa-green);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.wa-chat__cta:hover {
    background: var(--wa-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}

.wa-chat__note {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #6c757d;
}

/* Mobilde sohbet kutusunu gizle → sadece buton çalışsın (direkt WhatsApp aç) */
@media (max-width: 768px) {
    .wa-chat {
        display: none !important;
    }
}
