/* is-postcard - Start */
.product-box--certificate .gallery-top .swiper-slide.is-postcard {
	transform: perspective(1600px) rotateY(0deg);
	transform-style: preserve-3d;
	transition: transform 1s cubic-bezier(0.3, 1.25, 0.5, 1);
	cursor: pointer;
}
.product-box--certificate .gallery-top .swiper-slide.is-postcard.is-flipped {
	transform: perspective(1600px) rotateY(180deg);
}
.product-box--certificate .gallery-top .swiper-slide.is-postcard > * {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}
.product-box--certificate .gallery-top .swiper-slide.is-postcard img {
	cursor: pointer;
}
.product-box--certificate .gallery-top .product-tags-or-badges {
	transition: opacity var(--motion-base) var(--motion-ease);
}
.product-box--certificate .gallery-top:has(.is-flipped) .product-tags-or-badges {
	opacity: 0;
}
.product-box--certificate .cert-postcard-flip {
	position: absolute;
	inset-inline-start: 30px;
	bottom: 30px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid var(--light-gray);
	border-radius: var(--radius-pill);
	background: var(--white);
	color: var(--primary);
	font-size: 18px;
	line-height: 22px;
	cursor: pointer;
}
.product-box--certificate .gallery-top .cert-postcard-back {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 50px;
	background: linear-gradient(135deg, var(--primary) 0%, var(--black) 100%);
	color: var(--white);
	transform: rotateY(180deg);
}
.cert-postcard-label {
	font-size: 20px;
	line-height: 24px;
	color: color-mix(in srgb, var(--white) 75%, transparent);
}
.product-box--certificate .cert-postcard-sum {
	font-family: var(--font-family-2);
	font-size: 72px;
	line-height: 1;
}
.cert-postcard-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	font-size: 20px;
	line-height: 24px;
}
@media (max-width: 1279px) {
	.product-box--certificate .cert-postcard-flip {
		inset-inline-start: 15px;
		bottom: 15px;
		padding: 8px 14px;
		font-size: 16px;
		line-height: 19px;
	}
	.product-box--certificate .gallery-top .cert-postcard-back {
		padding: 24px;
	}
	.product-box--certificate .cert-postcard-sum {
		font-size: 44px;
	}
	.cert-postcard-label,
	.cert-postcard-meta {
		font-size: 16px;
		line-height: 19px;
	}
}
/* is-postcard - End */

/* cert-postcards - Start */
.cert-postcards {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
	width: 100%;
	max-width: 684px;
}
.cert-postcards-title {
	text-align: center;
}
.cert-postcards-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	width: 100%;
}
.cert-postcard {
	position: relative;
	width: 320px;
	max-width: 100%;
	aspect-ratio: 1.6;
	perspective: 1400px;
	cursor: pointer;
}
.cert-postcard-inner {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
	transition: transform 1s cubic-bezier(0.3, 1.25, 0.5, 1);
}
.cert-postcard.is-flipped .cert-postcard-inner {
	transform: rotateY(180deg);
}
.cert-postcard-face {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: var(--radius-large);
	box-shadow: var(--shadow-soft);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}
.cert-postcard-front {
	background: var(--light-gray);
}
.cert-postcard-front img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cert-postcard .cert-postcard-back {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 20px 24px;
	background: linear-gradient(135deg, var(--primary) 0%, var(--black) 100%);
	color: var(--white);
	text-align: start;
	transform: rotateY(180deg);
}
.cert-postcard .cert-postcard-label {
	font-size: 16px;
	line-height: 19px;
}
.cert-postcard-code-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.cert-postcard-code {
	font-size: 26px;
	line-height: 30px;
	font-weight: 600;
	letter-spacing: 2px;
}
.cert-postcard-note {
	font-size: 20px;
	line-height: 24px;
}
.cert-postcard .cert-postcard-meta {
	font-size: 16px;
	line-height: 19px;
}
.thank-you-section-woo .cert-postcard .copy-button {
	flex: none;
	background: var(--white);
}
.cert-spark {
	position: absolute;
	inset-inline-start: 50%;
	top: 50%;
	z-index: 3;
	color: var(--primary);
	font-size: 18px;
	font-style: normal;
	line-height: 1;
	pointer-events: none;
}
@media (max-width: 1279px) {
	.cert-postcards {
		width: min(684px, calc(100% - 15px));
		gap: 20px;
	}
	.cert-postcard {
		width: 300px;
	}
	.cert-postcard-code {
		font-size: 22px;
		line-height: 26px;
	}
	.cert-postcard-note {
		font-size: 18px;
		line-height: 22px;
	}
}
/* cert-postcards - End */
