/** Keep YITH's live preview and fields inside Haystack's product layout. */
.single-product.haystack-gift-certificate div.product .woocommerce-product-gallery {
	padding: clamp(28px, 5vw, 72px);
}
.haystack-gift-certificate .woocommerce-product-gallery__wrapper {
	max-width: 440px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #deded9;
	box-shadow: none !important;
}
.haystack-gift-certificate .woocommerce-product-gallery__image {
	padding: 32px 24px 16px !important;
}
.haystack-gift-certificate .woocommerce-product-gallery__image a {
	display: block;
}
.haystack-gift-certificate .woocommerce-product-gallery__image img {
	display: block;
	width: 100% !important;
	max-width: 100%;
	height: auto !important;
	margin: 0 auto;
}
.haystack-gift-certificate .woocommerce-product-gallery__trigger {
	display: none;
}
.haystack-gift-certificate .ywgc-main-form-preview-container {
	min-height: 0;
	padding: 20px 28px 28px;
	box-shadow: none;
	font-family: "Area Normal", sans-serif;
	font-size: 14px;
	line-height: 1.6;
	overflow-wrap: anywhere;
}
.haystack-gift-certificate .ywgc-form-preview-title-container {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
}
.haystack-gift-certificate .ywgc-form-preview-title-container::after,
.haystack-gift-certificate .ywgc-form-preview-title-container::before {
	display: none;
}
.haystack-gift-certificate .ywgc-form-preview-title {
	font-size: 16px;
	font-weight: 400;
}
.haystack-gift-certificate .ywgc-form-preview-amount {
	float: none;
	color: #111;
	font-size: 20px;
	font-weight: 400;
}
.haystack-gift-certificate .ywgc-form-preview-message {
	white-space: pre-wrap;
	margin: 16px 0 0;
}
.haystack-gift-certificate .summary > .price {
	display: flex !important;
	flex-direction: row;
	align-items: baseline;
	gap: 6px;
	color: #111;
	margin: 12px 0 20px;
}
.haystack-gift-certificate .woocommerce-product-details__short-description {
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 24px;
}
.haystack-gift-certificate .summary form.gift-cards_form {
	margin: 0;
}
.haystack-gift-certificate .gift-cards-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 28px;
}
.haystack-gift-certificate form.gift-cards_form h3 {
	color: #111;
	font-family: "Area Normal", sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .06em;
	text-transform: uppercase;
	margin: 0 0 14px;
}
.haystack-gift-certificate .gift-cards-list h3 {
	grid-column: 1 / -1;
	margin-bottom: 4px;
}
.haystack-gift-certificate button.ywgc-amount-buttons {
	width: 100%;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 10px 8px;
	border: 1px solid #aaa;
	border-radius: 0;
	background: #fff;
	color: #111;
	font-family: "Area Normal", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}
.haystack-gift-certificate button.ywgc-amount-buttons.selected_button,
.haystack-gift-certificate button.ywgc-amount-buttons:hover {
	border-color: #111;
	background: #111;
	color: #fff;
}
.haystack-gift-certificate button.ywgc-amount-buttons:focus-visible,
.haystack-gift-certificate .gift-card-content-editor input:focus-visible,
.haystack-gift-certificate .gift-card-content-editor textarea:focus-visible {
	outline: 2px solid #007f82;
	outline-offset: 3px;
}
.haystack-gift-certificate .gift-card-content-editor.step-content h5 {
	font-family: "Area Normal", sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .06em;
	margin: 24px 0 14px;
}
.haystack-gift-certificate .gift-card-content-editor.step-content h5:first-child {
	margin-top: 0;
}
.haystack-gift-certificate .gift-card-content-editor.step-content label {
	display: block;
	width: 100%;
	margin: 0 0 6px;
	font-size: 13px;
	line-height: 1.4;
	text-align: left;
}
.haystack-gift-certificate .gift-card-content-editor.step-content input,
.haystack-gift-certificate .gift-card-content-editor.step-content textarea {
	box-sizing: border-box;
	display: block;
	float: none;
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #aaa;
	border-radius: 0;
	background: #fff;
	color: #111;
	font-family: "Area Normal", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	box-shadow: none;
}
.haystack-gift-certificate .gift-card-content-editor.step-content textarea {
	min-height: 104px;
	resize: vertical;
}
.haystack-gift-certificate .ywgc-single-recipient > div,
.haystack-gift-certificate .ywgc-sender-name {
	margin-bottom: 16px;
}
.haystack-gift-certificate .gift_card_template_button {
	margin-top: 24px;
}
.haystack-gift-certificate .summary .single_add_to_cart_button {
	float: none;
	width: 100%;
}
/* Delivery is already explained beside the form. */
.haystack-gift-certificate .woocommerce-tabs {
	display: none;
}
@media (max-width: 900px) {
 .single-product.haystack-gift-certificate div.product .woocommerce-product-gallery {
	padding: 28px 20px;
}
 .haystack-gift-certificate .woocommerce-product-gallery__image {
	padding-top: 24px !important;
}
 .haystack-gift-certificate .woocommerce-product-gallery__image img {
	width: 96px !important;
}
 .haystack-gift-certificate .ywgc-main-form-preview-container {
	padding: 16px 20px 20px;
}
 .haystack-gift-certificate .summary > .price {
	margin-bottom: 16px;
}
}
/* Match WooCommerce's selector weight for the stock gallery and price rules. */
.single-product.haystack-gift-certificate.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
	margin: 0 auto;
}
.single-product.haystack-gift-certificate.woocommerce div.product p.price {
	color: #111;
}
.haystack-gift-certificate .ywgc-form-preview-separator {
	display: none;
}
