.pfbm {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  color: var(--pfbm-text, #fff);
  background: color-mix(in srgb, var(--pfbm-bg, #4E5242) 78%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 14px;
  line-height: 1.2;
}

.pfbm__top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.pfbm__top--no-links {
  padding-bottom: 12px;
}

.pfbm__title {
  font-weight: 600;
  font-size: 15px;
}

.pfbm__primary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pfbm__button,
.pfbm__chip {
  appearance: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.pfbm__button {
  border: 1px solid #ffffff;
  border-radius: 10px;
  min-height: 42px;
  padding: 10px 14px;
  color: #ffffff;
}

.pfbm__button:hover,
.pfbm__button:focus-visible,
.pfbm__button:active {
  border-color: var(--pfbm-accent, #BB7B21);
  color: #ffffff;
}

.pfbm__button--filled {
  background: #ffffff;
  color: #121212;
  border-color: #ffffff;
}

.pfbm__button--filled:hover,
.pfbm__button--filled:focus-visible,
.pfbm__button--filled:active {
  background: #ffffff;
  border-color: #ffffff;
  color: #121212;
  filter: brightness(1.03);
}

.pfbm__bottom {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  scrollbar-width: none;
}

.pfbm__bottom::-webkit-scrollbar {
  display: none;
}

.pfbm__chip {
  border: 0;
  min-height: auto;
  padding: 0;
  flex: 0 0 auto;
  white-space: nowrap;
  opacity: 0.92;
}

.pfbm__chip:hover,
.pfbm__chip:focus-visible,
.pfbm__chip:active {
  color: var(--pfbm-accent, #BB7B21);
}

.pfbm__chip-text {
  display: inline-block;
  padding-bottom: 0;
  border-bottom: 0;
  text-decoration: none;
}

.pfbm__chip:hover .pfbm__chip-text,
.pfbm__chip:focus-visible .pfbm__chip-text,
.pfbm__chip:active .pfbm__chip-text {
  border-bottom: 0;
  text-decoration: none;
}

.pfbm--desktop-only {
  display: none;
}

body.admin-bar .pfbm {
  bottom: 12px;
}

html.pfbm-modal-open .pfbm,
body.pfbm-modal-open .pfbm {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (min-width: 992px) {
  .pfbm {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    padding: 12px 16px;
  }

  .pfbm__top,
  .pfbm__top--no-links {
    padding: 0;
  }

  .pfbm__top {
    flex: 0 0 auto;
    margin-left: auto;
    order: 2;
  }

  .pfbm__primary {
    min-width: 420px;
  }

  .pfbm__bottom {
    flex: 1 1 auto;
    align-items: center;
    padding: 0;
    border-top: 0;
    overflow: visible;
    white-space: nowrap;
    order: 1;
  }

  .pfbm--mobile-only {
    display: none;
  }

  .pfbm--desktop-only,
  .pfbm--all {
    display: flex;
  }
}

@media (max-width: 991.98px) {
  .pfbm--desktop-only {
    display: none;
  }

  .pfbm__bottom {
    display: none;
  }
}
