
/**
 * Alter the cart design
 */

/* Cart header */
#checkout-shopping-cart-table table th {
  font-weight: bold;
}
#checkout-shopping-cart-table th.views-field-line-item-title {
  text-align: left;
}

/* Cart table */
#checkout-shopping-cart-table table .cart-header th {
  border-top: 0px solid #e2e2e2;
}
#checkout-shopping-cart-table table th, #checkout-shopping-cart-table table td {
  padding: 24px 20px;
  border: 0px;
  border-top: 2px solid #e2e2e2;
  vertical-align: top;
}
#checkout-shopping-cart-table table {
  border-bottom: 2px solid #e2e2e2;
}
#checkout-shopping-cart-table table tr.highlight td,
#checkout-shopping-cart-table table tr.highlight th {
  border-top: 0px;
}
#commerce-checkout-form-review .page-title {
  margin-bottom: 1.25em;
}

/* Delete button*/
#checkout-shopping-cart-table td.delete button {
  min-width: 40px;
  font-size: 0px;
}
#checkout-shopping-cart-table td.delete button:before {
  font-size: 26px;
}
#checkout-shopping-cart-table table td.delete button:before {
  top: -5px;
}

/* Image column */
#checkout-shopping-cart-table #views-form-commerce-cart-form-mdp-default figure.product-img,
#checkout-shopping-cart-table #views-form-commerce-cart-form-mdp-default .highlight .title {
  margin-right: 20px;
  width: 115px;
}

/* Title column */
#checkout-shopping-cart-table .views-field-line-item-title, #checkout-shopping-cart-recap .views-field-line-item-title {
  padding-left: 0px;
}
#checkout-shopping-cart-table .views-field-line-item-title a, #checkout-shopping-cart-recap .views-field-line-item-title a {
  font-weight: bold;
  text-decoration: none;
}
#checkout-shopping-cart-table .views-field-line-item-title .product-specifications {
  font-weight: normal;
}
#checkout-shopping-cart-table .views-field-line-item-title .delivery-delay {
  font-weight: normal;
  color: #A5A5A5;
}
#checkout-shopping-cart-table .views-field-line-item-title .customize-product {
  display: inline;
  font-family: BentonSans-Regular;
  font-weight: normal;
}
#checkout-shopping-cart-table .views-field-line-item-title a.customize-link {
  text-decoration: underline;
  font-weight: normal;
}
#views-form-commerce-cart-form-mdp-default .highlight .product-infos {
  font-weight: normal;
}

/* Engraving options row */
#checkout-shopping-cart-table .engraving-infos {
  display: flex;
  flex-direction: column;
  padding-left: 132px;
}
#checkout-shopping-cart-table #views-form-commerce-cart-form-mdp-default .highlight .title {
  font-weight: normal;
  width: auto;
}
#checkout-shopping-cart-table .engraving-infos .product-infos {
  margin-top: 15px;
}
#checkout-shopping-cart-table .engraving-infos .product-infos a {
  text-decoration: underline;
  font-weight: normal;
}
#checkout-shopping-cart-table .highlight .views-field-commerce-unit-price *,
#checkout-shopping-cart-table .highlight .views-field-edit-quantity *,
#checkout-shopping-cart-table .highlight .views-field-commerce-total *,
#checkout-shopping-cart-table .highlight .views-field-edit-delete * {
 visibility: hidden;
}

/* Quantity */
#checkout-shopping-cart-table .views-field-edit-quantity .edit-quantity-form-group {
  display:flex;
}
#checkout-shopping-cart-table .views-field-edit-quantity .control {
  width: 31px;
  height: 36px;
  border: 0px;
  background-color: black;
  text-align: center;
  line-height: 36px;
  font-weight: bold;
  color: white;
  cursor: pointer;
}
#checkout-shopping-cart-table .views-field-edit-quantity input {
  width: 55px;
  text-align: center;
  -moz-appearance: textfield;
}
#checkout-shopping-cart-table .views-field-edit-quantity input[type=number]::-webkit-inner-spin-button,
#checkout-shopping-cart-table .views-field-edit-quantity input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Reset strong tag */
#checkout-shopping-cart-table strong {
  font-family: "BentonSans-Regular";
  font-weight: normal;
}

