.fwg-product-fields {
	clear: both;
	margin: 1.5rem 0;
}

.fwg-fieldset {
	background: #fff;
	border: 1px solid #e2d8e5;
	border-radius: 12px;
	box-shadow: 0 5px 18px rgba(44, 10, 52, .04);
	margin: 0 0 1.25rem;
	padding: 1.15rem;
}

.fwg-fieldset legend {
	color: #2e1235;
	font-size: 1.05rem;
	font-weight: 700;
	padding: 0 .35rem;
}

.fwg-choice-grid {
	display: flex;
	flex-wrap: wrap;
	gap: .65rem;
}

.fwg-choice input,
.fwg-design-choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.fwg-choice span {
	background: #fff;
	border: 1px solid #cfc2d2;
	border-radius: 8px;
	cursor: pointer;
	display: block;
	font-weight: 600;
	padding: .7rem 1rem;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.fwg-choice input:checked + span,
.fwg-choice input:focus-visible + span {
	border-color: #4d0b5b;
	background: #faf5fb;
	box-shadow: 0 0 0 2px rgba(77, 11, 91, .15);
}

.fwg-recipient-fields[hidden] {
	display: none;
}

.fwg-custom-amount-option {
	align-items: flex-start;
	background: #faf8fb;
	border: 1px solid #ded4e1;
	border-radius: 10px;
	cursor: pointer;
	display: flex;
	gap: .75rem;
	margin-top: 1rem;
	padding: .9rem;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.fwg-custom-amount-option.is-selected {
	border-color: #4d0b5b;
	box-shadow: 0 0 0 2px rgba(77, 11, 91, .12);
}

.fwg-custom-amount-option > input {
	margin-top: .35rem;
}

.fwg-custom-amount-content {
	display: block;
	flex: 1;
}

.fwg-custom-amount-content > strong,
.fwg-custom-amount-content > small {
	display: block;
}

.fwg-money-input {
	align-items: center;
	background: #fff;
	border: 1px solid #cfc2d2;
	border-radius: 8px;
	display: flex;
	margin: .5rem 0 .25rem;
	overflow: hidden;
}

.fwg-money-input > span {
	background: #f1ebf3;
	border-right: 1px solid #cfc2d2;
	font-weight: 700;
	padding: .75rem .85rem;
}

.fwg-money-input input[type="number"] {
	border: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
}

.fwg-product-fields input[type="text"],
.fwg-product-fields input[type="email"],
.fwg-product-fields input[type="number"],
.fwg-product-fields textarea,
.fwg-balance-form input {
	background: #fff;
	border: 1px solid #cfc2d2;
	border-radius: 8px;
	box-sizing: border-box;
	display: block;
	margin-top: .35rem;
	max-width: 100%;
	min-height: 46px;
	padding: .72rem .85rem;
	transition: border-color .15s ease, box-shadow .15s ease;
	width: 100%;
}

.fwg-product-fields textarea {
	min-height: 110px;
	resize: vertical;
}

.fwg-product-fields input:focus,
.fwg-product-fields textarea:focus,
.fwg-balance-form input:focus {
	border-color: #6f237b;
	box-shadow: 0 0 0 3px rgba(111, 35, 123, .13);
	outline: 0;
}

.fwg-product-fields p > label,
.fwg-recipient-fields p > label {
	color: #35163d;
	font-weight: 600;
}

.fwg-design-grid {
	display: grid;
	gap: .8rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fwg-design-choice span {
	background: #fff;
	border: 3px solid #eee7ef;
	border-radius: 8px;
	cursor: pointer;
	display: block;
	overflow: hidden;
	position: relative;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.fwg-design-choice img {
	display: block;
	height: auto;
	width: 100%;
}

.fwg-design-choice em {
	background: rgba(255,255,255,.92);
	bottom: 0;
	font-style: normal;
	left: 0;
	padding: .3rem .55rem;
	position: absolute;
}

.fwg-design-choice input:checked + span,
.fwg-design-choice input:focus-visible + span {
	border-color: #4d0b5b;
	box-shadow: 0 5px 15px rgba(77, 11, 91, .16);
}

.fwg-inline-choice {
	background: #faf8fb;
	border: 1px solid #ded4e1;
	border-radius: 8px;
	display: block;
	margin: .45rem 0;
	padding: .7rem .8rem;
}

.fwg-recipient-fields {
	background: #faf8fb;
	border: 1px solid #ece4ee;
	border-radius: 9px;
	margin: .8rem 0;
	padding: .25rem 1rem;
}

.fwg-counter,
.fwg-custom-amount-option small {
	display: block;
	margin-top: .25rem;
}

.fwg-live-preview {
	box-sizing: border-box;
	clear: left;
	float: left;
	margin: 1.25rem 0 0;
	width: 48%;
}

.fwg-live-preview.fwg-preview-in-media-column {
	clear: both;
	float: none;
	width: 100%;
}

.fwg-live-preview h3 {
	color: #2e1235;
	font-size: 1.05rem;
	margin: 0 0 .75rem;
}

.fwg-preview-card {
	background: #fff;
	border: 1px solid #e2d8e5;
	border-radius: 10px;
	box-shadow: 0 7px 20px rgba(44, 10, 52, .08);
	overflow: hidden;
}

.fwg-preview-image {
	display: block;
	height: auto;
	width: 100%;
}

.fwg-preview-details {
	padding: 1rem;
}

.fwg-preview-amount-line {
	align-items: baseline;
	display: flex;
	flex-wrap: nowrap;
	font-size: 1rem;
	gap: .35rem;
	justify-content: flex-start;
	white-space: nowrap;
}

.fwg-preview-rule {
	border-top: 1px solid #ebe4ed;
	margin: .8rem 0;
}

.fwg-preview-details p {
	margin: .35rem 0;
}

.fwg-preview-message {
	border-top: 3px solid #4d0b5b;
	margin-top: .7rem;
	min-height: 1.4em;
	padding-top: .45rem;
	white-space: pre-wrap;
}

.fwg-redemption-box {
	background: #faf8fb;
	border: 1px solid #e3dce5;
	border-radius: 8px;
	margin: 0 0 1.5rem;
	padding: 1rem;
}

.fwg-redemption-box h3 {
	margin-top: 0;
}

.fwg-redeem-form {
	display: flex;
	gap: .5rem;
}

.fwg-redeem-form input {
	flex: 1;
	min-width: 0;
}

.fwg-balance-form label {
	font-weight: 600;
}

.fwg-payment-breakdown-row > td {
	padding: .85rem 0 !important;
}

.fwg-payment-breakdown {
	background: #faf8fb;
	border: 1px solid #ded4e1;
	border-radius: 10px;
	color: #35163d;
	padding: 1rem;
}

.fwg-payment-breakdown-title {
	display: block;
	font-size: 1.05rem;
	margin-bottom: .55rem;
}

.fwg-payment-breakdown > div {
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	padding: .22rem 0;
}

.fwg-payment-breakdown .fwg-payment-due {
	border-top: 2px solid #4d0b5b;
	font-size: 1.05rem;
	font-weight: 700;
	margin-top: .45rem;
	padding-top: .65rem;
}

.fwg-payment-breakdown p {
	background: #f1ebf3;
	border-radius: 7px;
	font-size: .92rem;
	margin: .75rem 0 0;
	padding: .65rem .75rem;
}

@media (min-width: 760px) {
	.fwg-design-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.fwg-design-grid {
		grid-template-columns: 1fr;
	}
	.fwg-redeem-form {
		align-items: stretch;
		flex-direction: column;
	}
}

@media (max-width: 768px) {
	.fwg-live-preview {
		clear: both;
		float: none;
		width: 100%;
	}
}
