/* WPRuby header on the condition screens (rendered in in_admin_header, before #wpbody). */
.rspw-brand-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin: 0 0 0 -20px;
	padding: 10px 20px;
	background: #fff;
	border-bottom: 1px solid #dcdcde;
	box-shadow: inset 3px 0 0 #e0115f;
}

.rspw-brand-header__logo {
	display: inline-flex;
	line-height: 0;
}

.rspw-brand-header__logo img {
	width: auto;
	height: 32px;
}

.rspw-brand-header__title {
	flex: 1 1 0;
	min-width: 0;
}

.rspw-brand-header__name {
	margin: 0;
	color: #1d2327;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.rspw-brand-header__vendor {
	margin: 0;
	color: #646970;
	font-size: 12px;
}

.rspw-brand-header__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
}

.rspw-brand-header__links a,
.rspw-support a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	text-decoration: none;
}

.rspw-brand-header .dashicons,
.rspw-support .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* Support box in the condition editor sidebar. */
.rspw-support .rspw-support__brand {
	display: inline-flex;
	gap: 8px;
	margin: 4px 0 8px;
	color: #1d2327;
	font-size: 16px;
	font-weight: 600;
}

.rspw-support__brand img {
	width: auto;
	height: 32px;
}

.rspw-support p {
	margin: 0 0 8px;
}

.rspw-support ul {
	margin: 0;
}

.rspw-support li {
	margin: 0 0 6px;
}

/*
 * Below 782px WordPress makes room for the admin bar with #wpbody's padding, which comes after the header.
 * Move that room above the header. This stylesheet only loads on the condition screens.
 */
@media screen and (max-width: 782px) {
	#wpcontent {
		padding-top: 46px;
	}

	.rspw-brand-header {
		margin-left: -10px;
		padding: 10px;
	}

	.rspw-brand-header + #wpbody {
		padding-top: 0;
	}

	.rspw-brand-header__links {
		flex-basis: 100%;
	}
}


/* Upgrade to Pro box in the condition editor sidebar. */
.rspw-pro .rspw-pro__headline {
	margin: 0 0 10px;
	color: #1d2327;
	font-size: 14px;
	font-weight: 600;
}

.rspw-pro .rspw-pro__groups {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 14px;
}

.rspw-pro .rspw-pro__groups li {
	margin: 0;
}

.rspw-pro .rspw-pro__chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	border: 0;
	border-radius: 12px;
	background: #f0f0f1;
	color: #1d2327;
	font: inherit;
	font-size: 12px;
	cursor: pointer;
}

.rspw-pro .rspw-pro__chip:hover,
.rspw-pro li:focus-within .rspw-pro__chip {
	background: #dcdcde;
}

.rspw-pro .rspw-pro__chip:focus-visible {
	outline: 2px solid var(--wp-admin-theme-color, #2271b1);
	outline-offset: 1px;
}

.rspw-pro .rspw-pro__groups .dashicons {
	color: #e0115f;
}

/* A topic's rules, under the chips, while the chip is hovered, focused or tapped. */
.rspw-pro .rspw-pro__tip {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 10;
	display: none;
	padding: 6px 8px;
	border-radius: 4px;
	background: #1d2327;
	color: #fff;
	font-size: 12px;
	line-height: 1.5;
}

.rspw-pro li:hover .rspw-pro__tip,
.rspw-pro li:focus-within .rspw-pro__tip {
	display: block;
}

/* While a chip is hovered, show only its rules, not those of a focused one. */
.rspw-pro .rspw-pro__groups:hover li:not(:hover) .rspw-pro__tip {
	display: none;
}

.rspw-pro .rspw-pro__features {
	margin: 0 0 14px;
}

.rspw-pro .rspw-pro__features li {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0 0 4px;
}

.rspw-pro .rspw-pro__features .dashicons {
	color: #008a20;
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.rspw-support .rspw-pro-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
}

.rspw-support .rspw-pro-button .dashicons {
	margin: 0;
	line-height: 1;
	vertical-align: middle;
}

/* Conditions list. */
.wp-list-table .column-rspw_targets {
	width: 25%;
}

.wp-list-table .rspw-joiner {
	font-size: 11px;
	color: #757575;
}