/* Total recap box */
#checkout-shopping-cart-table .shopping-cart-total-container {
  padding-left: 45px;
}

@media screen and (min-width: 768px) {
  #checkout-shopping-cart-recap-table .shopping-cart-total-container,
  #my-account-order-detail .shopping-cart-total-container {
    width: 50% !important;
    height: auto !important;
    margin-left: 50%;
  }
  #my-account-order-detail .shopping-cart-total-container {
    margin-bottom: 20px;
  }
}

#checkout-shopping-cart-recap-table .shopping-cart-total-container .shopping-cart-total .title,
#checkout-shopping-cart-recap-table .shopping-cart-total-container .shopping-cart-total hr,
#checkout-shopping-cart-recap-table .shopping-cart-total-container .shopping-cart-total .nb-items,
#my-account-order-detail .shopping-cart-total-container .shopping-cart-total .title,
#my-account-order-detail .shopping-cart-total-container .shopping-cart-total hr,
#my-account-order-detail .shopping-cart-total-container .shopping-cart-total .nb-items {
  display: none;
}
#checkout-shopping-cart-table .shopping-cart-total-container .shopping-cart-total {
  position: relative;
  min-width: 253px;
  padding: 20px 20px 80px 20px;
  background-color: #F6F6F6;
}
#checkout-shopping-cart-table .shopping-cart-total-container .shopping-cart-total td {
  background-color: #F6F6F6;
}
#checkout-shopping-cart-table table th, #checkout-shopping-cart-table table td {
  background-color: transparent;
}
#checkout-shopping-cart-table .shopping-cart-total-container .title {
  text-transform: uppercase;
  font-size: 22px;
  font-family: BentonSans-Bold;
  margin: 0px 0px 11px 0px;
}
#checkout-shopping-cart-table .shopping-cart-total-container hr {
  margin: 0px;
  border: 0px;
  border-top: 1px solid #D8D8D8;
}
#checkout-shopping-cart-table .shopping-cart-total-container .nb-items {
  padding: 15px 0px;
  font-size: 15px;
  font-family: BentonSans-Bold;
  color: #333333;
}
#checkout-shopping-cart-table .shopping-cart-total-container .commerce-price-formatted-components {
  font-size: 15px;
  border-bottom: 1px solid #D8D8D8;
}
#checkout-shopping-cart-table .shopping-cart-total-container .commerce-price-formatted-components tr {
  line-height: 50px;
  text-transform: initial;
}
#checkout-shopping-cart-table .shopping-cart-total-container .commerce-price-formatted-components .component-title {
  border-top: 1px solid #D8D8D8;
  line-height: 20px;
  display: flex;
  width: 100%;
  align-items: center;
  min-height: 60px;
}
#checkout-shopping-cart-table .shopping-cart-total-container .commerce-price-formatted-components .component-total {
  min-width: 100px;
  font-size: 15px;
  border-top: 1px solid #D8D8D8;
}
#checkout-shopping-cart-table .shopping-cart-total-container .form-submit.btn-main-submit {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
  margin: 0px;
}
#checkout-shopping-cart-table .shopping-cart-total-container .commerce-price-formatted-components.full-total {
  margin: 11px 0px;
  border-top: 0px;
  border-bottom: 0px;
}
#checkout-shopping-cart-table .shopping-cart-total-container .commerce-price-formatted-components.full-total .component-title {
  width: auto;
  text-transform: uppercase;
  border-top: 0px;
}
#checkout-shopping-cart-table .shopping-cart-total-container .commerce-price-formatted-components.full-total .component-total {
  font-size: 22px;
  width: auto;
  border-top: 0px;
}

/* Legal payment box */
#checkout-shopping-cart-table .legal {
  margin-top: 0px;
  font-size: 15px;
  text-align: left;
  border-top: 0px;
}
#checkout-shopping-cart-table .payment-methods {
  display: flex;
  flex-flow: row wrap;
  list-style: none;
  padding: 0px;
}
#checkout-shopping-cart-table .payment-method {
  flex-basis: 25%;
  max-width: 70px;
  padding: 3px;
}
#checkout-shopping-cart-table .payment-method image {
  width: 100%;
  height: 100%;
}

