/* -----------------------------------------------------
 * 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.
 */
#cart-message {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  font-family: proxima-nova, sans-serif;
  background-image: none;
  background-color: white;
  color: black;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 10px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border-radius: 0;
}
#cart-message .error {
  color: #f73c51;
  text-align: center;
  margin: 8px 30px 5px;
  font-size: 18px;
}
@media (min-width: 641px) {
  #cart-message .error {
    font-size: 1.2em;
  }
}
#cart-message .notification-div {
  background-color: white;
  border: 1px solid #fd7820;
  color: #fe784e;
  margin: 10px 5px;
  padding: 5px 10px;
  text-align: center;
}
#cart-message td.product_cell .book_title, #cart-message #cart_table td.product_cell .book_author, #cart-message #cart_table td.product_cell .book_user {
  font-family: proxima-nova, sans-serif;
  font-size: 18px;
}
#cart-message td.product_cell .book_meta {
  font-size: 0.75em;
  color: #555555;
}
#cart-message h4, #cart-message #shopping-cart-popup .format_name h4 {
  font-size: 1rem;
  color: black;
  margin-bottom: 3px;
  font-weight: 600;
}
#cart-message h2 {
  display: none;
}
#cart-message .format_price {
  font-size: 1em;
}
#cart-message .small {
  font-size: 0.8rem;
}
#cart-message #cart_buttons #update_and_checkout_wrap #checkout_button input, #cart-message #cart_buttons #update_and_checkout_wrap #update_quantity input {
  background-image: none;
  border: none;
  box-shadow: none;
  text-shadow: none;
  padding: 12px 15px 9px;
  text-transform: uppercase;
  font-size: 1rem;
}
#cart-message #cart_buttons #update_and_checkout_wrap #checkout_button .btn--mint-on-white {
  background-color: #00c0be;
  border: 2px solid #00c0be;
  color: white;
  margin-left: -4px;
  min-width: 230px;
  padding-left: 15px;
  padding-right: 15px;
}
#cart-message #cart_buttons #update_and_checkout_wrap #checkout_button .btn--mint-on-white:hover {
  background-color: white;
  border-color: black;
  color: black;
}
#cart-message #cart_buttons #update_and_checkout_wrap #update_quantity .btn--white-on-black {
  background-color: white;
  border: 2px solid black;
  color: black;
}
#cart-message #cart_buttons #update_and_checkout_wrap #update_quantity .btn--white-on-black:hover {
  background-color: black;
  border-color: black;
  color: white;
}
#cart-message #shopping-cart-header {
  font-size: 18px;
  color: black;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 0px;
  padding-bottom: 0px;
  margin-top: 10px;
}
#cart-message #cart_table th {
  text-align: left;
  font-size: 1rem;
  color: black;
  font-weight: 600;
}
#cart-message #cart_table th .products {
  color: black;
}
#cart-message #cart_table th.separator div.rule, #cart-message #cart_table td.separator div.rule {
  border-bottom: 1px solid #eeeeee;
  margin-bottom: 15px;
}
#cart-message #cart_buttons {
  margin: 10px 0;
}
#cart-message #cart_buttons #continue_shopping a {
  font-size: 1.3rem;
  color: #00c0be;
}
#cart-message .format_qty_cell input {
  text-align: center;
  font-size: 1em;
  background: whitesmoke;
  border: 0;
  padding: 4px 0 0;
  text-align: center;
}
#cart-message .format_qty_cell .remove-button {
  color: #00c0be;
}
#cart-message #cart_table td {
  padding-right: 5px;
}
#cart-message #cart_table td:last-child {
  padding-right: 0;
}
#cart-message #cart_table td.product_cell .book_author, #cart-message #cart_table td.product_cell .book_user {
  font-size: 1rem;
}
#cart-message #cart_table td ul.format_options li {
  font-size: 1rem;
}
#cart-message p + p {
  margin-top: 5px;
}

#subtotal_table td.space {
  display: none;
}
#subtotal_table td.final_subtotal {
  min-width: 0;
  max-width: 50px;
}

