/* The paper plane (buyer-flight.js). Tokens come from the buyer shell; every one has a stone/blue fallback so the demo
   page and an early paint read the same. Nothing here animates by itself: the module drives transforms. */

/* The plane in the send button: paper on the blue button, a quiet stone-brown when the button is disabled. */
.bf-plane-icon {
  --bf-a: var(--buyer-action-on, #fcf8ef);
  --bf-b: #a8c5fa;
  display: block; flex: none; overflow: visible;
}
/* At rest the nose points north-west (Arabic, right-to-left); in English it mirrors to north-east. flySend starts from this exact pose. */
.bf-plane-icon { transform: rotate(45deg); }
.bf-plane-icon:dir(ltr) { transform: scaleX(-1) rotate(45deg); }
[dir="ltr"] .bf-plane-icon { transform: scaleX(-1) rotate(45deg); }
[dir="rtl"] .bf-plane-icon { transform: rotate(45deg); }
.bf-plane-icon .bf-f0 { fill: var(--bf-a); }
.bf-plane-icon .bf-f1 { fill: var(--bf-b); }
:is(button, [role="button"]):is(:disabled, [aria-disabled="true"]) .bf-plane-icon { --bf-a: #9d9686; --bf-b: #bdb6a6; }

/* flySend: one fixed layer, one flyer, transform and opacity only. */
.bf-layer { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; contain: layout style; }
.bf-flyer { position: absolute; left: 0; top: 0; width: 78px; height: 60px; margin: -30px 0 0 -39px; transform-origin: 50% 50%; will-change: transform; }
.bf-flyer svg { display: block; overflow: visible; }

/* The sky: the empty space under the request. Clipped to itself so the plane never reaches the text around it. */
.bf-sky {
  position: relative; display: block; box-sizing: border-box; width: 100%; height: 100%; min-height: 260px; flex: 1 1 auto;
  overflow: hidden; contain: layout paint; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
.bf-badge {
  position: absolute; z-index: 1; top: 16px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 7px 16px; border-radius: 24px; background: var(--buyer-inset, #e7ddcb); color: var(--buyer-muted, #53564b);
  font-family: inherit; font-weight: 600; font-size: 13px; line-height: 1.4; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bf-hint { position: absolute; z-index: 1; inset-inline: 16px; bottom: 12px; margin: 0; text-align: center; color: var(--buyer-muted, #53564b); font-family: inherit; font-weight: 400; font-size: 12.5px; line-height: 1.5; }
.bf-field { position: absolute; inset: 0; z-index: 2; direction: ltr; pointer-events: none; }
.bf-thread { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.bf-thread-line { fill: none; stroke: #20221f; stroke-opacity: .5; stroke-width: 1.1; stroke-linecap: round; }
.bf-knot { fill: #20221f; fill-opacity: .55; display: none; }
.bf-plane { position: absolute; left: 0; top: 0; width: 78px; height: 60px; margin: -30px 0 0 -39px; transform-origin: 50% 50%; will-change: transform; pointer-events: none; }
.bf-plane svg { display: block; overflow: visible; }
.bf-note {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; padding: 6px 13px; border-radius: 8px; white-space: nowrap;
  background: #fcf8ef; color: var(--buyer-blue, #0836c4); font-family: inherit; font-weight: 600; font-size: 12.5px; line-height: 1.45; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 1px rgba(8, 54, 196, .14), 0 3px 9px rgba(32, 34, 31, .1); will-change: transform;
}
/* The touch target around the plane: 64px, well over 44. It claims a touch only when the finger lands on it. */
.bf-hit { position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; pointer-events: auto; touch-action: none; cursor: grab; }
.bf-hit:active { cursor: grabbing; }
