/* -----------------------------------------------------
 * Layout settings
 * ----------------------------------------------------- */
/* -----------------------------------------------------
 * App-wide specs: colors, dimensions, etc.
 * Controller- and page-specific variables should be declared in
 * the controller-specific SASS stylesheet.
 * ----------------------------------------------------- */
/*
 * Utopia-specific SASS variables and mixins.
 */
/* Page layouts
 */
/* -----------------------------------------------------
 * Grids
 *
 * Programmatically generate the widths of elements that
 * belong in the grid.
 *
 * Usage:
 *
 * .container
 *   @include row
 *   .primary
 *     @include col(8)
 *     @include internal-margin
 *   .secondary
 *     @include col(4)
 *     @include last
 * .container
 *   @include row
 *   .tertiary
 *     @prepend(4)
 *     @include(4)
 *     @append(4)
 *
 * Inspired by:
 *   http://bjorkoy.com/2010/05/css-grids-with-sass/
 * ----------------------------------------------------- */
/* math magic */
/* create row div */
/* create a column div */
/* make an element span n columns */
/* the first and last columns in a row needs these */
/* prepend n blank columns */
/* append n blank columns */
/*
 * Book display styles.
 */
.preview {
  margin-bottom: 0;
}
.preview .grid__column--left {
  margin-bottom: 30px;
}
@media (max-width: 768px) {
  .preview .grid__column--left {
    width: 100%;
  }
}
.preview .preview-ribbon, .preview .like-btn, .preview .twitter-btn, .preview .gplus-btn, .preview .pinterest-btn, .preview .manual-share {
  display: none;
}
.preview .share-btns {
  margin-top: 4px;
  position: absolute;
}
.preview .share-btns .like-btn {
  margin-left: -56px;
}
.preview .share-btns .twitter-btn {
  margin-top: 2px;
  margin-left: 3vw;
}
@media (min-width: 769px) {
  .preview .share-btns .twitter-btn {
    margin-left: 2vw;
  }
}
.preview .share-btns .gplus-btn {
  margin-top: 2px;
  margin-left: 8vw;
}
@media (min-width: 769px) {
  .preview .share-btns .gplus-btn {
    margin-left: 5vw;
  }
}
.preview .share-btns .pinterest-btn {
  margin-top: 2px;
  margin-left: 12vw;
}
@media (min-width: 769px) {
  .preview .share-btns .pinterest-btn {
    margin-left: 8vw;
  }
}
.preview .share-btns .manual-share {
  padding: 5px;
  border: 1px solid #9b9fa1;
  background: white;
}
.preview .share-btns .manual-share .share-a-link {
  padding-top: 5px;
  padding-left: 5px;
}
.preview .manual-share__wrapper {
  margin-bottom: 5px;
  margin-top: 6px;
  max-width: 445px;
  width: 60vw;
}
@media (min-width: 769px) {
  .preview .manual-share__wrapper {
    width: 38vw;
  }
}
@media (min-width: 851px) {
  .preview .manual-share__wrapper {
    width: 44vw;
  }
}
@media (min-width: 981px) {
  .preview .manual-share__wrapper {
    width: 36vw;
  }
}
@media (min-width: 1280px) {
  .preview .manual-share__wrapper {
    max-width: 460px;
    width: 40vw;
  }
}
.preview .manual-share__wrapper .share-link {
  border: 1px solid #9b9fa1;
  color: black;
  display: inline;
  margin-left: 5px;
  margin-right: 6px;
  overflow-x: scroll;
  overflow-y: hidden;
  height: 2em;
  padding: 5px;
  resize: none;
  width: 67.5%;
  word-wrap: normal;
}
@media (min-width: 769px) and (max-width: 850px) {
  .preview .manual-share__wrapper .share-link {
    width: 66%;
  }
}
.preview .manual-share__wrapper .share-link:focus {
  outline: 1px solid #555555;
  box-shadow: 0 0 5px #555555;
}
.preview .manual-share__wrapper .copy-button {
  display: inline-block;
  padding: 9px 0px 4px;
  vertical-align: top;
  width: 27.5%;
}
.preview .bookstore_left {
  margin-bottom: 50px;
  text-align: center;
}
@media (min-width: 641px) {
  .preview .bookstore_left {
    margin-bottom: 40px;
  }
}
.preview .simple-book-control {
  float: left;
}
.preview .preview-section {
  float: right;
  position: relative;
}
@media (min-width: 641px) {
  .preview .preview-section {
    top: -29px;
  }
}
.preview .preview-section:hover .preview-section__link {
  text-decoration: underline;
}
@media (max-width: 640px) {
  .preview .preview-section {
    float: none;
    text-align: center;
  }
}
.preview .preview-section .preview-section__link {
  color: #333333;
  font-weight: 600;
  font-size: 18px;
  font-family: proxima-nova, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  vertical-align: text-bottom;
}
.preview .share-section {
  display: none;
}
@media (min-width: 641px) {
  .preview .share-section {
    display: block;
  }
}
.preview .share-section .share-section__link {
  color: #555555;
  text-decoration: none;
  padding: 5px;
  font-size: 20px;
  margin-left: 1vw;
}
.preview .share-section .share-section__link:before {
  text-align: left;
}
@media (min-width: 769px) and (max-width: 850px) {
  .preview .share-section .share-section__link {
    margin: 0;
  }
}
.preview .share-section .share-section__link.facebook-icon {
  margin-left: 0;
}
.preview .book-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  word-break: break-word;
}
@media (min-width: 321px) {
  .preview .book-title {
    font-size: 30px;
  }
}
.preview .book_subtitle {
  line-height: 18px;
}
.preview h4.book_subtitle, .preview p, .preview strong, .preview .profile {
  text-transform: none;
  font-size: 14px;
  color: #555555;
  font-family: proxima-nova, sans-serif;
  font-weight: normal;
  margin: 10px 0;
  word-break: break-word;
}
@media (max-width: 768px) {
  .preview .title_and_byline {
    text-align: center;
  }
}
.preview .title_and_byline strong, .preview .title_and_byline .Profile {
  color: black;
}
.preview .instructions {
  text-align: center;
  margin-bottom: 5px;
  margin-top: 15px;
  min-height: 20px;
}
@media (min-width: 769px) {
  .preview .instructions {
    text-align: right;
  }
}
.preview .instructions p {
  font-size: 13px;
  color: #9b9fa1;
  margin-bottom: 20px;
}
@media (min-width: 376px) {
  .preview .instructions p {
    margin-bottom: 15px;
  }
}

