/***********************************************************
********************** GLOBAL ELEMENTS *********************
***********************************************************/
/* Forms */
button.disabled {
    background: #bbb !important;
    cursor: not-allowed !important;
}

/* Logo */
#logo {
    min-height: initial;
    height: 50px;
    width: 179px;
    margin: 15px 0;
}
#logo a {
    height: 100%;
    width: 100%;
    margin: 0;
    text-indent: initial;
}

#logo a img {
    width: 100%;
}

/* Footer Credit Card Image */
.jm-info {
    background-image: url("../images/bg-payment.png");
    width: 141px;
}

/* Account and Cart Nav */
.cart-and-quickaccess {
    float: right;
}
.welcome-msg,
#jm-quickaccess,
#jm-mycart {
    float: left;
}
.welcome-msg {
    line-height: 40px;
    margin: 0;
    min-height: 40px;
    padding: 0;
}
#jm-quickaccess .welcome-msg {
    display: none;
}

.shop-access ul.links li {
    white-space: nowrap;
}

/* Remove content backgrounds */
#jm-current-content {
    background: transparent;
}
.block .block-content {
    background: transparent;
}

/* Fix global image-box display */
.image-box {
    border: 1px solid #cccccc;
    border-radius: 3px;
    box-shadow: 0 0 3px #e0e0e0;
    padding: 6px;
    background: #fff;
}

/* Global Msgs */
.item-msg.error,
.error {
    color: #F0141E;
    font-weight: bold
}
*.error-msg {
    background-color: #faebe7;
    border-color: #F0141E;
    color: #F0141E
}


.item-msg.success,
.success {
    color: #3d6611;
    font-weight: bold
}

*.success-msg {
    background-color: #eff5ea;
    background-image: url(../images/i_msg-success.gif);
    border-color: #446423;
    color: #3d6611
}


.item-msg.notice,
.notice {
    color: #3d6611
}
*.note-msg,
*.notice-msg {
    background-color: #fafaec;
    border-color: #fcd344;
    color: #3d6611
}

/** CMS Child Page Template **/
article.child-page {
    padding-bottom: 40px;
}
article p.article-image {
    float: left;
    padding-right: 20px;
    height: auto;
    max-width: 100%;
}
article p.article-image a {
    display: inline-block;
    height: auto;
    max-width: 100%;
}
article p.article-image img {
    height: auto;
    max-width: 96%;
}

/* Utility CMS Classes */
.pad-left {
    padding-left: 20px !important;
}
.pad-bottom {
    padding-bottom: 20px !important;
}
.pad-top {
    padding-top: 20px !important;
}
.pad-right {
    padding-right: 20px !important;
}

/** MEGAMENU **/
.jm-megamenu ul.level0 li.mega a.active,
.jm-megamenu ul.level0 li.mega a.mega:hover,
.jm-megamenu ul.level0 li.mega:hover > a.mega {
    background-color: rgba(31, 44, 51, 0.5);
}
.jm-megamenu ul.level0 li.mega a.mega.first,
.jm-megamenu ul.level0 li.mega a.mega {
    border-color: rgba(31, 44, 51, 0.5);

}

/** BREADCRUMBS **/
.breadcrumbs {
    color: #666;
}

/** PREORDER **/
#preorder-msg {
    display: none;
    text-align: left;
}
.jm-product-quick-view #preorder-msg {
    display: block;
    padding-bottom: 35px;
}
.release-date {
    margin-bottom: 12px;
}
#shopping-cart-table .release-date {
    margin-top: 12px;
}

/* Featured Product */
.block-top-book .jm-products-list-title {
    background-color: #049a6a;
}

.block-top-book .products-list div.item .price {
    color: #33444c;
}
.product-view .product-shop button.button i,
.product-view .product-shop button i,
.icon-shopping-cart,
.icon-time,
.preorder-msg-trigger .icon-question-sign {
    font-size: 1.5em;
}
.icon-time {
    vertical-align: middle;
}
.btn-preorder {
    background-color: #d6790e !important;
}
.preorder-msg-trigger {
    font-weight: bold;
}
.preorder-msg-trigger .icon-question-sign {
    color: #d6790e;
}

