/* Subscription Checkout Helper frontend notices. */
.woocommerce-info:has(.lsch-notice),
.woocommerce-message:has(.lsch-notice),
.woocommerce-error:has(.lsch-notice) {
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

.woocommerce-info:has(.lsch-notice)::before,
.woocommerce-message:has(.lsch-notice)::before,
.woocommerce-error:has(.lsch-notice)::before {
	display: none !important;
}

.lsch-notice {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	box-sizing: border-box;
	padding: 24px 28px;
	border-left: 5px solid #39b824;
	border-radius: 8px;
	background: #f4faF2;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.lsch-notice__content {
	display: flex;
	flex: 1 1 420px;
	min-width: 0;
	flex-direction: column;
	gap: 6px;
}

.lsch-notice__title,
.lsch-notice__text,
.lsch-notice__link {
	display: block;
	margin: 0;
	line-height: 1.45;
}

.lsch-notice__title {
	font-size: 1.15em;
	color: #283548;
}

.lsch-notice__text {
	color: #374151;
}

.lsch-notice__link {
	margin-top: 4px;
	font-size: 0.95em;
	color: #4b5563;
}

.lsch-notice__link a {
	font-weight: 600;
	color: #237d17;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lsch-notice__actions {
	display: flex;
	flex: 0 1 auto;
	align-items: stretch;
	justify-content: flex-end;
	gap: 12px;
	min-width: 0;
}

.woocommerce .lsch-notice .lsch-button,
.lsch-notice .lsch-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0 !important;
	padding: 10px 18px !important;
	border: 2px solid #39b824 !important;
	border-radius: 6px !important;
	white-space: normal;
	text-align: center;
	line-height: 1.25 !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

.woocommerce .lsch-notice .lsch-button--primary,
.lsch-notice .lsch-button--primary {
	background: #39b824 !important;
	color: #fff !important;
}

.woocommerce .lsch-notice .lsch-button--secondary,
.lsch-notice .lsch-button--secondary {
	background: #fff !important;
	color: #2f9f1d !important;
}

.woocommerce .lsch-notice .lsch-button:hover,
.woocommerce .lsch-notice .lsch-button:focus,
.lsch-notice .lsch-button:hover,
.lsch-notice .lsch-button:focus {
	filter: brightness(0.95);
}

@media (max-width: 900px) {
	.lsch-notice {
		align-items: stretch;
		flex-direction: column;
		gap: 18px;
	}

	.lsch-notice__actions {
		flex-wrap: wrap;
		justify-content: flex-start;
	}
}

@media (max-width: 560px) {
	.lsch-notice {
		padding: 20px;
	}

	.lsch-notice__actions {
		flex-direction: column;
	}

	.woocommerce .lsch-notice .lsch-button,
	.lsch-notice .lsch-button {
		width: 100%;
		box-sizing: border-box;
	}
}
