/* onebox */

.onebox-container {
	clear:both;
	width: auto;
	margin-bottom: 10px;
}

.onebox-container * {
	list-style: none;
	margin: 0;
	padding: 0;
	outline: 0;
	text-decoration: none;
	box-sizing: border-box !important;
	-webkit-box-sizing: border-box !important;
	-moz-box-sizing: border-box !important;
	-ms-box-sizing: border-box !important;
}

.onebox-sitename:after{
	display: inline-block;
	clear: none;
}

.onebox-result {
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	border-radius: 6px;
	border: 1px solid #ddd;
	display: table;
	overflow: hidden;
}

.dark.onebox-result {
	border: 1px solid black;
}

.flat.onebox-result {
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	border-radius: 2px;
}

.dark.flat.onebox-result {
	border-color: #222222;
}

.onebox-header-wrapper, .onebox-body-wrapper, .onebox-footer-wrapper {
	-moz-box-shadow: inset 0 2px 0 -1px rgba(255,255,255,0.2);
	-webkit-box-shadow: inset 0 2px 0 -1px rgba(255,255,255,0.2);
	box-shadow: inset 0 2px 0 -1px rgba(255,255,255,0.2);
}

.flat .onebox-header-wrapper, .flat .onebox-body-wrapper, .flat .onebox-footer-wrapper {
	-moz-box-shadow: none;
	-webkit-box-shadow: none;
	box-shadow: none;
}

