.yoast-tooltip {
	position: relative;
}

button.yoast-tooltip {
	/* IE 11 needs overflow: visible on buttons. */
	overflow: visible;
}

.yoast-tooltip::after {
	display: none;
	position: absolute;
	z-index: 1000000;
	padding: 5px 8px;
	border-radius: 3px;
	opacity: 0;
	color: #fff;
	background: rgba(0, 0, 0, 0.8);
	text-shadow: none;
	font: normal normal 11px/1.5 Helvetica, arial, nimbussansl, liberationsans, freesans, clean, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	text-align: center;
	white-space: pre;
	text-decoration: none;
	letter-spacing: normal;
	text-transform: none;
	word-wrap: break-word;
	content: attr(aria-label);
	pointer-events: none;

	-webkit-font-smoothing: subpixel-antialiased;
}

/*
 * Use a data attribute as alternative source for the tooltip text.
 * Add this selector as modifier of the base selector.
 */
.yoast-tooltip-alt::after {
	content: attr(data-label);
}

.yoast-tooltip::before {
	display: none;
	position: absolute;
	z-index: 1000001;
	width: 0;
	height: 0;
	border: 5px solid transparent;
	opacity: 0;
	color: rgba(0, 0, 0, 0.8);
	content: "\00a0";
	pointer-events: none;
}

@keyframes yoast-tooltip-appear {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.yoast-tooltip:hover::before,
.yoast-tooltip:hover::after,
.yoast-tooltip:active::before,
.yoast-tooltip:active::after,
.yoast-tooltip:focus::before,
.yoast-tooltip:focus::after {
	display: inline-block;
	text-decoration: none;
	animation-name: yoast-tooltip-appear;
	animation-duration: 0.1s;
	animation-timing-function: ease-in;
	animation-delay: 0.4s;

	animation-fill-mode: forwards;
}

.yoast-tooltip-no-delay:hover::before,
.yoast-tooltip-no-delay:hover::after,
.yoast-tooltip-no-delay:active::before,
.yoast-tooltip-no-delay:active::after,
.yoast-tooltip-no-delay:focus::before,
.yoast-tooltip-no-delay:focus::after {
	opacity: 1;
	animation: none;
}

.yoast-tooltip-multiline:hover::after,
.yoast-tooltip-multiline:active::after,
.yoast-tooltip-multiline:focus::after {
	display: table-cell;
}

.yoast-tooltip-s::after,
.yoast-tooltip-se::after,
.yoast-tooltip-sw::after {
	top: 100%;
	left: 50%;
	margin-top: 5px;
}

.yoast-tooltip-s::before,
.yoast-tooltip-se::before,
.yoast-tooltip-sw::before {
	top: auto;
	left: 50%;
	bottom: -5px;
	margin-left: -5px;
	border-bottom-color: rgba(0, 0, 0, 0.8);
}

.yoast-tooltip-se::after {
	left: auto;
	right: 50%;
	margin-right: -15px;
}

.yoast-tooltip-sw::after {
	margin-left: -15px;
}

.yoast-tooltip-n::after,
.yoast-tooltip-ne::after,
.yoast-tooltip-nw::after {
	left: 50%;
	bottom: 100%;
	margin-bottom: 5px;
}

.yoast-tooltip-n::before,
.yoast-tooltip-ne::before,
.yoast-tooltip-nw::before {
	top: -5px;
	left: 50%;
	bottom: auto;
	margin-left: -5px;
	border-top-color: rgba(0, 0, 0, 0.8);
}

.yoast-tooltip-ne::after {
	left: auto;
	right: 50%;
	margin-right: -15px;
}

.yoast-tooltip-nw::after {
	margin-left: -15px;
}

.yoast-tooltip-s::after,
.yoast-tooltip-n::after {
	-ms-transform: translateX(-50%);
	transform: translateX(-50%);
}

.yoast-tooltip-w::after {
	left: 100%;
	bottom: 50%;
	margin-left: 5px;
	-ms-transform: translateY(50%);
	transform: translateY(50%);
}

.yoast-tooltip-w::before {
	top: 50%;
	bottom: 50%;
	right: -5px;
	margin-top: -5px;
	border-right-color: rgba(0, 0, 0, 0.8);
}

.yoast-tooltip-e::after {
	bottom: 50%;
	right: 100%;
	margin-right: 5px;
	-ms-transform: translateY(50%);
	transform: translateY(50%);
}

.yoast-tooltip-e::before {
	top: 50%;
	left: -5px;
	bottom: 50%;
	margin-top: -5px;
	border-left-color: rgba(0, 0, 0, 0.8);
}

.yoast-tooltip-multiline::after {
	width: -webkit-max-content;
	width: -moz-max-content;
	width: max-content;
	max-width: 250px;
	border-collapse: separate;
	white-space: pre-line;
	word-wrap: normal;
	word-break: break-word;
}

.yoast-tooltip-multiline.yoast-tooltip-s::after,
.yoast-tooltip-multiline.yoast-tooltip-n::after {
	left: auto;
	right: 50%;
	-ms-transform: translateX(50%);
	transform: translateX(50%);
}

.yoast-tooltip-multiline.yoast-tooltip-w::after,
.yoast-tooltip-multiline.yoast-tooltip-e::after {
	left: 100%;
}

@media screen and (min-width: 0\0) {
	.yoast-tooltip-multiline::after {
		width: 250px;
	}
}

.yoast-tooltip-sticky::before,
.yoast-tooltip-sticky::after {
	display: inline-block;
}

.yoast-tooltip-sticky.yoast-tooltip-multiline::after {
	display: table-cell;
}

@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
	.yoast-tooltip-w::after {
		margin-left: 4.5px;
	}
}

