/**
 * Fundraiser (WP Crowdfunding) front-end parity styles.
 * Loaded only on single fundraiser pages and the fundraisers listing page.
 * Reuses the plugin's .wpneo-* / .campaign-funding-info markup classes; the
 * per-product thermometer colour is passed in via the --mara-thermo variable.
 */

/* ---- Single fundraiser summary ---- */
.mara-fundraiser-summary {
	max-width: 640px;
}

.mara-fundraiser-summary .wpneo-author-info {
	margin: 0.25rem 0 1rem;
	color: #6b6b6b;
	font-size: 0.95rem;
}

.mara-fundraiser-summary .wpneo-single-short-description {
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.mara-fundraiser-summary .wpneo-single-short-description p:last-child {
	margin-bottom: 0;
}

.mara-fundraiser-summary .campaign-funding-info ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 2.5rem;
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.mara-fundraiser-summary .campaign-funding-info li {
	margin: 0;
}

.mara-fundraiser-summary .campaign-funding-info .funding-amount {
	margin: 0 0 0.15rem;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.1;
	color: #1f1f1f;
}

.mara-fundraiser-summary .campaign-funding-info .info-text {
	font-size: 0.85rem;
	color: #7a7a7a;
}

.mara-fundraiser-summary .wpneo-raised-percent {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0.5rem 0 0.4rem;
}

.mara-fundraiser-summary .wpneo-raised-percent .wpneo-meta-name {
	color: #555;
}

.mara-fundraiser-summary .wpneo-raised-percent .wpneo-meta-desc {
	font-weight: 700;
	color: var(--mara-thermo, #18454B);
}

.mara-fundraiser-summary .wpneo-raised-bar #neo-progressbar {
	background-color: #eeeeee;
	border-radius: 8px;
	overflow: hidden;
	height: 10px;
	margin-bottom: 1.25rem;
}

.mara-fundraiser-summary .wpneo-raised-bar #neo-progressbar > div {
	height: 10px;
	border-radius: 8px;
	min-width: 2px;
}

/* ---- Predefined pledge amounts ---- */
.mara-fundraiser-summary .wpcf_predefined_pledge_amount {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0.5rem 0 1rem;
	padding: 0;
}

.mara-fundraiser-summary .wpcf_predefined_pledge_amount li {
	margin: 0;
}

.mara-fundraiser-summary .wpcf_predefined_pledge_amount a {
	display: inline-block;
	padding: 0.45rem 0.9rem;
	border: 2px solid var(--mara-thermo, #18454B);
	border-radius: 6px;
	color: #1f1f1f;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.mara-fundraiser-summary .wpcf_predefined_pledge_amount a:hover {
	background-color: var(--mara-thermo, #18454B);
	color: #fff;
}

/* ---- Give form ---- */
.mara-fundraiser-summary form.cart {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0.5rem 0 0;
	flex-wrap: wrap;
}

.mara-fundraiser-summary form.cart input.wpneo_donate_amount_field {
	width: 8rem;
	padding: 0.55rem 0.7rem;
	border: 1px solid #c4c4c4;
	border-radius: 6px;
}

/* Gold "Give" button — matches the site's primary theme button.
   Selector is deliberately specific (.wpneo-single-sidebar .cart …) so it beats
   the plugin's own crowdfunding-front.css rule of the same name. */
.mara-fundraiser-summary .wpneo-single-sidebar .cart .wpneo_donate_button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	background-color: var(--wp--preset--color--secondary, #F6AF1C);
	color: var(--wp--preset--color--black, #252525);
	border: none;
	padding: 8px 24px;
	min-height: 52px;
	border-radius: 24px;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 0.36px;
	line-height: 0.8;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
}

.mara-fundraiser-summary .wpneo-single-sidebar .cart .wpneo_donate_button:hover {
	background-color: var(--wp--preset--color--accent-2, #F15D22);
	color: var(--wp--preset--color--black, #252525);
}

.mara-fundraiser-summary .wpneo-tooltip {
	display: none;
}

/* ---- Story / Donors tabs ---- */
.mara-fundraiser-tabs {
	margin-top: 2.5rem;
}

.mara-fundraiser-tabs .wpneo-tabs-menu {
	display: flex;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #e3e3e3;
}

.mara-fundraiser-tabs .wpneo-tabs-menu li {
	margin: 0;
}

.mara-fundraiser-tabs .wpneo-tabs-menu a {
	display: inline-block;
	padding: 0.8rem 0;
	color: #5a5a5a;
	text-decoration: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
}

.mara-fundraiser-tabs .wpneo-tabs-menu li.wpneo-current a {
	color: #18454b;
	border-bottom-color: var(--mara-thermo, #18454B);
	font-weight: 600;
}

.mara-fundraiser-tabs .wpneo-tab-content {
	display: none;
	padding-top: 1.5rem;
	line-height: 1.65;
}

.mara-fundraiser-tabs .mara-donor-table {
	width: 100%;
	border-collapse: collapse;
}

.mara-fundraiser-tabs .mara-donor-table th,
.mara-fundraiser-tabs .mara-donor-table td {
	text-align: left;
	padding: 0.6rem 0.85rem;
	border-bottom: 1px solid #ececec;
}

.mara-fundraiser-tabs .mara-donor-table th {
	font-weight: 600;
	color: #444;
}
