#wp-mobile-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    /* use a safe URL (original contained special/truncated characters that break some parsers) */
    background: url('https://icon2.cleanpng.com/20180529/suw/kisspng-paper-envelope-tile-publication-a-rectangle-5b0de22abc70d6.5217988915276365227719.jpg');
    color: var(--wp-mbb-text, #f8fafc);
    border-top: 1px solid var(--wp-mbb-bar-border, rgba(15, 23, 42, 0.2));
    box-shadow: 0 18px 38px rgba(2, 6, 23, 0.22), 0 -2px 6px rgba(15, 23, 42, 0.12);
    /* keep hidden by default; delegate visibility to media queries or explicit sidebar class */
    display: none !important;
    overflow: visible;
    --wp-mbb-hole-color: var(--wp-mbb-page-background, #030712);
    /* quote the data URI so embedded quotes don't confuse the parser */
    /* mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath d='M99,0A36.33,36.33,0,0,0,70,15,25,25,0,0,1,30,15,36.33,36.33,0,0,0,1,0H0V50H100V0Z' fill='%23fff'/%3E%3C/svg%3E");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: 50%; */
    background: #000000;
}

#wp-mobile-bottom-bar.wp-mbb--light {
  border-top-color: rgba(148, 163, 184, 0.25);
  box-shadow:
    0 16px 32px rgba(15, 23, 42, 0.12),
    0 -1px 4px rgba(15, 23, 42, 0.08);
}

#wp-mobile-bottom-bar .wp-mbb__inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.65rem 1.25rem calc(env(safe-area-inset-bottom) + 0.65rem);
  gap: 0.5rem;
  min-height: 4.25rem;
  position: relative;
  z-index: 0;
}

#wp-mobile-bottom-bar .wp-mbb__inner--floating {
  background: var(--wp-mbb-bar-background, #0f172a);
  border-radius: 999px;
  padding: 0.5rem 1.4rem;
  gap: 0.75rem;
  align-items: center;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.35);
}

#wp-mobile-bottom-bar .wp-mbb__floating-shell {
  max-width: 460px;
  margin: 0 auto;
  padding: 0 1.5rem calc(env(safe-area-inset-bottom) + 0.75rem);
}

#wp-mobile-bottom-bar.wp-mbb--layout-floating {
  background: transparent;
  border-top: none;
  box-shadow: none;
}

#wp-mobile-bottom-bar.wp-mbb--layout-centered .wp-mbb__inner,
#wp-mobile-bottom-bar .wp-mbb__inner--centered {
  justify-content: space-between;
  gap: 2.5rem;
  position: relative;
  padding-top: 1.75rem;
}

#wp-mobile-bottom-bar .wp-mbb__group {
  flex: 1;
  display: flex;
  justify-content: space-around;
  gap: 0.5rem;
}

#wp-mobile-bottom-bar .wp-mbb__fab {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -65%);
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: var(--wp-mbb-accent, #6366f1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.35);
  pointer-events: none;
}

#wp-mobile-bottom-bar.wp-mbb--layout-divided .wp-mbb__item + .wp-mbb__item {
  border-left: 1px solid rgba(148, 163, 184, 0.4);
}

#wp-mobile-bottom-bar.wp-mbb--dark.wp-mbb--layout-divided .wp-mbb__item + .wp-mbb__item {
  border-left-color: rgba(15, 23, 42, 0.65);
}

#wp-mobile-bottom-bar.wp-mbb--layout-compact .wp-mbb__inner,
#wp-mobile-bottom-bar .wp-mbb__inner--compact {
  padding: 0.45rem 1rem calc(env(safe-area-inset-bottom) + 0.45rem);
  gap: 0.25rem;
}

#wp-mobile-bottom-bar.wp-mbb--layout-large .wp-mbb__inner,
#wp-mobile-bottom-bar .wp-mbb__inner--large {
  padding: 0.85rem 1.75rem calc(env(safe-area-inset-bottom) + 0.85rem);
}

#wp-mobile-bottom-bar .wp-mbb__item {
  flex: 1;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: var(--wp-mbb-text-color, #cbd5f5);
  font-size: var(--wp-mbb-text-size, 12px);
  font-weight: var(--wp-mbb-text-weight, 500);
  padding: 0.15rem 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

#wp-mobile-bottom-bar .wp-mbb__item:hover .wp-mbb__label {
  color: var(--wp-mbb-accent, #6366f1);
}

#wp-mobile-bottom-bar .wp-mbb__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--wp-mbb-icon-size, 20px) + 12px);
  height: calc(var(--wp-mbb-icon-size, 20px) + 12px);
  color: var(--wp-mbb-icon-color, #94a3b8);
  background: var(--wp-mbb-icon-background, rgba(148, 163, 184, 0.15));
  border-radius: var(--wp-mbb-icon-radius, 14px);
  border: var(--wp-mbb-icon-border-width, 0px) solid var(--wp-mbb-icon-border-color, transparent);
  box-sizing: border-box;
  transition: background 0.2s ease, color 0.2s ease;
}

#wp-mobile-bottom-bar .wp-mbb__item:not(.wp-mbb__item--calendar) .wp-mbb__icon {
  margin-bottom: 0.1rem;
}


