/* Accesswell page panel. Shown only to signed-in editors. */

#wpadminbar #wp-admin-bar-accesswell .accesswell-count:not(:empty) {
	display: inline-block;
	min-width: 18px;
	height: 18px;
	margin-left: 4px;
	padding: 0 5px;
	border-radius: 9px;
	background: #646970;
	color: #fff;
	font-size: 11px;
	line-height: 18px;
	text-align: center;
}

#wpadminbar #wp-admin-bar-accesswell .accesswell-count.has-errors {
	background: #d63638;
}

#wpadminbar #wp-admin-bar-accesswell .accesswell-count.has-warnings {
	background: #996800;
}

.accesswell-highlight {
	outline: 4px solid #d63638 !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 8px rgba(214, 54, 56, 0.25) !important;
}

#accesswell-panel {
	position: fixed;
	z-index: 100000;
	top: 46px;
	right: 0;
	bottom: 0;
	box-sizing: border-box;
	width: 400px;
	max-width: 100%;
	overflow-y: auto;
	padding: 16px 18px 24px;
	background: #fff;
	border-left: 1px solid #c3c4c7;
	box-shadow: -4px 0 16px rgba(0, 0, 0, 0.12);
	color: #1d2327;
	font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	text-align: left;
}

@media screen and (min-width: 783px) {
	#accesswell-panel {
		top: 32px;
	}
}

#accesswell-panel[hidden] {
	display: none;
}

#accesswell-panel * {
	box-sizing: border-box;
	color: inherit;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
}

#accesswell-panel .accesswell-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

#accesswell-panel h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

#accesswell-panel h2:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

#accesswell-panel .accesswell-close {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

#accesswell-panel button:focus-visible,
#accesswell-panel a:focus-visible,
#accesswell-panel summary:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

#accesswell-panel .accesswell-summary {
	margin: 8px 0 12px;
	color: #50575e;
}

#accesswell-panel .accesswell-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

#accesswell-panel .accesswell-filters button {
	padding: 4px 10px;
	border: 1px solid #8c8f94;
	border-radius: 14px;
	background: #fff;
	font-size: 13px;
	cursor: pointer;
}

#accesswell-panel .accesswell-filters button[aria-pressed="true"] {
	background: #1d2327;
	border-color: #1d2327;
	color: #fff;
}

#accesswell-panel .accesswell-group {
	margin: 0 0 14px;
	padding: 10px 12px;
	border: 1px solid #dcdcde;
	border-left: 4px solid #646970;
	border-radius: 4px;
}

#accesswell-panel .accesswell-group.is-error {
	border-left-color: #d63638;
}

#accesswell-panel .accesswell-group.is-warning {
	border-left-color: #996800;
}

#accesswell-panel .accesswell-group h3 {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
}

#accesswell-panel .accesswell-impact {
	display: inline-block;
	margin-right: 4px;
	padding: 0 6px;
	border-radius: 3px;
	background: #f0f0f1;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

#accesswell-panel .is-error .accesswell-impact {
	background: #d63638;
	color: #fff;
}

#accesswell-panel .is-warning .accesswell-impact {
	background: #fcf0d1;
	color: #6b4900;
}

#accesswell-panel details {
	margin: 0 0 8px;
}

#accesswell-panel summary {
	cursor: pointer;
	color: #2271b1;
}

#accesswell-panel a {
	color: #2271b1;
	text-decoration: underline;
}

#accesswell-panel .accesswell-items {
	margin: 0;
	padding-left: 20px;
}

#accesswell-panel .accesswell-item {
	margin: 0 0 10px;
}

#accesswell-panel .accesswell-message,
#accesswell-panel .accesswell-whole {
	margin: 0 0 4px;
}

#accesswell-panel .accesswell-snippet {
	display: block;
	max-height: 4.5em;
	overflow: hidden;
	padding: 4px 6px;
	border-radius: 3px;
	background: #f6f7f7;
	font: 12px/1.5 Menlo, Consolas, monospace;
	word-break: break-all;
}

#accesswell-panel .accesswell-item-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}

#accesswell-panel .accesswell-link {
	padding: 0;
	border: 0;
	background: none;
	color: #2271b1;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}

#accesswell-panel .accesswell-none {
	padding: 10px 12px;
	border-left: 4px solid #00a32a;
	background: #f6f7f7;
}

#accesswell-panel .accesswell-ignored,
#accesswell-panel .accesswell-links {
	margin-top: 12px;
	color: #50575e;
	font-size: 13px;
}
