/* 
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: 800px)  {

	/* Force table to not be like tables anymore */
	table.data-table:not(#checkout-review-table), .data-table:not(#checkout-review-table) thead, .data-table:not(#checkout-review-table) tbody,  .data-table:not(#checkout-review-table) tfoot, .data-table:not(#checkout-review-table) th, .data-table:not(#checkout-review-table) td, .data-table:not(#checkout-review-table) tr { 
		display: block;
		clear: both;
	}
	
	table.data-table:not(#checkout-review-table) {
		border-top: 1px solid #5e5e5e;
		border-left: 1px solid #5e5e5e;
		border-right: 1px solid #5e5e5e;
	}
	
	/* Hide table headers (but not display: none;, for accessibility) */
	.data-table:not(#checkout-review-table) thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	
	.data-table:not(#checkout-review-table) tbody tr { 
		border-bottom: 1px solid #5e5e5e;
	}
	
	.data-table:not(#checkout-review-table) tbody td { 
		/* Behave  like a "row" */
		border: none;
		position: relative;
		padding-left: 9px; 
	}
	
	/*.data-table td.a-center, .data-table td.a-right { 
		text-align: left !important;
	}*/
	
	
	.data-table:not(#checkout-review-table) tbody td:before { 
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 9px;
		left: 9px;
		width: 0; 
		padding-right: 0; 
		white-space: nowrap;
		font-weight: bold;
	}
	
	.data-table:not(#checkout-review-table) tfoot td {
		padding-left: 9px;
	}
	
	.data-table:not(#checkout-review-table) tfoot td:before {
		width: 0;
		padding-right: 0;
	}
	
	/*
	Label the data
	*/
	
	
	.data-table:not(#checkout-review-table) td:nth-of-type(1):before { content: ""; }
	.data-table:not(#checkout-review-table) td:nth-of-type(2):before { content: ""; }
	.data-table:not(#checkout-review-table) td:nth-of-type(3):before { content: ""; }
	.data-table:not(#checkout-review-table) td:nth-of-type(4):before { content: ""; }
	.data-table:not(#checkout-review-table) td:nth-of-type(5):before { content: ""; }
	.data-table:not(#checkout-review-table) td:nth-of-type(6):before { content: ""; }
	.data-table:not(#checkout-review-table) td:nth-of-type(7):before { content: ""; }
	.data-table:not(#checkout-review-table) td:nth-of-type(8):before { content: ""; }
	.data-table:not(#checkout-review-table) td:nth-of-type(9):before { content: ""; }
	.data-table:not(#checkout-review-table) td:nth-of-type(10):before { content: ""; }
	.data-table:not(#checkout-review-table) td:nth-of-type(11):before { content: ""; }
	.data-table:not(#checkout-review-table) td:nth-of-type(12):before { content: ""; }
	.data-table:not(#checkout-review-table) td:nth-of-type(13):before { content: ""; }
	.data-table:not(#checkout-review-table) td:nth-of-type(14):before { content: ""; }
	.data-table:not(#checkout-review-table) td:nth-of-type(15):before { content: ""; }
	.data-table:not(#checkout-review-table) td:nth-of-type(16):before { content: ""; }
	.data-table:not(#checkout-review-table) td:nth-of-type(17):before { content: ""; }
	.data-table:not(#checkout-review-table) td:nth-of-type(18):before { content: ""; }
	.data-table:not(#checkout-review-table) td:nth-of-type(19):before { content: ""; }
	.data-table:not(#checkout-review-table) td:nth-of-type(20):before { content: ""; }
	
	
	/* Forum Forums Table */
	
	
	#forum_table_forums td:nth-of-type(2) { padding-left: 50%; }
	#forum_table_forums td:nth-of-type(2):before { content: "Posts"; width: 45%; padding-right: 10px; font-weight: normal;   }
	#forum_table_forums td:nth-of-type(3) { padding-left: 50%; }
	#forum_table_forums td:nth-of-type(3):before { content: "Views"; width: 45%; padding-right: 10px; font-weight: normal;  }
	
	#forum_table_forums td:nth-of-type(4) { display: none !important; }
	
	
	/* Forum Topics Table */
	
	#forum_table_topics td:nth-of-type(2) { padding-left: 50%; }
	#forum_table_topics td:nth-of-type(2):before { content: "Posts"; width: 45%; padding-right: 10px; font-weight: normal;   }
	#forum_table_topics td:nth-of-type(3) { padding-left: 50%; }
	#forum_table_topics td:nth-of-type(3):before { content: "Views"; width: 45%; padding-right: 10px; font-weight: normal;  }
	
	#forum_table_topics td:nth-of-type(4) { display: none !important; }
	
	
	/* Product Reviews Table */
	#product-review-table input {
		float: none;
	}
	
	#product-review-table tbody td {
		padding-left: 50%; 
	}
	#product-review-table tbody td:before {
		width: 45%; 
		padding-right: 10px; 
	}
	#product-review-table tbody td:nth-of-type(1):before { content: "Rating"; }
	#product-review-table tbody td:nth-of-type(2):before { content: "1 star"; }
	#product-review-table tbody td:nth-of-type(3):before { content: "2 star"; }
	#product-review-table tbody td:nth-of-type(4):before { content: "3 star"; }
	#product-review-table tbody td:nth-of-type(5):before { content: "4 star"; }
	#product-review-table tbody td:nth-of-type(5):before { content: "5 star"; }
	
	
	/* My Orders Table */
	#my-orders-table tbody td {
		padding-left: 50%; 
	}
	#my-orders-table tbody td:before {
		width: 45%; 
		padding-right: 10px; 
	}
	#my-orders-table tbody td:nth-of-type(1):before { content: "Order #"; }
	#my-orders-table tbody td:nth-of-type(2):before { content: "Date"; }
	#my-orders-table tbody td:nth-of-type(3):before { content: "Ship To"; }
	#my-orders-table tbody td:nth-of-type(4):before { content: "Order Total"; }
	#my-orders-table tbody td:nth-of-type(5):before { content: "Order Status"; }
	
	/*Remove margin from product images */
	.data-table .product-image img {
		margin: 0;
	}
	
}