.edit-link {
  color: #333333;
  font-weight: 600;
  font-size: 13px;
  margin-left: 5px;
  display: block;
}
@media (min-width: 376px) {
  .edit-link {
    display: inline;
  }
}

.edit-icon {
  background: url(/images/author_profile/edit_icon.png) top center no-repeat transparent;
  height: 10px;
  width: 10px;
  display: inline-block;
  background-size: 10px;
}

.line-item {
  cursor: pointer;
  margin-bottom: 15px;
}
@media (min-width: 981px) {
  .line-item:hover .line-item-description__display-name {
    color: #00c0be;
  }
  .line-item:hover .line-item-price label {
    color: #00c0be;
  }
  .line-item:hover .line-item-qty .radio-custom:after, .line-item:hover .line-item-qty .radio-custom:checked:before {
    border-color: #00c0be;
  }
  .line-item:hover .pdf:after, .line-item:hover .pdf:checked:before {
    border-color: #00c0be;
  }
}
.line-item .line-item-qty, .line-item .line-item-purchase.pdf {
  display: inline-block;
  vertical-align: top;
  position: relative;
  margin-top: 4px;
  float: left;
}
.line-item .line-item-description, .line-item .ebook-type {
  padding-left: 30px;
  text-transform: uppercase;
  color: #333333;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  vertical-align: top;
  max-width: 80%;
}
@media (max-width: 1100px) {
  .line-item .line-item-description, .line-item .ebook-type {
    width: 72%;
  }
}
@media (max-width: 980px) {
  .line-item .line-item-description, .line-item .ebook-type {
    width: 72%;
  }
}
@media (max-width: 360px) {
  .line-item .line-item-description, .line-item .ebook-type {
    width: 70%;
  }
}
@media (max-width: 320px) {
  .line-item .line-item-description, .line-item .ebook-type {
    width: 70%;
  }
}
.line-item .line-item-description .line-item-description__display-detail, .line-item .line-item-description .ebook-pages, .line-item .ebook-type .line-item-description__display-detail, .line-item .ebook-type .ebook-pages {
  text-transform: none;
  font-size: 13px;
  color: #9a9fb1;
  font-weight: 200;
  min-height: 16px;
}
.line-item .line-item-price {
  float: right;
  position: relative;
  vertical-align: top;
}
.line-item .line-item-price label {
  color: black;
  font-size: 14px;
  font-family: futura-pt, sans-serif;
}

