.bookBanding {
    list-style: none;
    padding-left: 0;
}

.linksList{
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    column-gap: 5px;
}


#bookPage .loading-spinner{
    display: flex !important;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}




#denseView .denseHeader {
    display: flex;
    flex-wrap: wrap;
}

#denseView {
    width: 85%;
}

#denseView .denseHeader .bookPrice, #denseView .denseHeader .pricingBreakdown {
    padding-bottom: 5px;
    display: block;
    text-align: right;
}

#denseView .quantitySection {
    text-align: right;
}

#denseView .denseHeader .column.half {
    width: 65% !important;
    padding-right: 1rem;
}

#denseView .denseHeader .bookControls {
    padding: 10px;
    border: solid 1px lightgrey;
}

/* Added to Bookshelf (Library book page only) */
.bookControls .addButtonContainer.bookshelf {
	max-width: 100%;
}
.bookControls .addToBasket.bookshelfButton {
	max-width: 20ch;
}
.bookControls .addToBasket.bookshelfButton p.wishlistText {
	display: block;
	overflow-x: hidden;
    text-overflow: ellipsis;
}
.bookControls .addToBasket.bookshelfButton.added {
	max-width: 11ch;
}
.bookControls .addToBasket.bookshelfButton.added p.wishlistText::before {
	font-family: "Font Awesome 5 Pro";
	content: '\f00c';
	-webkit-transition: .3s;
	transition: .3s;
	margin-right: 5px;
}


#denseView .denseHeader .headlineDetails {
    padding: 0;
}

.denseBookInfo {
    display: flex;
}

.denseTables {
    display: flex;
    margin-top: 1rem;
}

.denseTables > div:first-child {
    margin-right: 1rem;
    width: 35%;
}

.denseTables > div:last-child {
    width: 65%;
}

.bookPadding.dense {
    width: 15% !important;
}

table.denseBookTable {
    border-spacing: 0;
    margin-bottom: 10px;
}

.denseBookTableContainer {
    /* max-width: 375px; */
    flex-basis: 810px;
    /* margin-right: 1rem; */
}

table.denseBookTable td:not(.innerCell) {
	padding: 6px;
    font-size: 13px;
    width: 30%;
    position: inherit; /* not sure why this was commented out but it break hovering */

    /* position: relative; */
}

table.denseBookTable tr {
	background-color: #c9c9c9;
}

table.denseBookTable tr:nth-child(odd):not(.altEditionItem) {
    background: #e9e9e9;
}

/* table.denseBookTable td:nth-child(2) {
    border-right: solid 1px #989898;
} */

table td.heading {
    font-weight: bold;
    width: 15%;
}

.rating .checked object {
    fill: green;
}

.rating img {
    width: 24px;
    color: grey;
}

/* .denseView .subRatings {
    padding-top: 0;
} */

.tabContent .columns .third.column {
    padding: 0 2rem;
    box-sizing: border-box;
}

.tabContainer h4.titleText{
    margin: 0;
    font-size: 1.2rem;
}

table.distributorTable td, table.distributorTable th {
    text-align: left;
    padding-left: 1rem;
}

p.needMore .searchToolTip {
    width: 170px;
    margin-left: -80px;
    text-align: center;
}

p.needMore .searchToolTip span{
    display: block;
}

.orderTrackIcons {
    display: flex;
    justify-content: flex-end;
}

.orderTrackIcons p.needMore {
    padding: 4px;
    background: #e9e9e9;
    margin-top: 5px;
    margin-left: 2px;
}

.orderTrackIcons p.needMore i + span{
    margin-left: 5px;
}

.orderTrackIcons p.needMore.alternativeEditions {
    background: #c9c9c9;
}

h4.seriesTitle {
    color: #2995D3;
    font-size: 14px;
    margin: 0;
}

.orderTrackIcons .searchToolTip {
    width: 320px !important;
    margin-left: -320px !important;
}
.orderTrackIcons .searchToolTip::after{
    left: calc(100% - 15px) !important;
}
.orderTrackIcons .searchToolTip .tooltipDetails {
    max-height: 175px;
    overflow-y: auto;
}


#showBookSize, 
.showBookSizeLabel{
    display:none;
}

#bookSize {
    width: 100px;
    margin: 10px auto 5px auto;
    position: relative;
    /* background-image: url(/assets/img/booksize.gif);
    background-repeat: no-repeat;
    background-position: top left;
    vertical-align: bottom; */
    background-color: #fff;
}

