  @keyframes dotBounce {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-15px);
    }
  }

  #paypal-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
    padding: 10px;
  }

  @media (max-width: 768px) {
    #paypal-button-container {
      padding: 20px;
    }
  }

  @media (max-width: 768px) {
   #CalculateShipping1 {
     position: relative;
     top: -14%;
     bottom: 53%;
   }
 }

 /* Basic form container styling */
  #stripe-payment-form {
    max-width: 500px; /* Limit width for better appearance on larger screens */
    margin: 0 auto; /* Center the form */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  /* Card input container */
  .input-container {
    margin-bottom: 20px;
  }

  /* Button styling */
  .btn-submit {
    width: 100%; /* Button takes full width on smaller screens */
    padding: 12px;
    font-size: 16px;
    background-color: #5469d4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  .btn-submit:hover {
    background-color: #4353b3;
  }

  /* Error message container */
  #error-message {
    color: red;
    font-size: 14px;
    margin-top: 10px;
  }

  /* Responsive adjustments */
  @media (max-width: 600px) {
    /* Adjust the form layout for smaller screens */
    #stripe-payment-form {
      width: 90%; /* Use a larger percentage width on small screens */
      padding: 15px;
    }

    .btn-submit {
      font-size: 14px; /* Smaller button text on small screens */
    }
  }

  @media (min-width: 601px) and (max-width: 1024px) {
    /* Adjust form for tablets or medium-sized screens */
    #stripe-payment-form {
      width: 80%;
    }
  }

  @media (min-width: 1025px) {
    /* Adjust form for large screens */
    #stripe-payment-form {
      width: 100%;
    }
  }

 /* Divider Styling */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  text-align: center;
  width: 100%;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid #ccc;  /* Line style */
}

.divider span {
  padding: 0 10px;
  font-weight: bold;
  color: #333;
  font-size: 18px; /* Text size */
}

.stripe-logo {
  display: block;
  margin: -30px auto 10px;
  width: 150px;
  height: auto;
}

 .pay-button-label-container {
      margin: 15px;
   }

  .pay-button-row {
      display: flex;
      justify-content: center; /* Center the button */
      padding: 10px;
  }

  .pay-logo-card {
      height: 22px;
      margin-right: 10px;
  }

  .pay-button {
      font-size: 18px;
      width: 100%;
      max-width: 585px;
      height: auto; /* Ensure the button height adjusts to content */
      background-color: #353434;
      color: white; /* Default background color (PayPal blue) */
      border-radius: 5px; /* Optional: Add border radius for rounded corners */
      transition: background-color 0.3s ease; /* Smooth transition for background color change */
  }

  .pay-button-label-container {
      display: flex;
      align-items: center;
      justify-content: center;
  }

  /* Responsive styles using media queries */
  @media (max-width: 768px) {
      .pay-button {
          width: 80%;  /* On smaller screens, make the button a little smaller */
          max-width: 280px;
          background-color: #353434;
          color: white; /* Keep the same background color */
      }
  }

  @media (max-width: 480px) {
      .pay-button {
          width: 90%;  /* Further reduce the size on very small screens */
          max-width: 250px;
          background-color: #1b74e4; /* Change background color for smaller screens */
      }

      .pay-button-text {
          font-size: 14px;  /* Adjust text size for smaller screens */
      }
  }

  /* Hover effect for the button */
  .pay-button:hover {
      background-color: #005ea6; /* Darker color on hover */
  }

.shipping-cal-container {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 5px;
}

.terms-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cvv-input {
  width: 20%;
  min-width: 60px; /* fallback for very small screens */
}

@media (max-width: 768px) {
  .cvv-input {
    width: 100%; /* Full width on mobile */
  }
}

@media screen and (max-width: 600px) {
  select {
    font-size: 16px; /* prevent iOS zoom */
  }
}

