/* Enomera · Gestos (24 nov 2026). Ver eno-gestures.js. Cor do produto via --eg-c (r g b). */

/* Segurar para confirmar: o próprio botão enche da esquerda para a direita. */
[data-eh] { position: relative; overflow: hidden; isolation: isolate; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.eh-fill { position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; transform: translateX(-100%);
  background: linear-gradient(90deg, currentColor 70%, rgb(255 255 255 / .95)); opacity: .3; }
[data-eh][data-eh-holding] { scale: .98; transition: scale 160ms cubic-bezier(.23,1,.32,1); }
[data-eh][data-eh-held] .eh-fill { opacity: .32; transition: opacity 120ms linear; }

/* Dica em vidro acima do botão ("Segure para encerrar"). */
.eg-tip { position: fixed; z-index: 2147483000; translate: -50% -100%; padding: 8px 12px; border-radius: 12px; pointer-events: none; white-space: nowrap;
  font: 600 13px/1.2 Manrope, system-ui, sans-serif; color: #1c2440; opacity: 0; scale: .96; filter: blur(6px);
  background: linear-gradient(135deg, rgb(255 255 255 / .86), rgb(255 255 255 / .6)); border: 1px solid rgb(255 255 255 / .9);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .9), 0 10px 26px -12px rgb(var(--eg-c, 91 112 178) / .55);
  transition: opacity 160ms linear, scale 160ms cubic-bezier(.23,1,.32,1), filter 160ms linear; }
.eg-tip.is-on { opacity: 1; scale: 1; filter: none; transition-duration: 320ms; }

/* Arrastar o item: o conteúdo acompanha o dedo e uma pílula cresce da borda. */
[data-esw] { touch-action: pan-y; }
[data-esw-on] { position: relative; overflow: clip; isolation: isolate; }
[data-esw-drag] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
[data-esw-on] > :not(.esw-pill) { translate: var(--esw-x, 0) 0; }
.esw-pill { position: absolute; top: 6px; bottom: 6px; z-index: -1; min-width: 0; width: max(0px, calc(var(--esw-w, 0px) - 12px)); border-radius: 999px; overflow: hidden;
  display: flex; align-items: center; gap: 8px; padding: 0 16px; color: #fff; font: 700 14px/1 Manrope, system-ui, sans-serif; white-space: nowrap; pointer-events: none;
  --t: var(--eg-c, 91 112 178); background: linear-gradient(180deg, rgb(255 255 255 / .28), rgb(255 255 255 / 0) 60%), rgb(var(--t) / calc(.45 + var(--esw-p, 0) * .4));
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .5); transition: box-shadow 220ms cubic-bezier(.23,1,.32,1);
  opacity: min(1, calc(var(--esw-p, 0) * 2.2)); }
.esw-pill[data-dir="r"] { left: 6px; justify-content: flex-start; }
.esw-pill[data-dir="l"] { right: 6px; justify-content: flex-end; flex-direction: row-reverse; }
.esw-pill[data-tone="ok"] { --t: 46 125 84; }
.esw-pill[data-tone="warn"] { --t: 168 104 18; }
.esw-pill[data-tone="danger"] { --t: 179 38 30; }
.esw-pill[data-tone="accent"] { --t: var(--eg-c, 91 112 178); }
.esw-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; opacity: calc(var(--esw-p, 0) * 1.4 - .3); transform: translateX(calc((1 - var(--esw-p, 0)) * -6px)); transition: transform 220ms cubic-bezier(.23,1,.32,1); }
.esw-pill[data-dir="l"] .esw-txt { transform: translateX(calc((1 - var(--esw-p, 0)) * 6px)); }
.esw-pill .esw-ico { opacity: min(1, calc(var(--esw-p, 0) * 3 - .9)); }
.esw-ico { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .9); scale: calc(.6 + var(--esw-p, 0) * .4); transition: scale 220ms cubic-bezier(.23,1,.32,1), background-color 160ms linear; }
[data-esw-armed] .esw-pill { box-shadow: inset 0 1px 1px rgb(255 255 255 / .5), 0 0 0 3px rgb(var(--t) / .18); }
[data-esw-armed] .esw-ico { background: #fff; scale: 1.08; }
[data-esw-armed] .esw-txt { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  [data-eh][data-eh-holding] { scale: none; }
  .eg-tip, .esw-pill, .esw-txt, .esw-ico { transition: none; filter: none; }
}
