/* ===== Floating CTA Button ===== */

/* --- Custom Properties --- */
.brxe-custom-floating-cta {
  --fcta-size: 64px;
  --fcta-icon-size: 28px;
  --fcta-offset-x: 24px;
  --fcta-offset-y: 24px;
  --fcta-blur: 16px;
  --fcta-bg-opacity: 0.15;

  position: fixed;
  z-index: 9999;
  pointer-events: none;
}

/* --- Corner positioning --- */
.brxe-custom-floating-cta[data-corner="bottom-right"] {
  bottom: var(--fcta-offset-y);
  right: var(--fcta-offset-x);
}
.brxe-custom-floating-cta[data-corner="bottom-left"] {
  bottom: var(--fcta-offset-y);
  left: var(--fcta-offset-x);
}
.brxe-custom-floating-cta[data-corner="top-right"] {
  top: var(--fcta-offset-y);
  right: var(--fcta-offset-x);
}
.brxe-custom-floating-cta[data-corner="top-left"] {
  top: var(--fcta-offset-y);
  left: var(--fcta-offset-x);
}

/* --- Button base --- */
.floating-cta-btn {
    position: relative;
    display: flex;
    align-items: center;
    width: auto;
    border-radius: 9999px;
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
    text-decoration: none;
    border: 1px solid #666;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: width;
    padding: 10px;
}

.no-scroll .floating-cta-btn {
  filter: invert(1) !important;
}

/* --- Glassmorphism background --- */
.floating-cta-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, var(--fcta-bg-opacity));
  backdrop-filter: blur(var(--fcta-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--fcta-blur)) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- Icon --- */
.floating-cta-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 8px;
}

.floating-cta-icon i,
.floating-cta-icon svg {
  font-size: var(--fcta-icon-size);
}

/* --- Hover text --- */
.floating-cta-text {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  max-width: none;
  opacity: 1;
  color: #666;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0 15px;
  transition:
    max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease 0.1s,
    padding-right 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}


/* --- Expand direction: right (for left-side corners) --- */
.floating-cta-btn[data-expand="right"] {
  flex-direction: row;
}

.floating-cta-btn[data-expand="left"] {
  flex-direction: row-reverse;
}


/* --- Responsive --- */
@media (max-width: 480px) {
  .brxe-custom-floating-cta {
    --fcta-size: 54px;
    --fcta-offset-x: 16px;
    --fcta-offset-y: 16px;
  }

  .floating-cta-text {
    font-size: 13px;
    padding: 0 18px;
  }
}
