/* Stripe-like credit card panel — overrides remote gateway markup */
.woocommerce-checkout #payment {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
.woocommerce-checkout #payment ul.payment_methods {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1.5px solid #635bff !important;
  border-radius: 8px !important;
  background: #fff !important;
  overflow: visible;
  box-shadow: 0 0 0 1px rgba(99, 91, 255, .18), 0 2px 8px rgba(15, 23, 42, .06);
}
.woocommerce-checkout #payment .wc_payment_method {
  padding: 0 !important;
  margin: 0 !important;
  background: #fff;
}
.woocommerce-checkout #payment .wc_payment_method > input.input-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.woocommerce-checkout #payment .wc_payment_method > label {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px !important;
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #0a2540 !important;
  background: #fff;
  cursor: default;
}
.woocommerce-checkout #payment .wc_payment_method > label::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 50%;
  background: #635bff;
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px #635bff;
}
.woocommerce-checkout #payment .wc_payment_method > label::after {
  content: "";
  width: 156px;
  height: 24px;
  flex: 0 0 156px;
  margin-left: auto;
  background-image:
    url("https://img.j28.uk/wp/visa.svg"),
    url("https://img.j28.uk/wp/mastercard.svg"),
    url("https://img.j28.uk/wp/amex.svg"),
    url("https://img.j28.uk/wp/discover.svg");
  background-repeat: no-repeat;
  background-size: 34px 22px;
  background-position: 0 center, 40px center, 80px center, 120px center;
}
.woocommerce-checkout #payment .payment_box {
  margin: 0 !important;
  padding: 0 16px 16px !important;
  background: #fff !important;
  border: 0 !important;
  border-top: 1px solid #e6ebf1 !important;
}
.woocommerce-checkout #payment .payment_box > p,
.woocommerce-checkout #payment .payment_box > fieldset > p {
  display: none !important;
}
.stripe-card-label {
  display: block !important;
  font-size: 13px;
  font-weight: 500;
  color: #30313d;
  margin: 14px 0 8px;
}
.wp-form-section {
  margin: 0 !important;
  border: 1px solid #e0e6eb !important;
  border-radius: 8px !important;
  background: #fff !important;
  overflow: hidden;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .03), 0 2px 4px rgba(0, 0, 0, .04);
  transition: border-color .15s, box-shadow .15s;
}
.wp-form-section.is-focus {
  border-color: #635bff !important;
  box-shadow: 0 0 0 1px #635bff, 0 1px 1px rgba(0, 0, 0, .03);
}
.wp-form-section .wp-form-group {
  margin: 0 !important;
  position: relative;
}
.wp-form-section .wp-form-label {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.wp-form-section .wp-form-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 !important;
  margin: 0 !important;
}
.wp-form-section .wp-form-row .wp-form-group:first-child {
  border-right: 1px solid #e0e6eb;
}
.wp-form-section > .wp-form-group:first-child {
  border-bottom: 1px solid #e0e6eb;
}
.wp-form-section .wp-form-input,
.wp-form-section .card-number-input,
.wp-form-section .card-date-input,
.wp-form-section .card-cvv-input,
.woocommerce-checkout .wp-form-input {
  width: 100% !important;
  height: 48px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  padding: 0 14px !important;
  font-size: 16px !important;
  line-height: 48px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  color: #0a2540 !important;
  letter-spacing: .02em;
}
.wp-form-section .card-number-input {
  padding-right: 52px !important;
  font-variant-numeric: tabular-nums;
}
.wp-form-section .card-cvv-input {
  padding-right: 48px !important;
}
.wp-form-section .wp-form-input::placeholder {
  color: #8898aa !important;
  opacity: 1;
}
.wp-form-section .wp-form-input:focus {
  outline: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.wp-form-section .card-brand-icon {
  right: 12px;
  top: 50%;
  width: 36px;
  height: 24px;
}
.wp-form-section .cvv-icon {
  right: 12px;
  opacity: .55;
}
.wp-form-section .error-message {
  padding: 0 14px 8px;
  margin: 0;
  font-size: 12px;
}
.woocommerce-checkout #place_order {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  background: #635bff !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 6px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(50, 50, 93, .15);
}
.woocommerce-checkout #place_order:hover {
  background: #5851ea !important;
}
@media (max-width: 520px) {
  .woocommerce-checkout #payment .wc_payment_method > label::after {
    width: 80px;
    background-size: 28px 18px;
    background-position: 0 center, 26px center, 52px center, 200px center;
  }
}
