.product form.cart .aps-sticker,
.aps-sticker {
	box-sizing: border-box;
	flex: 1 0 100%;
	width: 100%;
	clear: both;
	margin: 4px 0 18px;
	padding: 16px 16px 8px;
	background: #fbf8f3;
	border: 1px solid rgba(44, 36, 28, 0.14);
	color: #2c241c;
}

.aps-sticker *,
.aps-sticker *::before,
.aps-sticker *::after {
	box-sizing: border-box;
}

.aps-title {
	margin: 0 0 4px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: 0.02em;
	color: #2c241c;
}

.aps-help,
.aps-locked-note {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.45;
	color: rgba(44, 36, 28, 0.75);
}

.aps-offer {
	margin: 0 0 12px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid rgba(110, 30, 42, 0.35);
	font-size: 15px;
	line-height: 1.45;
}

.aps-offer-badge {
	display: inline-block;
	margin-right: 6px;
	padding: 2px 7px 1px;
	background: #6e1e2a;
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 11px;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
	vertical-align: 1px;
}

.aps-opt-in {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
}

.aps-opt-in input {
	margin: 3px 0 0;
	accent-color: #6e1e2a;
}

.aps-sticker.is-locked .aps-opt-in,
.aps-sticker:not(.is-locked) .aps-locked-note,
.aps-sticker:not(.is-open) .aps-help,
.aps-sticker:not(.is-open) .aps-fields {
	display: none;
}

@font-face {
	font-family: "APS Great Vibes";
	src: url("../fonts/GreatVibes-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

.aps-preview {
	position: relative;
	width: min(100%, 440px);
	margin: 0 auto 16px;
}

.aps-preview img {
	display: block;
	width: 100%;
	height: auto;
}

.aps-preview-line1,
.aps-preview-line2 {
	position: absolute;
	left: 50%;
	width: max-content;
	max-width: 84%;
	transform: translate(-50%, -50%);
	text-align: center;
	line-height: 1;
	white-space: nowrap;
	pointer-events: none;
}

.aps-preview-line1 {
	font-family: "APS Great Vibes", "Palatino Linotype", Palatino, Georgia, serif;
	font-size: 42px;
	color: #7a2433;
}

.aps-preview-line2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 14px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #6a6156;
}

/* Holly: red script sat just under the berries, the name just below it. */
.aps-preview[data-design="1"] .aps-preview-line1 { top: 49%; }
.aps-preview[data-design="1"] .aps-preview-line2 { top: 74%; }

/* Bow: red script sat under the ribbon, the name below that. */
.aps-preview[data-design="2"] .aps-preview-line1 { top: 60%; font-size: 40px; }
.aps-preview[data-design="2"] .aps-preview-line2 { top: 78%; }

/* Estate: red script sat under the farmhouse, the name near the lower border. */
.aps-preview[data-design="3"] .aps-preview-line1 { top: 68%; font-size: 38px; }
.aps-preview[data-design="3"] .aps-preview-line2 { top: 84%; font-size: 13px; }

.aps-preview.is-custom .aps-preview-line1,
.aps-preview.is-custom .aps-preview-line2 {
	background: rgba(247, 241, 231, 0.9);
	border-radius: 4px;
}

.aps-preview-line1.is-placeholder,
.aps-preview-line2.is-placeholder {
	color: rgba(122, 36, 51, 0.35);
}

.aps-choices {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 14px;
}

.woocommerce div.product form.cart .aps-sticker .aps-choice,
.aps-choice {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 8px 6px;
	background: #fff;
	border: 1px solid rgba(44, 36, 28, 0.16);
	cursor: pointer;
	text-align: center;
}

.aps-choice input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}

.woocommerce div.product form.cart .aps-sticker .aps-choice img,
.aps-choice img {
	display: block;
	width: 100%;
	height: 72px;
	max-height: 72px;
	margin: 0;
	object-fit: contain;
	flex: 0 0 72px;
}

.woocommerce div.product form.cart .aps-sticker .aps-choice span,
.aps-choice span {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.3;
	color: #2c241c;
}

.aps-choice:has(input:checked) {
	border-color: #6e1e2a;
	box-shadow: inset 0 0 0 1px #6e1e2a;
}

.aps-choice:has(input:focus-visible) {
	outline: 2px solid #6e1e2a;
	outline-offset: 2px;
}

.aps-field {
	position: relative;
	margin: 0 0 12px;
}

.aps-field label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #2c241c;
}

.aps-field .required {
	margin-left: 3px;
	color: #6e1e2a;
	text-decoration: none;
}

.aps-sticker input[type="text"] {
	display: block;
	width: 100%;
	margin: 0;
	padding: 10px 58px 10px 12px;
	border: 1px solid rgba(44, 36, 28, 0.28);
	border-radius: 0;
	background: #fff;
	color: #2c241c;
	font-size: 15px;
	line-height: 1.4;
	box-shadow: none;
}

.aps-sticker input[type="text"]:focus {
	border-color: #6e1e2a;
	outline: none;
}

.aps-count {
	position: absolute;
	right: 10px;
	bottom: 11px;
	font-size: 11px;
	line-height: 1;
	color: rgba(44, 36, 28, 0.45);
	pointer-events: none;
}

@media (max-width: 480px) {
	.aps-choices {
		grid-template-columns: 1fr;
	}

	.aps-choice {
		flex-direction: row;
		justify-content: flex-start;
		text-align: left;
	}

	.aps-choice img {
		width: 72px;
		height: 48px;
		flex: 0 0 72px;
	}
}
