/**
 * Fireworks Donation tile UI
 *
 * Scoped under .fireworks-donation-wrap so these rules cannot leak into
 * other WooCommerce variable products elsewhere on the site.
 */

.fireworks-donation-wrap {
	--sbc-navy: #00517b;
	--sbc-cyan: #b5e4ea;
	--sbc-dark: #001a29;
	--sbc-muted: #333;
	--sbc-border: #ccc;
	--sbc-fd-font-ui: 'Quicksand', 'Helvetica Neue', Arial, sans-serif;
	--sbc-fd-font-body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
	--sbc-fd-radius-btn: 25px;
	--sbc-fd-radius-input: 5px;

	max-width: 920px;
	margin: 0 auto;
	padding: 0;
	background: #fff;
	border-radius: 12px;
	box-sizing: border-box;
}

.fireworks-donation-wrap *,
.fireworks-donation-wrap *::before,
.fireworks-donation-wrap *::after {
	box-sizing: border-box;
}

.fireworks-donation-wrap .form-section-title {
/* 	text-align: center; */
	margin: 0 0 22px;
	font-family: var(--sbc-fd-font-ui);
	color: var(--sbc-navy);
}

/* Tile grid */
.fireworks-donation-wrap .tier-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 28px;
}

.fireworks-donation-wrap .tier-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 22px 14px;
	border: 2px solid var(--sbc-border);
	border-radius: 10px;
	cursor: pointer;
	transition: all .25s ease;
	background: #fff;
	min-height: 150px;
	margin: 0;
}

.fireworks-donation-wrap .tier-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 1px;
	height: 1px;
}

.fireworks-donation-wrap .tier-card:hover {
	border-color: var(--sbc-navy);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 81, 123, .15);
}

.fireworks-donation-wrap .tier-card.selected {
	border-color: var(--sbc-navy);
	background: var(--sbc-navy);
	color: #fff;
	box-shadow: 0 8px 22px rgba(0, 81, 123, .25);
}

.fireworks-donation-wrap .tier-card.selected .tier-amount,
.fireworks-donation-wrap .tier-card.selected .tier-name {
	color: #fff;
}

.fireworks-donation-wrap .tier-card.selected .tier-tagline {
	color: var(--sbc-cyan);
}

.fireworks-donation-wrap .tier-card--disabled {
	opacity: .55;
	cursor: not-allowed;
	pointer-events: none;
}

.fireworks-donation-wrap .tier-amount {
	font-family: var(--sbc-fd-font-ui);
	font-size: 28px;
	font-weight: 700;
	color: var(--sbc-navy);
	line-height: 1.1;
}

.fireworks-donation-wrap .tier-name {
	font-family: var(--sbc-fd-font-ui);
	font-size: 16px;
	font-weight: 600;
	color: var(--sbc-navy);
	margin-top: 4px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.fireworks-donation-wrap .tier-tagline {
	font-size: 13px;
	color: var(--sbc-muted);
	margin-top: 6px;
	font-style: italic;
}

/* Hide the native WooCommerce variation select table — the tiles drive it. */
.fireworks-donation-wrap .fireworks-donation-variations table.variations {
	display: none;
}

/* Hide the duplicate price readout (tiles already show the price) and the
   "Clear" reset link, which isn't needed with the tile UI. */
.fireworks-donation-wrap .woocommerce-variation-price,
.fireworks-donation-wrap .reset_variations {
	display: none !important;
}

/* Fieldsets / dedication */
.fireworks-donation-wrap .form-group {
	border: none;
	padding: 0;
	margin: 0 0 28px;
}

.fireworks-donation-wrap .form-group legend {
	font-family: var(--sbc-fd-font-ui);
	font-size: 18px;
	font-weight: 700;
	color: var(--sbc-navy);
	margin-bottom: 14px;
	text-transform: uppercase;
	letter-spacing: .05em;
	padding: 0;
}

.fireworks-donation-wrap .dedicate-fields {
	display: block;
}

.fireworks-donation-wrap .dn-options-group {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-bottom: 14px;
}

.fireworks-donation-wrap .dn-options {
	display: flex;
	align-items: center;
}

.fireworks-donation-wrap .dn-options input {
	margin: 1px 8px 0 0;
}

.fireworks-donation-wrap .dn-options label {
	font-size: 16px;
	font-weight: 600;
	color: var(--sbc-muted);
	cursor: pointer;
	margin: 0;
}

.fireworks-donation-wrap .dedication-name-wrap input[type="text"] {
	font-size: 16px;
	color: var(--sbc-dark);
	width: 100%;
	max-width: 420px;
	height: 40px;
	line-height: 40px;
	border: 1px solid var(--sbc-border);
	background: #fff;
	padding: 0 10px;
	border-radius: var(--sbc-fd-radius-input);
	font-family: var(--sbc-fd-font-body);
}

.fireworks-donation-wrap .dedication-name-wrap input:focus {
	outline: none;
	border-color: var(--sbc-navy);
	box-shadow: 0 0 0 3px rgba(0, 81, 123, .15);
}

/* Re-style the native WooCommerce add-to-cart button to match .donate_btn */
.fireworks-donation-wrap .woocommerce-variation-add-to-cart {
	text-align: center;
	margin-top: 10px;
}

.fireworks-donation-wrap .single_add_to_cart_button {
	min-width: 220px;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	height: 48px;
	line-height: 48px;
	padding: 0 30px;
	background-color: var(--sbc-navy);
	color: #fff;
	border: none;
	font-family: var(--sbc-fd-font-ui);
	border-radius: var(--sbc-fd-radius-btn);
	cursor: pointer;
	transition: all .3s ease;
}

.fireworks-donation-wrap .single_add_to_cart_button:hover {
	background-color: var(--sbc-cyan);
	color: var(--sbc-navy);
}

/* Helper text shown below the submit button */
.fireworks-donation-wrap .form-note {
	text-align: center;
	color: var(--sbc-muted);
	font-size: 13px;
	margin: 10px 0 0;
}

/* WooCommerce hides the quantity input (product is locked to qty 1); make
   sure our wrapper doesn't reveal it accidentally. */
.fireworks-donation-wrap .quantity {
	display: none;
}

/* Responsive */
@media (max-width: 768px) {
	.fireworks-donation-wrap {
		padding: 22px;
	}
	.fireworks-donation-wrap .tier-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.fireworks-donation-wrap {
		padding: 18px;
	}
	.fireworks-donation-wrap .tier-grid {
		grid-template-columns: 1fr;
	}
}