.quantity-box {
  float: left;
  margin-top: 23px;
  margin-right: 2px;
  display: none;
}
.quantity-box input {
  display: inline-block;
  text-align: center;
  margin: 0 22px;
  width: 64px;
  height: 40px;
  font-family: proxima-nova-condensed, sans-serif;
  border: 0;
  color: #333333;
  background-color: whitesmoke;
  font-size: 2rem;
  vertical-align: middle;
  padding: 1px 0;
}

.action {
  margin-top: 10px;
  text-align: center;
}
.action #add_button input {
  width: 100%;
  border: none;
}

.bk-cover-image {
  max-width: 465px;
  max-height: 400px;
  display: inline-block;
  position: relative;
}
.bk-cover-image .cover-with-hinge {
  display: block;
  text-align: center;
}
.bk-cover-image .cover-with-hinge .cover-image {
  max-height: 400px;
  box-shadow: 0 10px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19) !important;
}
.bk-cover-image .cover-with-hinge:before {
  content: "";
  min-width: 10px;
  width: 7%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0) 12%, rgba(0, 0, 0, 0.45) 29%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.25) 70%, rgba(0, 0, 0, 0) 85%, rgba(0, 0, 0, 0));
}

.bookstore_right {
  height: 60px;
}
.bookstore_right .comment_link {
  display: none;
}

.related-editions-section:hover {
  text-decoration: none;
}

.related-editions-module {
  margin-top: 10px;
  border: 1px solid #979797;
  padding: 10px 20px;
}
.related-editions-module h2 {
  font-size: 18px;
  font-weight: 600;
  font-family: proxima-nova, sans-serif;
  display: block;
  margin-right: 15px;
}
.related-editions-module h2:hover {
  text-decoration: none;
}
.related-editions-module h2::after {
  content: ":";
}
.related-editions-module .lnk-related-edition {
  display: inline;
  font-size: 0.8em;
}
.related-editions-module .body {
  margin-top: 0;
  display: inline-block;
  width: 100%;
}
.related-editions-module .body .price {
  color: black;
  float: right;
  font-size: 14px;
  font-family: futura-pt, sans-serif;
  margin-top: 2px;
}
.related-editions-module:hover h2, .related-editions-module:hover p, .related-editions-module:hover .price, .related-editions-module:hover .body {
  color: #00c0be;
}

.add_to_cart {
  margin-bottom: 30px;
}

.distribution-notice {
  text-align: center;
  color: #555555;
  margin-bottom: 10px;
}

.distribution-button {
  text-align: center;
}

.isbn-format {
  font-weight: 600;
}

.isbn-info {
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .book_listing {
    padding: 0 5%;
  }
}
@media (max-width: 320px) {
  .book_listing {
    padding: 0 10%;
  }
}

