/* Wrapper Styles Setup */
.fcb-wrapper-92bc17f2 {
  position: fixed;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Position mapping based on PHP settings variables */
.fcb-wrapper-92bc17f2 {
  /* Set side */
  left: var(--fcb-offset-h);
  right: auto;
}

[style*="--fcb-pos-h: right"] {
  left: auto;
  right: var(--fcb-offset-h);
}

/* Set vertical positioning */
[style*="--fcb-pos-v: top"] {
  top: var(--fcb-offset-v);
  bottom: auto;
  transform: translateY(0);
}

[style*="--fcb-pos-v: center"] {
  top: var(--fcb-offset-v);
  bottom: auto;
  transform: translateY(-50%);
}

[style*="--fcb-pos-v: bottom"] {
  top: auto;
  bottom: var(--fcb-offset-v);
  transform: translateY(0);
}

/* Account for Admin Bar */
body.admin-bar .fcb-wrapper-92bc17f2 {
  margin-top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 782px) {
  body.admin-bar .fcb-wrapper-92bc17f2 {
    margin-top: 46px;
  }
}

/* Button UI */
.fcb-btn-92bc17f2 {
  background-color: var(--fcb-bg, #FED56B);
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, box-shadow 0.2s ease;
  outline: none;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Styling vertical/horizontal presentation */
[style*="--fcb-pos-h: right"] .fcb-btn-92bc17f2 {
  border-radius: var(--fcb-radius) 0 0 var(--fcb-radius);
  width: var(--fcb-height);
  height: var(--fcb-width);
}

[style*="--fcb-pos-h: left"] .fcb-btn-92bc17f2 {
  border-radius: 0 var(--fcb-radius) var(--fcb-radius) 0;
  width: var(--fcb-height);
  height: var(--fcb-width);
}

/* Text Element & Rotation for Vertical Effect */
.fcb-text-92bc17f2 {
  color: #111111;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

[style*="--fcb-pos-h: right"] .fcb-text-92bc17f2 {
  transform: rotate(-90deg);
}

[style*="--fcb-pos-h: left"] .fcb-text-92bc17f2 {
  transform: rotate(90deg);
}

/* Hover effects */
.fcb-btn-92bc17f2:hover {
  background-color: #fcc33a;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

[style*="--fcb-pos-h: right"] .fcb-btn-92bc17f2:hover {
  transform: translateX(-3px);
}

[style*="--fcb-pos-h: left"] .fcb-btn-92bc17f2:hover {
  transform: translateX(3px);
}

/* Keyboard Focus Styling */
.fcb-btn-92bc17f2:focus-visible {
  outline: 3px solid #111111;
  outline-offset: 2px;
}

/* Mobile Responsiveness Rules */
@media (max-width: 768px) {
  /* On mobile: pin nicely to the bottom right / bottom left as standard horizontal action button to prevent layout overlay issues */
  .fcb-wrapper-92bc17f2 {
    left: auto !important;
    right: 16px !important;
    bottom: 16px !important;
    top: auto !important;
    transform: none !important;
  }
  
  .fcb-btn-92bc17f2,
  [style*="--fcb-pos-h: right"] .fcb-btn-92bc17f2,
  [style*="--fcb-pos-h: left"] .fcb-btn-92bc17f2 {
    width: auto !important;
    height: 48px !important;
    border-radius: 30px !important;
    padding: 0 20px !important;
    transform: none !important;
  }

  .fcb-text-92bc17f2,
  [style*="--fcb-pos-h: right"] .fcb-text-92bc17f2,
  [style*="--fcb-pos-h: left"] .fcb-text-92bc17f2 {
    transform: none !important;
    font-size: 12px !important;
  }
}
