/**
 * IvyForms promo banner — matches Figma Promo-Campaigns (node 3332:9201).
 */

.wpdt-ivyforms-promo-notice {
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 12px 0 4px !important;
	border-left: none !important;
	overflow: visible !important;
	background: rgba(93, 211, 255, 0.20);
}

.wpdt-ivyforms-promo-notice .notice-dismiss {
	display: none !important;
}

.wpdt-ivyforms-promo-outer {
	border: none;
	box-sizing: border-box;
	padding: 0;
}

.wpdt-ivyforms-promo-card {
	position: relative;
	box-sizing: border-box;
	border-radius: 8px;
	border: 1px solid #dcdcde;
	box-shadow: 0 1px 1px rgba( 0, 0, 0, 0.04 );
	min-height: 218px;
	overflow: visible;
}

.wpdt-ivyforms-promo-row {
	display: flex;
	align-items: stretch;
	gap: 14px;
	box-sizing: border-box;
	flex: 1 1 auto;
	min-width: 0;
	padding: 0 112px 0 16px;
}

.wpdt-ivyforms-promo-accent {
	flex: 0 0 6px;
	width: 6px;
	align-self: stretch;
	background: #008cff;
	border-radius: 7px;
	min-height: 1px;
	margin: 2px 0;
}

.wpdt-ivyforms-promo-content {
	display: flex;
	align-items: flex-end;
	flex: 1 1 auto;
	gap: 28px;
	min-width: 0;
}

.wpdt-ivyforms-promo-left {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 640px;
}

.wpdt-ivyforms-promo-kicker-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
}

.wpdt-ivyforms-promo-mark {
	display: block;
	flex-shrink: 0;
	width: 21px;
	height: 23px;
	object-fit: contain;
	transform: translateY( 3px );
}

.wpdt-ivyforms-promo-kicker {
	margin: unset !important;
	font-family: Inter;
	font-size: 13px;
	line-height: 1.25;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #50575e;
}

.wpdt-ivyforms-promo-title {
	margin: 0 0 12px;
	font-family: Inter;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 600;
	color: #1d2327;
}

.wpdt-ivyforms-promo-subtitle {
	margin: 0 0 20px;
	font-family: Inter;
	font-size: 15px;
	line-height: 20px;
	font-weight: 400;
	color: #2c3338;
	max-width: 560px;
}

.wpdt-ivyforms-promo-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

.wpdt-ivyforms-promo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	font-family: Inter;
	font-size: 13px;
	line-height: 1.3;
	font-weight: 600;
	border-radius: 10px;
	text-decoration: none;
	cursor: pointer;
	padding: 10px 14px;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.wpdt-ivyforms-promo-btn-primary {
	background: #139aff;
	color: #fff !important;
	border: 1px solid #139aff;
}

.wpdt-ivyforms-promo-btn-primary:hover:not( :disabled ),
.wpdt-ivyforms-promo-btn-primary:focus:not( :disabled ) {
	background: #0f8ae6;
	border-color: #0f8ae6;
	color: #fff;
}

.wpdt-ivyforms-promo-btn-primary:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.wpdt-ivyforms-promo-btn-secondary {
	background: #fff;
	color: #139aff;
	border: 1px solid #a1d4fa;
}

.wpdt-ivyforms-promo-btn-secondary:hover,
.wpdt-ivyforms-promo-btn-secondary:focus {
	background: #f0f6ff;
	color: #0f8ae6;
	border-color: #7ec4f9;
}

.wpdt-ivyforms-promo-install-status {
	font-size: 13px;
	color: #50575e;
	width: 100%;
	flex-basis: 100%;
}

.wpdt-ivyforms-promo-visual {
	flex: 0 0 auto;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	padding: 0;
	min-width: 0;
	margin-top: 14px;
}

.wpdt-ivyforms-promo-mockup {
	display: block;
	width: 322px;
	max-width: min( 322px, 100% );
	height: auto;
}

.wpdt-ivyforms-promo-integration {
	position: absolute;
	right: 24px;
	bottom: 20px;
	width: 129px;
	max-width: min( 129px, 36vw );
	height: auto;
	display: block;
	pointer-events: none;
	z-index: 2;
}

.wpdt-ivyforms-promo-dismiss {
	position: absolute;
	top: 12px;
	right: 16px;
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-start;
	gap: 8px;
	z-index: 4;
	align-items: center;
}

.wpdt-ivyforms-promo-close {
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	line-height: 1;
	color: #1d2327;
	border-radius: 2px;
}

.wpdt-ivyforms-promo-close:hover,
.wpdt-ivyforms-promo-close:focus {
	color: #000;
	background: rgba( 0, 0, 0, 0.04 );
	outline: none;
}

.wpdt-ivyforms-promo-close-x {
	display: flex;
	width: 30px;
	height: 30px;
	padding: 6px 6px 6px 7px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;
	border-radius: 5px;
	border: 1px solid #FFF;
	background: rgba(255, 255, 255, 0.50);
	color: #000;
	font-family: Inter;
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
}

.wpdt-ivyforms-promo-never {
	display: flex;
	padding: 6px 6px 6px 7px;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 10px;
	align-self: stretch;
	border-radius: 5px;
	border: 1px solid #FFF;
	background: rgba(255, 255, 255, 0.50);
	color: #000;
	font-family: Inter;
	font-size: 12px;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
}

.wpdt-ivyforms-promo-never:hover,
.wpdt-ivyforms-promo-never:focus {
	color: #0a4b78;
}

@media ( max-width: 1100px ) {
	.wpdt-ivyforms-promo-mockup {
		max-width: min( 280px, 100% );
	}
}

@media ( max-width: 900px ) {
	.wpdt-ivyforms-promo-row {
		flex-direction: column;
		align-items: flex-start;
		padding: 18px 18px 56px;
		gap: 16px;
		border-top: 6px solid #008cff;
	}

	.wpdt-ivyforms-promo-accent {
		display: none;
	}

	.wpdt-ivyforms-promo-content {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		width: 100%;
	}

	.wpdt-ivyforms-promo-visual {
		align-self: center;
		margin-top: 0;
	}

	.wpdt-ivyforms-promo-mockup {
		max-width: 280px;
		width: 100%;
	}

	.wpdt-ivyforms-promo-integration {
		right: 12px;
		bottom: 52px;
		max-width: min( 129px, 40vw );
	}

	.wpdt-ivyforms-promo-dismiss {
		top: auto;
		bottom: 10px;
		right: 12px;
		flex-direction: column;
		align-items: flex-end;
		gap: 2px;
		height: 30px;
	}
}

@media ( max-width: 600px ) {
	.wpdt-ivyforms-promo-title {
		font-size: 22px;
	}
}
