/* Host node injected above the coupon panel. */
.mgc-portal-host {
	display: block;
}

.mgc-blocks-redeem {
	margin: 0;
}

/* Match the coupon panel's button padding/spacing so the two sit evenly. */
.mgc-blocks-panel .wc-block-components-panel__button {
	padding-top: 12px;
	padding-bottom: 12px;
}

/* Input row inside the expanded panel. */
.mgc-blocks-row {
	display: flex;
	gap: 8px;
	margin: 0 0 12px;
}

.mgc-blocks-input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #d8cfc6;
	border-radius: 6px;
	text-transform: uppercase;
}

.mgc-blocks-apply {
	flex: 0 0 auto;
	padding: 10px 20px;
	border: 0;
	border-radius: 6px;
	background: rgb(196, 110, 58);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.mgc-blocks-apply:disabled {
	opacity: 0.6;
	cursor: default;
}

.mgc-blocks-error {
	margin: 0 0 8px;
	color: #b3261e;
	font-size: 0.9em;
}

/* Applied gift cards. */
.mgc-blocks-applied {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mgc-blocks-applied-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: #fdf6ec;
	border: 1px solid #efe3d2;
	border-radius: 6px;
	margin: 12px 0;
}

.mgc-blocks-applied-code {
	font-weight: 700;
	letter-spacing: 1px;
}

.mgc-blocks-applied-balance {
	margin-left: auto;
	color: rgb(84, 54, 64);
}

.mgc-blocks-remove {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border: 1px solid #e2c9a8;
	background: #fff;
	border-radius: 6px;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	color: #8a6d5a;
}

.mgc-blocks-remove:hover {
	color: #b3261e;
	border-color: #e7a9a0;
}

.mgc-blocks-remove:disabled {
	opacity: 0.5;
	cursor: default;
}
