.zapgifts-lookup {
	border: 1px solid #dbeafe;
	border-radius: 6px;
	padding: 20px;
	background: #fff;
	max-width: 680px;
}

.zapgifts-lookup__label {
	display: block;
	font-weight: 600;
	margin-bottom: 10px;
}

.zapgifts-lookup__controls {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.zapgifts-lookup__input {
	flex: 1 1 260px;
	min-height: 42px;
	padding: 0 12px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
}

.zapgifts-lookup__button {
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid #0284c7;
	border-radius: 6px;
	background: #0284c7;
	color: #fff;
	cursor: pointer;
}

.zapgifts-lookup__notice {
	margin-top: 16px;
	padding: 12px 14px;
	border-radius: 6px;
}

.zapgifts-lookup__notice--success {
	background: #ecfdf3;
	color: #027a48;
}

.zapgifts-lookup__notice--error {
	background: #fef3f2;
	color: #b42318;
}

.zapgifts-lookup__result {
	margin-top: 18px;
	border-top: 1px solid #dcdcde;
	padding-top: 16px;
	display: grid;
	gap: 12px;
}

.zapgifts-lookup__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.zapgifts-lookup__meta-label {
	color: #50575e;
}

.zapgifts-template-card {
	--zapgifts-template-background-color: #fff;
	--zapgifts-template-button-color: #0284c7;
	--zapgifts-template-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--zapgifts-template-outer-radius: 18px;
	--zapgifts-template-primary-color: #0284c7;
	--zapgifts-template-radius: 10px;
	--zapgifts-template-shadow-x: 0px;
	--zapgifts-template-shadow-y: 18px;
	--zapgifts-template-shadow-blur: 42px;
	--zapgifts-template-shadow-spread: 0px;
	--zapgifts-template-shadow-opacity: 0.16;
	--zapgifts-template-text-color: #0f172a;
	background: var(--zapgifts-template-background-color);
	border: 1px solid color-mix(in srgb, var(--zapgifts-template-background-color) 64%, #cbd5e1);
	border-radius: var(--zapgifts-template-outer-radius, 18px);
	box-shadow:
		var(--zapgifts-template-shadow-x, 0px)
		var(--zapgifts-template-shadow-y, 18px)
		var(--zapgifts-template-shadow-blur, 42px)
		var(--zapgifts-template-shadow-spread, 0px)
		rgba(14, 165, 233, var(--zapgifts-template-shadow-opacity, 0.16));
	box-sizing: border-box;
	color: var(--zapgifts-template-text-color);
	display: block !important;
	font-family: var(--zapgifts-template-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
	max-width: 480px !important;
	padding: 20px;
	width: min(100%, 480px) !important;
}

.zapgifts-template-card,
.zapgifts-template-card * {
	font-family: var(--zapgifts-template-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
}

.zapgifts-template-card__hero {
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--zapgifts-template-primary-color) 78%, #fff), var(--zapgifts-template-primary-color)),
		var(--zapgifts-template-primary-color);
	border-radius: calc(var(--zapgifts-template-radius) + 4px);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 148px;
	padding: 22px;
}

.zapgifts-template-card__hero--artwork {
	background: transparent;
	display: block;
	min-height: 0;
	overflow: hidden;
	padding: 0;
}

.zapgifts-template-card__artwork {
	border-radius: calc(var(--zapgifts-template-radius) + 4px);
	display: block;
	height: auto;
	width: 100%;
}

.zapgifts-template-card__hero span {
	font-size: 13px;
	opacity: 0.88;
}

.zapgifts-template-card__hero strong {
	font-size: 34px;
	line-height: 1;
	margin-top: 42px;
}

.zapgifts-template-card__content {
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--zapgifts-template-text-color);
	margin-top: 22px;
	padding: 0;
}

.zapgifts-template-card__summary {
	margin-bottom: 14px;
}

.zapgifts-template-card__summary-row {
	align-items: flex-start;
	display: flex;
	gap: 14px;
	justify-content: space-between;
}

.zapgifts-template-card__title {
	color: var(--zapgifts-template-text-color);
	font-size: 22px;
	line-height: 1.25;
	margin: 0;
}

.zapgifts-template-card__summary-amount {
	color: var(--zapgifts-template-text-color);
	flex: 0 0 auto;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.25;
	margin: 0;
	white-space: nowrap;
}

.zapgifts-template-card__description {
	color: #475569;
	font-size: 13px;
	line-height: 1.45;
	margin: 8px 0 0;
}

.zapgifts-template-card__description p:first-child {
	margin-top: 0;
}

.zapgifts-template-card__description p:last-child {
	margin-bottom: 0;
}

.zapgifts-template-card__description ul {
	display: grid;
	gap: 6px;
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}

.zapgifts-template-card__description li {
	align-items: flex-start;
	display: flex;
	gap: 8px;
	line-height: inherit;
	margin: 0;
}

.zapgifts-template-card__description li::before {
	background: currentColor;
	border-radius: 999px;
	content: "";
	flex: 0 0 5px;
	height: 5px;
	margin-top: calc((1.45em - 5px) / 2);
	opacity: 0.78;
	width: 5px;
}

.zapgifts-template-card__description li > span {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
}

.zapgifts-template-card__note {
	color: #64748b;
	font-size: 12px;
	margin: 10px 0 0;
	padding: 0;
}

.zapgifts-template-card__powered-by {
	color: #64748b;
	font-size: 12px;
	line-height: 1.4;
	margin: 12px 0 0;
	padding: 0;
	text-align: center;
}

.zapgifts-template-card__powered-by a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.zapgifts-template-card__powered-by a:hover,
.zapgifts-template-card__powered-by a:focus {
	color: var(--zapgifts-template-primary-color);
}

.zapgifts-template-card__order-fields {
	border-top: 1px solid color-mix(in srgb, var(--zapgifts-template-background-color) 42%, #e2e8f0);
	margin-top: 18px;
	padding-top: 18px;
}

.zapgifts-template-card__amount-field label {
	color: #334155;
	display: block;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 5px;
}

.zapgifts-template-card__field-label {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.zapgifts-template-card__form input,
.zapgifts-template-card__form textarea {
	background: #f0f9ff;
	border: 1px solid #dbeafe;
	border-radius: var(--zapgifts-template-radius);
	box-sizing: border-box;
	color: #0f172a;
	font: inherit;
	min-height: 42px;
	padding: 10px;
	width: 100%;
}

.zapgifts-template-card__form input:focus,
.zapgifts-template-card__form textarea:focus,
.zapgifts-lookup__input:focus {
	border-color: #38bdf8;
	box-shadow: 0 0 0 1px #38bdf8;
	outline: none;
}

.zapgifts-template-card__amount-field {
	background: #f0f9ff;
	border: 1px solid #dbeafe;
	border-radius: var(--zapgifts-template-radius);
	margin-bottom: 10px;
	padding: 10px;
}

.zapgifts-template-card__grid {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 10px;
}

.zapgifts-template-card__form p {
	margin: 0 0 8px;
}

.zapgifts-template-card__form textarea {
	min-height: 78px;
	resize: vertical;
}

.zapgifts-template-card__button {
	background: var(--zapgifts-template-button-color);
	border: 0;
	border-radius: var(--zapgifts-template-radius);
	color: #fff;
	cursor: pointer;
	font-weight: 700;
	margin-top: 12px;
	min-height: 40px;
	width: 100%;
}

.zapgifts-template-card--woocommerce input:not([type="hidden"]),
.zapgifts-template-card--woocommerce textarea {
	background: #f0f9ff;
	border: 1px solid #dbeafe;
	border-radius: var(--zapgifts-template-radius);
	box-sizing: border-box;
	color: #0f172a;
	font: inherit;
	min-height: 42px;
	padding: 10px;
	width: 100%;
}

.zapgifts-template-card--woocommerce input:focus,
.zapgifts-template-card--woocommerce textarea:focus {
	border-color: #38bdf8;
	box-shadow: 0 0 0 1px #38bdf8;
	outline: none;
}

.zapgifts-template-card--woocommerce .quantity {
	margin: 8px 0 0;
	width: 100%;
}

.zapgifts-template-card--woocommerce .quantity input {
	max-width: 100%;
}

.zapgifts-template-card--woocommerce .single_add_to_cart_button,
.zapgifts-template-card--woocommerce .single_add_to_cart_button.alt {
	background: var(--zapgifts-template-button-color) !important;
	border: 0 !important;
	border-radius: var(--zapgifts-template-radius) !important;
	color: #fff !important;
	cursor: pointer;
	display: block;
	font-weight: 700;
	margin-top: 12px;
	min-height: 40px;
	width: 100%;
}

body.single-product div.product.product-type-zapgifts_gift_card,
body.single-product .type-product.product-type-zapgifts_gift_card {
	display: block;
}

body.single-product div.product.product-type-zapgifts_gift_card .woocommerce-product-gallery,
body.single-product .type-product.product-type-zapgifts_gift_card .woocommerce-product-gallery {
	display: none !important;
}

body.single-product div.product.product-type-zapgifts_gift_card div.summary,
body.single-product .type-product.product-type-zapgifts_gift_card div.summary {
	clear: both !important;
	float: none !important;
	margin: 0 auto !important;
	max-width: 1040px !important;
	width: 100% !important;
}

.zapgifts-wc-builder {
	--zapgifts-template-background-color: #fff;
	--zapgifts-template-button-color: #0284c7;
	--zapgifts-template-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--zapgifts-template-outer-radius: 18px;
	--zapgifts-template-primary-color: #0284c7;
	--zapgifts-template-radius: 10px;
	--zapgifts-template-shadow-x: 0px;
	--zapgifts-template-shadow-y: 18px;
	--zapgifts-template-shadow-blur: 42px;
	--zapgifts-template-shadow-spread: 0px;
	--zapgifts-template-shadow-opacity: 0.16;
	--zapgifts-template-text-color: #0f172a;
	--zapgifts-template-widget-color: #e0f2fe;
	box-sizing: border-box;
	display: grid;
	gap: 38px;
	grid-template-columns: minmax(280px, 1fr) minmax(320px, 0.92fr);
	margin: 28px auto 34px;
	max-width: 1040px;
	width: 100%;
}

.zapgifts-wc-preview,
.zapgifts-wc-preview * {
	font-family: var(--zapgifts-template-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
}

.zapgifts-wc-builder *,
.zapgifts-wc-builder *::before,
.zapgifts-wc-builder *::after {
	box-sizing: border-box;
}

.zapgifts-wc-preview {
	background: var(--zapgifts-template-background-color);
	border: 1px solid color-mix(in srgb, var(--zapgifts-template-background-color) 64%, #cbd5e1);
	border-radius: var(--zapgifts-template-outer-radius, 18px);
	box-shadow:
		var(--zapgifts-template-shadow-x, 0px)
		var(--zapgifts-template-shadow-y, 18px)
		var(--zapgifts-template-shadow-blur, 42px)
		var(--zapgifts-template-shadow-spread, 0px)
		rgba(15, 23, 42, var(--zapgifts-template-shadow-opacity, 0.16));
	color: var(--zapgifts-template-text-color);
	padding: 24px;
}

.zapgifts-wc-preview__image,
.zapgifts-wc-preview__artwork,
.zapgifts-wc-preview__placeholder {
	aspect-ratio: 16 / 10;
	border-radius: var(--zapgifts-template-radius);
	display: block;
	width: 100%;
}

.zapgifts-wc-preview__image {
	border: 1px solid #eef2f7;
}

.zapgifts-wc-preview__image,
.zapgifts-wc-preview__artwork {
	height: auto;
	object-fit: cover;
}

.zapgifts-wc-preview__placeholder {
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--zapgifts-template-primary-color) 80%, #fff), var(--zapgifts-template-primary-color)),
		var(--zapgifts-template-primary-color);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 260px;
	padding: 28px;
}

.zapgifts-wc-preview__placeholder span {
	font-size: 16px;
	opacity: 0.9;
}

.zapgifts-wc-preview__placeholder strong {
	font-size: 42px;
	line-height: 1;
}

.zapgifts-wc-preview__details {
	background: transparent;
	border: 0;
	border-radius: calc(var(--zapgifts-template-radius) + 4px);
	margin-top: 20px;
	padding: 0;
}

.zapgifts-wc-preview__summary {
	margin-bottom: 14px;
}

.zapgifts-wc-preview__summary-row {
	align-items: flex-start;
	display: flex;
	gap: 16px;
	justify-content: space-between;
}

.zapgifts-wc-preview__summary h3,
.zapgifts-wc-preview__summary-amount {
	color: var(--zapgifts-template-text-color);
	font-size: 28px;
	line-height: 1.2;
	margin: 0;
}

.zapgifts-wc-preview__summary-amount {
	flex: 0 0 auto;
	font-weight: 800;
	white-space: nowrap;
}

.zapgifts-wc-preview__description {
	color: color-mix(in srgb, var(--zapgifts-template-text-color) 72%, #64748b);
	font-size: 15px;
	line-height: 1.45;
	margin: 8px 0 0;
	overflow-wrap: anywhere;
}

.zapgifts-wc-preview__description p:first-child,
.zapgifts-wc-template-description p:first-child {
	margin-top: 0;
}

.zapgifts-wc-preview__description p:last-child,
.zapgifts-wc-template-description p:last-child {
	margin-bottom: 0;
}

.zapgifts-wc-preview__description ul,
.zapgifts-wc-template-description ul {
	display: grid;
	gap: 6px;
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}

.zapgifts-wc-preview__description li,
.zapgifts-wc-template-description li {
	align-items: flex-start;
	display: flex;
	gap: 8px;
	line-height: inherit;
	margin: 0;
}

.zapgifts-wc-preview__description li::before,
.zapgifts-wc-template-description li::before {
	background: currentColor;
	border-radius: 999px;
	content: "";
	flex: 0 0 5px;
	height: 5px;
	margin-top: calc((1.45em - 5px) / 2);
	opacity: 0.78;
	width: 5px;
}

.zapgifts-wc-preview__description li > span,
.zapgifts-wc-template-description li > span {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
}

.zapgifts-wc-builder__form {
	border-left: 1px solid #e5e7eb;
	min-width: 0;
	padding-left: 36px;
}

.zapgifts-wc-builder__field {
	margin: 0 0 22px;
}

.zapgifts-wc-builder__field label {
	color: #111827;
	display: block;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.zapgifts-wc-builder__field input,
.zapgifts-wc-builder__field textarea {
	background: #fff;
	border: 1px solid #d8dde6;
	border-radius: 0;
	color: #111827;
	font: inherit;
	min-height: 50px;
	padding: 12px 14px;
	width: 100%;
}

.zapgifts-wc-builder__field textarea {
	min-height: 96px;
	resize: vertical;
}

.zapgifts-wc-builder__field input:focus,
.zapgifts-wc-builder__field textarea:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

.zapgifts-wc-builder__count {
	color: #64748b;
	display: block;
	font-size: 13px;
	margin-top: 8px;
}

.zapgifts-wc-builder__note {
	color: #64748b;
	flex-basis: 100%;
	font-size: 13px;
	line-height: 1.45;
	margin: 0;
}

.zapgifts-wc-builder__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 4px;
}

.zapgifts-wc-builder__actions .quantity {
	display: inline-flex;
	margin: 0 !important;
}

.zapgifts-wc-builder__actions .quantity input {
	min-height: 42px;
	width: 70px;
}

.zapgifts-wc-builder .single_add_to_cart_button,
.zapgifts-wc-builder .single_add_to_cart_button.alt,
.zapgifts-wc-builder__actions .single_add_to_cart_button,
.zapgifts-wc-builder__actions .single_add_to_cart_button.alt {
	border-radius: 4px !important;
	font-weight: 700;
	margin: 0 !important;
	min-height: 44px;
	min-width: 220px;
	padding-left: 28px;
	padding-right: 28px;
}

.zapgifts-template-notice {
	padding: 12px 14px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #fff;
}

.zapgifts-wc-fields {
	margin: 0 0 22px;
	padding: 22px;
	border: 1px solid var(--zapgifts-template-widget-color, #dbeafe);
	border-radius: var(--zapgifts-template-radius, 8px);
	background: var(--zapgifts-template-background-color, #f8fcff);
	color: var(--zapgifts-template-text-color, #0f172a);
	font-family: var(--zapgifts-template-font-family, inherit);
}

.zapgifts-wc-fields h3 {
	margin: 0 0 18px;
	color: var(--zapgifts-template-text-color, #0f172a);
	font-size: 22px;
	line-height: 1.25;
}

.zapgifts-wc-template-description {
	color: var(--zapgifts-template-text-color, #475569);
	margin: -8px 0 18px;
	opacity: 0.82;
}

.zapgifts-wc-field {
	margin: 0 0 16px;
}

.zapgifts-wc-field label,
.zapgifts-wc-field > label {
	display: block;
	margin-bottom: 7px;
	color: var(--zapgifts-template-text-color, #0f172a);
	font-weight: 700;
}

.zapgifts-wc-field label span {
	color: #64748b;
	font-weight: 400;
}

.zapgifts-wc-field input[type="text"],
.zapgifts-wc-field input[type="email"],
.zapgifts-wc-field textarea,
.zapgifts-wc-custom-amount {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid var(--zapgifts-template-widget-color, #bae6fd);
	border-radius: var(--zapgifts-template-radius, 6px);
	padding: 10px 12px;
	background: #fff;
	color: var(--zapgifts-template-text-color, #0f172a);
}

.zapgifts-wc-amounts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.zapgifts-wc-amount-option {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 9px 12px;
	border: 1px solid var(--zapgifts-template-widget-color, #bae6fd);
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
}

.zapgifts-wc-amount-option span,
.zapgifts-wc-fixed-amount {
	font-weight: 700;
	color: var(--zapgifts-template-primary-color, #075985);
}

.zapgifts-wc-custom-amount {
	max-width: 220px;
}

@media (max-width: 600px) {
	.zapgifts-lookup__controls {
		flex-direction: column;
		align-items: stretch;
	}

	.zapgifts-lookup__button {
		width: 100%;
	}

	.zapgifts-template-card {
		padding: 18px;
	}

	.zapgifts-template-card__grid {
		grid-template-columns: 1fr;
	}

	.zapgifts-wc-custom-amount {
		max-width: none;
	}

	.zapgifts-wc-builder {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.zapgifts-wc-builder__form {
		border-left: 0;
		padding-left: 0;
	}

	.zapgifts-wc-preview {
		padding: 18px;
	}

}
