/* General Stripe form styling */
.stripe-form * {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
}

/* Base input styling */
.stripe-form .input {
  padding: 5px;
  border: 1px solid #CCC;
  background-color: #ffffff;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
}

/* Error styling */
.stripe-form .input.has-error {
  border-color: red;
  background-color: #f8d7da;
  color: red;
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

/* Error styling when focused */
.stripe-form .input.has-error:focus {
  border-color: red;
  background-color: #f8d7da;
}

/* Shake Effect */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.5s ease-in-out;
  animation-iteration-count: 1;
}


/* Success styling */
.stripe-form .input.has-success {
  border-color: green;
  background-color: #d4edda;
  color: green;
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
  animation: pulse 1s ease-in-out;
}

/* Wrapper styles for Stripe elements */
#card-number.has-error,
#card-expiry.has-error,
#card-cvc.has-error {
  border: 1px solid red;
  background-color: #f8d7da;
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
  padding: 5px;
}

/* Success wrapper styles */
#card-number.has-success,
#card-expiry.has-success,
#card-cvc.has-success {
  border: 1px solid green;
  background-color: #d4edda;
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
  animation: pulse 1s ease-in-out;
  padding: 5px;
}

/* Pulse animation for success */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.stripe-form .row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  margin-left: 15px;
}

.stripe-form .row.card-image {
  margin-top: 30px;
}

.stripe-form input, .stripe-form button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  border-style: none;
}


.stripe-form .StripeElement--webkit-autofill {
  background: transparent !important;
}

.stripe-form .StripeElement {
  width: 100%;  
}

.stripe-form input {
  width: 100%;
  padding: 1px 1px 1px 0;
  color: #fff;
  background-color: transparent;
  -webkit-animation: 1ms void-animation-out;
}

.stripe-form .card-errors {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
  top: 100%;
  margin-top: 20px;
  left: 0;
  padding: 0 15px;
  padding-bottom: 10px;
  opacity: 0;
  transform: translateY(-10px);
  transition-property: opacity, transform;
  transition-duration: 0.35s;
  transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
  color: #f90303;
}

.stripe-form .card-errors.visible {
  opacity: 1;
  transform: none;
}


.stripe-form {
  background-color: #fff;
}

.stripe-form * {
  font-size: 1em;
  font-weight: 700;
}

.stripe-form .row {
  display: -ms-flexbox;
  display: flex;
  margin: 0 5px 10px;
}

.stripe-form .field {
  position: relative;
  width: 100%;
  margin: 0 10px;
}

.stripe-form .field.half-width {
  width: 50%;
}

.stripe-form .field.quarter-width {
  width: calc(25% - 10px);
}


.hidden {
  display: none;
}

.spinner-modal, .text-modal, .button-modal, .image-modal {
  text-align: center;
}

.spinner-modal {
  padding: 30px;
}

.text-modal {
  padding: 15px;
}

/* GOOGLE PAY BUTTON */

.bt-gpay-button.black.long {
  background-image: url(https://www.gstatic.com/instantbuy/svg/dark/en.svg);
}
.bt-gpay-button.black:hover {
  background-color: #3c4043;
}
.bt-gpay-button.long {
  min-width: 152px;
  width: 100%
}
.bt-gpay-button.black {
  background-color: #000;
  box-shadow: none;
  padding: 12px 24px 10px;
}
button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover, a.button:hover {
  color: #FFF;
  background-color: #98da36;
  box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}
.bt-gpay-button {
  background-origin: content-box;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  border: 0px;
  border-radius: 4px;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 1px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
  cursor: pointer;
  height: 55px;
  min-height: 40px;
  padding: 11px 24px;
}

.button.paybypaypal {
        width: 100%;
    }

    .button.paybycard {
        width: 100%;
    }

    .payment_method.card {
        width: 100%;
        display: inline-block;
        padding: 15px;
    }

    .payment_method.paypal {
        margin: 0;
    }

    
    .google-apple-pay {
        padding-bottom: 5px;
    }

    @media (min-width: 550px) {
        
        .express-checkout > .payment_method {
            width: 100%;
            display: inline-block;
        }

        .express-checkout {
            width: 450px;
        }

        .payment_method.card {
            width: 450px;
        }
    }

    @media (max-width: 549px) {
        .payment_method.card {
            padding: 0px;
        }
        a.button.paybypaypal {
            padding:5px;
        }
        .express-checkout {
            padding-left: 7px;
            padding-right: 7px;
        }
    }