/** Newsletter lightbox **/
div#colorbox,
div#cboxWrapper,
div#cboxContent {
    overflow: visible !important;
}
#colorbox-newsletter {
    display: none;
    margin: 0;
}
#colorbox #colorbox-newsletter {
    display: block;
}

#colorbox-newsletter .input-box label,
#colorbox-newsletter .input-box button,
#colorbox-newsletter .input-box input,
#colorbox-newsletter-notice {
    box-sizing: border-box;
    display: block;
    float: none;
    width: 100%;
    max-width: 100%;
    min-width: 212px;
}
#colorbox-newsletter .input-box label {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: .5em;
}
#colorbox-newsletter .input-box button {
    margin-top: 1.5em;
}
#colorbox-newsletter .input-box button#colorbox-newsletter-change {
    opacity: 0.5;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3.2em;
    margin: 0;
}
#colorbox-newsletter-notice {
    font-size: 10px;
    margin: .5em;
}

/*layout-normal*/
@media screen and (min-width:986px) and (max-width: 1235px) {
    
    .block-top-book .products-list div.item:nth-of-type(4){
        display: block;
        width: initial !important;
    }

}

/* Tabs */
.blank .jm-tabs-title-top ul li:hover h3,
.blank .jm-tabs-title-top ul li.active h3,
.blank .jm-tabs-title-top ul li.firstactive h3,
.blank .jm-tabs-title-top ul li.lastactive h3 {
    color: #049a6a;
}
.jm-tabswrap .jm-tab-content .jm-tab-subcontent {
    margin: 0;
    padding: 0;
}

/* Qty controls */
.qty-box #qty_up,
.qty-box .qty_up,
.qty-box #qty_down,
.qty-box .qty_down {
    border: 1px solid #cccccc;
    float: left;
    height: 28px;
    line-height: 28px;
    text-align: center;
    width: 13px;
    background: #fff;
    cursor: pointer;
}
.qty-box input#qty,
.qty-box input.qty {
    border: 1px solid #cccccc;
    box-shadow: 0 0 3px #dddddd inset;
    float: left;
    height: 28px;
    line-height: 28px;
    margin: 0 2px;
    padding: 0;
    text-align: center;
    width: 28px !important;
}

/** OFF CANVAS NAVIGATION **/
.off-canvas #off-canvas-nav .jm-mainnav .level0 li a:active,
.off-canvas #off-canvas-nav .jm-mainnav .level0 li a:focus,
.off-canvas #off-canvas-nav .jm-mainnav .level0 li a:hover { color:#049a6a; }
.off-canvas #off-canvas-nav .jm-mainnav .level0 li.active a {color:#049a6a;}

.off-canvas #off-canvas-nav .jm-mainnav ul.level1 li a:active,
.off-canvas #off-canvas-nav .jm-mainnav ul.level1 li a:focus,
.off-canvas #off-canvas-nav .jm-mainnav ul.level1 li a:hover {
    color:#049a6a !important;
}

#off-canvas-nav .megamenu .group-title a:active,
#off-canvas-nav .megamenu .group-title a:focus,
#off-canvas-nav .megamenu .group-title a:hover { color: #049a6a !important; }

/*level 2*/
#off-canvas-nav .megamenu.level2 li.active a,
#off-canvas-nav .megamenu.level2 li a:active,
#off-canvas-nav .megamenu.level2 li a:focus,
#off-canvas-nav .megamenu.level2 li a:hover{
    color:#049a6a !important;
}

/** Footer **/
#jm-bots1 .block-subscribe {
    width: 100%;
}

#jm-bots1 .inner {
    padding-bottom: 20px;
}

