/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-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.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @copyright  Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */

/***************** WIDGETS ******************
    Loading Indicator
    Tables
    Grid ( ubiquitous, massaction and dynamic)
    Accordion
    Tabs ( vertical and horizontal )
    Messages
    Forms ( setter and elements)
    Switcher
    Space
    Boxes
    Scroller
*/

/**************** STRUCTURE *****************
    Layout
    Header & Footer
    Columns
    Headings
*/

/************** PAGE-SPECIFIC ***************
    Login
    Sales
    Catalog
    Customers
    Newsletter
    System
*/

/********** ALIGNMENT AND CLEARS ***********/


/******************************************************************/
/**************************** WIDGETS *****************************/
/******************************************************************/


/* LOADING INDICATOR
*******************************************************************/
#loading-process {
    position:absolute;
    top:45%;
    left:50%;
    margin-left:-60px;
    border:2px solid #f1af73;
    padding:15px 60px;
    background:#fff4e9;
    color:#d85909;
    font-size:1.1em;
    font-weight:bold;
    text-align:center;
    z-index:501;
}
#loading-mask {
    background: url(../images/blank.gif) repeat;
    position:absolute;
    color:#d85909;
    font-size:1.1em;
    font-weight:bold;
    text-align:center;
    opacity:0.80;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; /* IE8 */
    z-index:500;
}
#loading-mask .loader {
    position:fixed;
    top:45%;
    left:50%;
    width:120px;
    margin-left:-60px;
    padding:15px 60px;
    background:#fff4e9;
    border:2px solid #f1af73;
    color:#d85909;
    font-weight:bold;
    text-align:center;
    z-index:1000;
}

