/*
File:			style.css
Description:	Custom style of WP Reviews Table add-on
*/

/* table */
table.tablesorter {
	font-family:arial;
	/*background-color: #f1f1f1;*/
	margin:10px 0pt 15px;
	font-size: 8pt;
	width: 100%;
	/*table-layout: fixed;*/
	text-align: left;
	
}
table.tablesorter .text_center {
	text-align: center;
}
table.tablesorter thead tr th, table.tablesorter tfoot tr th {
	color: #636363;
	background-color: #f1f1f1;
	border: 1px solid #FFF;
	font-size: 10pt;
	padding: 10px;
}
table.tablesorter thead tr .header {
	background-image: url(../images/bg.gif);
	background-repeat: no-repeat;
	background-position: center right;
	cursor: pointer;
}
table.tablesorter tbody td {
	color: #3D3D3D;
	padding: 4px;
	background-color: #FFF;
	vertical-align: middle;
}
table.tablesorter tbody tr.odd td {
	background-color:#ccc;
}
table.tablesorter thead tr .headerSortUp {
	background-image: url(../images/asc.gif);
}
table.tablesorter thead tr .headerSortDown {
	background-image: url(../images/desc.gif);
}
table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp {
	background-color: #f1f1f1;
}

table.tablesorter .table_rank {
	font-weight: bold;
	font-size:30px;
	text-align:center;
}
table.tablesorter .table_media {
	text-align:center;
}
table.tablesorter .table_summary {
	max-width: 200px;
}
table.tablesorter .table_summary a {
	font-size: 9pt;
	font-weight: bold;
	line-height: 1.8em;
}
table.tablesorter .table_summary p {
	margin:0;
}
table.tablesorter img {
	width : 130px;
}
table.tablesorter .table_price {
	text-align:center;
}
table.tablesorter .table_rating {
	text-align: center;
}
table.tablesorter .rating_details {
	font-size: 36px;
	line-height: 36px;
	color: #333;
	font-weight: bold;
	text-align: center;
}
table.tablesorter .table_action {
	text-align:center;
}
table.tablesorter .table_action .ar_button {
	padding: 10px !important;
}

/* widget */
.textwidget .table_media img {width:100%;}

/* 
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media 
only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px)  {
	
	table.tablesorter {
	}
	/* tr spacing */
	table.tablesorter tr{
		float: left
		width: 100%;
		margin-bottom:20px;
	}	
	table.tablesorter tbody td {
		padding-top:0px;
	}
	table.tablesorter .table_media img {
		width: 100%;
		height:100%;
	}
	table.tablesorter .table_summary {
		max-width: 100%;
	}
	table.tablesorter .table_price {
		font-size:12pt;
		font-weight: bold;
	}
	
	/* Force table to not be like tables anymore */
	table, thead, tbody, th, td, tr { 
		display: block; 
	}
	
	/* Hide table headers (but not display: none;, for accessibility) */
	thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	
	tr { border: 1px solid #ccc; }
	
	td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		padding-left: 50%;
	}
	
	td:before { 
		/* Now like a table header */
		/* position: absolute; */
		/* Top/left values mimic padding */
		top: 6px;
		left: 6px;
		width: 45%; 
		padding-right: 10px; 
		white-space: nowrap;
	}
	
	/*
	Label the data
	*/
	.tablesorter td:nth-of-type(1):before { font-weight: bold; content: "Ranked #"; }
	/*td:nth-of-type(2):before { font-weight: bold; content: "Product"; }
	td:nth-of-type(3):before { font-weight: bold; content: "Summary"; }
	td:nth-of-type(4):before { font-weight: bold; content: "Price"; }
	td:nth-of-type(5):before { font-weight: bold; content: "Rating"; }
	td:nth-of-type(6):before { font-weight: bold; content: "Action"; }
	*/
}