#jm-bots1 .inner .block-location .block-title {
    font-family: "robotolight", Arial, Helvetica, sans-serif;
}

/** Already Purchased **/
#alreadypurchased-msg {
    display: none;
}
#alreadypurchased-msg h2 {
    font-size: 132%;
    margin-bottom: 1.5em;
}
#alreadypurchased-msg h4 {
    margin-bottom: 1.5em;
}
#alreadypurchased-msg #alreadypurchased-list {
    margin-bottom: 2em;
}
#alreadypurchased-msg #alreadypurchased-list li {
    margin-bottom: 1em;
}
#alreadypurchased-msg .view-order-link {
    display: inline-block;
    margin-left: 40px;
}
#alreadypurchased-msg .btn-yes {
    margin-right: 10px;
    padding: 0 25px;
}
#alreadypurchased-msg .btn-no {
    margin-left: 10px;
    padding: 0 25px;
}

/***********************************************************
************************* HOME PAGE ************************
***********************************************************/
.home-slider h3.product-title {
    font-size:inherit;
    font-weight:inherit;
}
.home-slider .author {
    padding-top: 5px;
}

.home-slider .jmquickview {
    display: block;
    padding: 5px 0 0;
}

.home-slider .add-to-links li {
    padding: 5px 0;
}

/***********************************************************
*********************** PRODUCT LIST ***********************
***********************************************************/

/** LIST VIEW **/
#products-list .product-image {
    min-width: auto;
    max-width: 20%;
}

#products-list .product-shop {
    width: 78%;
    margin: 0 0 0 4%;
}

#products-list .author {
    color: #666;
    padding-top: .5em;
    display: block;
    font-size: .8em;
}

/** GRID VIEW **/
.products-grid li.item {
    background: transparent;
}
.products-grid .author {
    color: #666;
    padding-top: .5em;
    display: block;
    font-size: .8em;
}
.products-grid .product-name a:active, .products-grid .product-name a:focus, .products-grid .product-name a:hover {
    color: #216278;
}
.products-grid li.item .product-image a,
.product-img-box .more-views li a img,
.product-img-box .product-image-zoom img {
    background: #fff;
}


.jm-product-quick-view .availability {
    display: block;
}

/***********************************************************
************************ CART PAGE *************************
***********************************************************/
.mobile-coupon-form {
    display: none !important;
}
ul.item-options li,
ul.item-options dt,
ul.item-options dd {
    float: none;
    margin: initial;
}
ul.item-options dt {
    font-style: italic;
}
ul.item-options dd {
    padding-left: 12px;
}


/***********************************************************
****************** PRODUCT DETAIL PAGES ********************
***********************************************************/
.catalog-product-view .author {
    margin-bottom: 12px;
}
#cboxContent .product-img-box .product-image-zoom img {
    cursor: default;
}
.product-img-box .product-image-zoom {
    margin: 0;
}
.product-img-box .product-image-zoom img {
    max-width: 256px;
}

.product-img-box .more-views {
    position: relative;
    width: 100%;
    max-width: 270px;
}
.product-img-box .more-views ul {
    margin: 0;
}
.product-img-box .more-views li {
    margin: 0;
    width: 100%;
}
.product-img-box .more-views li a {
    height: auto;
    width: 100%;
}
.product-img-box .more-views li a img {
    /*width: 112px;*/
    margin: 0 auto;
    float: none;
    display: inline-block;
    box-sizing: border-box;
}

/** RELATED PRODUCT BLOCK **/
.block-related .block-content li.item p.product-name {
    height: auto;
    line-height: inherit;
}
.block-related .block-subtitle {
    float: left;
    width: 60%;
}
.block-related .block-content .btn {
    float: right;
}
.block-related .mini-products-list {
    clear: both;
}
.block-related .mini-products-list .product-details .add-to-cart-box,
.block-related .mini-products-list .product-details .availability {
    margin: 12px 0;
}