/* Continue browsing button */
#checkout-shopping-cart-table .commerce-line-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#checkout-shopping-cart-table .btn-main-continue {
  float: none;
  margin-left: 0px;
  margin-bottom: 31px;
  border: 1px solid black;
  font-size: 13px;
  font-family: "BentonSans-Regular";
  font-weight: bold;
}
#checkout-shopping-cart-table .btn-main-continue .arrow {
  height: 7px;
  width: 15px;
  margin-right: 10px;
}
#checkout-shopping-cart-table .payment-informations {
  text-align: left;
  font-size: 13px;
  color: #929292;
}

/* Trick for promo code form and submit cart button */
#checkout-shopping-cart-table #commerce-coupon-cart-form-wrapper, #checkout-shopping-cart-table .form-actions .btn-main-submit {
  display: none;
}
#checkout-shopping-cart-table .shopping-cart-total-container #commerce-coupon-cart-form-wrapper,
#checkout-shopping-cart-table .shopping-cart-total-container .form-actions .btn-main-submit {
  display: block;
}

/* Coupon form */
#commerce-coupon-cart-form-wrapper {
  position: relative;
}
#commerce-coupon-cart-form-wrapper label {
  display: block;
  height: 40px;
  line-height: 20px;
  font-size: 13px;
  font-family: BentonSans-Regular;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
}
#commerce-coupon-cart-form-wrapper input {
  display: none;
  width: 170px;
  font-size: 13px;
  margin-top: 14px;
}
#commerce-coupon-cart-form-wrapper #edit-coupon-add {
  display: none;
  position: absolute;
  top: 59px;
  right: 0px;
  height: 36px;
  border: 0px;
  background-color: black;
  color: white;
}

/* Coupons list */
#commerce-coupon-cart-form-wrapper .view-order-coupon-list-mdp .views-row {
  margin-top: 10px;
}
#commerce-coupon-cart-form-wrapper .view-order-coupon-list-mdp .views-field-code .views-label {
  font-weight: bold;
}
#commerce-coupon-cart-form-wrapper .view-order-coupon-list-mdp .views-field-discount-value-display .views-label {
  display: none;
}
#commerce-coupon-cart-form-wrapper .view-order-coupon-list-mdp .views-field-discount-value-display ul {
  margin: 0px;
  padding: 0px;
  list-style: none;
  font-style: italic;
}
#checkout-shopping-cart-table .shopping-cart-table .shopping-cart-total .component-type-discount .component-title {
  display: flex;
  width: 100%;
  min-height: 60px;
  align-items: center;
  line-height: 20px;
}
div.shopping-cart-table .delete button,
div.shopping-cart-table .delete button:hover,
div.shopping-cart-table .delete button:focus {
  text-decoration: none;
}
#checkout-shopping-cart-recap .view-order-coupon-list-mdp .views-field-code {
  display: inline-block;
}
#checkout-shopping-cart-recap .view-order-coupon-list-mdp .views-field-discount-value-display {
  display: inline-block;
}
#checkout-shopping-cart-recap .view-order-coupon-list-mdp .views-label-discount-value-display {
  display: none;
}
#checkout-shopping-cart-recap .view-order-coupon-list-mdp .item-list ul {
  list-style-type: none;
}
#checkout-shopping-cart-recap .view-order-coupon-list-mdp .views-field-remove-from-order {
  display: inline-block;
  padding-left: 20px;
}
.view-order-coupon-list-mdp.view-display-id-recap th.views-field-code {
  width: 110px;
  left: -25px;
  position: relative;
}
.view-order-coupon-list-mdp.view-display-id-recap td.views-field-code {
  width: 110px;
}
.view-order-coupon-list-mdp.view-display-id-recap th.views-field-discount-value-display {
  width: 209px;
  left: -25px;
  position: relative;
}
.view-order-coupon-list-mdp.view-display-id-recap td.views-field-discount-value-display {
  width: 209px;
}
.view-order-coupon-list-mdp.view-display-id-recap th.views-field-remove-from-order {
  display: none;
}
.view-order-coupon-list-mdp.view-display-id-recap td.views-field-remove-from-order {
  max-width: 130px;
  position: relative;
}

