/*todo : drupal add css whegit anever needed*/

/* .no-padding = utility class to override bootstrap default padding */

#checkout-delivery-address .no-padding {
    padding: 0;
}
#my-account-identification #my-account-create.identification-block,
#my-account-identification #my-account-login.identification-block {
  padding-bottom: 50px;
  position: relative;
}

/*Flying labels \o/ */
/*---------------- */
#my-account-identification .form-item.form-type-textfield,
#my-account-identification .form-item.form-type-password,
#mdp-customer-user-register-form .form-item.form-type-textfield,
#mdp-customer-user-register-form .form-item.form-type-password,
#checkout-delivery-address .form-item.form-type-textfield {
  position: relative;
  margin-bottom: 25px;
}

#my-account-identification .form-item.form-type-textfield label,
#my-account-identification .form-item.form-type-password label,
#mdp-customer-user-register-form .form-item.form-type-textfield label,
#mdp-customer-user-register-form .form-item.form-type-password label,
#checkout-delivery-address .form-item.form-type-textfield label {
  position: absolute;
  top: 13px;
  left: 10px;
  color: #333333;
  font-size: 14px;
  transition: font-size 0.2s ease, top 0.2s ease, left 0.2s ease; /*No transition for opacity*/
  -webkit-transition: font-size 0.2s ease, top 0.2s ease, left 0.2s ease; /*No transition for opacity*/
  z-index: 1;
}

/*Fields borders*/
/*-------------*/
#my-account-identification input:not([type="submit"]):not([type="radio"]),
#mdp-customer-user-register-form input:not([type="submit"]):not([type="radio"]),
#checkout-delivery-address input:not([type="submit"]):not([type="radio"]) {
  border: none;
  border-bottom: solid 1px #161616;
}
#my-account-identification .has-error input:not([type="submit"]):not([type="radio"]),
#mdp-customer-user-register-form .has-error input:not([type="submit"]):not([type="radio"]),
#checkout-delivery-address .has-error input:not([type="submit"]):not([type="radio"]) {
  border-bottom-color: #b94a48;
  box-shadow: none;
  -webkit-box-shadow: none;
}
@media screen and (min-width: 992px){
  #checkout-delivery-address .border-right::after {
    content: '';
    width: 2px;
    height: 100%;
    background-color: #dcdcdc;
    position: absolute;
    top: 0;
    right: 0;
  }
}

/*Radio fields*/
/*-----------*/
/*-----------*/
#my-account-identification .form-type-radios.form-item > label,
#mdp-customer-user-register-form .form-type-radios.form-item > label,
#checkout-delivery-address .form-type-radios.form-item > label,
#my-account-identification .form-type-radios.form-item > .form-radios,
#mdp-customer-user-register-form .form-type-radios.form-item > .form-radios,
#checkout-delivery-address .form-type-radios.form-item > .form-radios {
  display: inline-block;
  margin: 0;
}

#my-account-identification .form-type-radios.form-item > label,
#mdp-customer-user-register-form .form-type-radios.form-item > label,
#checkout-delivery-address .form-type-radios.form-item > label {
  padding-right: 20px;
}

#my-account-identification .form-item.radio .form-item,
#mdp-customer-user-register-form .form-item.radio .form-item,
#checkout-delivery-address .form-item.radio .form-item {
  vertical-align: middle;
}

#my-account-identification .radio input[type="radio"],
#mdp-customer-user-register-form .radio input[type="radio"],
#checkout-delivery-address .radio input[type="radio"] {
  margin: 0;
  vertical-align: middle;
  height: 20px;
}

#my-account-identification .radio > label,
#mdp-customer-user-register-form .radio > label,
#checkout-delivery-address .radio > label {
  vertical-align: middle;
  line-height: 20px;
  margin: 0;
}
/*Password field*/
/*-------------*/
#my-account-identification #edit-email,
#my-account-identification #edit-pass {
  float: none;
  display: block;
}

#mdp-customer-user-register-form .password-parent {
  position: relative;
}

#mdp-customer-user-register-form .pass-container {
  position: relative;
}

#mdp-customer-user-register-form .password-strength.help-block,
#mdp-customer-user-register-form .password-confirm.help-block {
  position: absolute;
  left: 100%;
  top: 57px;
  white-space: nowrap;
}

#mdp-customer-user-register-form .password-confirm.help-block .password-strength-text {
  margin-top: 5px;
}

#mdp-customer-user-register-form .password-confirm.help-block {
  top: 110px;
}
/*Help block*/
/*---------*/
#my-account-identification .help-block {
  margin-top: 20px;
  margin-bottom: 0;
}

/*Submit buttons*/
/*-------------*/
#my-account-identification .input-group {
  display: block;
  position: static;
}

#my-account-identification .input-group-btn {
  display: block;
  left: 30px;
  right: 30px;
  position: absolute;
  bottom: 0;
  width: auto;
}

#my-account-identification .input-group-btn .btn-main {
  width: 100%;
  margin-top: 20px;
}

/*Specific page livraison*/
/*----------------------*/
#checkout-delivery-address .form-content{
  padding-left: 30px;
  padding-right: 30px;
}