/** GROUPED PRODUCT **/
.grouped-items-table tbody td.last {
    min-width: 95px;
}
.product-view .grouped-items-table .price-box {
    margin-top: 0;
}

.product-view .add-to-links li a {
    background: #fff;
}

/***********************************************************
********************** ACCOUNT PAGES ***********************
***********************************************************/

/** REGISTER / LOGIN **/
#login-form .content {
    background: #fff;
}

/** ORDER HISTORY **/
.sales-order-view .ship-add-note {
    margin-top: 10px;
}

/** WISHLIST **/
#wishlist-table td:nth-child(2) .product-image {
    text-align: center;
    margin-top: 10px;
}

/** DASHBOARD **/
.addresses-list .addresses-additional li.item {
    margin: 0 0 10px;
    padding: 10px 0;
}

/** DOWNLOADABLE PRODUCTS **/
#my-downloadable-products-table td {
    vertical-align: top;
}
#my-downloadable-products-table td:nth-of-type(3) {
    text-align: center;
}
#my-downloadable-products-table h4 {
    font-size: 14px;
    margin-bottom: 12px;
}
#my-downloadable-products-table a {
    font-weight: bold;
}
#my-downloadable-products-table a.add-to-ereader-help-lnk {
    text-align: left;
    font-size: 10px;
    display: inline-block;
    margin-top: 24px;
}

#add-to-ereader {
    padding: 20px;
    background: #fff;
}
#add-to-ereader a {
    font-weight: bold;
}
#add-to-ereader h2 {
    margin-bottom: 20px
}
#add-to-ereader ol {
    margin-left: 30px;
}
#add-to-ereader ol li {
    padding: 0 0 6px 10px;
}




/***********************************************************
******************** ONE PAGE CHECKOUT *********************
***********************************************************/

#checkout-review-table td.product-image {
    border-right: none;
    padding-right: 0;
}

#checkout-review-table td.product-image img {
    max-width: 65px;
}

#cdr_ordercomment-form .input-box,
#cdr_ordercomment-form .input-box textarea {
    width: 100%;
}
#cdr_ordercomment-form .input-box textarea {
    box-sizing: border-box;
}

.checkout-onepage-success #jm-current-content {
    font-size: 16px;
}
.checkout-onepage-success #jm-current-content h2 {
    font-size: 22px;
    margin-bottom: 22px;
}
.checkout-onepage-success #jm-current-content a {
    font-weight: bold;
}

/***********************************************************
****************** MULTI ADDRESS CHECKOUT ******************
***********************************************************/
.multiple-checkout .page-title {
    padding: 20px 0 20px 20px;
}

#checkout-progress-state li {
    width: 25%;
}

.checkout-multishipping-success .sub-title,
.checkout-multishipping-success p {
    padding-left: 20px;
}

/***********************************************************
***************** PAYPAL ORDER REVIEW PAGE *****************
***********************************************************/

.paypal-express-review .info-set .data-table .product-name {
    color: #111 !important;
    font-size: 1.2em !important;
}


/***********************************************************
************************ BREAKPOINTS ***********************
***********************************************************/

/*layout-hd*/
@media screen and (min-width:1891px) {

}

/*layout-wide*/
@media screen and (min-width:1236px) and (max-width: 1585px) {

}

/*layout-wide-extra*/
@media screen and (min-width:1586px) and (max-width: 1890px) {

}

