/**
 * Plugin: One Page Checkout for VirtueMart byPV
 * Copyright (C) 2014 byPV.org <info@bypv.org>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

@media (max-width: 767px)
{
	/*** Prevent Input Zoom ***/
	
	#bypv_cart input,
	#bypv_cart textarea
	{
		font-size: 16px !important;
		line-height: 18px !important;
	}

	/*** Responsive Styles ***/
	
	#bypv_cart table.summary_table th
	{
		white-space: normal;
	}
	
	#bypv_cart.checkout div.cart_block,
	#bypv_cart.confirm div.cart_block,
	#bypv_cart div#bypv_cart_customer_type_select,
	#bypv_cart div#bypv_cart_login.login,
	#bypv_cart div#bypv_cart_login.logout,
	#bypv_cart.confirm div#bypv_cart_billing_address,
	#bypv_cart.confirm div#bypv_cart_shipping_address,
	#bypv_cart div#cart_customer,
	#bypv_cart.checkout div#cart_comment,
	#bypv_cart.confirm div#cart_comment
	{
		clear: both;
		float: none;
		width: 100%;
		margin: 0 0 1em 0;
	}
	
	#bypv_cart div.cart_block > .cart_block_title,
	#bypv_cart div#bypv_cart_customer_type_select > .cart_block_title,
	#bypv_cart div#bypv_cart_login.login > .cart_block_title,
	#bypv_cart div#bypv_cart_login.logout > .cart_block_title
	{
		text-align: left;
	}
	
	#bypv_cart div#bypv_cart_shipments ul,
	#bypv_cart div#bypv_cart_payments ul,
	#bypv_cart div#bypv_cart_customer_type_select ul
	{
		padding-left: 1em;
	}
	
	#bypv_cart div#bypv_cart_shipments ul li,
	#bypv_cart div#bypv_cart_payments ul li,
	#bypv_cart div#bypv_cart_customer_type_select ul li
	{
		display: block;
		text-align: left;
	}
	
	#bypv_cart div#bypv_cart_login.logout
	{
		text-align: left;
	}
	
	#bypv_cart div#bypv_cart_login.logout p
	{
		display: inline;
		margin-right: 1em;
		vertical-align: middle;
	}
	
	#bypv_cart div#bypv_cart_login.login table,
	#bypv_cart div.address_block table
	{
		width: 100%;
	}
	
	#bypv_cart div#cart_comment textarea
	{
		width: 100%;
		min-height: 8em;
	}
	
	#bypv_cart div#cart_tos
	{
		text-align: left;
	}
}

@media (max-width: 699px)
{
	#bypv_cart table.summary_table tr > .sku
	{
		position: absolute;
		visibility: hidden;
		font-size: 0px;
		width: 0px;
		padding: 0px;
	}
	
	#bypv_cart table.summary_table .sku.responsive,
	#bypv_cart table.summary_table tbody td.name div.image, 
	#bypv_cart table.summary_table tbody td.name div.image + div.text
	{
		display: block;
		width: auto;
		text-align: center;
	}

	#bypv_cart table.summary_table td .sku.responsive
	{
		font-size: 10px;
	}

	#bypv_cart table.summary_table td.name > .sku.responsive
	{
		font-weight: bold;
		text-align: center;
	}

	#bypv_cart table.summary_table thead th.name
	{
		text-align: center;
	}
	 
	#bypv_cart table.summary_table tbody td.name div.text a {
		font-size: 11px !important;
		line-height: 11px !important;
	}

	#bypv_cart table.summary_table tbody td.name div.image img
	{
		max-height: 3em !important;
	} 

	#bypv_cart table.summary_table .tax
	{
		display: none;
	}
	
	#bypv_cart table.summary_table tfoot tr td.label,
	#bypv_cart table.summary_table tfoot tr.subtotal td.label,
	#bypv_cart table.summary_table tfoot tr.total td.label,
	#bypv_cart table.summary_table tfoot tr.total_currency td.label
	{
		text-align: left;
	}
	
	#bypv_cart div.bypv_product_quantity input.bypv_quantity
	{
		width: 40px;
	}
	
	#bypv_cart table.summary_table input[name=bypv_coupon_code]
	{
		width: 80%;
	}
}

@media (max-width: 599px)
{
	#bypv_cart table.summary_table tr > .total_excl_tax
	{
		display: none;
	}

	#bypv_cart table.summary_table .total_excl_tax.responsive
	{
		display: block;
		width: auto;
	}
	
	#bypv_cart table.summary_table tbody .total_excl_tax.responsive,
	#bypv_cart table.summary_table tfoot .total_excl_tax.responsive
	{
		font-size: 0.7em;
	}
}

@media (max-width: 549px)
{
	#bypv_cart table.summary_table tr > .price_excl_tax,
	#bypv_cart table.summary_table tr > .price_incl_tax
	{
		position: absolute;
		visibility: hidden;
		font-size: 0px;
		width: 0px;
		padding: 0px;
	}

	#bypv_cart table.summary_table .price_excl_tax.responsive,
	#bypv_cart table.summary_table .price_incl_tax.responsive
	{
		display: block;
		width: auto;
	}

	#bypv_cart table.summary_table td .price_excl_tax.responsive,
	#bypv_cart table.summary_table td .price_incl_tax.responsive
	{
		margin-bottom: 0.5em;
	}
}

@media (max-width: 449px)
{
	#bypv_cart table.summary_table td.name div
	{
		line-height: 1em;
	}
	
	#bypv_cart table.summary_table tr > .discount
	{
		display: none;
	}

	#bypv_cart table.summary_table .discount.responsive
	{
		display: block;
		width: auto;
		text-align: center;
	}

	#bypv_cart table.summary_table td .discount.responsive
	{
		margin-top: 0.5em;
	}
}

@media (max-width: 399px)
{
	#bypv_cart table.summary_table tbody td.name div.text > div
	{
		display: none;
	}
}

@media (max-width: 359px)
{
	#bypv_cart table.summary_table td.quantity span.bypv_quantity_controls,
	#bypv_cart table.summary_table .drop
	{
		display: none;
	}

	#bypv_cart table.summary_table td.quantity input.bypv_product_remove.responsive
	{
		display: inline-block;
	}
}