#wp-mobile-bottom-bar .wp-mbb__item--calendar {
    position: relative;
    margin-top: -2.6rem;
    padding-top: 2.4rem;
    z-index: 2;
}

#wp-mobile-bottom-bar .wp-mbb__inner::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-0.4rem - env(safe-area-inset-bottom, 0));
  height: 5rem;
  background: var(--wp-mbb-hole-color, #000000);
  mask-image: var(--wp-mbb-curve-mask);
  -webkit-mask-image: var(--wp-mbb-curve-mask);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: min(520px, 90vw) 100%;
  -webkit-mask-size: min(520px, 90vw) 100%;
  mask-position: center bottom;
  -webkit-mask-position: center bottom;
  /* box-shadow: 0 14px 34px rgba(2, 6, 23, 0.5); */
  pointer-events: none;
  z-index: -1;
}

#wp-mobile-bottom-bar .wp-mbb__inner::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-0.45rem - env(safe-area-inset-bottom, 0));
  height: 5.25rem;
  /* background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 80%); */
  opacity: 0.45;
  mask-image: var(--wp-mbb-curve-mask);
  -webkit-mask-image: var(--wp-mbb-curve-mask);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: min(520px, 90vw) 100%;
  -webkit-mask-size: min(520px, 90vw) 100%;
  mask-position: center bottom;
  -webkit-mask-position: center bottom;
  pointer-events: none;
  z-index: 0;
}

#wp-mobile-bottom-bar .wp-mbb__item--calendar .wp-mbb__icon {
  position: relative;
  width: var(--wp-mbb-calendar-icon-size, calc(var(--wp-mbb-icon-size, 20px) + 16px));
  height: var(--wp-mbb-calendar-icon-size, calc(var(--wp-mbb-icon-size, 20px) + 16px));
  background: var(--wp-mbb-calendar-icon-color, var(--wp-mbb-accent, #6366f1));
  color: #fff;
  border-radius: 999px;
  border: 3px solid #ffffff;
  padding: 0;
  /* box-shadow:
    0 22px 34px rgba(99, 102, 241, 0.45),
    0 14px 26px rgba(2, 6, 23, 0.32); */
  transform: translateY(-32px);
  z-index: 3;
}

#wp-mobile-bottom-bar .wp-mbb__item--calendar .wp-mbb__label {
  font-weight: 600;
}

#wp-mobile-bottom-bar .wp-mbb__item--calendar .wp-mbb__svg {
  width: calc(var(--wp-mbb-calendar-icon-size, var(--wp-mbb-icon-size, 20px)) * 0.48);
  height: calc(var(--wp-mbb-calendar-icon-size, var(--wp-mbb-icon-size, 20px)) * 0.48);
  color: #fff;
}

#wp-mobile-bottom-bar .wp-mbb__item.is-active .wp-mbb__icon {
  background: var(--wp-mbb-accent, #6366f1);
  color: #fff;
  border-color: var(--wp-mbb-accent, #6366f1);
}

#wp-mobile-bottom-bar .wp-mbb__svg {
  width: var(--wp-mbb-icon-size, 20px);
  height: var(--wp-mbb-icon-size, 20px);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#wp-mobile-bottom-bar .wp-mbb__dot {
  width: var(--wp-mbb-icon-size, 20px);
  height: var(--wp-mbb-icon-size, 20px);
  border-radius: var(--wp-mbb-icon-radius, 14px);
  background: var(--wp-mbb-icon-background, rgba(148, 163, 184, 0.15));
  transition: background 0.2s ease;
}

#wp-mobile-bottom-bar .wp-mbb__item.is-active .wp-mbb__dot {
  background: var(--wp-mbb-accent, #6366f1);
}

#wp-mobile-bottom-bar .wp-mbb__label {
  display: block;
  line-height: 1;
  color: var(--wp-mbb-text-color, #cbd5f5);
}

#wp-mobile-bottom-bar .wp-mbb__item.is-active .wp-mbb__label {
  color: var(--wp-mbb-accent, #6366f1);
}

