/* General Body */
body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 20px;
  color: #333;
}

h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

.payment-section {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 450px;
  margin: 20px auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Hosted Fields (Credit Card) */
#card-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#card-form label {
  font-weight: bold;
}

#card-number, #expiration-date, #cvv {
  height: 48px;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  box-sizing: border-box;
}

#card-number iframe,
#expiration-date iframe,
#cvv iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
  border-radius: 6px;
}

/* Credit Card Logos */
.card-logos {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.card-logos img {
  height: 32px;
}

/* Payment Buttons */
button, #applepay-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  font-size: 1em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  color: white;
  transition: background-color 0.2s;
}

/* Official Colors */
#paypal-button {
  background-color: #f5f5f5; /* PayPal blue */
}

#venmo-button {
  background-color: #f5f5f5; /* Venmo blue */
}

#googlepay-button {
  background-color: #f5f5f5; /* Google blue */
}

#applepay-button {
  background-color: #f5f5f5;
}

/* Button hover effect */
button:hover, #applepay-button:hover {
  opacity: 0.9;
}

button:disabled {
  background-color: gray;
  cursor: not-allowed;
}

/* Payment Buttons Icons */
button img {
  height: 24px;
  margin-right: 10px;
}

/* Pre output boxes */
pre {
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 6px;
  overflow-x: auto;
  max-height: 200px;
  margin-top: 10px;
}

/* Payment Buttons Containers */
.payment-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 3px;
  border-style: solid;
}

/* Responsive */
@media (max-width: 500px) {
  .payment-section {
    margin: 10px;
    padding: 15px;
  }
  .card-logos img {
    height: 24px;
  }
  button, #applepay-button {
    font-size: 0.95em;
    padding: 10px;
  }
}
