/* WhatsApp yüzen panel — Layout ve landing (Layout=null) sayfalarında kullanılır */

.zk-wa-v2-mount {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10055;
}

.zk-wa-v2-mount--stacked {
    bottom: 92px;
}

.zk-wa-v2-fab {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zk-wa-v2-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.zk-wa-v2-fab-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    color: #25d366;
    line-height: 1;
}

.zk-wa-v2-fab-ping {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e53935;
    border: 2px solid #fff;
    box-sizing: content-box;
}

.zk-wa-v2-panel {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: min(100vw - 2rem, 360px);
    max-height: min(72vh, 520px);
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    background: #fff;
    z-index: 1;
}

.zk-wa-v2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    background: #075e54;
    color: #fff;
    flex-shrink: 0;
}

.zk-wa-v2-header-main {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.zk-wa-v2-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.zk-wa-v2-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: rgba(255, 255, 255, 0.15);
}

.zk-wa-v2-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
}

.zk-wa-v2-online {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #25d366;
    border: 2px solid #075e54;
}

.zk-wa-v2-header-text {
    min-width: 0;
}

.zk-wa-v2-header-name {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zk-wa-v2-header-status {
    font-size: 0.8rem;
    opacity: 0.92;
    line-height: 1.2;
}

.zk-wa-v2-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.zk-wa-v2-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.zk-wa-v2-body {
    flex: 1 1 auto;
    min-height: 120px;
    overflow-y: auto;
    padding: 0.75rem 0.65rem 1rem;
    background-color: #e5ddd5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='%23000' fill-opacity='.04'%3E%3Cpath d='M40 20h6v6h-6zm30 10h8v8h-8zm50-5h5v5h-5zm40 25h7v7h-7zm-90 40h4v4h-4zm70 15h6v6h-6zm-30 50h8v8h-8zm-60-20h5v5h-5z'/%3E%3C/g%3E%3C/svg%3E");
}

.zk-wa-v2-bubble {
    position: relative;
    max-width: 92%;
    margin-right: auto;
    padding: 0.45rem 0.55rem 0.35rem 0.65rem;
    background: #fff;
    border-radius: 0 8px 8px 8px;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.08);
}

.zk-wa-v2-bubble::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 6px 8px 0;
    border-color: transparent #fff transparent transparent;
}

.zk-wa-v2-bubble-sender {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7c85;
    margin-bottom: 0.2rem;
}

.zk-wa-v2-bubble-text {
    font-size: 0.875rem;
    line-height: 1.45;
    color: #303030;
    white-space: pre-wrap;
    word-break: break-word;
}

.zk-wa-v2-bubble-meta {
    text-align: right;
    margin-top: 0.15rem;
}

.zk-wa-v2-bubble-time {
    font-size: 0.68rem;
    color: #8696a0;
}

.zk-wa-v2-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.35rem 0 0.15rem;
    min-height: 1.5rem;
}

.zk-wa-v2-typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #909090;
    animation: zk-wa-typing-bounce 1.2s ease-in-out infinite;
}

.zk-wa-v2-typing-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.zk-wa-v2-typing-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes zk-wa-typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.45;
    }
    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zk-wa-v2-typing-dot {
        animation: none;
        opacity: 0.75;
    }
}

.zk-wa-v2-bubble-content--enter {
    animation: zk-wa-bubble-in 0.45s ease-out;
}

@keyframes zk-wa-bubble-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zk-wa-v2-footer {
    flex-shrink: 0;
    padding: 0.75rem 0.85rem 0.85rem;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.zk-wa-v2-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.zk-wa-v2-cta:hover {
    filter: brightness(1.05);
    color: #fff !important;
    transform: translateY(-1px);
}

.zk-wa-v2-cta .fab {
    font-size: 1.35rem;
}
