/* Float the submit button to the right */
#place_order {
  float: right;
}
/* Hide this stuff */
/* No thead, no tfoot */
table.woocommerce-checkout-review-order-table thead,
table.woocommerce-checkout-review-order-table tfoot,
/* Also hide the product quantity */
table.woocommerce-checkout-review-order-table .product-name .product-quantity {
  display: none !important;
}
/* Remove the subtotal */
.woocommerce .order_details tfoot tr:first-child {
  display: none;
}
/* Realign the product total so its fully right justified */
table.woocommerce-checkout-review-order-table tr td.product-total {
  text-align: right;
  border-left: 0px !important;
  font-size: 1.5rem;
}

/* Add padding below billing fields for mobile */
.woocommerce-billing-fields {
  margin-bottom: 35px !important;
}

/* BEGIN CUSTOM CHECKOUT PAYMENT PERIOD TABS */
#payment_period {
  padding: 0px;
  margin: 0px;
  border-radius: 3px 3px 0px 0px;
  white-space: nowrap;
  transition: height 1s ease;
  border-bottom: 1px solid #999;
  box-sizing:border-box;
  font-family: "Open Sans";
  overflow:hidden;
}
#payment_period.hidden {
  height:0px;
}
#payment_period li {
  display: inline-block;
  color: #083870;
  font-size: 14px;
  padding: 0px;
  padding: 5px 0px;
  margin: 0px;
  width: 50%;
  box-sizing: border-box;
  text-align: center;
  box-sizing:border-box;
  background: #F4F5EF;
}
#payment_period li button {
  width: 100%;
  background: transparent;
  text-transform: uppercase;
  border: 0px;
  font-weight:500;
}
#payment_period li.selected {
  background: #083870;
  color: #ffffff;
}
/* END CUSTOM CHECKOUT PAYMENT PERIOD TABS */

#dvperdcty,
#dvnoofpymnts {
  display: none;
}
/* Style the #payment area in woocommerce */
#payment {
  padding: 0px;
}
/* This class is for before the AJAX completes so that we can hide the payment area until it properly renders */
#payment ul.wc_payment_methods  {
  opacity:0;
  padding: 2rem;
}
/* Payment area is now loaded, give it full opacity */
#payment ul.wc_payment_methods.loaded {
  opacity: 1;
}
/* Add some default styling for each payment method */
#payment ul.wc_payment_methods li.wc_payment_method {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #CCC;
  width: calc(50% - 2px);
  position:relative;
  display:inline-block;
  white-space:nowrap;
}
@media only screen and (max-width: 640px) {
  #payment ul.wc_payment_methods li.wc_payment_method {
    width: 100%;
  }
}
/* Add default styles to the payment methods */
#payment ul.wc_payment_methods li.wc_payment_method .ui.radio.checkbox {
  background: #FFF;
  border-radius: 5px;
  padding:10px;
  border: 1px solid #CCC;
  display:inline-block;
  height:2rem;
  width: 100%;
}
#payment ul.wc_payment_methods li.wc_payment_method .ui.radio.checkbox label:before,
#payment ul.wc_payment_methods li.wc_payment_method .ui.radio.checkbox label:after{
  top: 10px
}
#payment ul.wc_payment_methods li.wc_payment_method .ui.radio.checkbox label{
  margin-top: -1rem;
  padding: 8px 10px 10px 20px;
  font-weight: bold;
  color: #083870;
}
/* BEGIN STYLING SELECTED PAYMENT METHOD */
#payment ul.wc_payment_methods li.wc_payment_method.selected > label {
  color:#FFF;
}
#payment ul.wc_payment_methods li.wc_payment_method.selected .ui.radio.checkbox {
    background: #083870;
    color:#FFF;
}
#payment ul.wc_payment_methods li.wc_payment_method.selected .ui.radio.checkbox label {
  color:#FFFFFF;
}
/* END STYLING SELECTED PAYMENT METHOD */

/* Hover effect for payment method to call it out */
#payment ul.wc_payment_methods li.wc_payment_method:hover .ui.radio.checkbox {
  border: 1px solid #083870;
}

/* Hide the message boxes for bitpay and paypal */
#payment .message.payment_box.payment_method_bitpay_checkout_gateway,
#payment .message.payment_box.payment_method_paypal,
#payment .message.payment_box.payment_method_cheque,
/* Hide the paypal images because they totally suck */
#payment .payment_method_paypal img {
    display:none !important;
}