/*layout-normal*/
@media screen and (min-width:986px) and (max-width: 1235px) {

    ul.customer-services li:first-of-type {
        padding-left: 0;
    }

    .form-search {
        min-width: 103px;
        width: 103px;
    }
    #jm-search .inner-toggle {
        min-width: 100px;
    }

    .form-search #search.input-text {
        min-width: 100px;
    }

    #jm-tops1 .col2-set .block-slideshow.col-1 {
        width: 100%;
    }
    #jm-tops1 .col2-set .block-top-book.col-2 {
        width: 100%;
    }

    /*slide*/
    #jm-tops1 .block-slideshow.col-1{
        width: 100%;
    }

    .jm-slideshow{
        margin: 0px 0px 40px 0px;
    }

    /** [START] Copied tablet styles to prevent
    layout break between breakpoints [START] **/

    /*today highlight*/
    #jm-tops1 .block-top-book.col-2{
        width: 100%;
    }

    .block-top-book .products-list{
        padding: 80px 0 20px;
        width: 100% !important;
    }

    .block-top-book .products-list .item.top-product,
    .block-top-book .products-list .item{
        width: 25% !important;
    }

    .block-top-book .products-list .item:nth-of-type(2),
    .block-top-book .products-list .item:nth-of-type(3){
        margin: 0px;
    }

    div.block-top-book div.products-list div.item:nth-of-type(4){
        width: 25% !important;
    }

    .block-top-book .products-list .item .item-inner{
        padding: 0px 20px;
        margin: 0px;
    }

    .block-top-book .products-list .top-product .item-inner{
        border-bottom: 0px none;
        padding: 0px 20px;
        margin: 0px;
        width: 100%;
    }

    .block-top-book .products-list .item .product-image{
        margin: 0px 20px 0px 0px;
    }

    .block-top-book .products-list .item .product-name,
    .block-top-book .products-list .item .product-name a,
    .block-top-book .products-list .item .author,
    .block-top-book .products-list .item .ratings,
    .block-top-book .products-list .item .price,
    .block-top-book .products-list .item .old-price .price{
        display: block;
    }

    .block-top-book .products-list  .item .product-image {
        background: none;
        border: 0;
        float: left;
        margin: 0 20px 0 0;
        padding: 0;
    }
    .block-top-book .products-list  .item .hot-label,
    .block-top-book .products-list  .item .new-label,
    .block-top-book .products-list  .item .sales-label {
        display: block;
    }

    .block-top-book .products-list  .item .product-name {
        clear: right;
        width: auto;
        font-size: 100%;
        color: #fff;
        margin: 0;
        min-height: 36px;
        display: block;
        line-height: 150%;
    }

    .block-top-book .products-list  .item .product-name a{
        font-size: 100%;
        color: #fff;
        display: block;
    }

    .block-top-book .products-list  .item  .author {
        clear: right;
        display: block;
        margin: 0 0 5px 0;
    }

    .block-top-book .products-list   .item .ratings {
        clear: right;
        height: 13px;
        display: block;
    }

    .block-top-book .products-list  .item .price {
        color: #f0141e;
        display: block;
    }

    .block-top-book .products-list  .item .old-price .price {
        color: #999;
        display: block;
    }
    /** [END] Copied tablet styles to prevent
    layout break between breakpoints [END] **/

}

/*layout-tablet*/
@media screen and (min-width:720px) and (max-width: 985px) {

    #jm-mainnav .menu-toggle.btn-toggle {
        background: rgba(31, 44, 51, 0.5);
        border-color: rgba(31, 44, 51, 0.5);
    }

    div.block-top-book div.products-list div.item.top-product,
    div.block-top-book div.products-list div.item {
        width: 25% !important;
    }

    .block-top-book .products-list .top-product .item-inner {
        width: 100%;
    }

    div.block-top-book div.products-list div.item .product-name,
    div.block-top-book div.products-list div.item.top-product .product-name {
        clear: both;
    }

    .block-top-book .products-list div.item:nth-of-type(4) {
        display: block !important;
        width: 25% !important;
    }

    /* Account and Cart Nav */
    #jm-quickaccess .welcome-msg {
        display: block;
    }
    .customer-account #jm-quickaccess .welcome-msg {
        display: none;
    }
    p.welcome-msg {
        display: none;
    }

    #jm-bots1 .inner .block-location {
        margin: 0 0 0;
    }

    .cms-home #jm-tops1 .block-slideshow {
        display: none;
    }

    article p.article-image {
        float: none;
        padding-right: 0;
        margin: 0 auto;
    }

    /** PRODUCT LIST - LIST VIEW **/
    #products-list .product-shop {
        width: 72%;
    }
}

