/* -------------------------------
 * AJAX add to cart button.
 *
 * Pages Used:
 * Search | Item | New Item | Kobo E-reader | Campaign
 *
 * Author: luke.helg@rakuten.com
 * Date: 2016/04/08
 * -------------------------------
 */



.rb-add-to-cart button {
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    line-height: normal;
    overflow: visible;
    padding: 0;
    -webkit-appearance: button;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.rb-add-to-cart__btn {
    display: inline-block;
    background-image: url(https://image.books.rakuten.co.jp/books/img/common/img/pc/sprites_button.png?20211014) !important;
    background-position: 0 -68px !important;
    width: 150px;
    height: 32px;
}


.rbcomp__item-tile .rb-add-to-cart__btn {
    background-image: url(https://image.books.rakuten.co.jp/books/img/common/img/pc/sprites_button-02.png) !important;
    background-position: 0 -170px !important;
    width: 126px;
}

.rb-add-to-cart__btn:hover {
    opacity: 0.8;
}

.rb-add-to-cart__btn--added {
    display: inline-block;
    background-image: url(https://image.books.rakuten.co.jp/books/img/common/img/pc/sprites_button.png);
    background-position: 0 -136px;
    width: 114px;
    height: 32px;
}

#rbcomp #rbcomp__inner [data-rbcomp] div .rb-add-to-cart__added{
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    background-color: #ebebeb;
    /*border: solid 1px #b0b0b0;
    background-image: -webkit-linear-gradient(bottom, #f2f2f2, #fff);
    background-image: -moz-linear-gradient(bottom, #f2f2f2, #fff);
    background-image: -o-linear-gradient(bottom, #f2f2f2, #fff);
    background-image: -ms-linear-gradient(bottom, #f2f2f2, #fff);
    background-image: linear-gradient(to top, #f2f2f2, #fff);*/
    text-align: center;
    width: 100%;
    color: #9c9c9c;
    /*font-weight: bold;*/
    width: 150px;
    height: 32px;
    line-height: 33px;
    margin: 0 0 5px 0;
    font-size: 13px;
    text-decoration: none;
    position: relative;
    z-index: 5;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
#rbcomp #rbcomp__inner [data-rbcomp] .rbcomp__item-tile  .rb-add-to-cart__added{
	width: 126px;
}


#rbcomp #rbcomp__inner [data-rbcomp] div .rb-add-to-cart__added i {
	margin-right: 4px;
}

.rb-add-to-cart__btn--loading {
    height: 32px;
    width: 150px;
    background: url(https://image.books.rakuten.co.jp/books/img/common/search/icon/loading.gif) no-repeat center;
}

.itemBookmark__error-message,
.itemBookmark__maintenance-message,
.rb-add-to-cart__error-message {
    width: 500px;
    background: rgb(242, 242, 242);
    color: #000;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-left: -250px !important;
    display: none;
    transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -webkit-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
    z-index: 9999;
    padding: 10px !important;
    border: ridge 2px #aaaaaa !important;
    font-size: 12px !important;
}

.rb-add-to-cart__error-popup__icon {
    position: absolute;
    left: 50px;
    top: 10px;
}
