/* Contributors and reviews in search page */
.cat-label.contributor, .cat-label.review {
    padding-left: 0;
}

/* New bootstrap home page -> prevent hardcoded theme problems */
@media (max-width: 1200px) {
    .title_featured_news {
        width: 100%;
        margin-left: 0;
    }
}
@media screen and (max-width: 770px) {
    div.new-releases div.row div.col-sm-4, div.conservative-classics div.row div.col-sm-4, div.sneak-previews div.row div.col-sm-4 {
        width: 100%;
    }
}
@media (max-width: 460px) {
    .more-on-title {
        right: 0 !important;
    }
}
#home-page .img-max-width {
    max-width: 300px;
}

/* New bootstrap home page -> align buttons bottom */
@media screen and (min-width: 771px) {
    #home-page .new-releases .row,
    #home-page .conservative-classics .row {
        display: table;
    }
    #home-page .new-releases [class*="col-"],
    #home-page .conservative-classics [class*="col-"] {
        float: none;
        display: table-cell;
        vertical-align: bottom;
    }
}

/* old home page and modal rating link */
/*  @media screen and (max-width: 1280px) {
    body.home div.qrating {
      font-size: 9px;
      margin-bottom: 5px;
    }
    body.home div.fake-rating img {
      margin: -2px;
      width: 16px;
      height: 25px;
    }
    body.home div.new-releases,
    body.home div.conservative-classics {
      text-align: center;
    }
    .fake-rating {
      display: inline-block;
    }
  } */
  
  /* jump to comments */
  [name=comments]:before {
    content: " ";
  }
  [name=comments] {
    display: block;
    clear: both;
  }
/* formatting distance bookshelf-widget */
  div.bookshelf-widget {
    margin-top: 10px !important;
  }
/* formatting qrating */
  div.qrating {
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif !important;
  }

/* formatting jump button */
  div.jump {
    padding-bottom: 10px;
  }
  div.jump a {
    color: #ae0505 !important;
    font-size: 20px !important;
  }
  div.jump a:hover {
    color: #333333 !important;
  }
/* formatting flags */
  div.rating.rating-condition img {
    width: 19px;
    height: 29px;
  }
/* formatting create free account */
  div#addToBookshelfModal div.modal-dialog.modal-sm {
    width: 300px !important;
  }
  div#addToBookshelfModal div.modal-sm {
    width: 300px !important;
  }
  div#addToBookshelfModal a {
    color: #ffffff;
  }
  div#addToBookshelfModal a.login small {
    font-size: 14px;
    font-weight: bold;
    color: #ae0505;
  }
  div#addToBookshelfModal a.login small:hover {
    color: #333333;
  }
  div#addToBookshelfModal a:hover {
    color: #333333;
  }
/* formatting rating details popup */
  div.modal-dialog.modal-sm {
    width: 600px !important;
  }
  div#ratingDetailsModal div.modal-content {
    height: 310px;
  }
  div#ratingDetailsModal table {
    width: 100%;
  }
  div#ratingDetailsModal td {
    padding: 5px;
  }
  div#ratingDetailsModal td.number {
    text-align: center;
    font-weight: bold;
  }
  div#ratingDetailsModal td.bar {
    width: 100%;
  }
  div#ratingDetailsModal td.bar div.color {
    border-radius: 5px;
    height: 26px;
    background-color: #00a6e8;
  }
  div#ratingDetailsModal td.image img {
    width: 19px;
    height: 29px;
  }
  div#ratingDetailsModal td.percentage {
    text-align: center;
  }
  div#ratingDetailsModal td.ratings {
    text-align: center;
  }
/* formatting rate this book popup */
  div#rateBookModal div.modal-content {
    width: 600px;
    height: 400px;
  }
  div#rateBookModal .picture img {
    width: 100%;
    height: 100%;
  }
  div.modal-header {
    border: 0px !important;
    text-align: left;
  }
  div#rateBookModal img {
    margin-right: 10px;
    float: left;
    width: 19px;
    height: 29px;
  }
  div.picture {
    width: 155px;
    height: 230px;
    float: right;
  }
  div.modal-body h1 {
    font-family: "Roboto Slab";
    vertical-align: text-top;
    text-align: left;
    font-size: 22px;
    margin-bottom: 5px;
  }
  div.modal-body em, div.modal-body a {
    font-family: "Roboto Slab";
    text-align: left;
    font-size: 14px;
    color: #382e26;
  }
  div.modal-body .rating.rating-condition {
    float: left;
    width: 40%;
    text-align: left;
  }
  div.modal-body .description {
    width: 70%;
    margin-top: 50px;
  }
