/**
 * Notification center panel and toolbar counter.
 *
 * @since 1.1.0
 */

.nhider-center {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 32px);
	inset-inline-end: 0;
	z-index: 99990;
	box-sizing: border-box;
	width: 420px;
	max-width: 100%;
	max-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
	overflow-y: auto;
	padding: 0 16px 16px;
	background: #fff;
	border-inline-start: 1px solid #c3c4c7;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nhider-center[hidden] {
	display: none;
}

.nhider-center:focus {
	outline: none;
}

.nhider-center__header {
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	background: #fff;
	border-bottom: 1px solid #dcdcde;
}

.nhider-center__title {
	margin: 0;
	font-size: 14px;
}

.nhider-center__close {
	color: #50575e;
	cursor: pointer;
}

.nhider-center__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nhider-center__item {
	margin: 12px 0 0;
}

.nhider-center__source {
	margin: 0 0 4px;
	color: #646970;
	font-size: 12px;
	text-transform: uppercase;
}

/* Core styles position notices for the top of the page (.notice margins, inline-block .update-nag…): reset them inside the panel. */
.nhider-center__body > * {
	box-sizing: border-box;
	float: none;
	width: auto;
	max-width: 100%;
	margin: 0 0 8px;
}

.nhider-center__body > :last-child {
	margin-bottom: 0;
}

.nhider-center__body .update-nag {
	display: block;
	margin-top: 0;
}

.nhider-center__body .notice,
.nhider-center__body .updated,
.nhider-center__body .error {
	margin: 0 0 8px;
}

#wpadminbar #wp-admin-bar-nhider-center .ab-icon::before {
	top: 2px;
}

#wpadminbar #wp-admin-bar-nhider-center .ab-icon {
	margin-inline-end: 0;
}

#wpadminbar .nhider-center-count {
	display: inline-block;
	box-sizing: border-box;
	min-width: 18px;
	height: 18px;
	margin-inline-start: 4px;
	padding: 0 5px;
	border-radius: 9px;
	background: #d63638;
	color: #fff;
	font-size: 9px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
	vertical-align: middle;
}

#wpadminbar .nhider-center-count[hidden] {
	display: none;
}

.nhider-center__empty {
	margin: 16px 0 0;
	color: #646970;
}

@media screen and (max-width: 782px) {
	.nhider-center {
		top: var(--wp-admin--admin-bar--height, 46px);
		width: 100%;
	}
}
