/**
 * WooCommerce add-to-cart success notice — Kadence-aligned, conversion-focused.
 */

.woocommerce-notices-wrapper .woocommerce-message {
	position: relative;
	margin: 0 0 16px;
	padding: 14px 16px;
	border: 1px solid #d8e4f5;
	border-left: 4px solid #1f4d92;
	border-radius: 14px;
	background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
	color: #0f172a;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
	line-height: 1.45;
}

.woocommerce-notices-wrapper .woocommerce-message::before {
	display: none;
}

/* Structured copy: title + products + actions */
.woocommerce-notices-wrapper .erm-atc-notice__inner {
	display: block;
}

.woocommerce-notices-wrapper .erm-atc-notice__title {
	display: block;
	font-weight: 700;
	font-size: 1.02rem;
	margin-bottom: 4px;
	color: #0f172a;
}

.woocommerce-notices-wrapper .erm-atc-notice__products {
	display: block;
	font-size: 0.92rem;
	color: #475569;
	margin-bottom: 10px;
}

.woocommerce-notices-wrapper .erm-atc-notice__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
}

/* Buttons */
.woocommerce-notices-wrapper .woocommerce-message .button.wc-forward {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	float: none;
	margin: 0;
	padding: 8px 14px;
	border: 0;
	border-radius: 10px;
	background: #1f4d92;
	color: #ffffff;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 8px 18px rgba(31, 77, 146, 0.24);
	transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.woocommerce-notices-wrapper .woocommerce-message .button.wc-forward:hover,
.woocommerce-notices-wrapper .woocommerce-message .button.wc-forward:focus {
	background: #173e75;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(31, 77, 146, 0.3);
}

.woocommerce-notices-wrapper .woocommerce-message .button.erm-checkout-btn {
	background: #0f172a;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
}

.woocommerce-notices-wrapper .woocommerce-message .button.erm-checkout-btn:hover,
.woocommerce-notices-wrapper .woocommerce-message .button.erm-checkout-btn:focus {
	background: #1e293b;
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.3);
}

.woocommerce-notices-wrapper.erm-atc-notice--flash .woocommerce-message {
	animation: erm-atc-pulse 0.5s ease-out;
}

@keyframes erm-atc-pulse {
	0% {
		box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
	}
	40% {
		box-shadow: 0 8px 28px rgba(31, 77, 146, 0.35);
	}
	100% {
		box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
	}
}

@media (max-width: 680px) {
	.woocommerce-notices-wrapper .woocommerce-message {
		padding: 12px 14px;
	}

	.woocommerce-notices-wrapper .erm-atc-notice__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.woocommerce-notices-wrapper .woocommerce-message .button.wc-forward {
		width: 100%;
		justify-content: center;
	}
}
