/* ============================================
   WN Floating Contact
   ============================================ */

/* --- Desktop: Floating Sidebar --- */
.wn-fc {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wn-fc-right { right: 15px; }
.wn-fc-left  { left: 15px; }

/* Button base - colors set via inline CSS */
.wn-fc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 3px 14px rgba(0,0,0,.25);
    transition: transform .2s, box-shadow .2s;
    position: relative;
}
.wn-fc-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 22px rgba(0,0,0,.35);
    color: #fff !important;
}
.wn-fc-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Tooltip - right side */
.wn-fc-right .wn-fc-btn::after {
    content: attr(title);
    position: absolute;
    right: 62px;
    background: rgba(0,0,0,.8);
    color: #fff;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.wn-fc-right .wn-fc-btn:hover::after { opacity: 1; }

/* Tooltip - left side */
.wn-fc-left .wn-fc-btn::after {
    content: attr(title);
    position: absolute;
    left: 62px;
    background: rgba(0,0,0,.8);
    color: #fff;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.wn-fc-left .wn-fc-btn:hover::after { opacity: 1; }

/* Icon */
.wn-fc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
}
.wn-fc-icon svg { width: 100%; height: 100%; }
.wn-fc-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }

/* Phone pulse - keyframes overridden inline with custom color */
.wn-fc-btn.wn-fc-phone {
    animation: wn-fc-pulse 2s infinite;
}

/* ============================================
   Mobile Bottom Bar
   ============================================ */
.wn-fc-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
}

.wn-fc-mbtn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #333 !important;
    padding: 4px 6px;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.wn-fc-mbtn:hover,
.wn-fc-mbtn:focus {
    color: #333 !important;
    text-decoration: none !important;
}

/* Mobile icon - colors set via inline CSS */
.wn-fc-micon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
}
.wn-fc-micon svg { width: 100%; height: 100%; }
.wn-fc-micon img { width: 100%; height: 100%; object-fit: contain; }

.wn-fc-mlabel {
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 72px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .wn-fc.wn-fc-has-mobile {
        display: none !important;
    }
    .wn-fc-mobile {
        display: flex;
    }
    body.wn-fc-has-bar {
        padding-bottom: 58px;
    }
}

@media (min-width: 769px) {
    .wn-fc-mobile {
        display: none !important;
    }
}
