/**
 * Site notice, between the menu and the page (inc/site-notice.php).
 *
 * Drawn after WooCommerce's own notices, a tinted band with an accent rule,
 * so it reads as a store message rather than as an advert.
 */

.pctmart-site-notice {
	--pctmart-notice-accent: var(--pct-brand-deep);
	--pctmart-notice-tint: var(--pct-brand-tint);
	border-bottom: 1px solid #e4e7ec;
	background: var(--pctmart-notice-tint);
	color: #1d2327;
	font-size: 14px;
	line-height: 1.5;
}

.pctmart-site-notice.is-warning {
	--pctmart-notice-accent: #b54708;
	--pctmart-notice-tint: #fef6e7;
}

.pctmart-site-notice.is-success {
	--pctmart-notice-accent: #067647;
	--pctmart-notice-tint: #ecfdf3;
}

.pctmart-site-notice.is-error {
	--pctmart-notice-accent: #b42318;
	--pctmart-notice-tint: #fef3f2;
}

.pctmart-site-notice-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.pctmart-site-notice-icon {
	display: inline-flex;
	flex: 0 0 auto;
	color: var(--pctmart-notice-accent);
}

.pctmart-site-notice-text {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.pctmart-site-notice-text a {
	color: var(--pctmart-notice-accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* 40px square: big enough to hit on a phone without a second try. */
.pctmart-site-notice-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	margin: -8px -8px -8px 0;
	border-radius: 50%;
	color: #475467;
}

.pctmart-site-notice-close:hover,
.pctmart-site-notice-close:focus-visible {
	background: rgba(16, 24, 40, 0.06);
	color: #1d2327;
}

@media (max-width: 600px) {
	.pctmart-site-notice {
		font-size: 13px;
	}

	.pctmart-site-notice-inner {
		align-items: flex-start;
		gap: 10px;
	}
}
