/**
 * پیام‌های ووکامرس — استایل کوش
 */

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-NoticeGroup .woocommerce-message,
.woocommerce .woocommerce-message,
.woocommerce-page .woocommerce-message,
.kowsh-cart-page .woocommerce-message,
.kowsh-account .woocommerce-message,
.kowsh-p .woocommerce-message,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-account .woocommerce-message,
.woocommerce-message {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px 14px !important;
	position: relative !important;
	width: 100%;
	margin: 0 0 16px !important;
	padding: 14px 16px !important;
	border: 0 !important;
	border-radius: 16px !important;
	background: #fff1e2 !important;
	color: #1a1a1a !important;
	font-family: var(--kowsh-font-family-primary, inherit) !important;
	font-size: 0.92rem !important;
	font-weight: 600;
	line-height: 1.7 !important;
	text-align: start !important;
	list-style: none !important;
	box-shadow: 0 0 0 1px rgba(158, 11, 15, 0.14) !important;
	word-break: break-word;
}

.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-NoticeGroup .woocommerce-info,
.woocommerce .woocommerce-info,
.woocommerce-page .woocommerce-info,
.kowsh-cart-page .woocommerce-info,
.kowsh-account .woocommerce-info,
.kowsh-p .woocommerce-info,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-account .woocommerce-info,
.woocommerce-info {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 10px 14px !important;
	margin: 0 0 16px !important;
	padding: 14px 16px !important;
	border: 0 !important;
	border-radius: 16px !important;
	background: #fff !important;
	color: #1a1a1a !important;
	font-family: var(--kowsh-font-family-primary, inherit) !important;
	font-size: 0.92rem !important;
	line-height: 1.7 !important;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
}

.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-NoticeGroup .woocommerce-error,
.woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-error,
.kowsh-cart-page .woocommerce-error,
.kowsh-account .woocommerce-error,
.kowsh-p .woocommerce-error,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-account .woocommerce-error,
.woocommerce-error {
	margin: 0 0 16px !important;
	padding: 14px 16px !important;
	border: 0 !important;
	border-radius: 16px !important;
	background: #fff6f5 !important;
	color: #7a0809 !important;
	font-family: var(--kowsh-font-family-primary, inherit) !important;
	font-size: 0.92rem !important;
	line-height: 1.7 !important;
	list-style: none !important;
	box-shadow: 0 0 0 1px rgba(158, 11, 15, 0.16) !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce-message::after,
.woocommerce-info::after,
.woocommerce-error::after,
body.woocommerce-cart .woocommerce-message::before,
body.woocommerce-checkout .woocommerce-message::before,
body.woocommerce-account .woocommerce-message::before,
.kowsh-p .woocommerce-message::before {
	content: none !important;
	display: none !important;
	font: 0/0 a !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button,
.woocommerce-message a.button,
.woocommerce-message .restore-item,
body.woocommerce-cart .woocommerce-message .button,
body.woocommerce-cart .restore-item {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	float: none !important;
	order: 2;
	flex: 0 0 auto;
	min-height: 38px !important;
	margin: 0 !important;
	margin-inline-start: auto !important;
	padding: 0 14px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: #9e0b0f !important;
	color: #fff !important;
	font-family: inherit !important;
	font-size: 0.82rem !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	white-space: nowrap;
}

.woocommerce-message .button:hover,
.woocommerce-message a.button:hover,
body.woocommerce-cart .woocommerce-message .button:hover {
	background: #7a0809 !important;
	color: #fff !important;
}

.woocommerce-info .button,
.woocommerce-error .button {
	background: #fff !important;
	color: #1a1a1a !important;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) !important;
}

@media (max-width: 640px) {
	.woocommerce-message,
	.woocommerce-info,
	.woocommerce-error {
		flex-direction: column !important;
		align-items: stretch !important;
		padding: 12px !important;
		font-size: 0.86rem !important;
	}

	.woocommerce-message .button,
	.woocommerce-info .button,
	.woocommerce-error .button,
	.woocommerce-message a.button {
		width: 100% !important;
		min-height: 42px !important;
		margin-inline-start: 0 !important;
	}
}
