/* ==========================================================================
   Novaraft yüzen iletişim (WhatsApp) widget'ı — footer.php içinde tüm sayfalarda.
   Dile göre numara footer.php'de hesaplanır (gsm_tr / gsm_en).
   Kendi renklerini tanımlar; site chrome'undan bağımsız, çakışmasız.
   ========================================================================== */
.nrwa { position: fixed; left: 20px; bottom: 20px; z-index: 1035; }
.nrwa, .nrwa * { box-sizing: border-box; }

/* Yüzen buton (FAB) */
.nrwa-fab {
    position: relative; width: 60px; height: 60px; border: none; border-radius: 50%;
    cursor: pointer; color: #fff; font-size: 30px; display: grid; place-items: center;
    background: linear-gradient(135deg, #25d366, #1ebe57);
    box-shadow: 0 12px 28px rgba(37, 211, 102, .40);
    transition: transform .2s ease, box-shadow .2s ease;
}
.nrwa-fab i { line-height: 1; position: relative; z-index: 1; }
.nrwa-fab:hover { transform: scale(1.06); box-shadow: 0 16px 34px rgba(37, 211, 102, .50); }
.nrwa-fab:active { transform: scale(.97); }
.nrwa-fab:focus-visible { outline: 3px solid rgba(15, 142, 160, .55); outline-offset: 3px; }
.nrwa-fab-ping {
    position: absolute; inset: 0; border-radius: 50%; background: #25d366; opacity: .5;
    animation: nrwa-ping 2.4s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes nrwa-ping { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.85); opacity: 0; } }

/* Açılır panel */
.nrwa-panel {
    position: absolute; left: 0; bottom: 76px; width: 320px; max-width: calc(100vw - 40px);
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(7, 31, 52, .28);
    transform: translateY(16px) scale(.96); transform-origin: bottom left;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .22s ease, opacity .22s ease, visibility .22s;
}
.nrwa.open .nrwa-panel { transform: translateY(0) scale(1); opacity: 1; visibility: visible; pointer-events: auto; }
.nrwa.open .nrwa-fab-ping { display: none; }

.nrwa-head {
    display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; color: #fff;
    background: linear-gradient(135deg, #0b2239, #0f3854 55%, #0f8ea0);
}
.nrwa-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex: 0 0 44px; overflow: hidden;
    display: grid; place-items: center; background: rgba(255, 255, 255, .14); font-size: 20px;
}
.nrwa-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.nrwa-head-txt { flex: 1; min-width: 0; }
.nrwa-head-txt strong { display: block; font-size: 15px; line-height: 1.2; }
.nrwa-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .82); margin-top: 3px; }
.nrwa-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #31d65a; box-shadow: 0 0 0 3px rgba(49, 214, 90, .25); }
.nrwa-close { background: transparent; border: none; color: rgba(255, 255, 255, .8); font-size: 24px; line-height: 1; cursor: pointer; padding: 0 2px; }
.nrwa-close:hover { color: #fff; }

.nrwa-body { padding: 18px 16px; background: #eef2f4; }
.nrwa-bubble {
    background: #fff; border-radius: 4px 16px 16px 16px; padding: 12px 14px;
    font-size: 13.5px; line-height: 1.5; color: #2b3a48; box-shadow: 0 6px 16px rgba(7, 31, 52, .08);
}

.nrwa-phone {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; font-size: 14px; font-weight: 700; color: #0f3854; text-decoration: none;
    background: #fff; border-top: 1px solid rgba(11, 34, 57, .08);
}
.nrwa-phone:hover { color: #0f8ea0; }

.nrwa-cta {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 15px; font-size: 15px; font-weight: 800; text-decoration: none; color: #fff;
    background: linear-gradient(135deg, #25d366, #1ebe57);
}
.nrwa-cta i { font-size: 19px; }
.nrwa-cta:hover { filter: brightness(1.05); color: #fff; }

@media (max-width: 480px) {
    .nrwa { left: 14px; bottom: 14px; }
    .nrwa-fab { width: 54px; height: 54px; font-size: 26px; }
    .nrwa-panel { bottom: 70px; }
}
@media print { .nrwa { display: none !important; } }