.preview .grid__content:last-child {
  padding: 0;
}
@media (min-width: 641px) {
  .preview .grid__content:last-child {
    padding: 0 15%;
  }
}
@media (min-width: 769px) {
  .preview .grid__content:last-child {
    padding: 0;
  }
}

.ebook-type {
  text-transform: uppercase;
  color: #333333;
  font-size: 14px;
  font-weight: 600;
}

.ebook-pages {
  text-transform: none;
  font-size: 13px;
  color: #9a9fb1;
  font-weight: 200;
  min-height: 16px;
  padding-right: 40px;
}

.ebook-price {
  color: black;
  float: right;
  font-size: 14px;
  font-family: futura-pt, sans-serif;
}

.ebook-price-free span {
  font-weight: bold;
  font-size: 16px;
}
.ebook-price-free span:first-child {
  display: none;
}
.ebook-price-free span:last-child {
  text-transform: capitalize;
}

.ebook-cover-wrapper {
  text-align: center;
  margin-bottom: 10px;
}

.ebook-cover {
  margin: 0 auto;
  position: relative;
  text-align: left;
  box-shadow: 0 4px 4px #999999;
  display: inline-block;
  vertical-align: middle;
}

.ebook-cover-image {
  max-height: 400px;
}

.add-to-cart-form input[type='submit'] {
  width: 100%;
  margin-top: 20px;
  border: none;
}

.send-to-device-container .primary {
  text-align: center;
  width: 100%;
  margin-bottom: 12px;
  position: relative;
}
.send-to-device-container .primary .icon--dropdown-ind--down:before {
  border-bottom: 1px solid white;
  border-right: 1px solid white;
  height: 10px;
  width: 10px;
  top: -5px;
}
.send-to-device-container .primary.open .icon--dropdown-ind--down:before {
  transform: rotate(225deg);
  top: 2px;
}

.related-editions-container {
  margin-top: 30px;
  border: 1px solid #979797;
  padding: 10px 20px;
}
.related-editions-container:hover .related-editions-list {
  cursor: pointer;
}
.related-editions-container:hover .related-editions-list .bk-title, .related-editions-container:hover .related-editions-list .bk-price {
  color: #00c0be;
}

.related-editions-list {
  padding-left: 0;
  margin-top: 0;
}
.related-editions-list .related_editions_book {
  list-style: none;
}
.related-editions-list .related_editions_book .bk-title {
  font-size: 0.8em;
  color: #555555;
}
.related-editions-list .related_editions_book .bk-price {
  color: black;
  float: right;
  font-size: 14px;
  font-family: futura-pt, sans-serif;
  margin-top: 2px;
}

.grid-construct .related-editions-container .section-heading {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  font-family: proxima-nova, sans-serif;
  display: inline-block;
  margin-right: 15px;
}

.cart-quantity-add {
  margin-top: 25px;
}

.book-title__ebook-sign {
  font-size: 18px;
  color: #9b9fa1;
  vertical-align: text-bottom;
  font-weight: normal;
  display: block;
}

.icon--ipad {
  float: left;
}

.ebook-cover__preview-link {
  display: none;
}

#ebk-email-dialog {
  border: 1px solid #9b9fa1;
  padding: 10px;
}
#ebk-email-dialog h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
#ebk-email-dialog .edit_ebook_ebook input {
  display: inline-block;
}
#ebk-email-dialog .edit_ebook_ebook input[type='text'] {
  width: 70%;
  border: 1px solid #9b9fa1;
  color: black;
  display: inline;
  margin-left: 5px;
  margin-right: 6px;
  outline-color: #555555;
  max-height: 2em;
  padding: 5px;
}
#ebk-email-dialog .edit_ebook_ebook input.primary {
  width: 25%;
  float: right;
  padding: 9px 0 4px;
  vertical-align: top;
}

.ebook-tax, .tax-info {
  text-align: center;
  margin-top: 15px;
  font-size: 16px;
  color: #555555;
}
