/* Kashier icon sizing — override WooCommerce default .5em margin */
.woocommerce #payment ul.payment_methods li img.kashier-icon,
.woocommerce-checkout #payment ul.payment_methods li img.kashier-icon,
.woocommerce-page #payment ul.payment_methods li img.kashier-icon,
#payment ul.payment_methods li img.kashier-icon,
#payment .payment_methods li img.kashier-icon,
ul.payment_methods li img.kashier-icon {
  max-width: 40px !important;
  width: 40px !important;
  height: auto !important;
  margin: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
  box-shadow: none !important;
  position: relative !important;
}

/* Consistent spacing between radio button and label text for all Kashier gateways */
.woocommerce-checkout #payment ul.payment_methods li label[for^="payment_method_kashier"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Ensure radio inputs are aligned the same for all Kashier methods */
.woocommerce-checkout #payment ul.payment_methods li input[id^="payment_method_kashier"] {
  margin-right: 8px !important;
}

#add_payment_method #payment ul.payment_methods li .kashier-card-brand,
.woocommerce-checkout #payment ul.payment_methods li .kashier-card-brand {
  position: absolute;
  top: 50%;
  margin-top: -15px;
  right: 0;
  left: auto;
  display: block;
  width: 55px;
  height: 30px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

#add_payment_method #payment ul.payment_methods li .kashier-credit-card-brand,
.woocommerce-checkout
  #payment
  ul.payment_methods
  li
  .kashier-credit-card-brand {
  background-image: url(../images/credit-card.svg);
}

#add_payment_method #payment ul.payment_methods .kashier-card-group,
.woocommerce-checkout #payment ul.payment_methods .kashier-card-group {
  position: relative;
}

#add_payment_method #payment ul.payment_methods li .kashier-visa-brand,
.woocommerce-checkout #payment ul.payment_methods li .kashier-visa-brand {
  background-image: url(../images/visa.svg);
}

#add_payment_method #payment ul.payment_methods li .kashier-mastercard-brand,
.woocommerce-checkout #payment ul.payment_methods li .kashier-mastercard-brand {
  background-image: url(../images/mastercard.svg);
}

#secured-by-kashier-container {
  text-align: right;
  padding-top: 15px;
  width: 100%;
  height: auto;
  overflow: auto;
}
#secured-by-kashier-container p {
  text-align: left;

  padding: 20px;
}

#payment .payment_methods li #secured-by-kashier-container img {
  max-height: none;
  max-width: 125px;
}
