/* Donation Report for WooCommerce — front-end styles */
/* NOTE: Text, background, and border colors for donation messages are
   output dynamically via wp_head based on Configuration settings.
   Do not hardcode those color values here. */

/* ---------------------------
   Shortcode output
---------------------------- */

.donation-report-message {
    text-align: center;
    padding: 15px 20px;
    line-height: 1.4;
    margin: 25px 0;
    /* Colors, font-size, font-weight, border-radius controlled via Display tab settings */
}

/* ---------------------------
   Product page messages
---------------------------- */

.donation-message {
    text-align: center;
    font-style: italic;
    margin-top: 1em;
    padding: 0.5em 0.75em;
    border-radius: 4px;
}

/* ---------------------------
   Checkout / cart / thank-you messages
---------------------------- */

.donation-checkout-message {
    font-weight: 500;
    font-size: 20px;
    text-align: center;
    padding: 15px 20px;
    margin: 20px 0;
    line-height: 1.4;
}

/* Ensure "after add to cart" message renders below the button, not beside it.
 * The WooCommerce add-to-cart form uses flexbox, so clear:both has no effect.
 * We force the parent to wrap and make our element full-width. */
.woocommerce-variation-add-to-cart,
.woocommerce div.product form.cart div.quantity + button + .donation-message-atc-wrap,
form.cart {
	flex-wrap: wrap !important;
}

.donation-message-atc-wrap {
	display: block;
	width: 100%;
	clear: both;
	flex-basis: 100%;
	order: 99;
}

/* Campaign progress bar */
.cause-progress-wrap {
	margin: 1em 0;
	font-size: 14px;
}
.cause-progress-charity {
	font-weight: 700;
	margin-bottom: 6px;
}
.cause-progress-bar-track {
	height: 18px;
	overflow: hidden;
	margin-bottom: 8px;
}
.cause-progress-bar-fill {
	height: 100%;
	border-radius: 999px;
	transition: width 0.4s ease;
	min-width: 2px;
}
.cause-progress-meta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
	font-size: 13px;
	color: #555;
}
.cause-progress-percent {
	margin-left: auto;
	font-weight: 600;
}
.cause-progress-ended,
.cause-progress-scheduled {
	font-size: 12px;
	color: #888;
	margin: 4px 0 0;
	font-style: italic;
}
