/*
	Shared by the Website Development campaign: the .wd-btn buttons and the
	banner slots rendered by _inc/campaign-banner.php (homepage, business
	detail page, business dashboard). Kept separate from css/website-dev.css
	so host pages load only these few rules -- and only when a slot actually
	renders (the include emits the <link> itself). Literal colors instead of
	var() tokens because the dashboard doesn't declare the v2 :root tokens.
*/

/* ================= Buttons ================= */
.wd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 22px;
	border-radius: 8px;
	font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.wd-btn:hover, .wd-btn:focus { text-decoration: none; }
.wd-btn-primary { background: #F5A623; border-color: #F5A623; color: #1A1300; }
.wd-btn-primary:hover, .wd-btn-primary:focus { background: #D68C0F; border-color: #D68C0F; color: #1A1300; }
.wd-btn-primary:disabled { opacity: .7; cursor: wait; }
.wd-btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.wd-btn-ghost:hover, .wd-btn-ghost:focus { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.wd-btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.wd-btn-block { display: flex; width: 100%; }
.wd-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #D68C0F; }

/* ================= Campaign banners (_inc/campaign-banner.php) ================= */
.wd-banner { font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; margin: 0 auto; }
.wd-banner a { text-decoration: none; }
.wd-banner img { display: block; width: 100%; height: auto; border-radius: 12px; }
.wd-banner-preview-tag { display: inline-block; font-size: 11px; font-weight: 700; background: #FFF4D6; color: #5C4400; border: 1px solid #F0D58C; border-radius: 4px; padding: 1px 6px; margin-bottom: 6px; }

/* HTML fallback banner, used until a designed image is configured for the slot */
.wd-banner-html {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px 26px;
	border-radius: 12px;
	background: radial-gradient(600px 200px at 90% 0%, rgba(245,166,35,.22), transparent 60%), linear-gradient(135deg, #1E2A3A 0%, #16202E 100%);
	color: #fff;
	box-shadow: 0 4px 12px rgba(16,24,40,.10);
	transition: box-shadow 150ms ease, transform 150ms ease;
}
.wd-banner-html:hover { box-shadow: 0 18px 40px rgba(16,24,40,.18); transform: translateY(-1px); }
.wd-banner-icon { flex-shrink: 0; width: 54px; height: 54px; border-radius: 12px; background: rgba(245,166,35,.16); color: #F5A623; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.wd-banner-text { flex: 1; min-width: 0; }
.wd-banner-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #F5A623; margin-bottom: 2px; }
.wd-banner-title { display: block; font-size: 19px; font-weight: 700; line-height: 1.3; color: #fff; }
.wd-banner-sub { display: block; font-size: 14px; color: rgba(255,255,255,.8); margin-top: 2px; }
.wd-banner-price { flex-shrink: 0; font-size: 34px; font-weight: 800; color: #fff; line-height: 1; }
.wd-banner-html .wd-btn { flex-shrink: 0; }

.wd-banner-slot-home_horizontal { padding: 24px 0 0; }
.wd-banner-slot-home_center { margin-bottom: 40px; }
.wd-banner-slot-home_center .wd-banner-html { padding: 34px 36px; }
.wd-banner-slot-home_center .wd-banner-title { font-size: 26px; }
.wd-banner-slot-listing_promo { margin: 24px 0; }
.wd-banner-slot-dashboard { margin-bottom: 20px; }

/* Tall 300x600 sidebar images: native width, centred, so they read as one
   standard ad unit instead of stretching to the column. */
.wd-banner-slot-listing_sidebar, .wd-banner-slot-results_sidebar { max-width: 300px; margin-bottom: 16px; }
.wd-banner-slot-results_inline { margin: 4px 0; }
@media (max-width: 991px) {
	/* Results sidebar falls below the whole list here; the in-feed banner already covers it. */
	.wd-banner-slot-results_sidebar { display: none; }
	/* Detail sidebar stacks full width; image_mobile swaps in the wide 1200x600. */
	.wd-banner-slot-listing_sidebar { max-width: none; }
}

/* Compact vertical card for narrow sidebars */
.wd-banner-slot-listing_sidebar .wd-banner-html, .wd-banner-slot-results_sidebar .wd-banner-html { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 20px; }
.wd-banner-slot-listing_sidebar .wd-banner-title, .wd-banner-slot-results_sidebar .wd-banner-title { font-size: 17px; }
.wd-banner-slot-listing_sidebar .wd-banner-html .wd-btn, .wd-banner-slot-results_sidebar .wd-banner-html .wd-btn { width: 100%; }

@media (max-width: 767px) {
	.wd-banner-html { flex-wrap: wrap; padding: 18px; gap: 14px; }
	.wd-banner-icon { display: none; }
	.wd-banner-text { flex-basis: 100%; }
	.wd-banner-title, .wd-banner-slot-home_center .wd-banner-title { font-size: 18px; }
	.wd-banner-slot-home_center .wd-banner-html { padding: 22px 18px; }
	.wd-banner-html .wd-btn { flex: 1; }
}
