/* Live Content Widget stuff */

#available-widgets [class*="sportspost_content"] .widget-title:before,
.so-panels-dialog.so-panels-dialog-add-widget .widget-type-list .widget-type .sportspost-icon {
	content: "";
	background-image: url(../img/icon-player.png);
	background-size: 20px 20px;
}

/* Player profile Links stuff */

.quicktags-toolbar input[value="player"] {
	text-decoration: underline;
}

#sportspost-player-link-wrap {
	display: none;
	background-color: #fff;
	-webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
	box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
	width: 600px;
	height: 250px;
	overflow: hidden;
	margin-left: -300px;
	margin-top: -125px;
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 1015; /* 100105; */
	-webkit-transition: height 0.2s, margin-top 0.2s;
	transition: height 0.2s, margin-top 0.2s;
}

#sportspost-player-link-backdrop {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	min-height: 360px;
	background: #000;
	opacity: 0.7;
	filter: alpha(opacity=70);
	z-index: 1010; /* 100100; */
}

#sportspost-player-link {
	position: relative;
	height: 100%;
}

#sportspost-player-link-wrap {
	height: 500px;
	margin-top: -250px;
}

#player-link-preview {
	vertical-align: text-bottom;
	margin-left: 5px;
}

#link-modal-title {
	background: #fcfcfc;
	border-bottom: 1px solid #dfdfdf;
	height: 36px;
	font-size: 18px;
	font-weight: 600;
	line-height: 36px;
	padding: 0 36px 0 16px;
	top: 0;
	right: 0;
	left: 0;
}

#sportspost-player-link-close {
	color: #666;
	padding: 0;
	position: absolute;
	top: 0;
	right: 0;
	width: 36px;
	height: 36px;
	text-align: center;
	background: none;
	border: none;
	cursor: pointer;
}

#sportspost-player-link-close:before {
	font: normal 20px/36px 'dashicons';
	vertical-align: top;
	speak: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	width: 36px;
	height: 36px;
	content: '\f158';
}

#sportspost-player-link-close:hover,
#sportspost-player-link-close:focus {
	color: #2ea2cc;
}

#sportspost-player-link-close:focus {
	outline: none;
	-webkit-box-shadow:
		0 0 0 1px #5b9dd9,
		0 0 2px 1px rgba(30, 140, 190, .8);
	box-shadow:
		0 0 0 1px #5b9dd9,
		0 0 2px 1px rgba(30, 140, 190, .8);
}

#player-link-selector {
	padding: 0 16px 50px;
}

#player-icon-title {
	height: 16px;
	width: 16px;
	vertical-align: middle;
}

#sportspost-player-link-wrap #player-link-selector {
	padding: 0 16px;
	position: absolute;
	top: 36px;
	left: 0;
	right: 0;
	bottom: 44px;
}

#sportspost-player-link ol,
#sportspost-player-link ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#sportspost-player-link-search-toggle:after {
	display: inline-block;
	font: normal 20px/1 'dashicons';
	vertical-align: top;
	speak: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	content: '\f140';
}

#sportspost-player-link-search-toggle:after {
	content: '\f142';
}

#sportspost-player-link input[type="text"] {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

#sportspost-player-link #player-link-options {
	padding: 8px 0 12px;
}

#sportspost-player-link p.howto {
	margin: 3px 0;
}

#sportspost-player-link p.howto a {
	text-decoration: none;
	color: inherit;
}

#sportspost-player-link-search-toggle {
	cursor: pointer;
}

#sportspost-player-link label input[type="text"] {
	margin-top: 5px;
	width: 75%;
}

#sportspost-player-link #player-link-options label span,
#sportspost-player-link #player-search-panel label span.search-label {
	display: inline-block;
	width: 55px;
	text-align: right;
	padding-right: 5px;
	max-width: 24%;
}

#sportspost-player-link .link-search-field {
	float: left;
	width: 304px;
	max-width: 70%;
}

#sportspost-player-link .link-search-wrapper {
	margin: 5px 0 9px;
	display: block;
	overflow: hidden;
}

#sportspost-player-link .link-search-wrapper span {
	float: left;
	margin-top: 4px;
}

#sportspost-player-link .link-search-wrapper .spinner {
	display: none;
	vertical-align: text-bottom;
	float: right;
}

