/**
 * Free-gift chooser + gift-line styling.
 *
 * Intentionally minimal and theme-neutral. Override in the theme to match the
 * Shoptimizer/CommerceKit side-cart look.
 *
 * @package Codehouse\Discounts
 */

.chd-gift-chooser {
	margin: 1em 0;
	padding: 0.75em;
	border: 1px solid rgba( 0, 0, 0, 0.1 );
	border-radius: 6px;
}

.chd-gift-chooser-heading {
	margin: 0 0 0.5em;
	font-weight: 600;
}

.chd-gift-options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}

.chd-gift-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25em;
	flex: 1 1 40%;
	padding: 0.5em;
	border: 1px solid rgba( 0, 0, 0, 0.15 );
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
	font: inherit;
	text-align: center;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chd-gift-option:hover,
.chd-gift-option:focus {
	border-color: currentColor;
	box-shadow: 0 0 0 1px currentColor;
}

.chd-gift-option.is-selected {
	border-color: #1f7a34;
	box-shadow: 0 0 0 2px #1f7a34;
}

.chd-gift-decline {
	display: inline-block;
	margin-top: 0.6em;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.85em;
	text-decoration: underline;
	cursor: pointer;
	opacity: 0.75;
}

.chd-gift-decline:hover,
.chd-gift-decline:focus {
	opacity: 1;
}

.chd-gift-declined-note {
	margin: 0.6em 0 0;
	font-size: 0.85em;
	opacity: 0.8;
}

.chd-gift-option img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 4px;
}

.chd-gift-option-name {
	font-size: 0.85em;
	line-height: 1.2;
}

.chd-gift-badge {
	display: inline-block;
	margin-left: 0.4em;
	padding: 0.05em 0.45em;
	font-size: 0.72em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-radius: 3px;
	background: #1f7a34;
	color: #fff;
	vertical-align: middle;
}
