/**
 * Frontend styles.
 *
 * Layout only. Colours, fonts and button styling are deliberately left to the
 * theme so these components read as part of the shop rather than as a plugin.
 */

.we-coupons-gift-picker {
	margin: 0 0 1.5em;
	padding: 1em;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 4px;
}

.we-coupons-gift-picker__heading {
	margin: 0 0 0.75em;
	font-weight: 600;
}

.we-coupons-gift-picker__list {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.we-coupons-gift-picker__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5em;
	flex: 0 1 140px;
	text-align: center;
}

.we-coupons-gift-picker__item img {
	max-width: 100%;
	height: auto;
}

.we-coupons-gift-picker__item.is-unavailable {
	opacity: 0.5;
}

.we-coupons-gift-picker__name {
	font-size: 0.9em;
	line-height: 1.3;
}

.we-coupons-list {
	margin: 0 0 1.5em;
	padding: 0;
	list-style: none;
}

.we-coupons-list__item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.75em;
	padding: 0.6em 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.we-coupons-list__item:last-child {
	border-bottom: 0;
}

.we-coupons-list__code {
	font-weight: 700;
	letter-spacing: 0.05em;
}

.we-coupons-list__expiry {
	margin-left: auto;
	font-size: 0.85em;
	opacity: 0.75;
}

/* The quantity of a coupon-granted line is fixed by the coupon, so it renders
   as plain text where the theme would otherwise draw a quantity input. */
.we-coupon-granted-qty {
	display: inline-block;
	padding: 0 0.5em;
}
