.bf-popup_ymenproduct-designation { margin-bottom: 0.25em; }
  .bf-product-designation + .bf-product-user-prices { margin-top: 0; }

#bf-payment-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999998;

  background: #000;
  opacity: 0.3;
}

  #bf-payment-overlay.loading {
    background: #000 url('../../loading.svg') no-repeat center center;
  }

#bf-payment-cart-open {
  display: none;
  position: fixed;
  bottom: 15px;
  right: 15px;

  width: 50px;
  height: 50px;

  text-align: center;

  color: #fff;
  background: #333;
  border-radius: 25px;
  opacity: 0.75;

  cursor: pointer;
}
  #bf-payment-cart-open:hover {
    opacity: 1;
  }

  #bf-payment-cart-open i.fa:before {
    font-size: 25px;
    line-height: 50px;
  }

.bf-payment-btn-loading {
  height: 30px;

  background: url('../../loading.svg') no-repeat center center;
  background-size: contain;
}


.bf-payment-popup {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 999999;

  width: 34vw;
  margin-top: 0;
  margin-left: -17vw;
  padding: 30px 0;

  color: #7f6d5f;
  background: #fff;
  box-shadow: 0 0 10px #555;
}
    .bf-payment-popup.bf-payment-embed {
      position: static;
      width: 100% !important;
      height:  auto !important;

      padding: 0;
      margin: 1rem 0 !important;

      box-shadow: none;
      border: 1px solid #ccc;
    }

    .bf-payment-popup.bf-payment-embed .bf-payment-close { display: none; }
    .bf-payment-popup.bf-payment-embed header .bf-payment-inner { display: none; }
    .bf-payment-popup.bf-payment-embed .bf-payment-description { margin-top: 0; }

  .bf-payment-popup.step-30 {
    width: 66vw;
    margin-left: -33vw;
  }
  .bf-payment-popup.short {
	  overflow-y: auto;
  }
  .bf-payment-popup .bf-payment-step-30 {
    display: flex;
    gap: 5%;
  }
    .bf-payment-popup .bf-payment-step-30 .bf-payment-panel {
      width: 47.5%;
    }

  .bf-payment-popup footer {
    margin: 1em 0 0;

    font-size: 12px;
    line-height: 14px;
    text-align: center;
  }

  .bf-payment-popup .button {
    cursor: pointer;
  }

  .bf-payment-popup > .bf-payment-loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000000;

    background: url('../../loading.svg') no-repeat scroll center center #000;

    opacity: 0.4;
  }

  .bf-payment-popup header {
    margin-bottom: 24px;
  }

    .bf-payment-description {
      margin: 1em 0 0;
      padding: 1.3rem;

      font-size: 1.3rem;
      text-align:center;
    }

      .bf-payment-description span[data-bf-payment-live="amount"] { font-weight: bold; }

  .bf-payment-popup .bf-payment-errors {
    display: none;

    color: #fff;
    background: #bb444b;
  }

    .bf-payment-errors h3 {
      font-size: 18px !important;
    }
    .bf-payment-errors a {
      color: #fff;
    }

    .bf-payment-errors ul {
      margin: 1em 0 0;
      padding: 10px 1em;

      list-style: none;

      font-size: 13px;
      line-height: 17px;
      text-align: center;
    }

  .bf-payment-popup .bf-payment-message {
    display: none;
    margin: 1em 0 0;
    padding: 10px 1em;

    font-size: 13px;
    line-height: 17px;
    text-align: center;

    color: #fff;
    background: #55aa55;
  }

  .bf-payment-popup.has-messages .bf-payment-message { display: block; }
  .bf-payment-popup.has-messages .bf-payment-description { display: none; } 

  .bf-payment-popup.has-errors .bf-payment-errors { display: block; }
  .bf-payment-popup.has-errors .bf-payment-description { display: none; } 


  div.bf-payment-close {
    display: block;
    position: absolute;
    top: -10px;
    right: -10px;

    width: 40px;
    height: 40px;
    padding-left: 0;

    font-size: 1.2rem;
    font-weight: 300;
    line-height: 40px;
    text-align: center;

    color: #fff;
    background: #aaa;
    border-radius: 20px;

    cursor: pointer;
  }
  a.bf-payment-close,
  a.bf-payment-close:hover,
  a.bf-payment-close:focus,
  a.bf-payment-close:active {
    display: block !important;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
  }
  
  #bf-payment-cart .button,
  #bf-payment-cart .button-secondary {
    display: block !important;
  }

  .bf-payment-logo {
    width: 80%;
    height: 46px;
    margin: 0 auto 15px;

    font-size: 15px;
    line-height: 18px;
    font-weight: bold;

    text-align: center;

    overflow: hidden;
  }

  .bf-payment-popup .icon {
    float: left;
    display: block;

    width: 14px;
    height: 11px;
    margin: 11px 8px 0;

    background-image: url('images/bfc-donor-form-icons.png');
    background-repeat: no-repeat;
  }

  .bf-payment-inner { margin: 0 36px; }

  .bf-payment-method-fields {
    display: none;
    margin-bottom: 12px;
  }

    .bf-payment-field-quantity {
      float: right;
      width: 25%;
      margin: 15px 0;
    }
      .bf-payment-field-quantity:before {
        content: 'x';
        display: inline-block;
        margin-right: 5px;
      }
      .bf-payment-field-quantity input { width: 50%; }

    .bf-payment-field-quantity.enabled + .bf-payment-field-amount {
      float: left;
      width: 75%;
      border-right: 0;
    }

    .bf-payment-field-type { margin: 0 0 18px; }
    .bf-payment-field-withdrawl { margin: -18px 0 18px; border-top: 0; }
    .bf-payment-panel-payment.hidden-type .bf-payment-field-currency { margin: 0 0 18px; }
    .bf-payment-popup .bf-payment-panel-payment:not(.hidden-type) .bf-payment-field-currency { margin: -18px 0 18px; border-top: 0; }
    #bf-payment-cart-embed.bf-payment-popup .bf-payment-panel-payment:not(.hidden-type) .bf-payment-field-currency { margin: 0 0 18px; }

    .bf-payment-field-currency option[disabled] {
      display: none;
    }

    .bf-payment-field-payment-method { margin: 0; border-bottom: 0; }

    .bf-payment-field-custom_withdrawal_date {
      margin: -18px 0 18px;
      border-top: 0;
    }

    .bf-payment-product-instructions:empty { display: none; }

    .bf-payment-field-instructions { margin-top: 18px; height: auto; }
    .bf-payment-field-card { border-bottom: 0; }

    .bf-payment-field-friend-send {
      background: transparent !important;
      border: 0;
    }
    .bf-payment-field-friend-note textarea { height: 80px; }

  .bf-payment-field-account {
    margin-bottom: 18px;

    font-size: 13px;
    line-height: 15px;
  }

  .bf-payment-field-anonymous {
    margin-top: 9px;
    margin-bottom: 18px;

    font-size: 13px;
    line-height: 15px;
  }

  .bf-payment-split-fields > .bf-payment-field {
    flex-grow: 1;
  }

  .bf-payment-split-fields {
    display: flex;
    gap: 0.5rem;
  }

  .bf-payment-recurring-message {
    display: none;
    margin: -12px 0 18px;

    font-size: 11px;
    line-height: 14px;
    text-align: center;
  }
    .bf-payment-recurring-message .bf-payment-message {
      margin: 12px 10px 0;
      text-align: center;
    }

  .bf-payment-field-monthly {
    float: left;
    width: 50%;
    border-left: 0;
  }

    .button.bf-payment-toggle {
      margin: 0 5px;
      padding-left: 10px;
      padding-right: 10px;

      font-size: 13px;
      line-height: 13px;
      text-align: center;
      text-transform: uppercase;

      cursor: pointer;

      opacity: 0.5;
    }

    .button.bf-payment-toggle-active {
      font-weight: bold;
      opacity: 1;
    }
  .bf-payment-field-subscribe { margin-top: 12px; margin-bottom: 12px; }

  .bf-payment-field { position: relative; }

    .bf-payment-field .status {
      position: absolute;
      top: 11px;
      right: 6px;

      display: none;
      width: 12px;
      height: 12px;

      border-radius: 6px;
    }
      .bf-payment-field .status.status-success { display: none; background: #0f0; }
      .bf-payment-field .status.status-failed { display: block; background: #f00; }


  .bf-payment-pay,
  .bf-payment-pay:focus,
  .bf-payment-pay:hover,
  .bf-payment-pay:active {
    display: block !important;
    margin-top: 25px;
    
    text-align: center;
  }

  .bf-payment-next-btn, .bf-payment-continue,
  .bf-payment-next-btn:hover, .bf-payment-continue:hover,
  .bf-payment-next-btn:focus, .bf-payment-continue:focus,
  .bf-payment-next-btn:active, .bf-payment-continue:active {
    display: block !important;
    margin-top: 8px;

    text-align: center;
  }

  .bf-payment-prev-btn {
    margin-top: 10px;

    font-size: 11px;
    line-height: 11px;
    text-align: center;

    color: #000;

    cursor: pointer;
  }


  .bf-payment-step {
    font-size: 13px;
    line-height: 19px;

    color: #333;
  }

  .bf-payment-preset-description {
    font-size: 13px;
    line-height: 19px;

    color: #333;
  }

    .bf-payment-preset-description > h3 {
      font-size: 18px !important;
      line-height: 21px !important;
      text-transform: none;

      color: #8b141b !important;
    }

.bf-payment-general,
.bf-payment-search {
  text-align: center;
}
  .bf-payment-field-amount {
    margin: 15px 0;
  }

  .bf-payment-amount,
  .bf-payment-find-post {
    width: 50%;
    background: #fff;
  }


  .bf-payment-search .bf-payment-field-search {
    position: relative;
  }

  .bf-payment-search .bf-payment-field-results {
    display: none; 
    position: absolute;
    top: 40px;
    left: 50%;
    z-index: 100;

    width: 320px;
    margin-left: -160px;

    color: #333;
    background: #fff;
    box-shadow: 0 0 5px #555;
  }

    .bf-payment-field-results > ul {
      margin: 0;
      padding: 0;

      list-style: none;
    }

    .bf-payment-field-results .result {
      position: relative;

      min-height: 105px;

      font-size: 12px;
      line-height: 15px;
      text-align: left;

      padding: 15px 20px;
    }
    
      .bf-payment-field-results .result:hover {
        background: #eee;
        cursor: pointer;
      }

      .bf-payment-field-results .result-thumb { 
        float: left; 
        width: 75px;
        height: 75px;
        overflow: hidden;
      }

      .bf-payment-field-results .result-content {
        margin-left: 80px;
      }

        .bf-payment-field-results .result h4 {
          margin-top: -5px;

          font-size: 18px;
          font-weight: normal;
          line-height: 21px;

          color: #cf961b;
        }

        .bf-payment-field-results .result .button {
          position: absolute;
          bottom: 15px;
          width: 155px;
        }


    .bf-payment-cart-empty {
      display: none;
    }

    .bfc-cart {
      margin: 12px 0;
      padding: 0;

      list-style: none;
    }

      .bfc-cart li {
        position: relative;

        padding: 10px 0;

        font-size: 14px;
        line-height: 18px;

        border-bottom: 1px solid #ddd;
      }

        .bfc-cart li span {
          display: block;
        }

        .bfc-cart .bf-payment-cart-product { 
          float: left;
          max-width: 300px;
          margin-right: 60px;
        }

        .bfc-cart .bf-payment-cart-option { 
          clear: left;
        }

        .bfc-cart .bf-payment-cart-period { 
          clear: left;
          font-size: 12px;
        }

        .bfc-cart .bf-payment-cart-pricing {
          float: right;
          width: 200px;

          text-align: right;
        }
          .bfc-cart .bf-payment-cart-pricing .bf-payment-cart-amount { min-width: 60px; }
          .bfc-cart .bf-payment-cart-pricing .bf-payment-cart-quantity > input {
            text-align: center;
            border: 1px solid #ccc;
          }

          .bfc-cart .bf-payment-cart-pricing > span { display: inline-block !important; }
          .bfc-cart .bf-payment-cart-pricing .bf-payment-prev-btn {
            margin-top: 2px;
            text-align: right;
            color: #cf961b;
          }

          .bfc-cart .bf-payment-cart-quantity {
            margin-right: 5px;
          }
          .bfc-cart .bf-payment-cart-value {
            width: 65px;
            padding: 7px;

            border: 1px solid #ddd;
          }
            .bfc-cart .bf-payment-cart-value:focus {
              border: 1px solid #ddd;
            }

          .bfc-cart .bf-payment-cart-remove {
            display: block;

            font-size: 10px;
            line-height: 16px;
            text-align: right;
            text-transform: uppercase;

            cursor: pointer;
          }

        .bfc-cart .bf-payment-cart-campaign { clear: left; }

        .bf-payment-cart-totals {
          margin-bottom: 18px;
            
          font-size: 14px;
          font-weight: bold;
          text-align: right;
        }
        
          .bf-payment-cart-totals span { font-weight: normal; }

        .bf-payment-cart-custom-text {
          margin-top: 18px;

          font-size: 11px;
          text-align: center;
        }

    .bf-payment-step-20 .bf-payment-close {
      margin-top: 8px;
    }

    .bf-payment-popup .bf-payment-panel-cart { display: none; margin-bottom: 50px; }
    .bf-payment-popup .bf-payment-panel-billing { margin-bottom: 50px; }
      .bf-payment-popup .bf-payment-panel-billing-anon { margin: 18px 0; }

    .bf-payment-popup .bf-payment-panel-extra { display: none; }
      .bf-payment-popup.use-extra .bf-payment-panel-extra { display: block; }
      .bf-payment-popup .bf-payment-panel-extra .bf-payment-heading { font-weight: 700; }
      .bf-payment-popup .bf-payment-panel-extra .bf-payment-desc { margin-bottom: 18px; }
      .bf-payment-popup .bf-payment-panel-extra .bf-payment-send-note { margin-top: 18px; }

.clearfix:before,
.clearfix:after {
  content: ".";    
  display: block;    
  height: 0;    
  overflow: hidden; 
}
.clearfix:after {clear: both;}
.clearfix {zoom: 1;} /* IE < 8 */



.bf-payment-find-ctr {
  position: relative;
  width: 50%;
  margin: 0 auto;
}

  .bf-payment-find-ctr .bf-payment-find-post {
    width: 100%;
  }

.bf-payment-find-wait {
  display: none;
  position: absolute;
  top: 8px;
  right: 10px;

  width: 15px;
  height: 15px;

  background: url('../images/input-ajax-loader.gif') no-repeat;
  
  opacity: 0.5;
}

.bfc-donor-login-error {
  padding: 5px 10px;

  font-size: 14px;

  background: #fff0f0;
  border: 1px solid #cb545b;
}

.bfc-donor-login-message {
  padding: 5px 10px;

  font-size: 14px;

  background: #f0fff0;
}


#bf-payment-cart-embed {
    border: 0;
}
  #bf-payment-cart-embed .bf-payment-inner {
      margin: 0;
  }

    #bf-payment-cart-embed.bf-payment-popup .bf-payment-fields > .bf-payment-step-10,
    #bf-payment-cart-embed.bf-payment-popup .bf-payment-fields > .bf-payment-step-30 {
      display: block !important;
    }
      #bf-payment-cart-embed.bf-payment-popup.step-40 .bf-payment-fields > .bf-payment-step:not(.bf-payment-step-40) {
        display: none !important;
      }
      #bf-payment-cart-embed.bf-payment-popup .bf-payment-step-30 .bf-payment-panel {
        width: 100%;
      }

      #bf-payment-cart-embed.bf-payment-popup .bf-payment-fields > .bf-payment-step a.btn.bf-payment-next-btn,
      #bf-payment-cart-embed.bf-payment-popup .bf-payment-fields > .bf-payment-step a.btn.bf-payment-close,
      #bf-payment-cart-embed.bf-payment-popup .bf-payment-fields > .bf-payment-step .bf-payment-prev-btn {
          display: none !important;
      }

      #bf-payment-cart-embed .bf-payment-section-title {
        display: flex;
        align-items: center;
        margin: 2rem 0 0.5rem;

        font-size: 1.4rem;
        font-weight: 400;
        line-height: 1.2;
      }

        #bf-payment-cart-embed .bf-payment-section-title > span {
          display: inline-block;
          width: 2rem;
          height: 2rem;
          margin-right: 0.5rem;

          font-size: 1rem;
          font-weight: bold;
          line-height: 2rem;
          text-align: center;

          background-color: #f1f1f1;
          border-radius: 0.5rem;
        }

        #bf-payment-cart-embed .bf-payment-step-10 .bf-payment-section-title {
          margin-top: 0;
        }

        #bf-payment-cart-embed .bf-payment-field-type {
          display: flex;
          justify-content: space-between;
          gap: 1rem;

          margin: 1rem 0;

          font-size: 1.2rem;
        }

          #bf-payment-cart-embed .bf-payment-field-type > label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 1rem 1.5rem;
            flex-grow: 1;

            font-weight: 500;

            background-color: #f1f1f1;
            border-radius: 0.5rem;

            cursor: pointer;
          }

          .bf-payment-field-add-percentage > label {
            display: flex;
            align-items: center;
            gap: 0.5rem;

            margin: 18px 0;

            font-size: 1.1rem;

            cursor: pointer;
          }

      #bf-payment-cart-embed .bf-payment-amount-options {
        display: flex;
        gap: 1rem;
        justify-content: space-between;
        align-items: center;

        margin: 1rem 0;
        padding: 0;

        list-style: none;
      }

        #bf-payment-cart-embed .bf-payment-amount-options > li {
          display: block;
          padding: 1rem;
          flex-grow: 1;

          font-size: 1.2rem;
          text-align: center;

          background: #f1f1f1;
          border-radius: 0.5rem;
          border: 2px solid #f1f1f1;

          cursor: pointer;
        }

          #bf-payment-cart-embed .bf-payment-amount-options > li:hover {
            border: 2px solid #333;
          }





@media screen and (max-width:991px) {
  .bf-payment-popup {
    position: fixed;
    width: 50vw;
    margin-left: -25vw;
  }

    div.bf-payment-close {
      top: 0;
      right: 0;
      border-radius: 0 0 0 20px;
    }
}



@media screen and (max-width:991px) {
  .bf-payment-popup {
    position: fixed;
    width: 74vw;
    margin-left: -36vw;
  }
    .bf-payment-popup.step-30 {
      width: 94vw;
      margin-left: -47vw;
    }

    div.bf-payment-close {
      top: 0;
      right: 0;
      border-radius: 0 0 0 20px;
    }
}

@media screen and (max-width: 599px) {
	.bf-payment-popup,
  .bf-payment-popup.step-30 {
    width: 100vw;
    height: 100vh !important;
    margin-left: 0 !important;

    top: 0 !important;
    left: 0 !important;

    overflow-y: auto;
  }

    .bf-payment-inner {
      margin: 0 1rem;
    }

  .bf-payment-popup .bf-payment-step-30 { display: block; }
  .bf-payment-popup .bf-payment-step-30 > .bf-payment-panel { width: 100%; }
}
