/**
 * Magento Advisa Fastorder Module
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * @category	Advisa
 * @package	Advisa_Fastorder
 * @copyright	Copyright (c) 2012 Advisa Interative Web Agency (http://www.advisa.fr)
 * @author	Anthony Grutter (magento@advisa.fr)
 * @license	http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 * @version	1.0.0
 */

 /* END 404 Not Found */
/******************************************************/
/* Override Fast Order Styles */
.fastorder-row-ref button {
    display: none;
}

.fastorder-row-add-all {
    position: relative;
}
#fastorder-add-all.button,
.fastorder-row-add .button {
    color: #fff;
    background: #ec1c24;
}
#fastorder-close,
#fastorder-add-all.button.disabled,
.fastorder-row-add .button.disabled {
    color: #a7a8a9;
    background: #ebedf2;
}
.qty {
    text-align: center;
}
.input-ok {
    background: #f0f0f0;
}
.input-ok:focus {
    background: #fff;
}
.fastorder_autocomplete li.selected a .product-name .ref-part,
.fastorder_autocomplete li.selected a .product-name {
    color: #fff;
    font-weight: bold;
}

@media (max-width:400px){
	#fastorder{
		clear:both;
		margin:0;
        max-width: 300px;
		padding:0;
	}
	.fastorder-actions a {
		font-size:0.9em;
		margin:0;
		padding:0;
	}
}
#fastorder {
    background-color: #ebedf2;
}

#fastorder ::-webkit-input-placeholder {
   color: #000;
}

#fastorder :-moz-placeholder { /* Firefox 18- */
   color: #000;  
}

#fastorder ::-moz-placeholder {  /* Firefox 19+ */
   color: #000;  
}

#fastorder :-ms-input-placeholder {  
   color: #000;  
}
#fastorder .fastorder_autocomplete a[disabled] {
    opacity: 0.15;
    cursor: default;
}
.fastorder-actions {
    height: 31px;
}
.fastorder-actions a {
    height: 30px;
    line-height: 30px;
    display: block;
    float: left;
    padding: 0 10px;
    text-align: center;
    text-decoration: none;
    width:50%;
}
.fastorder-actions a.active {
    font-weight: bold;
    background: #ebedf2;
}
.fastorder-row {
    position: relative;
}
.fastorder-row .row-loader-bg {
    background: #ffffff;
    height: 64px;
    position: absolute;
    top: 0;
    left: 0;
    z-index:1;
    display: none;
}
.fastorder-row .row-loader {
    background: url(../../images/advisa/fastorder/ajax-loader.gif) no-repeat center center;
    height: 64px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index:2;
    display: none;
}
.products-grid .row-loader {
    height: 20px;
}
#fastorder-one-form .row-loader {
    height: 64px;
}
.fastorder-row-ref {
    min-width: 120px;
}
    .fastorder-row-ref label {
        float: left;
        line-height: 20px;
        margin-right: 5px;
        font-size: 11px;
    }
    .fastorder-row-ref .input-text {
        position: relative;
    }
