/* Unified Footer Menu stylesheet for Buzzjuice Network
   Consolidates styles used by wpqd-footer-menu.php and ww-footer-menu.php
   - Max popup width 292px (required)
   - Includes FAB, bottom nav, floating popup, overlay, and WoWonder modal styles
*/

/* =========================
   Floating chat FAB (left)
   ========================= */
body.bm-mobile-device #bp-better-messages-mini-mobile-open.bm-initialized {
    display: flex;
}

#buzzjuice-floating-chat-left {
  position: fixed;
  left: 0px;
  bottom: calc(45px + env(safe-area-inset-bottom));
  width: 32px;
  height: 32px;
  background: #63a551;
  color: #fff;
  border-radius: 10px;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  -webkit-tap-highlight-color: transparent;
  margin: 0 0 10px !important;
}
#buzzjuice-floating-chat-left svg { width: 28px; height: 28px; display: block; color:#fff; }
#buzzjuice-floating-chat-left .buzz-chat-unread {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #0d6efd;
  color: #fff;
  border-radius: 20%;
  padding: 2px 6px;
  font-size: 11px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
#buzzjuice-floating-chat-left .buzz-chat-unread.no-count { display: none; }

/* =========================
   Bottom Footer Menu (7 items)
   ========================= */
.bottom-footer-menu ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  background: transparent;
}
.bottom-footer-menu ul li a,
.bottom-footer-menu ul li button,
.bottom-footer-menu ul li a[role="button"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: #333;
  text-decoration: none;
  padding: 6px 4px;
  -webkit-tap-highlight-color: transparent;
}
.bottom-footer-menu ul li a i,
.bottom-footer-menu ul li button i { font-size: 28px; margin-bottom: 3px; }
.bottom-footer-menu ul li a.active { color: #0d6efd; }
.bottom-footer-menu { z-index: 9999; }

/* =========================
   Floating popup (non-WoWonder)
   - max-width 292px (REQUIRED)
   ========================= */
#buzz-create-popup {
  position: fixed;
  width: auto;
  max-width: 292px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  z-index: 11001;
  display: none;
  opacity: 0;
  transition: opacity .14s ease, transform .14s ease;
  font-size: 14px;
  transform-origin: bottom center;
  -webkit-overflow-scrolling: touch;
  overflow: visible;
}
#buzz-create-popup.open { display: block; opacity: 1; }

/* popup arrow */
#buzz-create-popup .buzz-popup-arrow { position: absolute; width: 16px; height: 8px; bottom: -8px; pointer-events: none; }
#buzz-create-popup .buzz-popup-arrow::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 8px 0 8px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.08));
}

/* content list inside popup */
#buzz-create-popup .buzz-popup-list { display:flex; flex-direction:column; gap:6px; padding-top:4px; }
#buzz-create-popup .buzz-popup-list a,
#buzz-create-popup .buzz-popup-list button {
  display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:8px;
  text-decoration:none; color:#222; background:transparent; border:none; text-align:left; cursor:pointer; font-size:14px; width:100%; box-sizing:border-box;
}
#buzz-create-popup .buzz-popup-list a:hover,
#buzz-create-popup .buzz-popup-list button:hover { background:#f5f7fb; }
#buzz-create-popup .buzz-popup-list i { width:22px; text-align:center; color:#666; }

/* guest / auth */
#buzz-create-popup .buzz-auth { display:flex; gap:8px; justify-content:center; margin-top:6px;flex-direction: column;text-align: -webkit-center;}
#buzz-create-popup .buzz-auth a { padding:8px 12px; border-radius:8px; text-decoration:none; color:#fff; background:#0d6efd; font-weight:600; font-size:13px; }
#buzz-create-popup .buzz-auth a.signup { background:#63a551; }

/* small close */
#buzz-create-popup .buzz-popup-close { position:absolute; top:6px; right:8px; background:transparent; border:none; font-size:18px; color:#888; cursor:pointer; }

/* scrollable state */
#buzz-create-popup.scrollable { overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* overlay for floating popup */
#buzz-create-overlay { position: fixed; inset: 0; background: transparent; z-index: 11000; display: none; }

/* =========================
   WoWonder-style modal (bootstrap) adapted as bottom popover
   ========================= */
   
#buzz-create-user > hr {
  margin-bottom: 0px;
}

/*#buzz-create-guest-modal > div:nth-child(1) {
    display: none;
}

#buzz-create-guest > div:nth-child(1) {
    display: none;
}
*/

.buzz-auth {
    display: flex;
    flex-direction: column;
    text-align: -webkit-center;
}

#buzz-create-guest-modal > div.buzz-auth > a.login, #buzz-create-guest-modal > div.buzz-auth > a.signup {
    background: #385dff;
    padding: 10px;
    border-radius: 10px;
    color: white;
    margin: 5px 0px;
}

.modal.buzz-create-modal .modal-dialog {
  position: fixed;
  bottom: calc(55px + env(safe-area-inset-bottom));
  left: calc(50% - 128px);
  transform: translateX(-50%);
  margin: 0;
  max-width: 256px;
  width: 256px;
}
.modal.buzz-create-modal .modal-content {
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  border: none;
}
.modal.buzz-create-modal .modal-body {
  padding: 0;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 420px) {
  .modal.buzz-create-modal .modal-dialog { left: calc(50% - 128px); right: 8px; transform: none; bottom: calc(55px + env(safe-area-inset-bottom)); width: 256px; }
  .modal.buzz-create-modal .modal-content { border-radius: 10px; }
  #buzz-create-popup { left: 50% !important; right: 8px !important; max-width: 256px; transform: none !important; }
  #buzz-create-popup .buzz-popup-arrow { display: none; }
}

/* list inside WoWonder modal */
.buzz-create-list { display:flex; flex-direction:column; gap:6px; padding:6px 4px; }
.buzz-create-list a { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:8px; text-decoration:none; color:#222; background:transparent; font-size:14px; }
.buzz-create-list a:hover { background:#f5f7fb; }
.buzz-create-list i { width:22px; text-align:center; color:#666; }

.buzz-create-close { position:absolute; right:8px; top:6px; background:transparent; border:none; font-size:18px; color:#888; cursor:pointer; }

/* small visual niceties */
.bottom-footer-menu a span { display:block; line-height:1; font-size:11px; margin-top:2px; }