Rub a lime or orange wedge over the rim of a glass, then dip and swirl into the orange sugar. Fill with ice. In a shaker, combine the lime juice, agave, coconut extract, tequila, and Cointreau. Add ice and shake until cold. Strain into prepared glass. Top with grapefruit juice. Garnish with a lime wheel and edible flowers, as desired.