/**
 * Share a listing — classic listing page.
 *
 * Almost nothing here on purpose. The button carries HivePress's own
 * `hp-listing__action` / `hp-link` classes and sits in the same actions row as
 * "Add to Favorites", so the theme already gives it its colour, size, spacing
 * and hover. Styling it again here would only let the two drift apart the next
 * time the theme changes.
 *
 * What remains is the two things the theme cannot know about: keeping the
 * button hidden until the script has decided it can work, and the brief
 * confirmation after a copy.
 */

/* ⚠ LOAD-BEARING. `hp-listing__action` sets `display: flex`, and a display
   declaration beats the `hidden` attribute — without this the button flashes
   up on every page load before the script has decided whether it can do
   anything, including in browsers where it then stays useless. */
.bkls-share[hidden] {
	display: none !important;
}

/* Confirmation after a copy. Colour only: no border, background or size
   change, so the actions row cannot reflow when the label swaps between
   "Share" and "Link copied". */
.bkls-share.bkls-share--done,
.bkls-share.bkls-share--done:hover,
.bkls-share.bkls-share--done .hp-icon {
	color: #1b9e5a;
}

/* Failure must not borrow the success colour — the first version painted both
   green, so a copy that had just failed looked like it had worked. Amber
   rather than red: the link is still there to copy by hand, so this is a
   nuisance, not an error. */
.bkls-share.bkls-share--failed,
.bkls-share.bkls-share--failed:hover,
.bkls-share.bkls-share--failed .hp-icon {
	color: #b26a00;
}
