.cggc-product-form {
	border-top: 1px solid #d8cab6;
	border-bottom: 1px solid #d8cab6;
	margin: 28px 0;
	padding: 24px 0;
	color: #293830;
}

.cggc-product-form h3 {
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0;
	margin: 0 0 14px;
}

.cggc-amounts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 24px;
}

.cggc-amounts label {
	cursor: pointer;
	margin: 0;
}

.cggc-amounts input {
	appearance: none;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	margin: 0;
	overflow: hidden;
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 1px;
}

.cggc-amounts span {
	align-items: center;
	background: #f8f5ef;
	border: 1px solid #bba789;
	box-shadow: none;
	color: #293830;
	display: inline-flex;
	font-size: 15px;
	font-weight: 600;
	min-height: 44px;
	padding: 0 18px;
	transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.cggc-amounts span *,
.cggc-amounts .woocommerce-Price-amount,
.cggc-amounts .woocommerce-Price-currencySymbol {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: inherit;
	display: inline;
	font: inherit;
	margin: 0;
	padding: 0;
}

.cggc-amounts input:checked + span,
.cggc-amounts label:hover span {
	background: #2f453c;
	border-color: #2f453c;
	color: #fff;
}

.cggc-fields {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cggc-fields p {
	margin: 0;
}

.cggc-fields label {
	color: #293830;
	display: grid;
	font-size: 14px;
	gap: 7px;
}

.cggc-fields input,
.cggc-fields textarea,
.cggc-code-form input {
	background: #fff;
	border: 1px solid #cfc4b3;
	border-radius: 0;
	color: #293830;
	min-height: 44px;
	padding: 10px 12px;
	width: 100%;
}

.cggc-validity-note,
.cggc-cart-note {
	color: #5c665f;
	font-size: 14px;
	line-height: 1.45;
	margin: -8px 0 22px;
}

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

.cggc-full {
	grid-column: 1 / -1;
}

.cggc-cart-box {
	background: #f8f5ef;
	border: 1px solid #d8cab6;
	margin: 16px 0;
	padding: 16px;
}

.cggc-code-form {
	align-items: stretch;
	display: flex;
	gap: 8px;
	margin-top: 10px;
}

.cggc-code-form input {
	max-width: 190px;
	text-transform: uppercase;
}

.cggc-code-form .button,
.cggc-product-form + .quantity + button {
	border-radius: 0;
	min-height: 44px;
	padding-left: 22px;
	padding-right: 22px;
}

.cggc-applied-code {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.cggc-applied-token {
	border: 1px solid #bba789;
	color: #293830;
	font-weight: 600;
	padding: 5px 9px;
}

.cggc-applied-summary,
.cggc-applied-note {
	color: #293830;
	font-size: 13px;
	line-height: 1.5;
}

.cggc-applied-summary {
	flex: 1 1 260px;
}

.cggc-applied-note {
	flex-basis: 100%;
	font-style: italic;
	margin-left: 0;
}

.cggc-remove-code {
	background: transparent;
	border: 0;
	color: #0073aa;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
}

@media (max-width: 640px) {
	.cggc-fields,
	.cggc-code-form {
		display: block;
	}

	.cggc-fields p,
	.cggc-code-form button {
		margin-top: 12px;
	}

	.cggc-code-form input {
		max-width: none;
	}
}
