/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* ============================================================
   Bootstrap 5 Utility Fallbacks (untuk FSE / non-Bootstrap themes)
   Hanya diperlukan oleh plugin ini. Aman jika Bootstrap sudah load.
   Selector pakai .velocity-* wrapper supaya tidak bentrok.
   ============================================================ */
/* --- Display utilities --- */
:where(.velocity-list-stats, .social-share-buttons, .whatsapp-floating, .vdgallery-slideshow) .d-flex,
.whatsapp-floating.d-flex,
.wa-multi-toggle.d-flex { display: flex; }
:where(.velocity-list-stats, .social-share-buttons, .whatsapp-floating, .vdgallery-slideshow) .d-none,
.whatsapp-floating .d-none,
.wa-multi-toggle .d-none { display: none; }
/* --- Responsive: show label on desktop, hide on mobile --- */
:where(.whatsapp-floating, .wa-multi-toggle) .d-md-inline-block { display: none; }
@media (min-width: 768px) {
  .whatsapp-floating .d-md-inline-block,
  .wa-multi-toggle .d-md-inline-block { display: inline-block; }
}
/* --- Flex / alignment utilities --- */
:where(.velocity-list-stats, .social-share-buttons, .whatsapp-floating, .vdgallery-slideshow) .align-items-center,
.whatsapp-floating.align-items-center,
.wa-multi-toggle.align-items-center,
.wa-multi-link .align-items-center { align-items: center; }
:where(.velocity-list-stats, .social-share-buttons, .whatsapp-floating, .vdgallery-slideshow) .justify-content-center,
.whatsapp-floating.justify-content-center,
.wa-multi-toggle.justify-content-center { justify-content: center; }
:where(.velocity-list-stats, .social-share-buttons, .whatsapp-floating, .vdgallery-slideshow) .justify-content-between { justify-content: space-between; }
:where(.velocity-list-stats, .whatsapp-floating, .vdgallery-slideshow) .align-middle,
.whatsapp-floating .align-middle { vertical-align: middle; }
/* --- Overflow --- */
:where(.vdgallery-slideshow) .overflow-hidden,
.vdgallery-slideshow.overflow-hidden { overflow: hidden; }
/* --- Borders --- */
:where(.velocity-list-stats) .border-bottom { border-bottom: 1px solid var(--bs-border-color, #dee2e6); }
/* --- Spacing: padding --- */
:where(.velocity-list-stats, .whatsapp-floating) .py-2,
.whatsapp-floating.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
:where(.social-share-buttons) .px-1 { padding-left: .25rem; padding-right: .25rem; }
/* --- Spacing: margin --- */
:where(.social-share-buttons) .mb-1 { margin-bottom: .25rem; }
:where(.whatsapp-floating) .ms-1,
.wa-multi-toggle .ms-1 { margin-left: .25rem; }
.whatsapp-floating .me-0,
.wa-multi-toggle .me-0 { margin-right: 0; }
.whatsapp-floating .m-0,
.wa-multi-toggle .m-0 { margin: 0; }
/* --- Typography --- */
:where(.velocity-list-stats, .social-share-buttons) .fw-bold { font-weight: 700; }
.whatsapp-floating.text-white,
.wa-multi-toggle.text-white { color: #fff; }

 .floating-footer {
   position: fixed;
   bottom: 16px;
   left: 16px;
   right: 16px;
   pointer-events: none;
   z-index: 9999;
   display: flex;
   flex-direction: column;
   gap: 10px;
 }
 .floating-footer.float-wa-right,
 .floating-footer.float-scrolltop-right { text-align: right; align-items: flex-end; }
 .floating-footer.float-wa-left,
 .floating-footer.float-scrolltop-left { text-align: left; align-items: flex-start; }
 
.floating-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.75rem;
  border-radius: 50rem;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08), 0 6px 6px rgba(0,0,0,0.1);
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  float: none;
  margin: 0;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  transition: all .5s ease !important;
  line-height: 1.5;
  position: fixed;
  bottom: .5rem;
  right: .5rem;
}
.floating-button.right { float: right; }
.floating-button.left { float: left; }

.whatsapp-floating.wa-shift-scrolltop,
.wa-multi-toggle.wa-shift-scrolltop {
  margin-right: 3.5rem;
}

.whatsapp-floating.left.wa-shift-scrolltop,
.wa-multi-toggle.left.wa-shift-scrolltop {
  margin-right: 0;
  margin-left: 3.5rem;
}

.scroll-to-top svg {
  width: 18px;
  height: 18px;
}

.floating-footer .whatsapp-floating,
.floating-footer .floating-button {
  pointer-events: auto;
}

.floating-footer .scroll-to-top {
  margin-top: 8px;
}
.floating-footer .floating-button.whatsapp-floating {
  background: #198754;
  background-color: #198754;
  border: 0;
  font-size: 0.875rem;
  gap: .45rem;
  padding: 0.5rem 0.75rem;
}
.floating-footer .floating-button.whatsapp-floating:hover {
  background: #25d366;
  background-color: #25d366;
  border-color: #25d366;
}
 
@media only screen and (max-width: 600px) {
    .whatsapp-floating svg {
        height: 30px;
        width: 30px;
    }
}

/* Floating WhatsApp multi-contact */
.wa-multi-toggle {
    border: 0 !important;
    background-image: none !important;
    outline: none !important;
}
.wa-multi-list {
    position: fixed;
    bottom: 48px;
    color: #fff;
    border-radius: 12px;
    min-width: 200px;
    padding: 6px;
    display: none;
    z-index: 10010;
    pointer-events: auto;
    background: transparent;
    box-shadow: none;
    transition: all 400ms ease-in;
}

.wa-multi-list.is-left { left: 0; }
.wa-multi-list.is-right { right: 0; }
.wa-multi-list.is-open { display: block; }


.wa-multi-link {
    text-decoration: none;
    background: #25d366;
    border: none;
    padding: 6px 12px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
    text-align: left;
    margin-bottom: 6px;
    font-size: 0.8125rem;
    box-shadow: 0px 3px 7px 0px rgba(0,0,0,0.2);
    pointer-events: auto;
}

.wa-multi-link:hover {
    text-decoration: none;
    background: #157347;
}

.wa-multi-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.wa-multi-toggle.is-open {
  background: #b2b2b2 !important;
  border: 0 !important;
}

.wa-multi-toggle .wa-toggle-close {
  display: none;
  cursor: pointer;
}

.wa-multi-toggle.is-open .bi-whatsapp,
.wa-multi-toggle.is-open .wa-toggle-text {
  display: none !important;
}

.wa-multi-toggle.is-open .wa-toggle-close {
  display: inline-block;
}