/*layout-mobile*/
@media screen and (max-width:719px) {

    #jm-mainnav .menu-toggle.btn-toggle {
        background: rgba(31, 44, 51, 0.5);
        border-color: rgba(31, 44, 51, 0.5);
    }

    /* Homepage: Highlighted product box */
    .block-top-book .products-list .item:nth-of-type(3) {
        margin: 0;
    }

    /* Account and Cart Nav */
    #jm-quickaccess .welcome-msg {
        display: block;
    }

    p.welcome-msg {
        display: none;
    }

    ul.customer-services li:first-of-type {
        padding-left: 0;
    }

    /** Footer **/
    #jm-bots1 .block-subscribe .input-box {
        float: none;
    }

    #jm-bots1 .block-subscribe .input-box .input-text {
        width: 327px;
    }

    .cms-page-view img {
        height: auto;
        max-width: 100%;
    }

    /** PRODUCT LIST - LIST VIEW **/
    #products-list .product-image {
        min-width: auto;
        max-width: 20%;
    }

    #products-list .product-shop {
        width: 72%;
        margin: 0 0 0 4%;
    }

    /** PRODUCT DETAIL PAGE **/
    .product-img-box .more-views {
        max-width: 100%;
    }

    /** CART PAGE **/
    .coupon-form {
        display: none !important;
    }

    .coupon-form + .col-2 {
        width: 100% !important;
    }

    .mobile-coupon-form {
        display: block !important;
    }

    /* Force table to not be like tables anymore */
    #checkout-review-table table,
    #checkout-review-table thead,
    #checkout-review-table tbody,
    #checkout-review-table th,
    #checkout-review-table td,
    #checkout-review-table tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    #checkout-review-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    #checkout-review-table tfoot tr td {
        width: 50%;
        padding-left: 10px;
    }
    #checkout-review-table tfoot tr td:first-child {
        float: left;
        text-align: left !important;
        clear: left;
    }
    #checkout-review-table tfoot tr td:last-child {
        float: right;
    }

    #checkout-review-table tr {
        border: 1px solid #ebebeb;
    }

    #checkout-review-table td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #ebebeb;
        position: relative;
        padding-left: 50%;
        text-align: right !important;
        box-sizing: border-box;
    }

    #checkout-review-table td.product-image {
        border-bottom: none;
    }

    #checkout-review-table td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 10px;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
    }

    /*
    Label the data
    */
    #checkout-review-table tbody td:nth-of-type(1):before {
        content: "Product:";
    }

    #checkout-review-table tbody td:nth-of-type(3):before {
        content: "Price:";
    }

    #checkout-review-table tbody td:nth-of-type(4):before {
        content: "Qty:";
    }

    #checkout-review-table tbody td:nth-of-type(5):before {
        content: "Subtotal:";
    }

}


/*layout-mobile-portrait*/
@media screen and (max-width:479px) {

    /* Account and Cart Nav */
    #jm-quickaccess .welcome-msg {
        display: block;
    }
    p.welcome-msg {
        display: none;
    }

    .cms-page-view img {
        height: auto;
        max-width: 100%;
    }

    /** PRODUCT LIST - LIST VIEW **/
    #products-list .product-shop {
        width: 72%;
        margin: 0 0 0 4%;
    }

    /** PRODUCT DETAIL PAGE **/
    .product-img-box .more-views {
        max-width: 270px;
        margin-left: 15px;
    }

    /** ACCOUNT ADDRESS LIST **/
    .my-account .page-title.title-buttons button {
        margin-top: 20px;
    }

    /** DOWNLOADABLE PRODUCTS **/
    #my-downloadable-products-table img {
        max-width: 75px;
        height: auto;
    }
}