/* vim: set ts=2 sw=2 sts=2 et: */

/**
 * Copyright (c) 2001-present X-Cart Holdings LLC. All rights reserved.
 * See https://www.x-cart.com/license-agreement.html for license details.
 */

.coupons {
  width: 100%;
  text-align: center;
}

.checkout-block .coupons {
}

.coupons .new a {
  display: inline-block;
  border-bottom: 1px dotted #2c5fa6;
  text-decoration: none;
  font-size: 12px;
  color: #8aa1b3;
}

.inactive .coupons {
  padding: 20px;
  margin-top: 10px;
}

/**
 * New coupon form
 */

.coupons {
  position: absolute;
  bottom: -160px;
  left: 0;
  right: 0;
  height: 140px;
}

@media (max-width: 767px) {
  .coupons {
    bottom: -140px;
    height: 120px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .coupons.opened{
    bottom: -300px;
    height: 280px;
  }
}

.coupons div.add-coupon {
  white-space: nowrap;
}

.coupons form {
  padding-top: 20px;

  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

@media (max-width: 767px) {
  .coupons form {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
}

.coupons .add-coupon .table-value,
.coupons .add-coupon .input-field-wrapper {
  width: 100%;
}

.coupons .add-coupon input {
  vertical-align: middle;
  width: 100%;
}

.coupons .add-coupon button {
  vertical-align: middle;
  margin: 0px;
  margin-left: 20px;
  height: 60px;
  width: 150px;
}

@media (max-width: 767px) {
  .coupons .add-coupon button {
    margin: 20px 0;
    width: 100%;
    height: 40px;
  }
}

.coupons .inline-error {
  float: none;
  margin: 0px;
  line-height: 20px;
  white-space: normal;
  text-align: left;
}

.checkout-block .review-step:after,
.checkout_fastlane_section-right:after {
  content: '';
  display: block;
  margin-bottom: 140px;
}

#cart:after {
  content: '';
  display: block;
  margin-bottom: 25px;
}

#cart.opened:after {
  margin-bottom: 160px;
}

@media (max-width: 991px) {
  #cart:after {
    margin-bottom: 65px;
  }

  #cart.opened:after {
    margin-bottom: 165px;
  }
}

@media (max-width: 767px) {
  #cart:after {
    margin-bottom: 45px;
  }

  #cart.opened:after {
    margin-bottom: 225px;
  }

  .checkout-block .review-step:after {
    margin-bottom: 180px;
  }

  .checkout_fastlane_section-right:after {
    margin-bottom: 240px;
  }
}
