/* build/float_continue.css
 * Floating "Continue / Next" button pattern shared across the Arc-Tuning flow.
 * Any button with class="fc-target" sticks to the bottom-right of the
 * viewport so the user never has to scroll to find their next action.
 *
 * When the button is disabled (real disabled, aria-disabled, or .is-disabled)
 * it appears grayed. Clicking a disabled fc-target triggers float_continue.js
 * to flash the required fields (selector in data-fc-required).
 */

.fc-target {
  position: fixed !important;
  right: 24px;
  bottom: 24px;
  z-index: 9500;
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.7);
  /* a touch larger for thumb-friendliness */
  min-height: 46px;
  padding-left: 22px !important;
  padding-right: 22px !important;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease,
    filter 0.16s ease;
}

.fc-target:hover:not([disabled]):not([aria-disabled="true"]):not(.is-disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.6),
    0 3px 10px rgba(0, 0, 0, 0.8);
}

.fc-target:disabled,
.fc-target[aria-disabled="true"],
.fc-target.is-disabled {
  opacity: 0.42;
  filter: grayscale(0.55);
  cursor: not-allowed;
  pointer-events: auto;  /* allow click events through so JS can flash fields */
}

@media (max-width: 600px) {
  .fc-target {
    right: 12px;
    bottom: 12px;
    font-size: 13px;
  }
}

/* Flash animation applied to required fields when the user clicks
   a disabled fc-target. Two pulses, then fades. */
@keyframes fc-flash-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(255, 87, 87, 0.0); outline-color: rgba(255,87,87,0.0); }
  18%  { box-shadow: 0 0 0 6px rgba(255, 87, 87, 0.55); outline-color: rgba(255,87,87,0.95); }
  55%  { box-shadow: 0 0 0 14px rgba(255, 87, 87, 0); outline-color: rgba(255,87,87,0.4); }
  100% { box-shadow: 0 0 0 0   rgba(255, 87, 87, 0); outline-color: rgba(255,87,87,0.0); }
}

.fc-flash {
  animation: fc-flash-pulse 0.95s ease-out 2;
  outline: 2px solid rgba(255, 87, 87, 0.85);
  outline-offset: 3px;
  border-radius: 6px;
  position: relative;
  z-index: 1;
}
