/* Match #submit-job-form .form-section width so the alert stays in the main column
   and does not cover the fixed left .add-listing-nav. */
#bbi2-event-validation-alert,
.bbi2-event-wc-notices {
	width: 900px;
	max-width: calc(100% - 2rem);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}

#bbi2-event-validation-alert {
	display: none;
	margin-top: 0;
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	border-radius: 12px;
	border: 2px solid #ff8fb0;
	background: #fff4f7;
	color: #9f1848;
	box-shadow: 0 8px 24px rgba(159, 24, 72, 0.12);
}

/* Only .is-visible — :not([hidden]) alone can flash an empty banner. */
#bbi2-event-validation-alert.is-visible {
	display: block;
}

.bbi2-event-wc-notices {
	margin-bottom: 1.5rem;
}

.bbi2-event-validation-alert__title {
	display: block;
	margin: 0 0 0.75rem;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.4;
}

.bbi2-event-validation-alert__list {
	margin: 0;
	padding-left: 1.25rem;
}

.bbi2-event-validation-alert__list li {
	margin: 0 0 0.65rem;
	font-size: 1rem;
	line-height: 1.5;
	font-weight: 500;
}

.bbi2-event-validation-alert__list li:last-child {
	margin-bottom: 0;
}

.bbi2-event-validation-alert__list a {
	color: #fc2769;
	font-weight: 600;
	text-decoration: underline;
}

.bbi2-field-has-error .field-head label,
.bbi2-field-has-error input,
.bbi2-field-has-error textarea {
	border-color: #ff8fb0 !important;
}

.bbi2-field-has-error .field-head label {
	color: #9f1848;
}

.bbi2-field-has-error .field {
	box-shadow: inset 0 0 0 1px rgba(255, 143, 176, 0.45);
	border-radius: 8px;
}

.bbi2-website-field-error {
	margin: 0.65rem 0 0;
	color: var(--color-ink);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.45;
}

.bbi2-website-field-error[hidden] {
	display: none;
}

.bbi2-subcategory-limit,
.bbi2-subcategory-limit__feedback {
	margin: 0.65rem 0 0;
	color: var(--color-ink);
	font-size: 1rem;
	line-height: 1.45;
}

.bbi2-subcategory-limit a,
.bbi2-subcategory-limit a:link,
.bbi2-subcategory-limit a:visited,
.bbi2-subcategory-limit a:hover,
.bbi2-subcategory-limit a:focus,
.bbi2-subcategory-limit a:active {
	color: var(--color-pink);
	font-weight: inherit;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.bbi2-subcategory-limit a:hover,
.bbi2-subcategory-limit a:focus,
.bbi2-subcategory-limit a:active {
	color: var(--color-pink-hover);
}

.bbi2-subcategory-limit__feedback {
	font-weight: 600;
}

.bbi2-subcategory-limit__feedback[hidden] {
	display: none;
}

@media (max-width: 900px) {
	#bbi2-event-validation-alert,
	.bbi2-event-wc-notices {
		width: 100%;
		max-width: 100%;
	}
}