#message-popup-window-mask { position:absolute; top:0; right:0; bottom:0; left:0; width:100%; height:100%; z-index:980; background-color:#efefef; opacity:.5; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";/*IE8*/ }
.message-popup { position:absolute; z-index:990; width:407px; top:-9999em; left:50%; margin:0 0 0 -203px; background:#f3bf8f; padding:0 4px 4px; }
.message-popup.show { top:280px; }
.message-popup .message-popup-head { padding:1px 0; }
.message-popup .message-popup-head h2 { padding:0 10px; margin:0; font:bold 12px/19px Arial, Helvetica, sans-serif; color:#644f3b; }
.message-popup .message-popup-head a { float:right; border:1px solid #ea7601; padding:0 12px 0 7px; background:url(images/bkg_btn-close.gif) 0 50% repeat-x !important; font:normal 12px/17px Arial, Helvetica, sans-serif; color:#fff; text-decoration:none !important; cursor:pointer; }
.message-popup .message-popup-head a span { float:left; background:url(images/bkg_btn-close2.gif) 0 50% no-repeat; padding-left:19px; }
.message-popup .message-popup-content { background:#fdf4eb; padding:21px 21px 10px; }
.message-popup .message-popup-content .message-icon { float:left; width:50px; padding:47px 0 0; background-position:50% 0; background-repeat:no-repeat; font-size:10px; line-height:12px; text-transform:uppercase; text-align:center; overflow:hidden; }
.message-popup .message-popup-content .message-critical { background-image:url(images/severity_critical.gif); color:#e41101; }
.message-popup .message-popup-content .message-major { /*background-image:url(images/severity_major.gif);*/ color:#f55600; }
.message-popup .message-popup-content .message-minor { /*background-image:url(images/severity_minor.gif);*/ color:#ff9e22; }
.message-popup .message-popup-content .message-notice { /*background-image:url(images/severity_notice.gif);*/ color:#659601; }
.message-popup .message-popup-content .message-text { float:right; width:295px; min-height:4.5em; overflow:hidden; color:#644f3b; }
.message-popup .message-popup-content .read-more { margin:7px 0 0; text-align:right; }
.message-popup .message-popup-content .read-more a { background:url(images/more_arrow.gif) 0 50% no-repeat; padding-left:14px; text-decoration:underline; }
.message-popup .message-popup-content .read-more a:hover { text-decoration:none; }

/* TABLES
*******************************************************************************/

/* Grid - General */
.grid                           { border-bottom:0; padding-bottom:.5em; }
.grid table                     { width:100%; border:1px solid #cbd3d4; border-bottom:none; }
.grid table.border              { border:1px solid #cbd3d4; }
.grid tbody                     { background:#fff; }    /* Zebra odd-row */
.grid tr.even, .grid tr.even tr { background:#f6f6f6; } /* Zebra even-row */
.grid tr.on-mouse               { background:#fcf5dd; cursor:pointer; } /* Rows mouse-over */
.grid tr.invalid                { background-color:#f5d6c7; }
.grid th, .grid td              { padding:2px 4px 2px 4px; }
.grid th                        { white-space:nowrap; }
.grid td.editable input.input-text { width:50px !important; margin-left:4px !important; }
.grid td input.input-text       { width:86%; }
.grid td input.input-inactive   { background:#eee; }
.grid table td                  { border-width:0 1px 1px 0; border-color:#dadfe0; border-style:solid; }
.grid table.border td           { background:#fff !important; }
.grid table td.first,
.grid table td.last             { border-right:0; }
.grid table td.product          { text-align:right; }
.grid table td.empty-text       { padding:15px; }
.grid table td .action-select   { width:100%; }
.grid .separator                { padding:0 4px; color:#b9b9b9; }

.grid tbody.odd tr              { background:#fff !important; }
.grid tbody.even tr             { background:#f6f6f6 !important; }
.grid tbody.odd tr td,
.grid tbody.even tr td          { border-bottom:0; }
.grid tbody.odd tr.border td,
.grid tbody.even tr.border td   { border-bottom:1px solid #dadfe0; }


/* Grid - Pager and Buttons row */
table.actions                   { width:100%; margin:.5em 0; }
table.actions td                { vertical-align:top; }
.pager select                   { width:4em!important; margin:0 4px; }
.pager input.page               { width:2em !important; }
.pager .arrow                   { margin:0 3px; vertical-align:middle; }


/* Grid - Headings */
.grid tr.headings { background:url(images/sort_row_bg.gif) 0 50% repeat-x; }
.grid tr.headings th { border-width:1px; border-color:#f9f9f9 #d1cfcf #f9f9f9 #f9f9f9; border-style:solid; padding-top:1px; padding-bottom:0; font-size:.9em; }
.grid tr.headings th.last { border-right:0; }
.grid tr.headings th.no-link { /* Grid th with no sorting functionality */ padding-top:2px; padding-bottom:1px; color:#67767e; }
.grid tr.headings th span.nobr { display:block; /* FF3 fix */ }
.grid tr.headings th a { display:block; padding:2px 4px 1px 0; color:#2d444f; text-decoration:none; }
.grid tr.headings th a:hover { color:#d85909; text-decoration:none; }
.grid tr.headings th a.sort-arrow-desc,
.grid tr.headings th a.sort-arrow-asc { background:url(images/sort_on_bg.gif) 0 0 no-repeat; border-bottom:1px solid #fff; border-right:1px solid #fff; padding-bottom:2px; }
.grid tr.headings th span.sort-title { display:block; padding:3px 12px 4px 0; line-height:1; }
.grid tr.headings th a.sort-arrow-desc span.sort-title,
.grid tr.headings th a.sort-arrow-asc span.sort-title { background-position:right 50%; background-repeat:no-repeat; padding:3px 12px 2px 8px; }
.grid tr.headings th a.sort-arrow-desc span.sort-title { background-image:url(images/grid_sort_desc.gif); }
.grid tr.headings th a.sort-arrow-asc span.sort-title { background-image:url(images/grid_sort_asc.gif); }


/* Grid - Mass Action */
.massaction { width:100%; height:26px; border:1px solid #d1cfcf; border-bottom:none; background:url(images/massaction_bg.gif) repeat-x 0 100% #ebebeb; font-size:.9em; }
.massaction td                              { width:50%; border-top:1px solid #fff; padding:1px 8px; vertical-align:middle; }
.massaction .entry-edit fieldset .select    { width:auto; /*width:120px;*/ display:inline; }
.massaction .entry-edit fieldset select.validation-failed { border:1px dashed #eb340a !important; background:#faebe7 !important }
.massaction .entry-edit fieldset            { margin:0; padding:0; background:none; border:none; }
.massaction .entry-edit fieldset .field-row { display:inline; }
.massaction .entry-edit .field-row label    { float:none; width:auto; margin-left:13px; }
.massaction .entry-edit                     { margin:0 !important; padding:0; }
.massaction .entry-edit .validation-advice  { display:none !important; }
.massaction a { text-decoration:none; }
.massaction .entry-edit fieldset span.form_row,
.massaction .entry-edit fieldset span.field-row { clear:none !important; display:inline; float:left !important; margin:0; padding:0 5px 0 0; }

.massaction .entry-edit .outer-span { float:left; }

/* Grid - Filter */
.grid tr.filter                  { background:url(images/filter_row_bg.gif) repeat-x #e3eff1; cursor:default; }
.grid tr.filter th               { padding-top:5px; padding-bottom:5px; border:1px solid #bdbdbd; border-width:0 1px 1px 0; white-space:normal; }
.grid tr.filter th.last          { border-right:0; }
.grid tr.filter input.input-text { width:85%; }
.grid tr.filter select           { width:100%; }
.grid tr.filter .range .range-line { margin-bottom:3px; width:100px; }
.grid tr.filter .range div.date  { min-width:121px; }
.grid tr.filter .range input     { float:right; width:50px !important; margin-top:0; }
.grid tr.filter .range select    { float:right; width:56px !important; margin-top:0; }
.grid tr.filter .range .label    { display:block; width:36px; float:left; padding-left:2px; }
.grid tr.filter .date img        { width:15px; height:15px; cursor:pointer; vertical-align:middle; }
.grid .head-massaction select    { width:50px !important; }

/* Grid Footer */
.grid table tfoot tr            { background:#e5e5e5; }
.grid table tfoot tr td         { border-top:1px solid #777; background:#e5e5e5; line-height:1.7em; }
.grid table.border tfoot tr td  { background:#777 !important; }


/* Dynamic Grid */ /* Used in pages like Catalog -> Attributes */
.dynamic-grid th                { padding:2px;width:100px; }
.dynamic-grid td                { padding:2px; }
.dynamic-grid td input          { width:94px; }
tr.dynamic-grid td,
tr.dynamic-grid th { padding:2px 10px 2px 0; width:auto; }
tr.dynamic-grid input.input-text { width:154px; }
.available { color:#080; font-weight:bold; }
.not-available { color:#800; }

.table tr.last td { border-bottom: 1px solid #888; }

.nowrap, .nobr { white-space:nowrap; }

/* <LI> elements for product list */
.soften-cell-row { margin-bottom: 18px; border-bottom:1px solid #CCC; padding-bottom:18px; }
.soften-cell-row.last { border-bottom:none; }

.align-left, .a-left { text-align: left; }
.align-right, .a-right { text-align: right; }

#checkout-review-table-wrapper .align-right, #checkout-review-table-wrapper .a-right { text-align: right !important; }
#checkout-review-table-wrapper tfoot td.align-left { text-align: right !important; }

.onepage-estimated-delivery {
    font-style: italic;
    color: #777;
}

.progress-estimated-delivery {
    font-style: italic;
}

.shipping-methods {
    margin: 20px 20px 0;
}

label.shipping-method {
    margin: -15px 5px 5px;
}

input[type="radio"]:checked + label.shipping-method {
  color: #468847;
}

input[type="radio"]:checked + label.shipping-method > .onepage-estimated-delivery {
  color: #000;
}

h4.ship-method-carrier-title {
    margin: 20px 10px 0px;
    line-height: 10px;
}

.estimated-delivery-disclaimer {
    margin: 20px 20px;
    font-style: italic;
    color: #08c;
}

/* B2B Banner Blocks */
#banner-block-top {}
.top-banner-wrapper {
    float: right;
}

#banner-block-sidebar {}
.sidebar-banner-wrapper {
    margin: 20px auto;
    text-align: center;
}

#banner-block-bottom {}
.bottom-banner-wrapper {
    margin: 20px auto;
    text-align: center;
}

.banner-preview-notice {
    background: #bff4bf;
    color:green;
    padding: 5px;
    text-align: center;
    font-size: 12px;
}

#banner_visibility .glyphicon-ok {
    color: green;
    margin-left: 10px;
    font-size: 14px;
    font-size: 18px;
    position: relative;
    top: 5px;
}

#banner_visibility .glyphicon-remove {
    color: #bd0000;
    margin-left: 10px;
    font-size: 18px;
    position: relative;
    top: 5px;
}

.grid-date {
    font-size:12px !important;
}

/** LOCATION SELECT **/
#location-select.sidebar {
    /*margin: 0 0 10px;*/
    padding: 8px 0;
}

#location-select.sidebar .page-header {
    text-align: center;
}

#location-select .location-description {
    font-weight: normal;
    font-size: 85%;
    font-style: italic;
}

#location-select.sidebar .select-wrapper {
    margin: 5px auto 0;
    width: 90%;
}

#location-select.header {
    text-align: right;
    /* bottom-margin needs to be any negative value
       greater than the height of the current header */
    margin: 0px 0 -150px;
    float: right;
    position: relative;
}

@media screen and (max-width: 980px) {
    #location-select.header {
        margin: 0 auto;
        text-align: center;
        float: none;
    }
}

#location-select.header .select-wrapper {
    display: inline-block;
    margin-left: 20px;
}

#location-select.sidebar .location-button-wrapper {
    text-align: center;
}
#location-select.header .location-button-wrapper {
    text-align: right;
}

#location-select .choices__inner {
    min-height: 20px;
    margin-bottom: 10px;
    width: calc(100% - 12px);
    padding: 3px 5px;
    font-size: 13px;
    white-space: nowrap;
}

#location-select.header .choices__inner {
    text-align: left;
    width: 300px;
}

#location-select .choices__list--dropdown .choices__item {
    font-size: 13px;
    padding: 3px;
    text-align: left;
    white-space: nowrap;
}

#location-select .choices[data-type*="select-one"]::after {
    margin-top: -5px;
}

ul[data-role="listview"] {
    display: block;
}

ul[data-role="listview"] li {
    list-style-type: none;
}

#location-select .choices[data-type*="select-one"].is-open::after {
    margin-top: -10px;
}

#location-select .choices__list--dropdown {
    top: calc(100% - 43px);
    border-radius: 5px;
}

.width65 {
    width: 65px;
}

/* Checkout shipping location select */
#checkout-step-billing .choices,
#checkout-step-shipping .choices {
    width: 80%;
    margin-top: 50px !important;
    left: 40px;
}

#checkout-step-billing .choices {
    top: 5px !important;
}

#checkout-step-billing .choices__inner,
#checkout-step-payment .choices__inner,
#checkout-step-shipping .choices__inner {
    padding: 5px !important;
    min-height: 0;
}

#checkout-step-billing .choices__list--dropdown .choices__item,
#checkout-step-payment .choices__list--dropdown .choices__item,
#checkout-step-shipping .choices__list--dropdown .choices__item {
    padding: 3px;
    white-space: nowrap;
}

.vertical-scroll {
    max-height: 300px;
    overflow-y: scroll !important;
}

.fixed-billing address {
    margin: 20px;
}

.address-type {
    float: none !important;
    margin-right: 10px !important;
}

label[for="billing-address-select"] {
    width: 160px !important;
}

.shipping-addresstype label {
    padding-left: 70px;
    text-align: left !important;
}

#attention-shipment .control-label {
    display: inline-block;
    width: auto;
    margin: 0 10px;
}
#attention-shipment input[type=text] {
    display: inline-block;
    width: 140px;
}

.line-break {
    display: none;
}

@media screen and (max-width: 995px) {
    #attention-shipment .control-label {
        width: inherit;
        margin: 10px;
    }
    .line-break {
        display: block;
    }
}

.location-payment-conflict,
#checkout-step-payment .sp-methods:first-child {
    margin: 20px;
}

.location-payment {
    margin-bottom: 5px;
    padding-left: 0;
}

#location-payment {
    width: 80%;
}