#bookSize:after{
    content: "";
    width: calc(100% + 20px);
    border-bottom: 1px solid black;
    position: absolute;
    bottom:-1px;
    display: block;
    height: 1px;
}

#bookSize .dimensions{
    text-align: center;
    font-size: 12px;
    /* font-weight: bold; */
    margin: 0 -10px 0;
    width: 120px;
    padding-top: 10px;
    color: #7a7a7a;
    background-color: white;
}

#bookSize .dimensions span{
    display: inline-block;
}

#bookSize .scale {
    position: absolute;
    /* top: 0; */
    bottom: 0;
}

#bookSize .scaleA3 {
    position: absolute;
    width: calc(297/4 * 1px);
    height: calc(420/4 * 1px);
    border: 1px solid black;
}

#bookSize .scaleA4 {
    position: absolute;
    width: calc(210/4 * 1px);
    height: calc(297/4 * 1px);
    border: 1px solid black;
}



#bookSize .scaleLabel {
    display: block;
    position: absolute;
    left: -35px;
    top: 0;
    /* font-weight: bold; */
}

#bookSize .scaleBook{
    position: absolute;
    width: 100px;
    z-index: -1;
}

/* React product page */


#bookSize.bookSize{
    margin: 0;
    width: 100%;
}

#bookSize.bookSize:after{
    display: none;
}

#bookSize .bookSizeFrame{
    margin: 0;
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}


#bookSize .bookSizeSVG{
    width:auto;
    position: absolute;
    bottom: 0;
    left: 0;
}

#bookSize .bookSizeDesc{
    display: inline-block;
    width: 120px;
    text-align: left;
    font-size: 12px;
    color: #7a7a7a;
    background-color: white;
}

#bookCaption {
    font-size: xx-large;
}


#productDimensions {
    height: 180px !important;
    position: relative;
}

#productDimensions #bookSize{
    height: 100% !important;
    position: absolute;
    bottom: 0;
}

#productDimensions #bookSize .bookSizeFrame{
    width: 50%;
    min-width: 130px;
    margin: 5px auto;
}


.topReview {
    font-size: 14px;
    color: #80b349;
}

.rating.main .columns.wrap .column:first-child {
    width: 100%;
    text-align: right;
}


#tab1Container {
    display: flex;
}

#tab1Container .noteSection:first-child {
    width: 50%;
    margin-right: 5em;
}


#bookPage .tabContent{
    transition: height 1s; 
}

.bookPackValueSlideContainer {
    padding-bottom: 20px;
}
.bookPackValueSlideContainer > input[type="range"] {
    width: 100%;
    background: #e8f4fa;
    -webkit-appearance: none;
    border-radius: 10px;
    accent-color: #2995D3;
}


@media (max-width: 550px) {
    #denseView .denseHeader .column.half {
        padding-left: 1rem !important;
    }
}

@media (max-width: 578px) {
    .denseTables {
        /* display: flex;
        margin-top: 1rem; */
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .denseTables > div:first-child {
        /* margin-right: 1rem; */
        width: 100%;
    }

    .denseTables > div:last-child {
        width: 100%;
    }

    .columns.wrap.denseView.libs {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #bookSize {
        margin-bottom: 35px;
    }

    #bookPage .bookInfo .denseView.libs .bookPadding.densel,
    #bookpage .bookInfo .denseView.libs .bookPadding.dense {
        padding: 0;
        width: 30%!important;
    }

    #bookPage .bookInfo .denseView.libs #denseView,
    #bookpage .bookInfo .denseView.libs #denseView {
        width: 95%;
    }

    .bookPadding{
        position: relative;
    }

    .showBookSizeBtn:before{
        display:block;
        font-size: 15px;
    }

    .showBookSizeLabel{
        display:block;
        cursor: pointer;
        text-decoration: underline;
        color: #2995D3;
        text-align: center;
    }

    #showBookSize + .showBookSizeLabel:before{
        content: "Show scale";
    }

    #showBookSize:checked + .showBookSizeLabel:before{
        content: "Hide scale";
    }

    #showBookSize:checked ~  #bookSize{
        display: block;
        top: unset !important;
    }

    .bookPadding.dense #bookSize {
        /* position: absolute; */
        /* border: 10px solid #fff; */
        display: none;
    }
}

@media (max-width: 1030px) {
    .denseTables > div:first-child {
        /* margin-right: 1rem; */
        width: 100%;
    }

    .denseTables > div:last-child {
        width: 100%;
    }

}



@media (max-width: 1200px) {
    .denseBookInfo > div:first-child {
        width: 100%;
    }
}