/* Monster Gift Vouchers: the pack form, the basket's gift boxes and the voucher code box.
   Colours follow the theme (currentColor and transparent tints), so it sits in any site. */

.mgv-form {
	margin: 0 0 1.25em;
}

.mgv-step {
	border: 0;
	margin: 0 0 1em;
	padding: 0;
}

.mgv-legend {
	font-weight: 600;
	margin: 0 0 0.5em;
	padding: 0;
}

.mgv-choices {
	display: grid;
	gap: 0.5em;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.mgv-choice {
	align-items: center;
	border: 1px solid rgba(127, 127, 127, 0.45);
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25em 0.6em;
	margin: 0;
	padding: 0.75em 0.9em;
}

.mgv-choice:has(input:checked) {
	border-color: currentColor;
	box-shadow: inset 0 0 0 1px currentColor;
}

.mgv-choice input {
	margin: 0;
}

.mgv-choice__label {
	font-weight: 600;
}

.mgv-choice__price {
	opacity: 0.8;
	font-size: 0.9em;
}

/* Until a pack type is chosen, the rest stays closed (only with JavaScript running). */
.mgv-form--waiting .mgv-rest {
	display: none;
}

.mgv-pack {
	border: 1px solid rgba(127, 127, 127, 0.3);
	border-radius: 6px;
	margin: 0 0 0.75em;
	padding: 0.75em 0.9em 0.25em;
}

.mgv-pack__head {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin: 0 0 0.5em;
}

.mgv-pack__remove,
.mgv-redeem__remove,
.mgv-redeem__toggle {
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	font-size: 0.9em;
	padding: 0;
	text-decoration: underline;
}

.mgv-row {
	margin: 0 0 0.75em;
}

.mgv-row label {
	display: block;
	font-weight: 600;
	margin: 0 0 0.25em;
}

.mgv-row label.mgv-check {
	font-weight: normal;
}

.mgv-row input[type="text"],
.mgv-row input[type="date"],
.mgv-row select,
.mgv-row textarea {
	box-sizing: border-box;
	max-width: 100%;
	width: 100%;
}

.mgv-help {
	display: block;
	font-size: 0.85em;
	margin-top: 0.25em;
	opacity: 0.8;
}

.mgv-for {
	font-weight: 600;
}

.mgv-over {
	color: #b32d2e;
	font-weight: 600;
}

.mgv-total {
	align-items: baseline;
	border-top: 1px solid rgba(127, 127, 127, 0.3);
	display: flex;
	font-size: 1.1em;
	justify-content: space-between;
	margin: 0.5em 0 1em;
	padding-top: 0.6em;
}

/* Basket: "Make this booking a gift?" */
.mgv-upgrades {
	margin: 0 0 1.5em;
}

.mgv-upgrade {
	border: 1px solid rgba(127, 127, 127, 0.35);
	border-radius: 6px;
	margin: 0 0 0.75em;
	padding: 0.75em 1em;
}

.mgv-upgrade__summary {
	cursor: pointer;
	font-weight: 600;
}

.mgv-upgrade__for {
	font-weight: normal;
	opacity: 0.8;
}

.mgv-upgrade__form {
	margin-top: 0.75em;
}

.mgv-upgrade--done p {
	margin: 0;
}

/* Gift voucher code */
.mgv-redeem {
	margin: 0 0 1.25em;
}

.mgv-redeem--block {
	margin: 0;
	padding: 12px 16px;
}

.mgv-redeem__label {
	display: block;
	font-weight: 600;
	margin: 0 0 0.35em;
}

.mgv-redeem__row {
	display: flex;
	gap: 0.5em;
}

.mgv-redeem__row input {
	flex: 1 1 auto;
	min-width: 0;
	text-transform: uppercase;
}

.mgv-redeem__list {
	list-style: none;
	margin: 0.6em 0 0;
	padding: 0;
}

.mgv-redeem__list li {
	margin: 0 0 0.3em;
}

.mgv-redeem__amount {
	font-weight: 600;
}

.mgv-redeem__error,
.mgv-redeem__msg.is-error {
	color: #b32d2e;
}

.mgv-redeem__msg {
	font-size: 0.9em;
	margin: 0.4em 0 0;
}