@media (min-width: 1024px) {
  #wp-mobile-bottom-bar.wp-mbb--desktop-sidebar {
    display: block;
    left: auto;
    right: 32px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    width: var(--wp-mbb-sidebar-width, 88px);
    border-radius:
      var(--wp-mbb-sidebar-radius-top-left, 999px)
      var(--wp-mbb-sidebar-radius-top-right, 999px)
      var(--wp-mbb-sidebar-radius-bottom-right, 999px)
      var(--wp-mbb-sidebar-radius-bottom-left, 999px);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.2);
    padding: 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    backdrop-filter: blur(6px);
  }

  #wp-mobile-bottom-bar.wp-mbb--desktop-sidebar .wp-mbb__inner,
  #wp-mobile-bottom-bar.wp-mbb--desktop-sidebar .wp-mbb__inner--floating,
  #wp-mobile-bottom-bar.wp-mbb--desktop-sidebar .wp-mbb__inner--compact,
  #wp-mobile-bottom-bar.wp-mbb--desktop-sidebar .wp-mbb__inner--large,
  #wp-mobile-bottom-bar.wp-mbb--desktop-sidebar .wp-mbb__inner--centered,
  #wp-mobile-bottom-bar.wp-mbb--desktop-sidebar .wp-mbb__inner--divided {
    flex-direction: column;
    align-items: center;
    justify-content: var(--wp-mbb-sidebar-justify, center);
    padding: 1.5rem 0.85rem;
    gap: 0.85rem;
  }

  #wp-mobile-bottom-bar.wp-mbb--desktop-sidebar .wp-mbb__floating-shell {
    padding: 0;
    max-width: none;
  }

  #wp-mobile-bottom-bar.wp-mbb--desktop-sidebar .wp-mbb__group {
    flex-direction: column;
    gap: 0.75rem;
  }

  #wp-mobile-bottom-bar.wp-mbb--desktop-sidebar .wp-mbb__fab {
    display: none;
  }

  #wp-mobile-bottom-bar.wp-mbb--desktop-sidebar.wp-mbb--layout-divided .wp-mbb__item + .wp-mbb__item {
    border-left: none;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    padding-top: 0.75rem;
  }

  #wp-mobile-bottom-bar.wp-mbb--desktop-sidebar.wp-mbb--dark.wp-mbb--layout-divided .wp-mbb__item + .wp-mbb__item {
    border-top-color: rgba(15, 23, 42, 0.65);
  }

  #wp-mobile-bottom-bar.wp-mbb--desktop-sidebar .wp-mbb__item {
    flex: none;
    width: 100%;
  }

  body.wp-mobile-bottom-bar-sidebar-active {
    padding-bottom: 0 !important;
  }
}

  .wp-mbb__mylighthouse-scaffold {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

#wp-mobile-bottom-bar.wp-mbb--desktop-sidebar .wp-mbb__item {
  position: relative;
  overflow: visible;
}

#wp-mobile-bottom-bar.wp-mbb--desktop-sidebar[data-sidebar-slideout="true"] .wp-mbb__label--mobile {
  display: none;
}

#wp-mobile-bottom-bar.wp-mbb--desktop-sidebar .wp-mbb__label--slideout {
  display: none;
}

@media (min-width: 1024px) {
  #wp-mobile-bottom-bar.wp-mbb--desktop-sidebar[data-sidebar-slideout="true"] .wp-mbb__label--slideout {
    display: inline-flex;
    position: absolute;
    top: 50%;
    right: calc(100% + 10px);
    transform: translateY(-50%) translateX(8px);
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
  }

  #wp-mobile-bottom-bar.wp-mbb--desktop-sidebar[data-sidebar-slideout="true"] .wp-mbb__item:hover .wp-mbb__label--slideout {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.wp-mbb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.wp-mbb-overlay.is-visible {
  display: flex;
}

.wp-mbb-modal {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  color: #0f172a;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
  position: relative;
}

.wp-mbb-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: #475569;
}

.wp-mbb-modal__title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.wp-mbb-modal__body {
  max-height: 60vh;
  overflow-y: auto;
  color: #1e293b;
  font-size: 0.95rem;
  line-height: 1.5;
}

.wp-mbb-modal__iframe {
  width: 100%;
  height: 60vh;
  border: none;
  border-radius: 0.75rem;
}

.wp-mbb-overlay-active {
  overflow: hidden;
}

@media (max-width: 767px) {
  #wp-mobile-bottom-bar {
    display: block !important;
  }

  body.wp-mobile-bottom-bar-active {
    padding-bottom: 5rem;
  }
}

/* ensure the bar stays hidden on larger viewports unless the desktop-sidebar mode is explicitly enabled */
@media (min-width: 768px) {
  #wp-mobile-bottom-bar:not(.wp-mbb--desktop-sidebar) {
    display: none !important;
  }
}