/* Hide a bunch of payment gateway stuff that we don't need to see */
#payment .payment_box.payment_method_clickandpledge > span,
#payment .payment_box.payment_method_clickandpledge > table,
#payment li.wc_payment_method.payment_method_paypal > .about_paypal,
#payment li.wc_payment_method.payment_method_clickandpledge > img,
#payment li.wc_payment_method.payment_method_bitpay_checkout_gateway > img {
  display: none;
}

/* Add some separation below each payment box row */
#add_payment_method #payment div.payment_box .form-row, 
.woocommerce-cart #payment div.payment_box .form-row, 
.woocommerce-checkout #payment div.payment_box .form-row {
  margin-bottom: .5rem;
}

.woocommerce .form-row {
  position: relative;
}
.woocommerce .form-row.place-order {
  display: none;
}
.woocommerce .form-row.form-row-wide {
  width: 100%;
  display: inline-block;
}
.woocommerce .form-row.form-row-half {
  width: 49%;
  display: inline-block;
}
@media only screen and (max-width: 640px) {
  .woocommerce .form-row.form-row-half {
    width: 100%;
  }
}

.woocommerce form .form-row {
  margin-bottom: 0px;
}
.woocommerce form .form-row .required {
  visibility: hidden !important;
}
.woocommerce-billing-fields__field-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

#billing_company_field,
#billing_country_field,
#billing_state_field {
  width: 100%;
}

#billing_country_field,
#billing_state_field{
  margin-top: 0rem;
}
#billing_country_field label,
#billing_state_field label {
  font-weight: bold;
}
.woocommerce form .form-row .ui.selection.dropdown {
  color: #444444;
}
.woocommerce form .form-row .input-bmp {
  position: relative;
  display: block;
  overflow: hidden;
  color: #6e6e6e;
}
.woocommerce form #billing_country_field .input-bmp,
.woocommerce form #billing_state_field .input-bmp {
  overflow: initial;
}
.woocommerce form .form-row:not(#billing_state_field) .input-bmp > input {
  padding: 1em 10px 5px;
  margin:0px;
  width: 100%;
  background: #FFFFFF;
  color: #6E6E6E;
  line-height: 1;
  position: relative;
  display: block;
  float: right;
  border-radius: 8px;
  text-indent: .5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.woocommerce form .form-row.move-label .input-bmp label.input-label-bmp {
  position: absolute;
  width: 100%;
  text-align: left;
  pointer-events: none;
  display: inline-block;
  padding: 0 10px;
  color: #6e6e6e;
  top: 10px;
  opacity: 0;
  transition: all 0.3s;
  line-height: 1 !important;
  top: 35%;
  font-size: 1.1rem;
}
.woocommerce form .form-row.move-label .input-bmp.loaded label.input-label-bmp {
  opacity: 1;
}
.woocommerce form .form-row .input-bmp label.input-label-bmp {
  line-height: 1.2;
  color: #6e6e6e;
}

label.input-label-bmp > span {
  -webkit-transition: -webkit-transform 0.3s;
  transition: transform 0.3s, font-size 0.3s;
}

.woocommerce form .form-row .input-bmp > input:focus + label.input-label-bmp,
.woocommerce form .form-row .input-bmp.focus label.input-label-bmp {
  transform: translate3d(0, -15%, 0);
  z-index: 1;
  top: 5px;
  font-size: .83rem;
}
.woocommerce form #billing_country_field .input-bmp label.input-label-bmp,
.woocommerce form #billing_state_field .input-bmp label.input-label-bmp {
  padding-bottom: 3px;
  font-size: 1rem;

}
/* overrides */
.woocommerce form .form-row-first,
.woocommerce form .form-row-last,
.woocommerce-page form .form-row-first,
.woocommerce-page form .form-row-last {
  float: none;
}

/* Hide the 'Donate' text above the checkout */
.woocommerce-checkout article > h2 {
  display: none;
}
.checkout-change-amount-wrapper {
  text-align: right;
  margin-top: 0rem;
  margin-bottom: 2rem;
  font-size: 12px;
  color: #CBCBCB;
}
.checkout-change-amount-wrapper a {
  color :inherit;
}

body.burningman-campaign .woocommerce table.shop_table {
  margin-bottom: 0px;
}

/* Add margin to order details on the thank you page */
.woocommerce ul.order_details li {
  margin-bottom: 1em;
}
#anonymous_donation_field,
#display_alternate_donor_name_field {
  width: auto;
}
#anonymous_donation_field label,
#display_alternate_donor_name_field label {
  line-height: 1;
}
#alternate_donor_name_field {
  transform: scale(1,0);
  transition: transform .2s ease-in-out;
}
#alternate_donor_name_field.display_alternate_donor_name_field {
  transform: scale(1,1);
}