/* Rule with higher specificity to hide the tooltips when necessary. */
.yoast-tooltip.yoast-tooltip-hidden::before,
.yoast-tooltip.yoast-tooltip-hidden::after {
	display: none;
}

.wpseo-score-icon {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 6px;
	border-radius: 50%;
	background: #888;
	line-height: 16px;
}

/* Adjust vertical alignment of the icons in the table cells. */
td .wpseo-score-icon {
	margin-top: 3px;
}

.wpseo-score-icon.good {
	background-color: #7ad03a;
}

.wpseo-score-icon.ok {
	background-color: #ee7c1b;
}

.wpseo-score-icon.bad {
	background-color: #dc3232;
}

.wpseo-score-icon.na {
	background-color: #888;
}

.wpseo-score-icon.noindex {
	background-color: #1e8cbe;
}

@media screen and (max-width: 782px) {
	.column-wpseo-title,
	.column-wpseo-score,
	.column-wpseo-metadesc,
	.column-wpseo-focuskw {
		display: none;
	}
}

/* Table internal links, SEO, and Readability columns tooltips. */
.fixed th.column-wpseo-score,
.fixed th.column-wpseo-score-readability,
.fixed th.column-wpseo-links,
.fixed th.column-wpseo-linked {
	width: 3em;
	padding: 0;
}

th.column-wpseo-links a.yoast-tooltip,
th.column-wpseo-linked a.yoast-tooltip,
th.column-wpseo-score .yoast-tooltip,
th.column-wpseo-score-readability .yoast-tooltip {
	/* Override WP property to make tooltips visible. */
	display: inline-block;
	overflow: visible;
	padding: 8px 0;
	/* To contain floats instead of using overflow. */
	vertical-align: middle;
}

th.column-wpseo-score .yoast-tooltip,
th.column-wpseo-score-readability .yoast-tooltip {
	padding: 8px 12px;
}

.column-wpseo-links .yoast-tooltip-multiline::after {
	/* Edge doesn't support width: max-content; */
	width: 999px;
	max-width: 160px;
}

.column-wpseo-linked .yoast-tooltip-multiline::after {
	/* Edge doesn't support width: max-content; */
	width: 999px;
	max-width: 170px;
}

.column-wpseo-links .sorting-indicator,
.column-wpseo-linked .sorting-indicator {
	margin-top: 11px;
}

/* Generate the icons in the table columns, exclude Screen Options. */
.manage-column .yoast-column-header-has-tooltip:before {
	display: inline-block;
	position: relative;
	top: 2px;
	width: 20px;
	height: 20px;
	padding: 0;
	color: #444;
	vertical-align: top;
	text-decoration: none !important;
	content: "";
}

.manage-column .yoast-linked-to:before {
	background: transparent url("../../images/link-out-icon.svg") no-repeat 100% 0;
	background-size: 20px;
}

.manage-column .yoast-linked-from:before {
	background: transparent url("../../images/link-in-icon.svg") no-repeat 100% 0;
	background-size: 20px;
}

.manage-column .yoast-column-seo-score:before {
	background: transparent url("../../images/Yoast_SEO_negative_icon.svg") no-repeat 100% 0;
	background-size: 20px;
}

.manage-column .yoast-column-readability:before {
	background: transparent url("../../images/readability-icon.svg") no-repeat 100% 0;
	background-size: 20px;
}

/* Do not allow link numbers to break in the table cells. */
td.column-wpseo-links,
td.column-wpseo-linked {
	word-wrap: normal;
}

/* Make the checkboxes lable in the Screen Options visible. */
#screen-meta .yoast-column-header-has-tooltip .screen-reader-text {
	visibility: visible;
	position: static;
	width: auto;
	height: auto;
}
