/**
 * Pricing Guarantee Shortcode Styles
 *
 * Styles for the money-back guarantee section on pricing pages.
 *
 * @package Core
 * @since <next-version>
 */

/* Wrapper Background Split - White top 50%, Cream bottom 50% */
.guarantee-wrapper {
	background: linear-gradient(to bottom, #ffffff 50%, #F8F3E3 50%);
}

/* Minimal mode - keep background white */
.guarantee-wrapper:has(.edd-pricing-guarantee--minimal) {
	background: #ffffff;
}

/* Remove SeedProd shortcode wrapper padding */
.guarantee-wrapper .sp-shortcode-wrapper {
	padding: 0 !important;
}

/* CSS Custom Properties */
.edd-pricing-guarantee {
	--edd-guarantee-heading-color: #171717;
	--edd-guarantee-text-color: #292929;
	--edd-guarantee-attribution-color: #262626;
	--edd-guarantee-disclaimer-color: #4B5563;
	--edd-guarantee-border-color: #E5E5E5;
	--edd-guarantee-font-serif: 'IBM Plex Serif', Georgia, serif;
	--edd-guarantee-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--edd-guarantee-font-general: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Main Container */
.edd-pricing-guarantee {
	position: relative;
	width: 100%;
	background: #ffffff;
}

/* Content Area - Badge + Main Text */
.edd-pricing-guarantee__content {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	padding: 39px 48px 40px;
	position: relative;
	background: #ffffff;
}

/* Badge */
.edd-pricing-guarantee__badge {
	flex-shrink: 0;
	width: 117px;
	height: 116px;
}

.edd-pricing-guarantee__badge img {
	display: block;
	width: 100%;
	height: auto;
}

/* Main Content Area */
.edd-pricing-guarantee__main {
	flex: 1;
	max-width: 895px;
}

/* Heading */
.edd-pricing-guarantee__heading {
	font-family: var(--edd-guarantee-font-serif);
	font-size: 28px;
	font-weight: 500;
	line-height: 36px;
	color: var(--edd-guarantee-heading-color);
	margin: 0 0 13px;
}

/* Description */
.edd-pricing-guarantee__description {
	font-family: var(--edd-guarantee-font-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: var(--edd-guarantee-text-color);
	margin: 0 0 20px;
}

/* Signature Block */
.edd-pricing-guarantee__signature-block {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.edd-pricing-guarantee__signature {
	display: block;
	width: 157px;
	height: auto;
}

.edd-pricing-guarantee__attribution {
	font-family: var(--edd-guarantee-font-general);
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: 0.25px;
	color: var(--edd-guarantee-attribution-color);
	margin: 0;
}

/* Footer */
.edd-pricing-guarantee__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	padding: 39px 40px;
	border-top: 1px solid var(--edd-guarantee-border-color);
	background: #ffffff;
}

/* Disclaimer */
.edd-pricing-guarantee__disclaimer {
	flex: 1;
	max-width: 520px;
}

.edd-pricing-guarantee__disclaimer p {
	font-family: var(--edd-guarantee-font-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 18px;
	color: var(--edd-guarantee-disclaimer-color);
	margin: 0;
}

.edd-pricing-guarantee__disclaimer p + p {
	margin-top: 4px;
}

/* Payment Icons */
.edd-pricing-guarantee__payment-icons {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.edd-pricing-guarantee__payment-icon {
	display: block;
	width: 50px;
	height: 31px;
	object-fit: contain;
}

/* Responsive Styles */
@media (max-width: 1024px) {
	.edd-pricing-guarantee__content {
		padding: 30px;
		gap: 30px;
	}

	.edd-pricing-guarantee__footer {
		padding: 30px;
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.edd-pricing-guarantee__disclaimer {
		max-width: 100%;
	}

	.edd-pricing-guarantee__payment-icons {
		flex-wrap: wrap;
	}
}

@media (max-width: 768px) {
	.edd-pricing-guarantee__content {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 30px 20px;
	}

	.edd-pricing-guarantee__badge {
		transform: rotate(-19deg);
	}

	.edd-pricing-guarantee__main {
		max-width: 100%;
	}

	.edd-pricing-guarantee__heading {
		font-size: 24px;
		line-height: 32px;
	}

	.edd-pricing-guarantee__signature-block {
		align-items: center;
	}

	.edd-pricing-guarantee__attribution {
		text-align: center;
	}

	.edd-pricing-guarantee__footer {
		padding: 24px 20px;
		text-align: center;
	}

	.edd-pricing-guarantee__disclaimer {
		text-align: center;
	}

	.edd-pricing-guarantee__payment-icons {
		justify-content: center;
		width: 100%;
	}
}

@media (max-width: 480px) {
	.edd-pricing-guarantee__heading {
		font-size: 22px;
		line-height: 28px;
	}

	.edd-pricing-guarantee__description {
		font-size: 15px;
	}

	.edd-pricing-guarantee__payment-icon {
		width: 40px;
		height: 25px;
	}
}
