.wcvn-top-bar,
.wcvn-checkout-notice {
	box-sizing: border-box;
	color: var(--wcvn-text, #3d3314);
	font-family: inherit;
}

.wcvn-top-bar[hidden],
.wcvn-checkout-notice[hidden] {
	display: none !important;
}

.wcvn-top-bar {
	position: relative;
	z-index: 99999;
	width: 100%;
	margin: 0;
	border: 0;
	border-bottom: 3px solid var(--wcvn-accent, #e0a800);
	background: var(--wcvn-bg, #fff3cd);
	color: var(--wcvn-text, #3d3314);
}

/* Keep WordPress admin-bar dropdowns readable for logged-in administrators. */
body.admin-bar .wcvn-top-bar {
	z-index: 9990;
}

.wcvn-top-bar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(100% - 32px, 1240px);
	min-height: 46px;
	margin: 0 auto;
	padding: 9px 42px;
	position: relative;
}

.wcvn-top-bar__text {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	text-align: center;
}

.wcvn-top-bar a,
.wcvn-checkout-notice a {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
}

.wcvn-top-bar .wcvn-promotion-button,
.wcvn-checkout-notice .wcvn-promotion-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 8px 4px 2px;
	padding: 8px 13px;
	border: 1px solid currentColor;
	border-radius: 5px;
	text-decoration: none;
}

.wcvn-top-bar .wcvn-top-bar__close {
	position: absolute;
	top: 50%;
	right: 4px;
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	transform: translateY(-50%);
	border: 0 !important;
	border-radius: 50% !important;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit !important;
	font: inherit;
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.72;
}

.wcvn-top-bar .wcvn-top-bar__close:hover,
.wcvn-top-bar .wcvn-top-bar__close:focus-visible {
	background: color-mix(in srgb, var(--wcvn-text, #3d3314) 10%, transparent) !important;
	opacity: 1;
}

.wcvn-top-bar .wcvn-top-bar__close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Prevent two competing top bars while the vacation top bar is scheduled. */
body.wcvn-suppress-ksb-banner #ksb-discount-banner,
body.wcvn-suppress-ksb-banner #ksb-discount-banner + .ksb-banner-spacer {
	display: none !important;
}

.wcvn-checkout-notice {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	width: 100%;
	margin: 0 0 24px;
	padding: 16px 18px;
	border: 1px solid color-mix(in srgb, var(--wcvn-accent, #e0a800) 42%, transparent);
	border-left: 4px solid var(--wcvn-accent, #e0a800);
	border-radius: 6px;
	background: var(--wcvn-bg, #fff3cd);
	box-shadow: 0 2px 10px rgba(35, 31, 16, 0.05);
}

.wcvn-checkout-notice__icon {
	display: inline-grid;
	flex: 0 0 25px;
	place-items: center;
	width: 25px;
	height: 25px;
	margin-top: 1px;
	border-radius: 50%;
	background: var(--wcvn-accent, #e0a800);
	color: var(--wcvn-text, #3d3314);
	font-size: 15px;
	font-style: normal;
	font-weight: 800;
	line-height: 1;
}

.wcvn-checkout-notice__text {
	flex: 1;
	font-size: 15px;
	line-height: 1.55;
}

.wcvn-checkout-notice__text > :first-child {
	margin-top: 0;
}

.wcvn-checkout-notice__text > :last-child {
	margin-bottom: 0;
}

@media (max-width: 600px) {
	.wcvn-top-bar__inner {
		width: 100%;
		min-height: 0;
		padding: 12px 48px 13px;
	}

	.wcvn-top-bar[data-wcvn-dismissible="0"] .wcvn-top-bar__inner {
		padding-right: 20px;
		padding-left: 20px;
	}

	.wcvn-top-bar__text {
		width: 100%;
		font-size: 13.5px;
		font-weight: 600;
		line-height: 1.5;
		text-align: center;
		text-wrap: balance;
		overflow-wrap: anywhere;
	}

	.wcvn-top-bar .wcvn-top-bar__close {
		right: 8px;
	}

	.wcvn-checkout-notice {
		gap: 11px;
		margin-bottom: 20px;
		padding: 14px 15px;
		border-left-width: 3px;
		border-radius: 8px;
	}

	.wcvn-checkout-notice__icon {
		flex-basis: 23px;
		width: 23px;
		height: 23px;
		font-size: 14px;
	}

	.wcvn-checkout-notice__text {
		font-size: 14px;
		line-height: 1.5;
	}
}