#checkout-delivery-address .form-content .fa-phone {
  font-size: 30px;
}

#checkout-delivery-address .form-content .fa-mobile {
  font-size: 38px;
}

/*Specific page inscription*/
/*------------------------*/
#mdp-customer-user-register-form #edit-submit{
  padding-top: 7px;
  padding-bottom: 7px;
}

#mdp-customer-user-register-form .password-strength.help-block {
  padding-right: 50px;
}

#mdp-customer-user-register-form .password-strength.help-block .password-strength-text {
  position: absolute;
  right: 0;
  top: 0;
}

#mdp-customer-user-register-form #edit-user-civility,
#mdp-customer-user-register-form #edit-user-lastname,
#mdp-customer-user-register-form #edit-user-firstname,
#mdp-customer-user-register-form #edit-account,
#mdp-customer-user-register-form #edit-user-phone,
#mdp-customer-user-register-form #edit-user-pro {
  max-width: 350px;
}
/*Specific page verification*/
/*-------------------------*/
/*Title*/
#commerce-checkout-form-review h2 {
  text-transform: none;
}

#commerce-checkout-form-review h2:after {
  content: none;
}

#checkout-payment-method {
  margin-top: 40px;
}

#checkout-payment-method h2 {
  padding: 10px;
  margin: 0;
}

/*Infos*/
.commerce-order-handler-area-order-total span {
  display: inline-block;
  margin-right: 50px;
}

.checkout-form-review-infos-container {
  border-bottom: 1px solid #333333;
}

.checkout-form-review-infos-container .show-more {
  text-align: right;
}

.checkout-form-review-infos-container .show-more a {
  text-decoration: none;
}

.checkout-form-review-infos-container .show-more a .round-arrow {
  display: inline-block;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  background: #000;
  color: white;
  margin-left: 5px;
  margin-right: 5px;
  width: 20px;
  height: 20px;
  text-align: center;
  font-size: 14px;
}

.checkout-form-review-infos-container .show-more a .round-arrow i {
  font-size: 14px;
  line-height: 20px;
}

/*Table*/
#commerce-checkout-form-review table tbody td,
#commerce-checkout-form-review table tbody th {
  border: none;
  text-align: left;
}

#commerce-checkout-form-review table tbody td {
  padding-left: 10px;
  min-width: 60px;
}

#checkout-shopping-cart-recap .shopping-cart-table table {
  margin-bottom: 0;
}

/*Payment modes*/
#checkout-payment-method #edit-commerce-payment {
  margin: 0;
}
#checkout-payment-method #edit-mdp-commerce-checkout-tos{
  text-align: center;
}
#checkout-payment-method .payment-mode-label{
  min-height: 70px;
}

@supports (display:flex) {
  #checkout-payment-method .payment-mode-label {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
}
#checkout-payment-method .payment-mode-label img{
  margin: 0;
  padding-bottom: 5px;
}
/*Diverse*/
#my-account-identification label[for="edit-email"] {
  /*display: none;*/
}

@media screen and (max-width: 991px) {
  #my-account-identification .input-group-btn {
    left: 20px;
    right: 20px;
  }
}

@media screen and (max-width: 768px) {
  #my-account-identification .section-intro {
    display: none;
  }

  /*Infos*/
  .commerce-order-handler-area-order-total span {
    margin-right: 10px;
  }

  .commerce-order-handler-area-order-total span.total {
    display: block;
  }
  #checkout-shopping-cart-recap .responsive-table tbody tr.views-row-first {
    border-top: 1px solid #d0d0d0;
  }
  #checkout-shopping-cart-recap .views-field-line-item-title {
    padding-left: 10px;
  }

  /*Password verification */
  #mdp-customer-user-register-form .password-strength.help-block,
  #mdp-customer-user-register-form .password-confirm.help-block {
    position: relative;
    left: 0;
    top: 0;
    white-space: normal;
    padding-left: 0;
  }

  #mdp-customer-user-register-form .password-confirm.help-block {
    float: none;
  }
  /*Specific page inscription*/
  #mdp-customer-user-register-form #edit-user-civility,
  #mdp-customer-user-register-form #edit-user-lastname,
  #mdp-customer-user-register-form #edit-user-firstname,
  #mdp-customer-user-register-form #edit-account,
  #mdp-customer-user-register-form #edit-user-phone,
  #mdp-customer-user-register-form #edit-user-pro {
    max-width: none;
  }
  #mdp-customer-user-register-form{
    padding: 0 20px;
  }

  /*Specific page livraison*/
  #checkout-delivery-address .form-item-customer-profile-shipping-addressbook .help-block,
  #checkout-delivery-address .form-item-customer-profile-billing-addressbook .help-block {
    display: none;
  }
}

/* Feedback mdp 20/03/19 */

#checkout-payment-method #edit-commerce-payment-payment-method .form-item-commerce-payment-payment-method {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
#checkout-payment-method #edit-commerce-payment-payment-method .form-item-commerce-payment-payment-method {
  min-height: 184px;
}
#checkout-shopping-cart-recap-table .view-order-coupon-list-mdp {
  display: none;
}
#cart-summary-container .engraving .views-field-quantity{
  visibility: hidden;
}
