/* Payment card section as grid */
.payment-card-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

/* Card number (first) spans both columns */
.payment-card-section .info-items:first-child {
  grid-column: 1 / -1;
}

/* Make TokenEx iframes responsive */
#tokenex-container iframe,
#tokenex-container-cvv iframe {
  width: 100% !important;
  height: 44px !important;
  border: none;
  border-radius: 6px;
  box-sizing: border-box;
}

/* Style containers to look consistent */
#tokenex-container,
#tokenex-container-cvv {
  width: 100% !important;
  height: 44px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}

/* Expiration input */
.woocommerce-page input#basys-expiration {
  width: 100% !important;
  height: 44px;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 16px;
  line-height: 20px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Focus */
.woocommerce-page input#basys-expiration:focus {
  border-color: #6772e5;
  box-shadow: 0 0 0 3px rgba(103,114,229,0.2);
  outline: none;
}

/* Errors */
.basys-token-error,
.basys-ach-error {
  border-color: #e03e3e !important;
  box-shadow: 0 0 0 3px rgba(224, 62, 62, 0.2) !important;
}



select#achAccountType {
    width: 100% !important;
    height: 44px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}
button#select-card {
    margin-bottom: 10px;
}

input#routingNumber, input#accountNumber {
    width: 100% !important;
    height: 44px;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    line-height: 20px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}


/* Mobile: stack Exp + CVV */
@media (max-width: 640px) {
  .payment-card-section {
    grid-template-columns: 1fr;
  }
}