.onebox-header-wrapper, .onebox-footer-wrapper {
	width: 100%;
	display: table;
	box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.onebox-header-wrapper {
	border-bottom: 1px solid #fff;
	padding-left: 10px;
	padding-right: 10px;
	padding-top: 5px;
	padding-bottom: 5px;
	background:#fcfcfc;
	background:-moz-linear-gradient(#fcfcfc,#ebebeb);
	background:-webkit-linear-gradient(#fcfcfc,#ebebeb);
}

.dark .onebox-header-wrapper {
	color: #fff;
	border-bottom: 1px solid #000;
	background: #464646; /* Old browsers */
	background: -moz-linear-gradient(top, #464646 0%, #3f3f3f 50%, #3f3f3f 51%, #3d3d3d 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#464646), color-stop(50%,#3f3f3f), color-stop(51%,#3f3f3f), color-stop(100%,#3d3d3d)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #464646 0%,#3f3f3f 50%,#3f3f3f 51%,#3d3d3d 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, #464646 0%,#3f3f3f 50%,#3f3f3f 51%,#3d3d3d 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, #464646 0%,#3f3f3f 50%,#3f3f3f 51%,#3d3d3d 100%); /* IE10+ */
	background: linear-gradient(to bottom, #464646 0%,#3f3f3f 50%,#3f3f3f 51%,#3d3d3d 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#464646', endColorstr='#3d3d3d',GradientType=0 ); /* IE6-9 */
}

.flat .onebox-header-wrapper {
	background: #fff;
	border-bottom:1px solid #ddd;
}

.dark.flat .onebox-header-wrapper {
	background: #2e3133;
	border-bottom-color: #222222;
}

.onebox-header {
	font-size: 1.2em;
	line-height: 23px;
	display: table;
	width: 100%;
}

.onebox-header a {
	text-decoration: none;
}

.onebox-title {
	font-weight: bold;
	text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
	margin-right: 10px;
}

.flat .onebox-title {
	text-shadow: none;
}

.onebox-header img.onebox-favicon {
	margin-right: 5px;
	height:23px;
	width:23px;
	float: left;
	border: none;
	background: none;
	box-shadow: none;
}

.flat .onebox-header img.onebox-favicon {
	-webkit-border-radius: 500px;
	-moz-border-radius: 500px;
	border-radius: 500px;
}

.onebox-header .onebox-title-button {
	float: right;
	font-size: 0.75em;
	color: #999;
	line-height: 22px;
}
.onebox-header .onebox-title-button a {
	display:inline-block;
	height:21px;
	color:#666;
	border:1px solid #ddd;
	border-radius:3px;
	padding:0 5px;
	background: white;
	line-height: 21px;
}

.dark .onebox-header .onebox-title-button a {
	background: #aaa;
	border-color: #555;
	color: #333;
}

.flat .onebox-header .onebox-title-button a {
	background: #fff;
	border:none;
	color: #45a6cc;
}

.dark.flat .onebox-header .onebox-title-button a {
	background: #2e3133;
	border:none;
	color: #26a97c;
}

.flat .onebox-header .onebox-title-button a:hover {
	background: #eee;
}

.dark.flat .onebox-header .onebox-title-button a:hover {
	background: #202020;
}

.flat .onebox-header .onebox-rating {
	color: #26a97c;
}

.onebox-body-wrapper {
	display: table;
	width: 100%;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 15px;
	padding-right: 15px;
	background:#fafafa;
	box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.dark .onebox-body-wrapper {
	background-color: #415a84;
}

.flat .onebox-body-wrapper {
	background-color: #fff;
}

.dark.flat .onebox-body-wrapper {
	background-color: #2e3133;
}


.onebox-body {
	display:block;
	overflow:hidden;
}

.onebox-body table, .onebox-body tr, .onebox-body td {
	border: none;
	background: none;
}

.dark .onebox-body {
	color: #ddd;
}

.onebox-body td {
	padding-right: 4px;
}

.onebox-footer-wrapper {
	border-top:1px solid #ddd;
	background:white;
	color: #666;
	line-height: 32px;
	padding-left: 10px;
	padding-right: 10px;
}

.dark .onebox-footer-wrapper {
	border-top-color: #464646;
	background: #3d5277;
	color: #ddd;
}

.flat .onebox-footer-wrapper {
	color: #b8b8b8;
}

.dark.flat .onebox-footer-wrapper {
	border-top-color: #222222;
	background: #2e3133;
}

.onebox-footer-wrapper .onebox-footer-info {
	font-size: 0.8em;
}

.onebox-footer-wrapper span.onebox-footer-button {
	float:right;
	line-height:32px;
}
.onebox-footer-wrapper .onebox-footer-button a {
	height:24px;
	font-size:12px;
	color:#666;
	font-weight:bold;
	text-shadow:0 1px 0 rgba(255,255,255,0.9);
	padding:5px 10px;
	margin-top: 5px;
	margin-bottom: 5px;
	margin-right: -5px;
	border:1px solid #ddd;
	border-bottom-color:#bbb;
	border-radius:3px;
	background:#f5f5f5;
	background:-moz-linear-gradient(#f5f5f5,#e5e5e5);
	background:-webkit-linear-gradient(#f5f5f5,#e5e5e5);
	text-decoration: none;
}

.dark .onebox-footer-wrapper .onebox-footer-button a {
	color:#ddd;
	background: #666;
	border:1px solid #333;
	border-top-color:#666;
	text-shadow:0 1px 0 rgba(0,0,0,0.2);
	padding-top: 2px;
	padding-bottom: 2px;
}

.flat .onebox-footer-wrapper .onebox-footer-button a {
	color: #fff;
	background: #45a6cc;
	text-shadow: none;
}

.dark.flat .onebox-footer-wrapper .onebox-footer-button a {
	color: #f7f5f2;
	background: #26a97c;
	border: none;
}


.onebox-footer-wrapper .onebox-footer-button a:hover {
	color:#527894;
	border-color:#cfe3ed;
	border-bottom-color:#9fc7db;
	background:#f1f7fa;
	background:-moz-linear-gradient(#f1f7fa,#dbeaf1);
	background:-webkit-linear-gradient(#f1f7fa,#dbeaf1);
}

.dark .onebox-footer-wrapper .onebox-footer-button a:hover {
	color:#f5f5f5;
	background: #999;
	border:1px solid #666;
	border-top-color:#999;
}

.flat .onebox-footer-wrapper .onebox-footer-button a:hover {
	color: #fff;
	background: #2e3133;
	border: none;
}

.dark.flat .onebox-footer-wrapper .onebox-footer-button a:hover {
	color: #fff;
	background: #278a68;
	border: none;
}

img.onebox-thumbnail {
	max-width: 25%;
	height: auto;
	max-height: 150px;
	margin-right: 10px;
	border-radius: 3px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	float: left;
}

.flat img.onebox-thumbnail {
	border-radius: 6px;
	box-shadow: 0 0 0 4px #eee;
}

.dark.flat img.onebox-thumbnail {
	box-shadow: 0 0 0 4px #222222;
}

.onebox-description {
	color:#666;
}

.dark .onebox-description {
	color:#ddd;
}

.flat .onebox-description {
	border-left: 7px solid #eee;
	margin-left: 3px;
	padding-left: 8px;
}

.dark.flat .onebox-description {
	border-color: #565859;
}

p.onebox-description, p.onebox-additional {
	margin-bottom: 0;
}

.onebox-additional {
	color:#999;
	font-size: 0.8em;
}

.dark .onebox-additional {
	color: #ccc;
}

.flat .onebox-additional {
	color: #b8b8b8;
}

.onebox-stars {
	float: left;
	margin: 2px;
}

span.onebox-stars, span.onebox-stars span {
    display: block;
    background: url(stars.png) 0 -16px repeat-x;
    width: 80px;
    height: 16px;
}

.flat span.onebox-stars, .flat span.onebox-stars span {
	background-image: url(stars-flat.png);
}

span.onebox-stars span {
    background-position: 0 0;
}

i.onebox-icon {
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
	background-size: contain;
	float: left;
	margin-top: 2px;
	margin-bottom: 2px;
	margin-right: 5px;
	opacity: 0.5;
}

.dark i.onebox-icon {
	opacity: 1;
}

.flat i.onebox-icon {
	opacity: 1;
}

.onebox-eye-icon {
	background-image: url("icon-eye.png");
}
.flat .onebox-eye-icon {
	background-image: url("icon-eye-flat.png");
}
.dark.flat .onebox-eye-icon {
	background-image: url("icon-eye-dark-flat.png");
}
.onebox-star-icon {
	background-image: url("icon-star.png");
}
.flat .onebox-star-icon {
	background-image: url("icon-star-flat.png");
}
.dark.flat .onebox-star-icon {
	background-image: url("icon-star-dark-flat.png");
}
.onebox-fork-icon {
	background-image: url("icon-fork.png");
}
.flat .onebox-fork-icon {
	background-image: url("icon-fork-flat.png");
}
.dark.flat .onebox-fork-icon {
	background-image: url("icon-fork-dark-flat.png");
}
.onebox-thumbsup-icon {
	background-image: url("icon-thumbsup.png");
}
.flat .onebox-thumbsup-icon {
	background-image: url("icon-thumbsup-flat.png");
}
.dark.flat .onebox-thumbsup-icon {
	background-image: url("icon-thumbsup-dark-flat.png");
}
.onebox-trophy-icon {
	background-image: url("icon-trophy.png");
}
.flat .onebox-trophy-icon {
	background-image: url("icon-trophy-flat.png");
}
.dark.flat .onebox-trophy-icon {
	background-image: url("icon-trophy-dark-flat.png");
}
.onebox-note-icon {
	background-image: url("icon-note.png");
}
.flat .onebox-note-icon {
	background-image: url("icon-note-flat.png");
}
.dark.flat .onebox-note-icon {
	background-image: url("icon-note-dark-flat.png");
}
.onebox-comment-icon {
	background-image: url("icon-comment.png");
}
.flat .onebox-comment-icon {
	background-image: url("icon-comment-flat.png");
}
.dark.flat .onebox-comment-icon {
	background-image: url("icon-comment-dark-flat.png");
}

/* http://nicolasgallagher.com/micro-clearfix-hack/ */
.onebox-clearfix:before, .onebox-clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.onebox-clearfix:after {
    clear: both;
}