/* change color a in em */
  div.col-md-12 .col-lg-9 .container em a {
    font-weight: normal;
  }
/* Centering side book image */
  div.centered.text-center.book-float {
    padding: 20px 10px 20px 10px !important;
  }
/* more categories rows change height */
  .morecategoriesrows {
    height: 100%;
  }
/* social icons changes */
  div.share .st_facebook_large .stLarge {
    background: url(/wp-content/themes/cbc/i/icon-facebook.png) center center no-repeat !important;
    background-size: cover !important;
  }  
  div.share .st_twitter_large .stLarge {
    background: url(/wp-content/themes/cbc/i/icon-twitter.png) center center no-repeat !important;
    background-size: cover !important;
  }  
  div.share .st_email_large .stLarge {
    background: url(/wp-content/themes/cbc/i/icon-email.png) center center no-repeat !important;
    background-size: cover !important;
  }  
  div.share .st_print_large .stLarge {
    background: url(/wp-content/themes/cbc/i/icon-print.png) center center no-repeat !important;
    background-size: cover !important;
  }  
  div.book-sellers-socials .share {
    background: none;
  }
  div.book-sellers-socials.share {
    background-image: url(/wp-content/themes/cbc/i/line.png);
    background-position: left center;
    background-repeat: repeat-x;
  }
  .more-author-books, .more-books, #author-more-post, .about {
    clear: both;
  }
  .more-author-books h5.title, .more-books h5.title, #author-more-post h5.title, .about h5.title {
    position: relative;
    border-bottom: none;
  }
  .more-author-books h5.title:before, .more-books h5.title:before, #author-more-post h5.title:before, .about h5.title:before {
    border-top: 2px solid #dfdfdf;
    content:"";
    margin: 0 auto;
    position: absolute;
    top: .5em; left: 0; right: 0; bottom: 0;
    z-index: -1;
  }
  .more-author-books h5.title span, .more-books h5.title span, #author-more-post h5.title span, .about h5.title span {
    background: #fff;
    padding-right: 10px;
  }
  h5.title {
    font-size: 20px;
    color: #ae0505
  }
  h5.title span {
    text-transform: uppercase;
  }
  .tags .catalog {
    float: left;
  }
  .tags .catalog strong {
    font-size: 12px;
    padding: 5px 10px 5px 10px;
    color: #ffffff;
    background: #ae0505;
  }
  .tags .content {
    width: 70%;
    float: right;
    margin-top: -10px;
  }
  div#book-details .tags a {
    color: #ae0505;
  }
  div.tags {
    margin-bottom: 25px !important;
    margin-top: 20px !important;
  }
  /* Punto 1 font family Roboto book-details */
  div#bookcomments h4 {
    font-family: "Roboto Slab";
  }
  div.description {
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  }
  div#book-details, div#book-details.row, div#book-details.row h1, div#book-details.row h2, div#book-details.row h3, div#book-details.row h4 {
    font-family: "Roboto Slab";
  }
  div#book-details h1 {
    color: #ae0505;
    font-size: 22px;
  }
  div#book-details em {
    color: #382e26;
    font-style: normal;
    font-size: 14px;
  }
  div#book-details a {
    text-decoration: underline;
    font-weight: bold;
    color: #382e26;
  }
  div#book-details .book-sellers a, div#book-details .socials a {
    text-decoration: none;
  }
  .pull-left.text-center.book-float {
    padding: 0 10px 20px 10px;
  }
  div .share {
    background: #ffffff;
  }
  .book-sellers.side {
    padding-left: 20px;
    margin-top: 22px;
    text-align: center;
    margin-bottom: -19px;
  }
  .book-sellers.side img {
    width: 155px;
    margin-left: -10px;
    margin-bottom: 10px;
  }
/* Punto 1 font family Roboto book-sellers */
  div.book-sellers {
    font-family: "Roboto Slab";
  }
  .book-sellers.center {
    text-decoration: none;
    border-radius: 25px;
    padding: 10px 10px 10px 10px;
    background: #f5f2e9;
  }
  .book-sellers.center img {
    max-height: 32px;
    max-width: 32px;
  }
/* book-sellers.center side bar not visible on desktop */
@media screen and (min-width: 511px) {
  div.book-header.mobile {
    display: none;
  }
  div.book-header.desktop {
    display: block;
  }
  div.share .st_email_large .stLarge {
    margin-left: 38px;
  }
  div.col-md-12.col-lg-3.container div.book-sellers.center {
    display: none;
  }
}
  .socials {
    border-radius: 25px;
    padding: 10px 10px 5px 10px;
    background: #f5f2e9;
    margin-top: 7px;
  }
  .share .st_facebook_large, .share .st_twitter_large, .share .st_email_large, .share .st_print_large .stLarge {
    top: 0;
  }
  .share .st_print_large .stLarge {
    background: url(/wp-content/themes/cbc/i/icon-print.png) 50% 50% no-repeat !important;
  }
  #bookcomments {
    margin-top: 0;
    margin-bottom: 20px;
  }
