/*
 * Cadeaubon op de productpagina.
 * Alles staat onder .b2fg-form zodat het thema er geen last van heeft.
 */

.b2fg-form {
	--b2fg-ink: #26252A;
	--b2fg-muted: #5C5B60;
	--b2fg-line: #DDD5CF;
	--b2fg-stone: #EFEAE5;
	--b2fg-paper: #FFFFFF;
	--b2fg-gold: #C9B965;
	--b2fg-deep-gold: #7A6A2E;
	--b2fg-font: 'Avenir Next', 'Nunito Sans', 'Segoe UI', Helvetica, Arial, sans-serif;

	font-family: var(--b2fg-font);
	color: var(--b2fg-ink);
	margin: 0 0 28px;
	max-width: 560px;
}

.b2fg-form *,
.b2fg-form *::before,
.b2fg-form *::after {
	box-sizing: border-box;
}

.b2fg-form .b2fg-block {
	margin: 0 0 26px;
}

.b2fg-form .b2fg-step {
	display: block;
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--b2fg-deep-gold);
	margin: 0 0 12px;
}

/* Bedragen */

.b2fg-form .b2fg-amounts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.b2fg-form .b2fg-chip > input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.b2fg-form .b2fg-chip > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 20px;
	border: 1px solid var(--b2fg-line);
	background: var(--b2fg-paper);
	font-size: 15px;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color .18s ease, background .18s ease;
}

/* De prijs van WooCommerce zit in eigen spans binnen de chip. */
.b2fg-form .b2fg-chip > span span {
	display: inline;
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.b2fg-form .b2fg-chip:hover > span {
	border-color: var(--b2fg-ink);
}

.b2fg-form .b2fg-chip input:checked + span {
	border-color: var(--b2fg-deep-gold);
	box-shadow: inset 0 0 0 1px var(--b2fg-deep-gold);
}

.b2fg-form .b2fg-chip input:focus-visible + span {
	outline: 2px solid var(--b2fg-deep-gold);
	outline-offset: 2px;
}

.b2fg-form .b2fg-free {
	margin-top: 14px;
}

.b2fg-form .b2fg-free > label {
	display: block;
	font-size: 11.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--b2fg-muted);
	margin-bottom: 8px;
}

.b2fg-form .b2fg-amount-input {
	display: flex;
	align-items: stretch;
	max-width: 220px;
	border: 1px solid var(--b2fg-line);
	background: var(--b2fg-paper);
}

.b2fg-form .b2fg-currency {
	display: flex;
	align-items: center;
	padding: 0 12px;
	background: var(--b2fg-stone);
	border-right: 1px solid var(--b2fg-line);
	font-size: 15px;
	color: var(--b2fg-muted);
}

.b2fg-form .b2fg-amount-input input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 50px;
	padding: 0 14px;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 16px;
	color: var(--b2fg-ink);
}

.b2fg-form .b2fg-amount-input input:focus {
	outline: none;
}

.b2fg-form .b2fg-hint {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	color: var(--b2fg-muted);
}

/* Voor wie */

.b2fg-form .b2fg-who {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.b2fg-form .b2fg-card > input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.b2fg-form .b2fg-card-in {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 18px;
	border: 1px solid var(--b2fg-line);
	background: var(--b2fg-paper);
	cursor: pointer;
	transition: border-color .18s ease;
}

.b2fg-form .b2fg-card:hover .b2fg-card-in {
	border-color: var(--b2fg-ink);
}

.b2fg-form .b2fg-card input:checked + .b2fg-card-in {
	border-color: var(--b2fg-deep-gold);
	box-shadow: inset 0 0 0 1px var(--b2fg-deep-gold);
}

.b2fg-form .b2fg-card input:focus-visible + .b2fg-card-in {
	outline: 2px solid var(--b2fg-deep-gold);
	outline-offset: 2px;
}

.b2fg-form .b2fg-card-title {
	font-size: 15.5px;
}

.b2fg-form .b2fg-card-hint {
	font-size: 13px;
	line-height: 1.55;
	color: var(--b2fg-muted);
}

/* Ontvanger */

.b2fg-form .b2fg-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.b2fg-form .b2fg-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

.b2fg-form .b2fg-field-wide {
	margin-top: 14px;
}

.b2fg-form .b2fg-field > span {
	font-size: 11.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--b2fg-muted);
}

.b2fg-form .b2fg-field input,
.b2fg-form .b2fg-field textarea {
	width: 100%;
	min-height: 50px;
	padding: 13px 14px;
	border: 1px solid var(--b2fg-line);
	background: var(--b2fg-paper);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: var(--b2fg-ink);
	border-radius: 0;
}

.b2fg-form .b2fg-field textarea {
	resize: vertical;
}

.b2fg-form .b2fg-field input:focus,
.b2fg-form .b2fg-field textarea:focus {
	outline: none;
	border-color: var(--b2fg-deep-gold);
	box-shadow: inset 0 0 0 1px var(--b2fg-deep-gold);
}

.b2fg-form .b2fg-field small {
	font-size: 12.5px;
	color: var(--b2fg-muted);
}

.b2fg-form .b2fg-note {
	margin: 0;
	padding-top: 4px;
	font-size: 13px;
	line-height: 1.65;
	color: var(--b2fg-muted);
}

@media (max-width: 560px) {
	.b2fg-form .b2fg-who,
	.b2fg-form .b2fg-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Inwisselen op de winkelwagen en het afrekenen */

.b2fg-redeem {
	font-family: 'Avenir Next', 'Nunito Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
	margin: 0 0 20px;
	padding: 18px 20px;
	border: 1px solid #DDD5CF;
	background: #FFFFFF;
}

.b2fg-redeem p {
	margin: 0 0 10px;
	font-size: 13.5px;
	line-height: 1.6;
	color: #5C5B60;
}

.b2fg-redeem strong {
	display: block;
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #7A6A2E;
	font-weight: 400;
	margin-bottom: 8px;
}

/* Cadeaubonnen onder de bestelling */

.b2fg-order-cards ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.b2fg-order-cards li {
	padding: 8px 0;
	border-bottom: 1px solid #DDD5CF;
	font-size: 14.5px;
}

.b2fg-order-cards code {
	letter-spacing: 0.12em;
}
