/* ===========================
   GIWOST WhatsApp Widget
   =========================== */

/* ─── FAB Button ────────────────────────────────────────────────── */
.wa-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    z-index: 1100;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}

.wa-fab:hover {
    background: #1ebe57;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.55);
}

.wa-fab-icon,
.wa-fab-close {
    position: absolute;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wa-fab-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.8);
}

.wa-fab.is-open .wa-fab-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.8);
}

.wa-fab.is-open .wa-fab-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Pulse ring */
.wa-pulse {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.55);
    animation: wa-pulse 2s ease-out infinite;
    pointer-events: none;
}

.wa-fab.is-open .wa-pulse {
    display: none;
}

@keyframes wa-pulse {
    0%   { transform: scale(1);    opacity: 0.8; }
    70%  { transform: scale(1.28); opacity: 0;   }
    100% { transform: scale(1.28); opacity: 0;   }
}

/* ─── Panel ─────────────────────────────────────────────────────── */
.wa-panel {
    position: fixed;
    bottom: 104px;
    right: 28px;
    width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    z-index: 1099;
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform-origin: bottom right;
}

.wa-panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* ─── Panel Header ──────────────────────────────────────────────── */
.wa-panel-header {
    background: #25D366;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-panel-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.wa-panel-meta {
    flex: 1;
}

.wa-panel-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 3px;
    font-family: 'Roboto Slab', serif;
}

.wa-panel-sub {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12.5px;
}

/* ─── Branch List ───────────────────────────────────────────────── */
.wa-branches {
    padding: 4px 0;
}

.wa-branch {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f2f0;
    transition: background 0.15s ease;
}

.wa-branch:last-child {
    border-bottom: none;
}

.wa-branch:hover {
    background: #f3fdf6;
}

.wa-branch-bubble {
    width: 40px;
    height: 40px;
    background: #e7faf0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #25D366;
}

.wa-branch-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wa-branch-sub {
    font-size: 11.5px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wa-branch-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.wa-branch-arrow {
    color: #ccc;
    flex-shrink: 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.wa-branch:hover .wa-branch-arrow {
    color: #25D366;
    transform: translateX(3px);
}

/* ─── Panel Footer Note ─────────────────────────────────────────── */
.wa-panel-note {
    margin: 0;
    padding: 10px 16px;
    font-size: 12px;
    color: #999;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 400px) {
    .wa-panel {
        width: calc(100vw - 24px);
        right: 12px;
        bottom: 96px;
    }

    .wa-fab {
        right: 16px;
        bottom: 20px;
    }
}
