/**
 * WC Membership Downloads Bridge — front-end styles.
 *
 * Deliberately light: buttons inherit the theme's .button styling; these
 * rules only cover spacing and the plugin-specific hint/badge elements.
 */

/* Single product: download button spacing in the summary/add-to-cart slot. */
.wcmdb-download-button {
	display: inline-block;
	margin: 0.5em 0;
}

/* Single product: upgrade/join hint below the native buy button. */
.wcmdb-membership-hint {
	margin: 0.75em 0 0;
	font-size: 0.9em;
}

.wcmdb-membership-hint a {
	text-decoration: underline;
}

/* Shop/archive loop: status line appended below Add to Cart. Rendered as
   a link when a target resolves; the a.wcmdb-badge selectors keep the
   badge colors ahead of theme link styling. */
.wcmdb-badge {
	display: block;
	margin-top: 0.5em;
	font-size: 0.85em;
	line-height: 1.4;
}

a.wcmdb-badge,
a.wcmdb-badge:visited {
	text-decoration: none;
}

a.wcmdb-badge:hover,
a.wcmdb-badge:focus {
	text-decoration: underline;
}

.wcmdb-badge--free,
a.wcmdb-badge--free,
a.wcmdb-badge--free:visited,
a.wcmdb-badge--free:hover {
	color: #1a7f37;
	font-weight: 600;
}

.wcmdb-badge--upgrade,
a.wcmdb-badge--upgrade,
a.wcmdb-badge--upgrade:visited,
a.wcmdb-badge--upgrade:hover {
	color: #8a6d1d;
}

/* Fallback message box (used only when WooCommerce notices are unavailable). */
.wcmdb-message {
	padding: 0.75em 1em;
	margin: 0 0 1em;
	border-left: 3px solid #999;
	background: #f8f8f8;
}

.wcmdb-message--error {
	border-left-color: #b32d2e;
}
