/* "Are you sure?" in place of a delete button, with a bar running down the five seconds to answer
   (lib/confirm.js). */
.sure-asking { display: none !important; }

.sure {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em;
  padding: 0.35em 0.6em 0.5em;
  font: inherit;
  font-size: 0.9em;
  white-space: nowrap;
}

.sure__question { font-weight: 700; margin-right: 0.2em; }

.sure__yes,
.sure__no {
  padding: 0.15em 0.75em;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.sure__yes { border-color: var(--danger); background: var(--danger); color: #fff; }
.sure__yes:hover { filter: brightness(1.1); }
.sure__no:hover { background: color-mix(in srgb, currentColor 12%, transparent); }

.sure__timer {
  position: absolute;
  left: 0.6em;
  right: 0.6em;
  bottom: 0.15em;
  height: 2px;
  border-radius: 1px;
  background: var(--danger);
  transform-origin: left;
}

.sure--running .sure__timer {
  transform: scaleX(0);
  transition: transform var(--sure-seconds, 5s) linear;
}