/* Punto 1 font family Roboto average-rating */
  div.average-rating {
    font-family: "Roboto Slab";
  }
  .average-rating {
    margin-top: 5px;
  }
  .average-rating img, .average-rating p {
    float: left;
    display: inline;
    margin-right: 5px;
  }
  .average-rating img {
    width: 18px;
    height: 23px;
  }
  .average-rating p {
    color: #646464;
    margin-left: 0px;
  }
  .average-rating span.value {
    font-weight: bold;
    font-size: 26px;
    color: #ea5100;
  }
  .average-rating span.total {
    font-weight: bold;
    font-size: 26px;
    color: #b7b7b7;
  }
  .average-rating a.rate-book {
    color: #646464 !important;
  }
  .average-rating a.rating-details {
    color: #646464 !important;
  }
/* Image sizing img.placemark */
  .average-rating img.placemark {
    width: 19px;
    height: 29px;
    float: none;
    margin-top: -9px;
    margin-right: 5px;
    margin-left: 5px;
  }
  .fake-rating img {
    width: 19px;
    height: 29px;
    margin: 0 -2px;
  }
  .about .avatar {
    float: left;
    width: 140px;
    height: 140px;
    background-size: cover !important;
    border-radius: 70px;
    -webkit-border-radius: 70px;
    -moz-border-radius: 70px;
  }
  .about p {
    width: -moz-calc(100% - 150px);
    width: -webkit-calc(100% - 150px);
    width: -o-calc(100% - 150px);
    width: calc(100% - 150px);
    float: right;
  }
  .more-author-books .col-sm-3 {
    margin-bottom: 15px;
  }
  .author-more-post img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin-bottom: 5px;
  }
  .book-float {
    margin: 0 auto;
  }
  div#ratingDetailsModal tfoot {
    display: none;
  }
  @media screen and (max-width: 510px) {
    div#ratingDetailsModal div.modal-dialog.modal-sm {
      width: 300px !important;
    }

    div.jump {
      padding-bottom: 24px !important;
    }
    div.modal-body .description {
      width: 100%;
    }
    div.modal-body div.picture img {
      float: none !important;
      margin: auto !important;
    }
    div#rateBookModal div.modal-content {
      width: 50% !important;
      height: 100% !important;
    }
    div.avatar {
      margin-left: webkit-calc(50% - 70px);
      margin-left:  -o-calc(50% - 70px);
      margin-left:  calc(50% - 70px);
      margin-bottom: 1em;
    }
    div.about-post p {
      width: 100% !important;
    }
    .col-sm-10.col-sm-offset-1 p {
      width: 100%;
    }
    .tags .catalog {
      clear: both;
      width: 100%
    }
    .tags .content {
      padding-top: 10px;
      clear: both;
      width: 100%;
      float: none;
  }
/* books-sellers.center not visible on mobile */
    .top .book-sellers.center {
      display: none;
    }
     
/* formattazione books-sellers center on mobile */
    .book-sellers.center {
      text-align: center;
      font-size: 10px;
      width: 220px;
      margin: 0 auto;
      padding: 5px 5px 5px 5px;
    }
    div#bottom .book-sellers-socials.share.text-right .book-sellers.center {
      text-align: center;
      font-size: 10px;
      width: 155px;
      margin-left: 62px;
      padding: 5px 5px 5px 5px;
    }
/* books-sellers.side invisible on mobile */
    .book-sellers.side {
      display: none;
    }
    .book-sellers.side a img {
      margin-left: -19px;
    }
    .book-sellers.side {
      background: #ffffff;
    }
    .book-sellers-socials.share.text-right {
      margin-top: -10px;
      margin-bottom: -10px;
      background: #ffffff;
    }
    .share .socials, .share .book-sellers {
      width: 100%;
      text-align: center;
    }
  }
  @media screen and (max-width: 990px) {
    div.book-header.mobile {
      text-align: center;
      display: block;
    }
    div.book-header.mobile .average-rating p {
      width: 100%;
    }
    div.book-header.desktop {
      display: none;
    }
    div.qrating, div.fake-rating {
      display: block !important;
    }
    div.qrating {
      display: block !important;
    }
    #bookcomments ol.media-list li.media {
      overflow: visible;
    }
  }
