/* Blocksy Go Buttons - v1.7.4 */

.bgb-btn{
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 52px;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, background-color 160ms ease, color 160ms ease;
}

/* Inline CTA button centering */
.bgb-inline-wrap{
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 18px 0;
}

.bgb-inline-wrap .bgb-btn{
  width: auto !important;
  max-width: 92vw;
  min-width: 240px;
  text-align: center;
  --bgb-accent: var(--theme-button-background-initial-color, var(--theme-palette-color-1, rgba(120,110,255,1)));
  box-shadow:
    0 14px 34px rgba(0,0,0,0.24),
    0 1px 0 rgba(255,255,255,0.10) inset,
    0 0 0 1px rgba(255,255,255,0.08);
}

@supports (color: color-mix(in srgb, white, black)){
  .bgb-inline-wrap .bgb-btn{
    box-shadow:
      0 14px 34px rgba(0,0,0,0.24),
      0 1px 0 rgba(255,255,255,0.10) inset,
      0 0 0 1px rgba(255,255,255,0.08),
      0 0 22px color-mix(in srgb, var(--bgb-accent) 35%, transparent);
  }
}

.bgb-inline-wrap .bgb-btn:hover{
  transform: translateY(-1px) scale(1.015);
  filter: saturate(1.05);
}

/* Animated sheen */
.bgb-btn::before{
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(110deg,
    rgba(255,255,255,0.00) 0%,
    rgba(255,255,255,0.16) 30%,
    rgba(255,255,255,0.00) 60%,
    rgba(255,255,255,0.00) 100%);
  transform: translateX(-35%);
  animation: bgb-sheen 3.2s ease-in-out infinite;
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.bgb-btn:hover::before{
  opacity: 0.50;
  animation-duration: 2.4s;
}

/* Sticky bar */
.bgb-sticky{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;

  display: none;

  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));

  background: rgba(10,10,12,0.55);
  border-top: 1px solid rgba(255,255,255,0.10);

  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;

  transition: transform 260ms ease, opacity 260ms ease;
  will-change: transform, opacity;
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))){
  .bgb-sticky{
    background: rgba(10,10,12,0.38);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}

.bgb-sticky-inner{
  display: flex;
  gap: 10px;
  max-width: 980px;
  margin: 0 auto;
}

.bgb-sticky .bgb-btn{
  flex: 1;
  width: 100%;
}

@media (max-width: 768px){
  .bgb-sticky{ display: block; }

  /* show only after scroll threshold (JS toggles class) */
  body.bgb-sticky-visible .bgb-sticky{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* reserve space only when visible */
  body.bgb-has-sticky.bgb-sticky-visible{
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}


/* FAQ accordion - keeps H3 */
.bgb-faq-scope{
  --bgb-faq-bg: rgba(0,0,0,0.50);
  --bgb-faq-bg-hover: rgba(0,0,0,0.62);
  --bgb-faq-border: rgba(0,0,0,0.18);
  --bgb-faq-text: rgba(255,255,255,0.95);
}

.bgb-faq-h3{
  position: relative;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;

  background: var(--bgb-faq-bg) !important;
  color: var(--bgb-faq-text) !important;
  border: 1px solid var(--bgb-faq-border) !important;

  padding: 14px 18px !important;
  padding-right: 46px !important;

  margin-top: 12px !important;
  margin-bottom: 0 !important;

  border-radius: calc(var(--theme-border-radius, 12px) * 0.55) !important;

  box-shadow: 0 10px 26px rgba(0,0,0,0.18);

  /* slightly smaller than theme H3 */
  font-size: 0.95em !important;
}

.bgb-faq-h3:hover{
  background: var(--bgb-faq-bg-hover) !important;
  transform: translateY(-1px);
}

.bgb-faq-h3:focus{
  outline: none;
}

.bgb-faq-h3:focus-visible{
  outline: 2px solid rgba(255,255,255,0.45);
  outline-offset: 2px;
}

/* Plus/minus icon */
.bgb-faq-h3::after,
.bgb-faq-h3::before{
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 18px;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
  border-radius: 2px;
  opacity: 0.95;
}

.bgb-faq-h3::before{
  transform: translateY(-50%) rotate(90deg);
  transition: transform 180ms ease;
}

.bgb-faq-h3.is-open::before{
  transform: translateY(-50%) rotate(0deg);
}

.bgb-faq-a{
  overflow: hidden;
  max-height: 0;
  transition: max-height 260ms ease;
  will-change: max-height;
}

.bgb-faq-a-inner{
  padding: 12px 2px 2px 2px;
}

@keyframes bgb-sheen{
  0%{ transform: translateX(-45%) rotate(0deg); }
  50%{ transform: translateX(10%) rotate(0deg); }
  100%{ transform: translateX(-45%) rotate(0deg); }
}
