#payment-terminal {
    width: 100%;
    border-radius: 15% 10px 15% 10%;
}

#payment-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.form-row {
    margin-bottom: 20px;
}

#card-element {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    background-color: white;
}

#card-errors {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

/* Customize Stripe Elements font size for mobile */
@media (max-width: 600px) {
    #card-element input {
        font-size: 18px; /* Increase font size for mobile devices */
    }

    #payment-form button {
        font-size: 18px;
        padding: 12px 20px;
    }
}

/* Customize Stripe Elements font size for tablets and larger screens */
@media (min-width: 601px) and (max-width: 1024px) {
    #card-element input {
        font-size: 16px;
    }

    #payment-form button {
        font-size: 16px;
        padding: 10px 18px;
    }
}

/* Default Styling for Desktop */
#card-element input {
    font-size: 14px;
}

#payment-form button {
  font-size: 0.8rem;
  padding: 10px 20px;
  background: hsl(158, 36%, 37%);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  margin-top: 1rem;
  min-height: 2rem;
}

#messages {
  border-radius: 15% 10% 50% 50% !important;
}

@media (min-width: 1280px) { /* Large desktops */
    #payment-terminal {
        width: 38% !important;
        position: relative !important;
        float: right !important;
    }

    #payment-form button {
        width: 100% !important;
    }

    .stripe-base #payment-form {
        margin: 0 !important;
    }

    .stripe-base #messages {
        font-size: 0.6rem !important;
    }
}
