/**
 * 	SAS Checkout Stylesheet
 */

/**
 * 	Title
 */

.page-checkout  h1.page-title {
	text-align: center;
    font-size: 44px;
    font-weight: 400;
    margin-bottom: 5px;
    margin-top: 35px;
}

.page-checkout h1.page-title:after {
	content: ' ';
    display: block;
    background: #dd2831;
    height: 4px;
    width: 30px;
    bottom: -1px;
    margin: 0 auto;
    margin-top: 10px;
    width: 50px;
    visibility: visible;
}

/** **/
	
/**
 * 	Main checkout panes
 */

#cart-contents-ajax-wrapper {
	margin-top: 35px;
	margin-bottom: 35px;
}

#commerce-checkout-coupon-ajax-wrapper,
#customer-profile-shipping-ajax-wrapper,
#customer-profile-billing-ajax-wrapper,
#commerce-user-profile-pane-ajax-wrapper,
#terms-conditions-ajax-wrapper,
#account-ajax-wrapper,
#commerce-checkout-field-group--group-is-b2b-ajax-wrapper {
	margin-bottom: 25px;
}

#customer-profile-shipping-ajax-wrapper .field-name-field-zona-customer-profile {
	display: none;
}

/** **/
	
/**
 * 	Shipping checkout panes
 */

#commerce-checkout-field-group--group-requiere-presupuesto-ajax-wrapper {
	margin-top: 35px;
}

#commerce-checkout-field-group--group-requiere-presupuesto-ajax-wrapper,
#commerce-checkout-field-group--group-metodo-envio-ajax-wrapper {
	margin-bottom: 25px;
}

/** **/
	
/**
 * 	Review checkout panes
 */

#commerce-checkout-form-review {
		margin-top: 35px;
	margin-bottom: 25px;

}

#commerce-checkout-form-review .checkout-help {
	font-size: 16px;
    padding-left: 15px;
    padding-bottom: 10px;
}

#checkout-review-ajax-wrapper table.checkout-review > tbody > tr:first-child {
	display: none;
}

/** **/

/**
 * 	Completion message
 */

#checkout-completion-message-ajax-wrapper {
	margin-top: 50px;
}

#checkout-completion-message-ajax-wrapper h2 {
	font-size: 32px;
}

/** **/

/**
 * 	Buttons
 */

.page-checkout #edit-buttons #edit-continue {
    background-color: #ef9c27!important;
    font-weight: 400;
    color: white;
}

.page-checkout #edit-buttons #edit-continue:hover {
	background-color: white!important;
	border-color: white!important;
}

/** **/
	
/**
 * 	Mobile
 */

.bitaboot-xs #commerce-checkout-form-checkout div.messages.error,
.bitaboot-sm #commerce-checkout-form-checkout div.messages.error {
	margin-left: 15px;
	margin-right: 15px;
}

.bitaboot-xs.page-checkout #commerce-checkout-field-group--group-requiere-presupuesto-ajax-wrapper, 
.bitaboot-sm.page-checkout #commerce-checkout-field-group--group-requiere-presupuesto-ajax-wrapper {
	padding-left: 15px;
	padding-right: 15px;
}

.bitaboot-xs.page-checkout #commerce-checkout-field-group--group-metodo-envio-ajax-wrapper, 
.bitaboot-sm.page-checkout #commerce-checkout-field-group--group-metodo-envio-ajax-wrapper {
	padding-left: 15px;
	padding-right: 15px;
}

.bitaboot-xs #checkout-completion-message-ajax-wrapper,
.bitaboot-sm #checkout-completion-message-ajax-wrapper {
	margin-top: 35px;
	padding-left: 15px;
	padding-right: 15px;
}

.bitaboot-xs #checkout-completion-message-ajax-wrapper h2,
.bitaboot-sm #checkout-completion-message-ajax-wrapper h2 {
	font-size: 20px;
}

.page-checkout-complete #bitanube-sas-checkout-ajax-wrapper {
	margin-top: 25px;
}

.page-checkout-complete #bitanube-sas-checkout-ajax-wrapper #edit-bitanube-sas-checkout {
	text-align: center;
}

.page-checkout-complete #bitanube-sas-checkout-ajax-wrapper #edit-bitanube-sas-checkout #sas-checkout-complete-b2b-register {
	margin-top: 5px;
}

.page-checkout-complete #bitanube-sas-checkout-ajax-wrapper #sas-checkout-complete-b2b-register-btn {
	margin-top: 10px;
	margin-bottom: 10px;
}

/**
 * 	Selector de distribuidores en el checkout
 */

.view-id-checkout_distribuidores .view-filters .views-exposed-form {
	padding-left: 0;
	padding-right: 0;
}

.view-id-checkout_distribuidores #edit-combine {
	padding-top: 5px;
	padding-bottom: 5px;
}

.view-id-checkout_distribuidores .views-exposed-form .views-exposed-widget .form-submit {
	margin-top: 27px;
}

