/**
 * Buddy Up affiliate notices — Salient-specific overrides.
 *
 * Enqueued ONLY when wp_get_theme()->get_template() === 'salient' (see
 * SPX_Notices::enqueue_styles()) — i.e. whenever Salient is the active
 * theme's parent, whether Salient itself is active or a child theme built
 * on it (this site currently runs "SPx Hybrid Theme", a child theme whose
 * style.css declares `Template: salient`).
 *
 * Every rule here exists because of a specific, verified Salient behaviour
 * (checked against the theme's own css/src/woocommerce.css, not assumed) —
 * see the comment above each one.
 */

/**
 * Salient's product summary price already carries a large bottom padding:
 *
 *   .woocommerce div.product .summary p.price { padding-bottom: 1.3em; }
 *
 * (css/src/woocommerce.css). Our product notice renders immediately after
 * the price (woocommerce_single_product_summary priority 11), so our own
 * top margin from the base stylesheet would stack on top of Salient's
 * padding and leave an oversized gap — no longer reading as "directly
 * beneath the price". Zero it here and let Salient's own price spacing do
 * the work instead.
 */
.woocommerce div.product .summary .spx-buddy-up-notice--product {
	margin-block-start: 0;
}

/**
 * [spr_referral_link] — Salient's global text-input reset (css/src/style.css):
 *
 *   input[type=text], ... { width:100%; padding:10px; font-size:14px;
 *     line-height:24px; color:#555; background-color:#f1f1f1; border:none; }
 *
 * `input[type=text]` (element + attribute) is more specific than our own
 * single-class `.spx-referral-link__url` rule, so it wins by default: the
 * readonly URL field would fill with Salient's grey background, lose its
 * border, and get a hardcoded 14px size instead of inheriting the
 * surrounding text. Re-declared here at two-class specificity to beat it
 * cleanly — no !important needed. `width: auto` stops Salient's width:100%
 * from fighting the field's flex-basis inside .spx-referral-link__row.
 *
 * Salient's button reset (`input[type=submit], button[type=submit],
 * input[type="button"]`) does NOT include `button[type="button"]` — checked
 * directly against the selector list — so our <button type="button"> copy
 * button is untouched by Salient and needs no override here.
 */
.spx-referral-link .spx-referral-link__url {
	width: auto;
	padding-inline: var(--spx-rl-padding-inline);
	padding-block: var(--spx-rl-padding-block);
	border: 1px solid var(--spx-rl-border-color);
	background-color: var(--spx-rl-bg);
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}
