/**
 * 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/>.
 */

/*** COMMON ***/

#bypv_cart a.clean {
	font-weight: bold;
	text-decoration: none;
}

#bypv_cart a.clean,
#bypv_cart a.clean:hover
{
	background: none;
	color: #000;
}

#bypv_cart table.clean {
	border-collapse: separate;
	border-spacing: 0 0.5em;
	border: none;
}

#bypv_cart table.clean tr,
#bypv_cart table.clean td
{
	border: none;
	vertical-align: middle;
}

#bypv_cart div.cart_block {
	border: 1px solid #e6e5e5;
	border-radius: 4px;
	background-color: #fff;
	
	box-sizing: border-box; 
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}

#bypv_cart div#bypv_cart_shipping_address_select,
#bypv_cart div#cart_tos,
#bypv_cart div#cart_buttons
{
	border: none;
}

#bypv_cart div.cart_block > .cart_block_title {
	margin: 0px;
	padding: 10px 11px 10px 11px;
	border-bottom: 1px solid #e1e0e0;
	border-top-right-radius: 6px;
	border-top-left-radius: 6px;
	background: #fbfbfb;
	background-image: linear-gradient(to top, #edebeb -3.44%, #fbfbfb 96.56%);
	text-shadow: 0px 1px 0px #fff;
	letter-spacing: normal;
	font-weight: normal;
	font-size: 14px;
	line-height: 1.1em;
}

#bypv_cart div.cart_block > fieldset.clean {
	padding: 12px;
}

@media (max-width: 399px)
{
	#bypv_cart div.cart_block > fieldset.clean
	{
		padding: 8px 2px;
	}
}

#bypv_cart input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=reset]),
#bypv_cart textarea,
#bypv_cart select,
#bypv_cart div.chzn-container-single .chzn-single,
#bypv_cart div.chzn-container-multi .chzn-choices
{
	line-height: 18px;
	padding: 6px 8px 4px 8px;
	font-size: 12px;
	height: 30px;
	
	color: #555555;
	border: 1px solid #e1e0e0;
	background: #fff;
	border-radius: 6px;
	vertical-align: middle;
}

#bypv_cart select[multiple]
{
	height: auto;
}

#bypv_cart textarea
{
	min-height: 30px;
	height: auto;
}

#bypv_cart input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=reset]),
#bypv_cart textarea
{
	box-shadow: inset 0px 3px 5px #e1e0e0;
}

#bypv_cart select,
#bypv_cart div.chzn-container-single .chzn-single,
#bypv_cart div.chzn-container-multi .chzn-choices
{
	box-shadow: inset 0px 0px 10px #e1e0e0;
}

#bypv_cart div.chzn-container-multi .chzn-choices .search-field
{
	margin: 0 5px;
}

#bypv_cart div.chzn-container-active .chzn-single-with-drop {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	box-shadow: 0px 4px 5px rgba(0,0,0,.15);
}

#bypv_cart div.chzn-container-single .chzn-drop {
	border: 1px solid #e1e0e0;
	border-top-width: 0;
}

#bypv_cart input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=reset]):focus,
#bypv_cart textarea:focus,
#bypv_cart select:focus
{
	border-color: rgba(82, 168, 236, 0.8);
	outline: 0 none;
}

#bypv_cart input.text_button {
	padding: 6px 12px;
	font-size: 14px;
	height: 30px;

	border: 1px solid #bbbbbb;
	border-color: #e6e6e6 #e6e6e6 #bfbfbf;
	border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
	border-bottom-color: #a2a2a2;
	border-radius: 4px;
	background-color: #f5f5f5;
	background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
	background-repeat: repeat-x;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
	color: #333333;
	text-align: center;
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
	vertical-align: middle;
}

#bypv_cart input#bypv_login,
#bypv_cart input.checkout_button
{
	border-color: #51a351 #51a351 #387038;
	border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
	background-color: #5bb75b;
	background-image: linear-gradient(to bottom, #62c462, #51a351);
	background-repeat: repeat-x;
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

#bypv_cart div#cart_buttons input.text_button {
	height: 46px;
}

#bypv_cart div#cart_buttons input.checkout_button {
	font-size: 17.5px;
}

#bypv_cart input.text_button:hover
{
	background-position: 0 -15px;
	background-color: #e6e6e6;
	color: #333333;
}

#bypv_cart input#bypv_login:hover,
#bypv_cart input.checkout_button:hover
{
	background-color: #51a351;
	color: #ffffff;
}

#bypv_cart div.cart_toolbar input.text_button
{
	font-size: 12px;
	padding: 3px 6px;
	height: 24px;
}

/*** Coupon Code ***/

/*** Product List ***/

#bypv_cart table.summary_table tr.coupon_code input[type=text] {
	height: 22px;
	line-height: 14px;
	font-size: 11px;
}

#bypv_cart table.summary_table tr.coupon_code input[type=button] {
	padding: 2px 12px;
	height: 22px;
}

/*** Product List - COLS ***/

#bypv_cart table.summary_table thead tr th,
#bypv_cart table.summary_table tr td
{
	color: #333;
}

