/**
 * Wedding gift-card contribution row styles.
 *
 * Enqueued in <head> (see includes/init.php) rather than inlined, because the
 * registry items table is a DataTable that strips non-<tr> nodes from <tbody>,
 * which would discard an inline <style>. !important beats the theme's global
 * button/input resets (assets/scss/_buttons.scss, _forms.scss).
 */

/* Row cells (match the product rows: thumb | name | cost | quantity | actions) */
.wedding-contribution-row > td {
	border-bottom: 1px solid #e5e5e5;
	background: #fff;
	vertical-align: top;
	padding-top: 24px;
	padding-bottom: 24px;
}
.wedding-contribution-row td.name,
.wedding-contribution-row td.cost {
	text-align: left;
}
.wedding-contribution-row td.thumb img {
	width: 60px !important;
	height: auto !important;
	max-width: 60px !important;
	margin: 0;
}
.wedding-contribution-row td.actions.add_to_cart {
	vertical-align: middle;
	text-align: right;
	white-space: nowrap;
}

/* Name + subtitle */
.wedding-contribution .wc-name {
	display: block;
	font-weight: 700;
	font-size: 16px;
	margin: 0 0 4px;
}
.wedding-contribution .wc-sub {
	color: #777;
	font-size: 13px;
	font-weight: 400;
	margin: 0 0 4px;
}

/* Amount controls */
.wedding-contribution .wc-amounts {
	margin: 0;
}
.wedding-contribution .wc-presets {
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px !important;
}
.wedding-contribution .wc-preset {
	display: inline-block !important;
	width: auto !important;
	height: auto !important;
	line-height: 1.2 !important;
	margin: 0 !important;
	padding: 9px 14px !important;
	border: 1px solid #d0d0d0 !important;
	border-radius: 4px !important;
	background: #fff !important;
	color: #111 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: all 0.15s !important;
}
.wedding-contribution .wc-preset:hover {
	border-color: #111 !important;
	background: #fff !important;
	color: #111 !important;
}
.wedding-contribution .wc-preset.active {
	background: #111 !important;
	border-color: #111 !important;
	color: #fff !important;
}

/* Custom amount */
.wedding-contribution .wc-custom-label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 400;
	color: #555;
}
.wedding-contribution .wc-amount-input-wrap {
	position: relative !important;
	display: block !important;
	max-width: 200px;
	height: 46px;
	border: 2px solid #111 !important;
	border-radius: 6px;
	background: #fff !important;
	overflow: hidden;
}
.wedding-contribution .wc-currency {
	position: absolute !important;
	left: 14px;
	top: 0;
	line-height: 46px;
	font-size: 15px;
	font-weight: 700;
	color: #111;
	pointer-events: none;
	white-space: nowrap;
}
.wedding-contribution .wc-amount-input {
	display: block !important;
	width: 100% !important;
	height: 46px !important;
	line-height: 46px !important;
	margin: 0 !important;
	padding: 0 12px 0 54px !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #111 !important;
}

.wedding-contribution .wc-error {
	display: block;
	color: #c0392b;
	margin-top: 10px;
}

/* Standalone (shortcode) block variant */
.wedding-contribution-block {
	padding: 24px 0;
	border-bottom: 1px solid #e5e5e5;
}
