/* v2 public styles with stacking and sizes */
.egfb2-container {
  position: fixed;
  z-index: 99998;
  pointer-events: none;
}

.egfb2-container .egfb2-button {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--egfb-bg, #2563eb);
  color: var(--egfb-label, #ffffff);
  padding: 12px 16px;
  border-radius: 9999px;
  box-shadow: 0 10px 15px rgba(0,0,0,0.15);
  font-weight: 600;
  line-height: 1;
}

.egfb2-container[data-shape="circle"] .egfb2-button {
  width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 9999px;
}

.egfb2-icon i { color: var(--egfb-icon, #ffffff); font-size: 18px; }
.egfb2-label { white-space: nowrap; }

/* Sizes */
.egfb2-container[data-size="sm"] .egfb2-button { padding:10px 14px; }
.egfb2-container[data-size="sm"][data-shape="circle"] .egfb2-button { width:46px; height:46px; }
.egfb2-container[data-size="lg"] .egfb2-button { padding:14px 18px; }
.egfb2-container[data-size="lg"][data-shape="circle"] .egfb2-button { width:64px; height:64px; }

/* position grid */
.egfb2-container[data-pos="top-left"]      { top: var(--offy, 20px); left: var(--offx, 20px); transform: translate(0,0); }
.egfb2-container[data-pos="top-center"]    { top: var(--offy, 20px); left: 50%; transform: translate(-50%,0); }
.egfb2-container[data-pos="top-right"]     { top: var(--offy, 20px); right: var(--offx, 20px); transform: translate(0,0); }
.egfb2-container[data-pos="middle-left"]   { top: 50%; left: var(--offx, 20px); transform: translate(0,-50%); }
.egfb2-container[data-pos="middle-center"] { top: 50%; left: 50%; transform: translate(-50%,-50%); }
.egfb2-container[data-pos="middle-right"]  { top: 50%; right: var(--offx, 20px); transform: translate(0,-50%); }
.egfb2-container[data-pos="bottom-left"]   { bottom: var(--offy, 20px); left: var(--offx, 20px); transform: translate(0,0); }
.egfb2-container[data-pos="bottom-center"] { bottom: var(--offy, 20px); left: 50%; transform: translate(-50%,0); }
.egfb2-container[data-pos="bottom-right"]  { bottom: var(--offy, 20px); right: var(--offx, 20px); transform: translate(0,0); }

.egfb2-container { --offx: 20px; --offy: 20px; }

/* Device visibility */
.egfb2-container[data-vis="desktop"] { display: none; }
@media (min-width: 768px) { .egfb2-container[data-vis="desktop"] { display: block; } }
.egfb2-container[data-vis="mobile"] { display: block; }
@media (min-width: 768px) { .egfb2-container[data-vis="mobile"] { display: none; } }
.egfb2-container[data-vis="both"] { display: block; }

/* Basic stacking when same corner: add margin between siblings */
.egfb2-container[data-pos^="bottom-"] { margin-top: 8px; }
.egfb2-container[data-pos^="top-"] { margin-bottom: 8px; }

/* Animations classes will be in egfb-anim.css */