.fastorder-row-image {
    float: left;
    width: 64px;
    height: 64px;
    position: relative;
    overflow:hidden;
}
.fastorder-row-image span.animation {
    display: block;
    width: 64px;
    text-align: center;
    background: #ffffff;
    position: absolute;
    left: -64px;
    top: 0;
}
.fastorder-row-name {
    float: left;
    margin-left: 15px;
    height: 46px;
    padding-top: 18px;
    font-weight: normal;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 11px;
    position: relative;
}
.fastorder-row-name span.animation {
    display: block;
    position: absolute;
    left: -420px;
    top: 18px;
}
.fastorder-row-name .reference {
    text-transform: none;
    font-weight: bold;
}
.fastorder-one-form {
    width: 100%;
}
.fastorder-one-form td {
    padding: 5px 10px;
}
.fastorder-one-form > thead > tr > th {
    font-weight: bold;
    text-align: center;
    padding: 15px 10px;
    border-bottom: solid thin #f0f0f0;
}
.fastorder-row-add {
    display: none;
}
.fastorder-inventory.input-text {
    background: #f0f0f0;
}
.fastorder-row-inventory {
    position: relative;
}
#fastorder-add-another {
    color: #ec1c24;
    background-color: transparent;
    font-family: "brandon_grotesque_bold", sans-serif;
    text-transform: none;
}
#fastorder-add-another:focus {
    outline: none;
}
#fastorder-close:hover {
    color: #333;
    background-color: transparent;
}
.fastorder-delete:hover {
    cursor: pointer;
}
/*autocomplete*/
.fastorder_autocomplete {
    border: 1px solid;
    background: #fff;
    position: absolute;    
    display: none;
    left: auto;
    z-index: 1;
    border-top:1px solid;
}
.fastorder_autocomplete ul {
    min-width: 200px;
    margin-bottom: 0;
}
.fastorder_autocomplete li {
    border-bottom: 1px #A0B3C3 solid;
}
.fastorder_autocomplete li.loader {
    background: url(../../images/advisa/fastorder/ajax-loader.gif) no-repeat center center;
    height: 16px;
    padding: 5px;
    border-bottom: 0;
}
.fastorder_autocomplete li a {
    display: block;
    text-decoration: none;
    padding: 5px;
    height: 34px;
}
.fastorder_autocomplete li a .product-name {
    color: #1d1d1d;
    white-space: nowrap;
    font-size: 14px;
    font-weight: normal;
    float: left;
    display: block;
    height: 34px;
    line-height: 140%;
    overflow:hidden;
    padding-left: 10px;
}
.fastorder_autocomplete li a .product-name .ref-part {
    font-weight: bold;
    color: #ec1c24;
}
.fastorder_autocomplete li a .product-name .reference {
    font-size: 11px;
}
.fastorder_autocomplete li a .product-name .reference .ref-part {
    font-weight: bold;
    color: #AB8552;
}
.fastorder_autocomplete li a .product-image {
    float: left;
    display: block;
    width: 32px;
    height: 32px;
    text-align: center;
    background: #ffffff;
    border: 1px solid;
}
.fastorder_autocomplete li a .product-image img {
    height: 32px;
    width: auto;
}
.fastorder_autocomplete li.selected a {
    /*background: #ec1c24 url(../../images/advisa/fastorder/selected.jpg) no-repeat right center;*/
    background-color: #ec1c24;
}
.fastorder_autocomplete li.selected a .product-image {
    border: 1px #A0B3C3 solid;
}
.fastorder-no-results
{
    font-style: italic;
    font-size: 11px;
    color: #1d1d1d;
    text-align: center;
    height: 36px;
    padding: 5px;
    border-bottom: 0;
}
.fastorder-wrap-close {
    position: relative;
    height: 32px;
    background: #ebedf2;
    border-bottom:1px solid;
}
.fastorder-close {
    position: absolute;
    color: #333;
    font-weight: normal;
    right: 5px;
    top: 5px;
    font-size:1.2em;
    display: block;
    }
.fastorder-close:hover {
    color: #000000;
}
.cart {
    position: relative;
}
.cart .fastorder-cart-loader-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #fff;
    opacity: 0;
    filter: alpha(opacity=0);
    z-index: 10;
}
.cart .fastorder-cart-loader {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    filter: alpha(opacity=0);
    background: url(../../images/advisa/fastorder/ajax-loader.gif) no-repeat 50% 13px;
    z-index: 11;
}

.add-to-right-col .fastorder-row .row-loader {
    height: 34px;
    width: 100%;
	left: 26px;
}
#fastorder_addNotification {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
}
#fastorder_addNotification .success-msg,
#fastorder_addNotification .error-msg {
    margin: 0;
}
.fastorder_addNotificationInner {
    max-width: 1170px;
    margin: 0 auto;
}
#fastorder {
   padding-top: 5px;
}
#fastorder > a {
   float: right;
   color: #818285;
   text-decoration: underline;
   font-size: 12px;
   text-transform: initial;
   margin-right: 10px;
}
#fastorder > a:hover {
   color: #333333;
}

#fastorder.fastorder-cmspage {
    background-color: transparent;
    max-width: none;
    margin: 0 -15px;
}
@media (min-width: 992px) {
    #fastorder.fastorder-cmspage {
        margin: 0 -25px;
    }
}
.fastorder-cmspage .fastorder-one-form > thead > tr > th {
    font-family: brandon_text_bold;
    text-transform: uppercase;
    border: none;
    padding: 5px 10px;
}
.fastorder-cmspage #fastorder-add-another {
    border: none;
    cursor: pointer;
}
.fastorder-cmspage #fastorder-add-another:active {
    box-shadow: none;
}
.fastorder-cmspage #fastorder-add-another:hover {
    text-decoration: underline;
}
.fastorder-cmspage .fastorder_autocomplete ul {
    list-style: none;
}
.fastorder-cmspage #fastorder-add-all.button {
    width: 100%;
    white-space: normal;
}