.view-id-checkout_distribuidores .views-field-nid {
	display: none;
}

.view-id-checkout_distribuidores .field-name-field-ubicacion,
.view-id-checkout_distribuidores .field-name-field-codigo-postal,
.view-id-checkout_distribuidores .field-name-field-provincia {
	display: inline;
}

.view-id-checkout_distribuidores .field-name-field-ubicacion div,
.view-id-checkout_distribuidores .field-name-field-codigo-postal div,
.view-id-checkout_distribuidores .field-name-field-provincia div {
	display: inline;
}

.view-id-checkout_distribuidores .field-name-field-ubicacion:after,
.view-id-checkout_distribuidores .field-name-field-codigo-postal:after {
	content: ", ";
}


.view-id-checkout_distribuidores .item-list ul li {
	list-style-type: none;
	margin-left: 0;
	background-color: white;
    border-bottom: 1px solid #ddd;
    padding-left: 15px;
    padding-right: 15px;
    cursor: pointer;
}

.view-id-checkout_distribuidores .item-list ul li:hover,
.view-id-checkout_distribuidores .item-list ul li.sas-selected-distributor {
	background-color: #dd2831;
}

.view-id-checkout_distribuidores .item-list ul li:hover *,
.view-id-checkout_distribuidores .item-list ul li.sas-selected-distributor * {
	color: white!important;
}

.view-id-checkout_distribuidores .field-name-field-persona-de-contacto,
.view-id-checkout_distribuidores .field-name-field-persona-de-contacto h4 {
	margin-top: 0;
	margin-bottom: 5px;
}

.view-id-checkout_distribuidores .field-name-field-persona-de-contacto h4 {
	font-size: 18px;
}

/** **/

.page-checkout #edit-buttons #edit-continue[disabled=disabled] {
	background-color: #414242!important;
}	

.page-checkout-shipping #commerce-checkout-field-group--group-requiere-presupuesto-ajax-wrapper {
	display: none!important;
}

.page-checkout-shipping #commerce-checkout-field-group--group-metodo-envio-ajax-wrapper {
	margin-top: 35px;
}

table.checkout-review tbody > tr:nth-child(9),
table.checkout-review tbody > tr:nth-child(10) {
	display: none;
}

.view-commerce-cart-summary table tbody td .commerce-product-sku-label,
.page-cart table tbody tr td .commerce-product-sku-label,
.page-checkout table tbody tr td .commerce-product-sku-label {
	display: none;
}

.page-cart table tbody tr td .commerce-product-sku, 
.page-checkout table tbody tr td .commerce-product-sku {
	padding-left: 5px;
}

.page-checkout .view-commerce-cart-summary table.commerce-price-savings-formatter-prices tbody tr:last-child {
	border-bottom: 0px solid #5f7e8a!important;
	background-color: transparent!important;
}

.page-checkout .view-commerce-cart-summary table.commerce-price-savings-formatter-prices tbody tr:last-child td.commerce-price-savings-formatter-list span {
	font-size: 18px;
}

.page-cart  .views-table table.commerce-price-savings-formatter-prices tbody tr:last-child td.commerce-price-savings-formatter-price span,
.page-checkout .view-commerce-cart-summary table.commerce-price-savings-formatter-prices tbody tr:last-child td.commerce-price-savings-formatter-price span {
	font-size: 19px;
	font-weight: 500;
	color: #70a83b;
}

/**
 * 	Hide taxes from Italy and Germany
 */

table.commerce-price-formatted-components .component-type-taxgermany {
	display: none!important;
}

table.commerce-price-formatted-components .component-type-taxitaly-vat {
	display: none!important;
}

table.commerce-price-formatted-components .component-type-taxrest-of-the-world {
	display: none!important;
}

/** **/
	
#commerce-checkout-form-checkout #edit-commerce-checkout-field-group-group-is-b2b #edit-field-type-b2b label[for="edit-field-type-b2b-und"] {
	display: none;
}

#commerce-checkout-form-checkout #edit-commerce-checkout-field-group-group-is-b2b #edit-field-type-b2b #edit-field-type-b2b-und .form-type-radio:nth-child(2) {
	display: none;
}

#commerce-checkout-form-checkout #edit-commerce-checkout-field-group-group-is-b2b #edit-field-type-b2b #edit-field-type-b2b-und .form-type-radio > label {
	margin-left: 5px;
}

#commerce-checkout-form-checkout #edit-commerce-checkout-field-group-group-is-b2b #edit-field-type-b2b #edit-field-type-b2b-und .form-item .description {
	font-weight: 300;
	display: inline-block;
	width: 100%;
}

/**
 * 	TODO: REMOVE
 */

body:not(.role-sas-debug) #commerce-checkout-form-checkout #edit-field-type-b2b {
	display: none;
}

body.role-sas-debug #edit-field-is-b2b {
	display: none;
}

#edit-field-type-b2b .form-item-field-type-b2b-und {
	margin-top: 0;
}

