/**
 * Gift package builder.
 */

body.am-gift .am-product-copy,
body.am-gift .am-product-copy-sep,
body.am-gift .woocommerce-product-details__short-description {
	display: none;
}

body.am-gift .summary .price:not(.am-gift-price),
body.am-gift .summary .price:not(.am-gift-price) .woocommerce-Price-amount,
body.am-gift .tinv-wishlist,
body.am-gift .tinvwl-after-add-to-cart {
	display: none;
}

body.am-gift .am-gift-price {
	display: block;
	margin: 0 0 1.15rem;
	font-family: var(--am-body, "DM Sans", ui-sans-serif, system-ui, sans-serif);
	font-size: 1.45rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--am-ink, #2c2c2c);
}

body.am-gift .am-gift-price .woocommerce-Price-amount {
	display: inline !important;
	font-weight: 600;
	color: var(--am-ink, #2c2c2c);
}

@media (min-width: 900px) {
	body.am-gift .woocommerce-product-gallery,
	body.am-gift.woocommerce div.product div.images {
		position: sticky;
		top: calc(var(--am-header-h, 5rem) + 1rem);
		align-self: start;
		max-height: calc(100vh - var(--am-header-h, 5rem) - 2rem);
	}
}

.am-gift-intro {
	margin: 0 0 1.35rem;
}

.am-gift-notice {
	margin: 0 0 1.25rem;
	padding: 0.95rem 1.1rem;
	border-radius: 0.85rem;
	background: #f4e6c8;
	border: 1px solid #e4cf9a;
}

.am-gift-notice__title {
	margin: 0 0 0.25rem;
	font-family: var(--am-heading, "DM Serif Display", Georgia, serif);
	font-size: 1.05rem;
	color: var(--am-ink, #2c2c2c);
}

.am-gift-notice__text,
.am-gift-steps {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--am-muted, #6b6560);
}

.am-gift-steps {
	padding-left: 1.15rem;
}

.am-gift-steps li + li {
	margin-top: 0.4rem;
}

.am-gift-pack {
	display: grid;
	grid-template-columns: 4.25rem 1fr;
	gap: 0.75rem 0.9rem;
	align-items: center;
	padding: 0.95rem;
	border: 1px solid var(--am-gold, #d4a843);
	border-radius: 1rem;
	background: #fbf6ee;
	box-sizing: border-box;
}

.am-gift-pack__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4.25rem;
	height: 4.25rem;
	border-radius: 0.65rem;
	background: rgba(212, 168, 67, 0.16);
	color: var(--am-gold, #d4a843);
	line-height: 0;
}

.am-gift-pack__icon .lucide,
.am-gift-pack__icon svg {
	width: 1.55rem;
	height: 1.55rem;
	stroke-width: 1.6;
}

.am-gift-pack__body {
	min-width: 0;
}

.am-gift-pack__label {
	margin: 0;
	font-family: var(--am-heading, "DM Serif Display", Georgia, serif);
	font-size: 1.15rem;
	line-height: 1.25;
	color: var(--am-ink, #2c2c2c);
}

.am-gift-pack__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin: 0.35rem 0 0;
}

.am-gift-pack__badge {
	display: inline-flex;
	align-items: center;
	height: 1.45rem;
	padding: 0 0.55rem;
	border-radius: 999px;
	background: rgba(212, 168, 67, 0.18);
	color: var(--am-ink, #2c2c2c);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.am-gift-pack__price,
.am-gift-pack__price .woocommerce-Price-amount {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--am-muted, #6b6560);
}

.am-gift-pack__price .woocommerce-Price-amount {
	display: inline !important;
}

.am-gift-picker-title {
	margin: 0 0 1rem;
	font-family: var(--am-body, "DM Sans", ui-sans-serif, system-ui, sans-serif);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--am-ink, #2c2c2c);
}

body.am-gift .woosg-wrap {
	margin: 0;
	width: 100%;
}

body.am-gift form.cart > .woosg-wrap {
	order: 0;
}

body.am-gift .woosg-before-text,
body.am-gift .woosg-after-text,
body.am-gift .woosg-alert,
body.am-gift .woosg-availability:empty,
body.am-gift .woosg-availability:has(:empty) {
	display: none !important;
}

body.am-gift .woosg-products {
	border: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

body.am-gift .woosg-products .woosg-product {
	display: grid;
	grid-template-columns: 4.25rem 1fr;
	grid-template-areas:
		"thumb title"
		"actions actions";
	gap: 0.75rem 0.9rem;
	align-items: start;
	padding: 0.95rem;
	border: 1px solid #e8dcc8;
	border-radius: 1rem;
	background: #fbf6ee;
	box-sizing: border-box;
}

body.am-gift .woosg-products .woosg-product.is-in-basket {
	border-color: var(--am-gold, #d4a843);
}

body.am-gift .woosg-products .woosg-product.has-lines {
	grid-template-areas:
		"thumb title"
		"lines lines"
		"actions actions";
}

body.am-gift .woosg-products .woosg-product.am-gift-clone {
	display: none !important;
}

body.am-gift .am-gift-personalise {
	order: 1;
	width: 100%;
	margin: 0.15rem 0 0;
	padding: 0.95rem 1.05rem 1rem;
	border: 1px solid #e8dcc8;
	border-radius: 1rem;
	background: #fbf6ee;
	box-sizing: border-box;
}

body.am-gift .am-gift-personalise.is-locked {
	opacity: 0.62;
}

body.am-gift .am-gift-personalise.is-locked .am-product-toggle {
	cursor: not-allowed;
}

body.am-gift .am-gift-personalise__lock {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.45;
	color: var(--am-muted, #6b6560);
}

body.am-gift .am-gift-personalise:not(.is-locked) .am-gift-personalise__lock {
	display: none;
}

body.am-gift .am-gift-personalise .am-product-personalise__head {
	margin-bottom: 0.55rem;
}

body.am-gift .am-gift-label-targets {
	margin: 1.05rem 0 0;
}

body.am-gift .am-gift-label-targets__title {
	margin: 0;
	font-family: var(--am-body, "DM Sans", ui-sans-serif, system-ui, sans-serif);
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--am-ink, #2c2c2c);
}

body.am-gift .am-gift-label-targets__hint {
	margin: 0.2rem 0 0.7rem;
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--am-muted, #6b6560);
}

body.am-gift .am-gift-label-targets__all,
body.am-gift .am-gift-label-targets__item {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	width: 100%;
	margin: 0;
	padding: 0.7rem 0.85rem;
	border: 1px solid transparent;
	border-radius: 0.7rem;
	background: var(--am-white, #fff);
	cursor: pointer;
	box-sizing: border-box;
}

body.am-gift .am-gift-label-targets__all {
	margin: 0 0 0.5rem;
	font-weight: 600;
}

body.am-gift .am-gift-label-targets__list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.am-gift .am-gift-label-targets__list li {
	margin: 0;
}

body.am-gift .am-gift-label-targets__all:has(input:checked),
body.am-gift .am-gift-label-targets__item:has(input:checked) {
	border-color: var(--am-gold, #d4a843);
	box-shadow: 0 0 0 1px var(--am-gold, #d4a843);
}

body.am-gift .am-gift-label-targets input[type="checkbox"] {
	appearance: none;
	width: 1.1rem;
	height: 1.1rem;
	margin: 0;
	flex: 0 0 1.1rem;
	border: 1.5px solid #c9b9a6;
	border-radius: 0.28rem;
	background: var(--am-white, #fff);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 0.72rem;
}

body.am-gift .am-gift-label-targets input[type="checkbox"]:checked {
	border-color: var(--am-gold, #d4a843);
	background-color: var(--am-gold, #d4a843);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M2.2 6.2 4.7 8.6 9.8 3.4'/%3E%3C/svg%3E");
}

body.am-gift .am-gift-label-targets input[type="checkbox"]:indeterminate {
	border-color: var(--am-gold, #d4a843);
	background-color: var(--am-gold, #d4a843);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' d='M2.4 6h7.2'/%3E%3C/svg%3E");
}

body.am-gift .am-gift-label-targets__name {
	font-size: 0.86rem;
	line-height: 1.4;
	color: var(--am-ink, #2c2c2c);
}

body.am-gift .am-gift-personalise .wapf-product-totals {
	display: none !important;
}

body.am-gift .am-gift-package-name {
	order: 2;
	width: 100%;
	margin: 0.85rem 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-sizing: border-box;
}

body.am-gift .am-gift-package-name__label {
	display: block;
	margin: 0 0 0.4rem;
	font-family: var(--am-body, "DM Sans", ui-sans-serif, system-ui, sans-serif);
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--am-ink, #2c2c2c);
}

body.am-gift .am-gift-package-name__input {
	display: block;
	width: 100%;
	height: 2.85rem;
	min-height: 0;
	padding: 0.65rem 1.05rem;
	border: 1px solid #e4d6c4;
	border-radius: 0.85rem;
	background: var(--am-white, #fff);
	font-family: var(--am-body, "DM Sans", ui-sans-serif, system-ui, sans-serif);
	font-size: 0.92rem;
	line-height: 1.4;
	color: var(--am-ink, #2c2c2c);
	resize: none;
	box-shadow: none;
}

body.am-gift .am-gift-package-name__input:focus {
	outline: none;
	border-color: var(--am-tan, #cba98a);
	box-shadow: 0 0 0 3px rgba(203, 169, 138, 0.28);
}

body.am-gift .am-gift-package-name__hint {
	margin: 0.5rem 0 0;
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--am-muted, #6b6560);
}

body.am-gift .woosg-products .woosg-product > div {
	padding: 0;
}

body.am-gift .woosg-thumb {
	grid-area: thumb;
	width: 4.25rem !important;
	flex: none !important;
}

body.am-gift .woosg-thumb img,
body.am-gift .woosg-thumb-new img {
	width: 4.25rem;
	height: 4.25rem;
	object-fit: cover;
	border-radius: 0.65rem;
}

body.am-gift .woosg-title {
	grid-area: title;
	min-width: 0;
}

body.am-gift .woosg-name,
body.am-gift .woosg-name a {
	font-family: var(--am-heading, "DM Serif Display", Georgia, serif);
	font-size: 1.15rem;
	line-height: 1.25;
	color: var(--am-ink, #2c2c2c);
	text-decoration: none;
}

body.am-gift .woosg-price {
	margin-top: 0.2rem;
	font-size: 0.92rem;
	color: var(--am-muted, #6b6560);
}

body.am-gift .woosg-price .woocommerce-Price-amount {
	display: inline !important;
	font-size: 0.92rem;
	color: var(--am-muted, #6b6560);
}

body.am-gift .woosg-availability {
	display: none !important;
}

body.am-gift .am-gift-actions .woosg_variations_form,
body.am-gift .am-gift-actions .variations,
body.am-gift .am-gift-actions .variations tbody,
body.am-gift .am-gift-actions .variations tr,
body.am-gift .am-gift-actions .variations td,
body.am-gift .am-gift-actions .variations th,
body.am-gift .am-gift-actions .variation,
body.am-gift .am-gift-actions .value {
	display: block !important;
	width: 100% !important;
	max-width: 100%;
	height: auto !important;
	padding: 0 !important;
	border: 0 !important;
	margin: 0 !important;
	line-height: normal;
}

body.am-gift .am-gift-actions .variations label,
body.am-gift .am-gift-actions .variations .label,
body.am-gift .am-gift-actions .reset {
	display: none !important;
}

body.am-gift .am-gift-actions .woosg_variations_form {
	flex: 1 1 0;
	min-width: 0;
}

body.am-gift .am-gift-actions select {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: 2.7rem !important;
	padding: 0 0.8rem;
	border: 1px solid var(--am-cream-deep, #f0e4d1);
	border-radius: 0.7rem;
	background: var(--am-white, #fff);
	font-family: var(--am-body, "DM Sans", ui-sans-serif, system-ui, sans-serif);
	font-size: 0.9rem;
	color: var(--am-ink, #2c2c2c);
}

body.am-gift .am-gift-lines {
	grid-area: lines;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.am-gift .am-gift-lines[hidden] {
	display: none;
}

body.am-gift .am-gift-line {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.65rem 0.75rem;
	border: 1px solid #efe4d4;
	border-radius: 0.75rem;
	background: var(--am-white, #fff);
}

body.am-gift .am-gift-line__info {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.65rem;
	flex: 1 1 auto;
	min-width: 0;
}

body.am-gift .am-gift-line__name {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--am-ink, #2c2c2c);
}

body.am-gift .am-gift-line__price,
body.am-gift .am-gift-line__price .woocommerce-Price-amount {
	font-size: 0.85rem;
	font-weight: 400;
	color: var(--am-muted, #6b6560);
}

body.am-gift .am-gift-line__price .woocommerce-Price-amount {
	display: inline !important;
}

body.am-gift .am-gift-line__qty {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	flex: 0 0 auto;
}

body.am-gift .am-gift-line__minus,
body.am-gift .am-gift-line__plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.7rem;
	height: 1.7rem;
	padding: 0;
	border-radius: 999px;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
}

body.am-gift .am-gift-line__minus {
	border: 1px solid #d8cbb8;
	background: var(--am-white, #fff);
	color: var(--am-ink, #2c2c2c);
}

body.am-gift .am-gift-line__plus {
	border: 0;
	background: var(--am-ink, #2c2c2c);
	color: #fff;
}

body.am-gift .am-gift-line__minus:disabled,
body.am-gift .am-gift-line__plus:disabled,
body.am-gift .woosg-quantity-minus:disabled,
body.am-gift .woosg-quantity-plus:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

body.am-gift .am-gift-line__plus:disabled {
	background: #c5b9ac;
	color: #fff;
}

body.am-gift .am-gift-line__count {
	min-width: 0.85rem;
	text-align: center;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--am-ink, #2c2c2c);
}

body.am-gift .am-gift-line__remove {
	flex: 0 0 auto;
	padding: 0 0.15rem;
	border: 0;
	background: transparent;
	color: #9a9088;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}

body.am-gift .woosg-actions,
body.am-gift .woosg-quantity,
body.am-gift .am-gift-add {
	grid-area: actions;
}

body.am-gift .woosg-product .am-gift-actions {
	grid-area: actions;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.55rem;
	min-width: 0;
}

body.am-gift .woosg-product:not(.product-type-variable) .am-gift-actions {
	justify-content: flex-end;
}

body.am-gift .woosg-products .woosg-product .woosg-quantity,
body.am-gift .woosg-products .woosg-product .woosg-quantity.woosg-quantity-plus-minus {
	width: auto !important;
	flex: 0 0 auto !important;
}

body.am-gift .woosg-product:not(.is-in-basket) .woosg-quantity,
body.am-gift .woosg-product.product-type-variable .woosg-quantity {
	display: none !important;
}

body.am-gift .woosg-product:not(.product-type-variable).is-in-basket .am-gift-add {
	display: none;
}

body.am-gift .am-gift-add,
body.am-gift .woosg-quantity-minus,
body.am-gift .woosg-quantity-plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 2.7rem;
	height: 2.7rem;
	padding: 0 0.95rem;
	border: 1px solid var(--am-cream-deep, #f0e4d1);
	border-radius: 0.7rem;
	background: var(--am-white, #fff);
	color: var(--am-ink, #2c2c2c);
	font-family: var(--am-body, "DM Sans", ui-sans-serif, system-ui, sans-serif);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
}

body.am-gift .am-gift-add {
	background: var(--am-cream-soft, #f9f0e3);
	gap: 0.3rem;
}

body.am-gift .am-gift-add__plus {
	font-size: 1.05rem;
	font-weight: 500;
	line-height: 1;
}

body.am-gift .am-gift-add:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

@keyframes am-spin {
	to {
		transform: rotate(360deg);
	}
}

body.am-gift .am-gift-add.is-loading,
body.am-gift form.cart .single_add_to_cart_button.is-loading {
	position: relative;
	pointer-events: none;
	cursor: wait;
	opacity: 1;
	color: transparent !important;
}

body.am-gift .am-gift-add.is-loading > *,
body.am-gift form.cart .single_add_to_cart_button.is-loading > * {
	visibility: hidden;
}

body.am-gift .am-gift-add.is-loading::after,
body.am-gift form.cart .single_add_to_cart_button.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.05rem;
	height: 1.05rem;
	margin: -0.525rem 0 0 -0.525rem;
	border: 2px solid rgba(44, 44, 44, 0.22);
	border-top-color: #2c2c2c;
	border-radius: 50%;
	animation: am-spin 0.55s linear infinite;
}

body.am-gift form.cart .single_add_to_cart_button.is-loading::after {
	width: 1.15rem;
	height: 1.15rem;
	margin: -0.575rem 0 0 -0.575rem;
}

body.am-gift .woosg-quantity .am-qty-btn {
	display: none !important;
}

body.am-gift .woosg-quantity-input {
	display: flex;
	align-items: center;
	gap: 0.15rem;
}

body.am-gift .woosg-product .woosg-quantity .quantity {
	display: inline-flex !important;
	align-items: center;
	height: auto;
	padding: 0;
	border: 0;
	background: transparent;
}

body.am-gift .woosg-quantity input.qty,
body.am-gift .woosg-quantity input.woosg-qty {
	width: 2.7rem;
	height: 2.7rem;
	margin: 0;
	border: 1px solid var(--am-cream-deep, #f0e4d1);
	border-radius: 0.7rem;
	text-align: center;
	font-weight: 600;
}

body.am-gift .woosg-total {
	display: none !important;
}

body.am-gift .am-gift-summary {
	order: 3;
	width: 100%;
	margin: 1.15rem 0 0;
	padding: 1.05rem 0 0;
	border-top: 1px solid #efe6d8;
	list-style: none;
	box-sizing: border-box;
}

body.am-gift .am-gift-summary[hidden] {
	display: none !important;
}

body.am-gift .am-gift-summary__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1.25rem;
	margin: 0;
	font-family: var(--am-body, "DM Sans", ui-sans-serif, system-ui, sans-serif);
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--am-muted, #6b6560);
}

body.am-gift .am-gift-summary__row + .am-gift-summary__row {
	margin-top: 0.5rem;
}

body.am-gift .am-gift-summary__name {
	min-width: 0;
}

body.am-gift .am-gift-summary__price,
body.am-gift .am-gift-summary__price .woocommerce-Price-amount {
	flex: 0 0 auto;
	font-weight: 400;
	color: var(--am-muted, #6b6560);
}

body.am-gift .am-gift-summary__price .woocommerce-Price-amount {
	display: inline !important;
}

body.am-gift .am-gift-footer-total {
	order: 4;
	width: 100%;
	margin: 0.85rem 0 0.15rem;
	padding: 0;
	font-family: var(--am-body, "DM Sans", ui-sans-serif, system-ui, sans-serif);
	font-size: 1.45rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--am-ink, #2c2c2c);
}

body.am-gift .am-gift-footer-total .woocommerce-Price-amount {
	display: inline !important;
	font-weight: 600;
	color: var(--am-ink, #2c2c2c);
}

body.am-gift .am-gift-footer-total .am-product-tax {
	margin-left: 0.35rem;
	font-size: 0.85rem;
	font-weight: 400;
	color: var(--am-muted, #6b6560);
}

body.am-gift form.cart > .price,
body.am-gift form.cart > .quantity {
	display: none !important;
}

body.am-gift form.cart .single_add_to_cart_button.woosg-disabled,
body.am-gift form.cart .single_add_to_cart_button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

body.am-gift .ppc-button-wrapper {
	position: relative;
	z-index: 1;
	isolation: isolate;
	margin-top: 0.85rem;
}

body.am-gift .am-product-pills {
	margin-top: 1.25rem;
}

body.am-gift .am-product-aftercart {
	margin-bottom: 0.25rem;
}

.am-gift-archive-banner {
	margin: 0 0 1.75rem;
	padding: 1.5rem 1.4rem;
	border-radius: 1.15rem;
	background: var(--am-cream-soft, #f9f0e3);
	border: 1px solid var(--am-cream-deep, #f0e4d1);
}

.am-gift-archive-banner__kicker {
	margin: 0 0 0.35rem;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--am-gold, #d4a843);
}

.am-gift-archive-banner__title {
	margin: 0 0 0.45rem;
	font-family: var(--am-heading, "DM Serif Display", Georgia, serif);
	font-size: 1.7rem;
}

.am-gift-archive-banner__text {
	margin: 0 0 1rem;
	color: var(--am-muted, #6b6560);
}

.am-gift-archive-banner__btn {
	display: inline-flex;
	align-items: center;
	height: 2.8rem;
	padding: 0 1.2rem;
	border-radius: 0.8rem;
	background: var(--am-tan, #cba98a);
	color: var(--am-ink, #2c2c2c);
	font-weight: 600;
}
