/*
 * +-----------------------------------------------------------------------+
 * | BCSE Paypal Direct Post                                               |
 * +-----------------------------------------------------------------------+
 * | Copyright (c) 2020 BCSE LLC. dba BCS Engineering                      |
 * +-----------------------------------------------------------------------+
 * |                                                                       |
 * | BCSE Paypal Direct Post is subject for version 2.0 of the             |
 * | BCSE proprietary license. That license file can be found bundled with |
 * | this package in the file BCSE_LICENSE. A copy of this license can     |
 * | also be found at                                                      |
 * | http://www.bcsengineering.com/license/BCSE_LICENSE_2.0.txt            |
 * |                                                                       |
 * +-----------------------------------------------------------------------+
 */
.bcse-pp-dpm-payment {
  box-sizing: border-box;
}

.bcse-pp-dpm-payment *,
.bcse-pp-dpm-payment *:before,
.bcse-pp-dpm-payment *:after {
  box-sizing: inherit;
}

.bcse-pp-dpm-form.bcse-pp-dpm-legacy {
  box-sizing: content-box;
}

.bcse-pp-dpm-column {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  margin-bottom: 15px;
}

.bcse-pp-dpm-column:last-child {
  margin: 0;
}

.bcse-pp-dpm-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 0 0 15px;
}

.bcse-pp-dpm-row > .bcse-pp-dpm-input {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  margin: 0 5px;
}

.bcse-pp-dpm-row > .bcse-pp-dpm-input:first-of-type {
  margin-left: 0;
}

.bcse-pp-dpm-row > .bcse-pp-dpm-input:last-of-type {
  margin-right: 0;
}

.bcse-pp-dpm-row > .bcse-pp-dpm-label,
.bcse-pp-dpm-row > .bcse-pp-dpm-error {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 100%;
          flex: 0 0 100%;
}

.bcse-pp-dpm-input input,
.bcse-pp-dpm-input select {
  display: block;
  width: 100%;
  max-width: 100% !important;
}

.bcse-pp-dpm-form.bcse-pp-dpm-legacy .bcse-pp-dpm-input,
.bcse-pp-dpm-form.bcse-pp-dpm-legacy .bcse-pp-dpm-cc-input {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}

.bcse-pp-dpm-form.bcse-pp-dpm-legacy .bcse-pp-dpm-input input,
.bcse-pp-dpm-form.bcse-pp-dpm-legacy .bcse-pp-dpm-input select {
  width: auto;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
}

.bcse-pp-dpm-cc-input {
  position: relative;
}

.bcse-pp-dpm-cc-input:after {
  content: '';
  display: none;
  position: absolute;
  width: 33px;
  height: 21px;
  right: 5px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  background: url('../images/credit-cards.png');
}

.bcse-pp-dpm-cc-input.amex:after {
  display: block;
  background-position: 0 0;
}

.bcse-pp-dpm-cc-input.discover:after {
  display: block;
  background-position: -33px 0;
}

.bcse-pp-dpm-cc-input.mastercard:after,
.bcse-pp-dpm-cc-input.maestro:after {
  display: block;
  background-position: -66px 0;
}

.bcse-pp-dpm-cc-input.visa:after {
  display: block;
  background-position: right 0;
}

.bcse-pp-save-card {
  cursor: pointer;
}

.bcse-pp-save-card span {
  display: block;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding-left: 5px;
}

.bcse-pp-dpm-select-card {
  margin-bottom: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
}

.bcse-pp-dpm-select-card .selectric-wrapper {
  width: 100%;
}

.bcse-pp-dpm-card-select-option {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.bcse-pp-dpm-card-select-option .card-number {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  font-size: 1rem !important;
  font-weight: bold;
}

.bcse-pp-dpm-card-select-option .card-expire {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  padding: 0 6px;
}

.bcse-pp-dpm-cc-icon {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  width: 33px;
  height: 21px;
  background: url('../images/credit-cards.png');
}

.bcse-pp-dpm-cc-icon.amex {
  background-position: 0 0;
}

.bcse-pp-dpm-cc-icon.discover {
  background-position: -33px 0;
}

.bcse-pp-dpm-cc-icon.mastercard {
  background-position: -66px 0;
}

.bcse-pp-dpm-cc-icon.visa {
  background-position: right 0;
}

.bcse-pp-dpm-payment .selectric-items ul {
  padding: 0;
}

.bcse-pp-dpm-payment .selectric-items li {
  margin: 0;
  padding: 5px 10px;
}

.bcse-pp-dpm-card-delete {
  padding: 5px 0;
  cursor: pointer;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.bcse-pp-dpm-card-delete:before {
  color: red;
  content: '\2715';
  display: block;
  padding-right: 4px;
  font-weight: bold;
}

.bcse-pp-dpm-error {
  display: none;
  background: red;
  color: white;
  padding: 2px 5px;
}

.bcse-pp-dpm-has-error .bcse-pp-dpm-error {
  display: block;
}

#bcse_pp_dpm_frame {
  display: none;
}
