@charset "UTF-8";

//
// @copyright        2017 opencart.cn - All Rights Reserved
// @link             http://www.guangdawangluo.com
// @author           Sam Chen <sam.chen@opencart.cn>
// @created          2017-12-05 17:11:30
// @modified         2018-06-22 09:41:46
//

$control_height: 34px;

.quick-checkout-wrapper {
  margin-bottom: 20px;

  .checkout-section {
    margin-bottom: $gutter * 2;
    padding: 8px;
    position: relative;
    border: 1px solid #d8d8d8;

    h2 {
      padding: 10px 5px;
      margin: 0 0 10px 0;
      font-size: 14px;
      font-weight: bold;
      background-color: #eee;
      color: #333;
    }

    legend {
      font-size: 14px;
    }
  }

  #login-section, #payment-address-section, #shipping-address-section {
    .form-group {
      overflow: hidden;
      display: block;
      clear: both;

      label.control-label {
        display: block;
        float: left;
        width: 35%;
        padding: 0;
        margin-bottom: 0;
        min-height: $control_height;
        line-height: $control_height;
      }

      input, select {
        width: 65%;
        float: left;
      }
    }
  }

  #shipping-address-section {
    .form-group {
      .col-sm-10 {
        float: left;
        width: 65%;
        padding: 0;

        input, select {
          width: 100%;
          float: none;
        }
      }
    }
  }

  #payment-confirm-wrapper {
    // padding: $gutter;
    // background-color: #fff;

    .buttons, #button-confirm {
      display: none !important;
      // cursor: not-allowed !important;
    }
  }

  .loading-mask {
    z-index: 1000;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    opacity: 0.1;
  }

  @media (min-width: 992px) {
    .left-section-wrapper {
      #shipping-new {
        .form-group {
          margin-bottom: 10px;
          label {
            min-height: 24px;
            line-height: 24px;
            width: 100%;
            font-weight: bold;
            padding-top: 0 !important;
            margin-bottom: 5px !important;
            text-align: left !important;
          }
          .col-sm-10 {
            width: 100%;
          }
        }
      }
    }
  }

  .left-section-wrapper, .right-section-wrapper {
    & > .loading-mask {
      left: $gutter;
      right: $gutter;
    }
  }

  .text-danger {
    padding: 0 5px;
    margin-left: 5px;
    background: #a94442;
    color: #fff;
    display: inline-block;
  }

  #button-submit {
    padding: 10px 12px;
    font-size: 16px;
  }
}

#quick-checkout-connect {
  .quick-checkout-connect-wrapper {
    margin-top: $gutter * 2;

    .order-info {
      text-align: center;

      i {
        font-size: 120px;
        color: #dedede;
      }

    }

    #payment-confirm-wrapper {
      margin-top: $gutter * 2;
      .buttons {
        margin-top: $gutter;
        margin-bottom: $gutter;

        .pull-right {
          float: none !important;
          text-align: center;
        }
      }
    }
  }
}

@media (max-width: 768px) {
  #checkout-cart .product-name {
    white-space: inherit;

    a.name {
      width: 150px;
      display: block;
    }
  }
}