#checkout-shopping-cart-recap-table .view.view-order-coupon-list-mdp table {
  display: table;
}
#checkout-shopping-cart-recap-table .view.view-order-coupon-list-mdp table td,
#checkout-shopping-cart-recap-table .view.view-order-coupon-list-mdp table th,
#checkout-shopping-cart-recap-table .view.view-order-coupon-list-mdp .views-field-code,
#checkout-shopping-cart-recap-table .view.view-order-coupon-list-mdp .views-field-discount-value-display,
#checkout-shopping-cart-recap-table .view.view-order-coupon-list-mdp .views-field-remove-from-order {
  display: table-cell;
  position: inherit;
  width: auto;
  left: 0px;
}

/* Sticky total block */
.sticky-cart {
  position: -webkit-sticky;
  position: sticky;
  top: 170px;
}
.sticky-cart:before,
.sticky-cart:after {
  content: '';
  display: table;
}

/* Mobile rules */
@media screen and (max-width: 767px) {

  /* Layout */
  #checkout-shopping-cart-table .responsive-table table.col-md-9, #checkout-shopping-cart-table .shopping-cart-total-container.col-md-3 {
    padding: 0px;
  }
  #checkout-shopping-cart-table .legal {
    display: none;
  }

  /* Product table */
  #checkout-shopping-cart-table table {
    border-bottom: 0px;
  }
  #checkout-shopping-cart-table .responsive-table tr {
    position: relative;
    border-bottom: 0px;
  }
  #checkout-shopping-cart-table .responsive-table .views-field-line-item-title {
    padding-top: 54px;
    padding-bottom: 0px;
    border-top: 1px solid #D8D8D8;
  }
  #checkout-shopping-cart-table #views-form-commerce-cart-form-mdp-default .highlight .views-field-line-item-title {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  #checkout-shopping-cart-table #views-form-commerce-cart-form-mdp-default .highlight .engraving-infos {
    padding-left: 16px;
  }
  #checkout-shopping-cart-table #views-form-commerce-cart-form-mdp-default .highlight .views-field-edit-quantity {
    display: none;
  }
  #checkout-shopping-cart-table .responsive-table .views-field-line-item-title .title {
    font-size: 15px;
  }
  #checkout-shopping-cart-table .responsive-table .views-field-edit-quantity {
    border-top: 0px;
    padding-top: 40px;
  }
  #checkout-shopping-cart-table .responsive-table .views-field-edit-quantity input {
    width: 60px;
  }
  @media screen and (max-width: 768px) {
    #checkout-shopping-cart-table .responsive-table .views-field-edit-quantity input {
      width: 60px;
    }
  }
  #checkout-shopping-cart-table .responsive-table .views-field-commerce-total {
    position: absolute;
    right: 0px;
    padding-top: 42px;
    border-top: 0px;
  }
  #checkout-shopping-cart-table .responsive-table .views-field-commerce-total strong {
    font-weight: bold;
    color: #333333;
    font-family: "BentonSans-Bold";
  }
  #checkout-shopping-cart-table .responsive-table .views-field-edit-delete {
    position: absolute;
    top: -14px;
    right: 0px;
    border-top: 0px;
  }
  #checkout-shopping-cart-table .shopping-cart-total-container {
    padding-left: 10px;
  }

  #checkout-shopping-cart-table .form-item-coupon-code input {
    width: 100%;
  }
  #checkout-shopping-cart-table .form-item-coupon-code .form-submit {
    top: 39px;
  }
  #checkout-shopping-cart-table .commerce-price-formatted-components {
    margin-top: 0px;
  }

}

/* Tablets rules */
@media screen and (max-width: 992px) {

  #commerce-coupon-cart-form-wrapper label {
    display: block;
  }

  #commerce-coupon-cart-form-wrapper input {
    width: calc(100% - 45px);
  }

  #commerce-coupon-cart-form-wrapper #edit-coupon-add {
    top: 59px;
  }

}

/* Recap page */
#checkout-shopping-cart-recap-table .col-md-9 {
  width: 100% !important;
}

/* Admin */
.page-admin-commerce-orders .legal {
  display: none;
}

/*landing page*/
#header-actions .highlight.transition {
  transition: background-color 0.7s linear;
  -webkit-transition: background-color 0.7s linear;
}

.lp-product-added {
  color: #dc5d60;
}
