/* Store notice redesign — The Home Store Cabo */

:root {
	--thsc-notice-orange: #c56102;
	--thsc-notice-orange-bright: #ff7b00;
	--thsc-notice-ink: #2f2a26;
	--thsc-notice-muted: #5c534c;
	--thsc-notice-surface: #fff8f1;
	--thsc-notice-surface-end: #f7efe4;
	--thsc-notice-border: rgba(197, 97, 2, 0.22);
}

.woocommerce-store-notice.thsc-store-notice,
p.demo_store.thsc-store-notice {
	position: fixed;
	top: auto;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	margin: 0;
	padding: 0;
	z-index: 99998;
	box-shadow: 0 -8px 28px rgba(47, 42, 38, 0.12);
	border: 0;
	border-top: 1px solid var(--thsc-notice-border);
	background:
		linear-gradient(90deg, rgba(197, 97, 2, 0.12), transparent 42%),
		linear-gradient(180deg, var(--thsc-notice-surface) 0%, var(--thsc-notice-surface-end) 100%);
	color: var(--thsc-notice-ink);
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
	overflow: hidden;
	animation: thsc-notice-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.woocommerce-store-notice.thsc-store-notice::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 4px;
	background: linear-gradient(180deg, var(--thsc-notice-orange-bright), var(--thsc-notice-orange));
}

.admin-bar .woocommerce-store-notice.thsc-store-notice {
	top: auto;
	bottom: 0;
}

.thsc-store-notice__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 20px 12px 24px;
}

.thsc-store-notice__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(197, 97, 2, 0.12);
	color: var(--thsc-notice-orange);
	animation: thsc-notice-pulse 2.4s ease-in-out infinite;
}

.thsc-store-notice__content {
	flex: 1 1 auto;
	min-width: 0;
}

.thsc-store-notice__label {
	display: block;
	margin: 0 0 2px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--thsc-notice-orange);
}

.thsc-store-notice__message {
	margin: 0;
	color: var(--thsc-notice-muted);
	font-size: 14px;
	font-weight: 500;
}

.thsc-store-notice__dismiss,
.woocommerce-store-notice.thsc-store-notice a.woocommerce-store-notice__dismiss-link {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	padding: 8px 12px;
	border: 1px solid var(--thsc-notice-border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: var(--thsc-notice-ink) !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none !important;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.thsc-store-notice__dismiss:hover,
.thsc-store-notice__dismiss:focus-visible,
.woocommerce-store-notice.thsc-store-notice a.woocommerce-store-notice__dismiss-link:hover,
.woocommerce-store-notice.thsc-store-notice a.woocommerce-store-notice__dismiss-link:focus-visible {
	background: #fff;
	border-color: var(--thsc-notice-orange);
	color: var(--thsc-notice-orange) !important;
	transform: translateY(-1px);
	outline: none;
}

.thsc-store-notice__dismiss-icon {
	display: inline-flex;
	line-height: 0;
}

@keyframes thsc-notice-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes thsc-notice-pulse {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(197, 97, 2, 0.18);
	}
	50% {
		box-shadow: 0 0 0 8px rgba(197, 97, 2, 0);
	}
}

@media (max-width: 767px) {
	.thsc-store-notice__inner {
		align-items: flex-start;
		gap: 12px;
		padding: 14px 14px 14px 18px;
	}

	.thsc-store-notice__icon {
		width: 32px;
		height: 32px;
	}

	.thsc-store-notice__message {
		font-size: 13px;
	}

	.thsc-store-notice__dismiss-text {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		border: 0;
	}

	.thsc-store-notice__dismiss,
	.woocommerce-store-notice.thsc-store-notice a.woocommerce-store-notice__dismiss-link {
		padding: 8px;
		border-radius: 50%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.woocommerce-store-notice.thsc-store-notice,
	.thsc-store-notice__icon,
	.thsc-store-notice__dismiss {
		animation: none;
		transition: none;
	}
}
