/* Floating CTAs - public styles */

#floating-ctas.fcta-container{
  position: fixed;
  z-index: 99999;
  pointer-events: none; /* allow only the widget to be clickable */
}

#floating-ctas .fcta-widget{
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--fcta-bg-color, #2271b1);
  color: var(--fcta-text-color, #ffffff);
  font: inherit;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  transition: transform .12s ease, opacity .12s ease;
}

#floating-ctas .fcta-widget:hover,
#floating-ctas .fcta-widget:focus{
  transform: translateY(-1px);
  opacity: .95;
}

#floating-ctas .fcta-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#floating-ctas .fcta-icon svg{
  display: block;
}

#floating-ctas .fcta-text{
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* Layout options */
#floating-ctas .fcta-widget.fcta-layout-stacked{
  flex-direction: column;
  align-items: center;
  gap: 6px;
  line-height: 1.1;
}
#floating-ctas .fcta-widget.fcta-layout-stacked .fcta-text{
  white-space: normal;
  text-align: center;
}


/* Bubble style */
#floating-ctas.fcta-style-bubble .fcta-widget{
  padding: 10px 14px;
  border-radius: 9999px;
}

#floating-ctas.fcta-style-bubble .fcta-icon{
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: rgba(255,255,255,.16);
}

/* Tab style */
#floating-ctas.fcta-style-tab .fcta-widget{
  padding: 12px 14px;
  border-radius: 0 0 10px 10px;
}

/* Positioning (TAB: flush to edges) */
#floating-ctas.fcta-style-tab.fcta-pos-top-left{top:0;left:0;}
#floating-ctas.fcta-style-tab.fcta-pos-top-center{top:0;left:50%;transform:translateX(-50%);}
#floating-ctas.fcta-style-tab.fcta-pos-top-right{top:0;right:0;}

#floating-ctas.fcta-style-tab.fcta-pos-bottom-left{bottom:0;left:0;}
#floating-ctas.fcta-style-tab.fcta-pos-bottom-center{bottom:0;left:50%;transform:translateX(-50%);}
#floating-ctas.fcta-style-tab.fcta-pos-bottom-right{bottom:0;right:0;}

#floating-ctas.fcta-style-tab.fcta-pos-center-left{top:50%;left:0;transform:translateY(-50%);}
#floating-ctas.fcta-style-tab.fcta-pos-center-right{top:50%;right:0;transform:translateY(-50%);}

/* Center-side tab orientation: flow upward (text reads bottom-to-top) */
#floating-ctas.fcta-style-tab.fcta-pos-center-left .fcta-widget,
#floating-ctas.fcta-style-tab.fcta-pos-center-right .fcta-widget{
  transform: rotate(-90deg);
}

/* Keep the rotated tab flush to the screen edge */
#floating-ctas.fcta-style-tab.fcta-pos-center-left .fcta-widget{ transform-origin: left top; }
#floating-ctas.fcta-style-tab.fcta-pos-center-right .fcta-widget{ transform-origin: right top; }

/* Tab corner rounding depending on edge */
#floating-ctas.fcta-style-tab.fcta-pos-top-left .fcta-widget,
#floating-ctas.fcta-style-tab.fcta-pos-top-center .fcta-widget,
#floating-ctas.fcta-style-tab.fcta-pos-top-right .fcta-widget{
  border-radius: 0 0 10px 10px;
}

#floating-ctas.fcta-style-tab.fcta-pos-bottom-left .fcta-widget,
#floating-ctas.fcta-style-tab.fcta-pos-bottom-center .fcta-widget,
#floating-ctas.fcta-style-tab.fcta-pos-bottom-right .fcta-widget{
  border-radius: 10px 10px 0 0;
}

#floating-ctas.fcta-style-tab.fcta-pos-center-left .fcta-widget{
  border-radius: 0 10px 10px 0;
}

#floating-ctas.fcta-style-tab.fcta-pos-center-right .fcta-widget{
  border-radius: 10px 0 0 10px;
}

/* Positioning (BUBBLE: inset from edges) */
#floating-ctas.fcta-style-bubble.fcta-pos-top-left{top:20px;left:20px;}
#floating-ctas.fcta-style-bubble.fcta-pos-top-center{top:20px;left:50%;transform:translateX(-50%);}
#floating-ctas.fcta-style-bubble.fcta-pos-top-right{top:20px;right:20px;}

#floating-ctas.fcta-style-bubble.fcta-pos-bottom-left{bottom:20px;left:20px;}
#floating-ctas.fcta-style-bubble.fcta-pos-bottom-center{bottom:20px;left:50%;transform:translateX(-50%);}
#floating-ctas.fcta-style-bubble.fcta-pos-bottom-right{bottom:20px;right:20px;}

#floating-ctas.fcta-style-bubble.fcta-pos-center-left{top:50%;left:20px;transform:translateY(-50%);}
#floating-ctas.fcta-style-bubble.fcta-pos-center-right{top:50%;right:20px;transform:translateY(-50%);}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce){
  #floating-ctas .fcta-widget{transition:none;}
  #floating-ctas .fcta-widget:hover,
  #floating-ctas .fcta-widget:focus{transform:none;}
}