#sportspost-player-link .link-target {
	padding: 3px 0 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#sportspost-player-link .link-target label {
	max-width: 70%;
}

#sportspost-player-link .query-results {
	border: 1px #dfdfdf solid;
	margin: 0;
	background: #fff;
	overflow: auto;
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
	top: 165px;
}

#sportspost-player-link li {
	clear: both;
	margin-bottom: 0;
	border-bottom: 1px solid #f1f1f1;
	color: #333;
	padding: 4px 6px 4px 10px;
	cursor: pointer;
	position: relative;
}

#sportspost-player-link .query-notice {
	padding: 0;
	border-bottom: 1px solid #dfdfdf;
	background-color: #f7fcfe;
	color: #000;
}

#sportspost-player-link .query-notice .query-notice-default,
#sportspost-player-link .query-notice .query-notice-hint {
	display: block;
	padding: 6px;
	border-left: 4px solid #2ea2cc;
}

#sportspost-player-link .unselectable.no-matches-found {
	padding: 0;
	border-bottom: 1px solid #dfdfdf;
	background-color: #fef7f1;
}

#sportspost-player-link .no-matches-found .item-title {
	display: block;
	padding: 6px;
	border-left: 4px solid #d54e21;
}

#sportspost-player-link .query-results em {
	font-style: normal;
}

#sportspost-player-link li:hover {
	background: #eaf2fa;
	color: #151515;
}

#sportspost-player-link li.unselectable {
	border-bottom: 1px solid #dfdfdf;
}

#sportspost-player-link li.unselectable:hover {
	background: #fff;
	cursor: auto;
	color: #333;
}

#sportspost-player-link li.selected {
	background: #ddd;
	color: #333;
}

#sportspost-player-link li.selected .item-title {
	font-weight: bold;
}

#sportspost-player-link li:last-child {
	border: none;
}

#sportspost-player-link .item-title {
	display: inline-block;
	width: 80%;
	width: -webkit-calc(100% - 68px);
	width: calc(100% - 68px);
}

#sportspost-player-link .item-info {
	text-transform: uppercase;
	color: #666;
	font-size: 11px;
	position: absolute;
	right: 5px;
	top: 5px;
}

#sportspost-player-link .river-waiting {
	display: none;
	padding: 10px 0;
}

#sportspost-player-link .river-waiting .spinner {
	margin: 0 auto;
	display: block;
	float: none;
}

#sportspost-player-link .submitbox {
	padding: 8px 16px;
	background: #fcfcfc;
	border-top: 1px solid #dfdfdf;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
}

#sportspost-player-link-cancel {
	line-height: 25px;
	float: left;
}

#sportspost-player-link-update {
	line-height: 23px;
	float: right;
}

#sportspost-player-link-submit {
	float: right;
	margin-bottom: 0;
}

.settings_page_sportspost_settings_page .form-table {
	border-bottom: solid 1px #e1e1e1;
}

@media screen and ( max-width: 782px ) {
	#sportspost-player-link-wrap {
		height: 280px;
		margin-top: -140px;
	}

	#sportspost-player-link-wrap .query-results {
		top: 235px;
	}

	#player-link-selector {
		padding: 0 16px 60px;
	}

	#sportspost-player-link-wrap #player-link-selector {
		bottom: 52px;
	}

	#sportspost-player-link-cancel {
		line-height: 32px;
	}
}

@media screen and ( max-width: 520px ) {
	#sportspost-player-link-wrap {
		width: auto;
		margin-left: 0;
		left: 10px;
		right: 10px;
		max-width: 500px;
	}
}

@media screen and ( max-height: 520px ) {
	#sportspost-player-link-wrap {
		-webkit-transition: none;
		transition: none;
	}

	#sportspost-player-link-wrap {
		height: auto;
		margin-top: 0;
		top: 10px;
		bottom: 10px;
	}

	#player-link-selector {
		overflow: auto;
	}

	#player-search-panel .query-results {
		position: static;
	}
}

@media screen and ( max-height: 290px ) {
	#sportspost-player-link-wrap {
		height: auto;
		margin-top: 0;
		top: 10px;
		bottom: 10px;
	}

	#player-link-selector {
		overflow: auto;
		height: -webkit-calc(100% - 92px);
		height: calc(100% - 92px);
		padding-bottom: 2px;
	}

	#player-search-panel .query-results {
		position: static;
	}
}