#bypv_cart table.summary_table thead tr th {
	text-transform: uppercase;
	font-size: 10px;
	font-weight: normal;
	background: none;
}

#bypv_cart table.summary_table tr td {
	font-size: 12px;
}

#bypv_cart table.summary_table thead tr th,
#bypv_cart table.summary_table tr td
{
	border: 0px solid #e6e5e5;
	padding: 0.5em 0.5em 1em 0.5em;
}

#bypv_cart table.summary_table thead tr th,
#bypv_cart table.summary_table tr.product td
{
	border-bottom-width: 1px; 
}

#bypv_cart table.summary_table thead tr th hr
{
	border: none;
	border-bottom: 1px solid #e6e5e5;
}

#bypv_cart table.summary_table tbody tr td.name div.image img {
	max-height: 5em;
}

#bypv_cart table.summary_table tbody tr td.name div.text span.product_name {
	font-size: 1.2em;
	font-weight: bold;
}

#bypv_cart table.summary_table tbody tr td.price_excl_tax,
#bypv_cart table.summary_table tbody tr td.price_incl_tax,
#bypv_cart table.summary_table tbody tr td.total_excl_tax,
#bypv_cart table.summary_table tbody tr td.total_incl_tax,
#bypv_cart table.summary_table tbody tr td .price_excl_tax.responsive,
#bypv_cart table.summary_table tbody tr td .price_incl_tax.responsive
{
	font-weight: bold;
	color: #02AA02;
}

#bypv_cart table.summary_table tbody tr td.total_incl_tax {
	font-size: 14px;
}

#bypv_cart table.summary_table tr td.tax,
#bypv_cart table.summary_table tr td.discount,
#bypv_cart table.summary_table tr td .discount.responsive
{
	font-size: 11px;
	color: #777;
}

#bypv_cart table.summary_table tbody tr td span.original
{
	text-decoration: line-through;
}

#bypv_cart table.summary_table tfoot tr.coupon_code td,
#bypv_cart table.summary_table tfoot tr.shipment td,
#bypv_cart table.summary_table tfoot tr.payment td
{
	padding: 0.2em 0.5em;
}

#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-transform: uppercase;
	font-weight: bold;
}

#bypv_cart table.summary_table tfoot tr.total td.total_incl_tax,
#bypv_cart table.summary_table tfoot tr.total_currency td.total_incl_tax
{
	font-size: 14px;
	font-weight: bold;
}

#bypv_cart table.summary_table tfoot tr td.label label {
	text-transform: uppercase;
	font-weight: bold;
}

/*** Quantity Controls ***/

#bypv_cart table.summary_table tr.product span.bypv_quantity_controls input,
#bypv_cart table.summary_table tr.product input.bypv_product_update,
#bypv_cart table.summary_table tr.product input.bypv_product_remove,
#bypv_cart table.summary_table tr.coupon_code input.bypv_coupon_code_remove_button,
#bypv_cart div#bypv_cart_shipping_address_select input.bypv_remove_address_button
{
	margin: 0;
	padding: 0;
	border: none;
}

#bypv_cart table.summary_table tr.product span.bypv_quantity_controls input {
	width: 16px;
	height: 16px;
}

#bypv_cart table.summary_table input.bypv_quantity {
	font-weight: bold;
}

#bypv_cart table.summary_table tr.product span.bypv_quantity_controls input.bypv_quantity_plus {
	background: url('../images/button_plus.png') no-repeat top left;
}

#bypv_cart table.summary_table tr.product span.bypv_quantity_controls input.bypv_quantity_minus {
	background: url('../images/button_minus.png') no-repeat top left;
	margin-top: 2px;
}

#bypv_cart table.summary_table tr.product input.bypv_product_update {
	background: url('../images/button_refresh.png') no-repeat top left;
	width: 24px;
	height: 24px;
}

#bypv_cart table.summary_table tr.product input.bypv_product_remove,
#bypv_cart table.summary_table tr.coupon_code input.bypv_coupon_code_remove_button,
#bypv_cart div#bypv_cart_shipping_address_select input.bypv_remove_address_button
{
	background: url('../images/button_remove.png') no-repeat top left;
	width: 24px;
	height: 24px;
}

/*** Shipments / Payments ***/

#bypv_cart div.method_block div.info {
	margin: 0 0 1em 0;
	padding: 0.5em;
	background-color: #eee;
	border: 1px solid #e6e5e5;
	border-radius: 4px;
	font-size: 0.8em;
	text-align: justify;
	text-transform: uppercase;
}

#bypv_cart div.method_block span.vmshipment_description,
#bypv_cart div.method_block span.vmpayment_description,
#bypv_cart div.method_block span.vmshipment_cost,
#bypv_cart div.method_block span.vmpayment_cost
{
	font-size: 0.85em;
	color: inherit;
}

/*** Login / Logout ***/

#bypv_cart div#bypv_cart_login.logout p
{
	line-height: 30px;
}

/*** Address ***/

/*** Customer Comment ****/

/*** TOS ****/

div#cart_tos label {
	font-size: 1.2em;
}

div#cart_tos label a:hover {
	text-decoration: underline;
}

/*** Buttons ****/

#bypv_cart div#cart_buttons {
	text-align: center;
}