@media (max-width: 850px) {
  #cart-message #shopping-cart-header th, #cart-message #shopping-cart-header header, #cart-message #shopping-cart-header td.product_cell .book_title, #cart-message #shopping-cart-header td.product_cell .book_author, #cart-message #shopping-cart-header td.product_cell .book_user, #cart-message #shopping-cart-header td.product_cell .book_meta {
    font-size: 1rem;
  }

  #shopping-cart-popup #cart_table {
    width: 100%;
  }
  #shopping-cart-popup #cart_table th, #shopping-cart-popup #cart_table .format_name h4 {
    font-size: 1rem;
  }
  #shopping-cart-popup #cart_table td ul.format_options li {
    width: 100%;
    font-size: 0.8rem;
  }

  #cart_buttons {
    text-align: center;
  }
  #cart_buttons #continue_shopping {
    float: none;
    text-align: center;
    display: block;
    max-width: none;
  }
  #cart_buttons #update_and_checkout_wrap {
    max-width: 100%;
    float: none;
    display: block;
  }
  #cart_buttons #update_and_checkout_wrap #update_quantity, #cart_buttons #update_and_checkout_wrap #checkout_button {
    display: block;
    float: none;
    padding: 5px 0;
  }

  #cart_box {
    width: 100%;
  }

  #subtotal_table .space {
    display: none;
  }
  #subtotal_table .final_subtotal {
    min-width: 0;
  }
}
#exit-button a {
  color: white;
  background: url(/images/responsive_book_detail/xicon.png) no-repeat center center;
  width: 18px;
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
  height: 16px;
  margin-top: 16px;
}

#cart-message #cart_table td {
  font-weight: normal;
  font-family: proxima-nova-condensed, sans-serif;
}
#cart-message #cart_table td.product_cell .book_author {
  display: none;
}
#cart-message #cart_table td.product_cell > a, #cart-message #cart_table #cart_table .ebook-line-item img {
  float: none;
}
#cart-message #cart_table td.product_cell .book_meta {
  font-family: proxima-nova-condensed, sans-serif;
}
#cart-message #cart_table th.products, #cart-message #cart_table td.product_cell {
  padding-right: 5px;
  text-align: left;
  width: 245px;
}
#cart-message #cart_table th.qty {
  width: 80px;
}
#cart-message #cart_table th.format {
  width: 140px;
}
#cart-message #cart_table th.price {
  min-width: 60px;
}
@media (min-width: 321px) {
  #cart-message #cart_table th.price {
    min-width: 75px;
  }
}
#cart-message #cart_table th.price {
  text-align: right;
}
#cart-message #cart_table td.product_cell .book_title {
  padding-bottom: 0;
}
#cart-message #cart_table td a img, #cart-message #cart_table .ebook-line-item img, #cart-message #cart_table .pdf-line-item .product_cell img, #cart-message #cart_table .pod-line-item .product_cell img {
  margin-bottom: 10px;
}
#cart-message #cart_table td ul.format_options li {
  color: #555555;
  font-family: proxima-nova-condensed, sans-serif;
  font-size: 0.75em;
  line-height: 17px;
  list-style: none;
  margin-top: 0;
}
#cart-message .format_price {
  font-size: 14px;
}
@media (min-width: 321px) {
  #cart-message .format_price {
    font-size: 18px;
  }
}
#cart-message #cart_buttons #continue_shopping a {
  font-family: proxima-nova, sans-serif;
  font-size: 18px;
}
#cart-message #subtotal_table td.final_subtotal {
  max-width: 85px;
  padding-right: 0;
}
#cart-message #shopping-cart-popup #cart_box {
  padding: 0 7px;
  width: 100%;
}
#cart-message #shopping-cart-popup #cart_table {
  width: 100%;
  margin: 0;
}
#cart-message #shopping-cart-popup #cart_table td ul.format_options {
  padding-left: 0;
  text-align: left;
}
#cart-message #shopping-cart-popup #cart_table .format_name {
  text-align: left;
}

#cart_table ul.format_options {
  padding-left: 0;
  text-align: left;
}

.format_name {
  text-align: left;
}

.cart-message-non-overlay #cart-message #cart_buttons #continue_shopping a {
  font-size: 17px;
}
