.peepso-stripe-checkout * {
  box-sizing: border-box;
}

.peepso-stripe-checkout {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  margin: 1rem auto;
  background: transparent;
  border: none;
  box-shadow: none;
}

.peepso-stripe-checkout .peepso-stripe-checkout-form {
  font-family: Poppins !important;
  width: 100%;
  max-width: 560px;
  min-width: 0;
  align-self: center;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-top: auto;
  margin-bottom: auto;
  overflow: visible;
}

.peepso-stripe-checkout .hidden {
  display: none;
}

.peepso-stripe-checkout .peepso-stripe-message {
  color: rgb(105, 115, 134);
  font-size: 16px;
  line-height: 20px;
  padding-top: 12px;
  text-align: center;
}

.peepso-stripe-checkout h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.peepso-stripe-checkout .peepso-stripe-payment-element {
  margin-bottom: 24px;
  margin-top: 16px;
}

.peepso-stripe-checkout .peepso-stripe-terms-consent {
  margin-bottom: 20px;
}

.peepso-stripe-checkout .peepso-stripe-terms-label {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin: 0;
}

.peepso-stripe-checkout .peepso-stripe-terms-checkbox {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  /* Aligne visuellement la case sur la première ligne du texte (14px / line-height 1.45) */
  margin-top: 0.22em;
  cursor: pointer;
  accent-color: #0055de;
  align-self: flex-start;
}

.peepso-stripe-checkout .peepso-stripe-terms-text {
  display: block;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #6a7383;
  font-weight: 400;
}

.peepso-stripe-checkout .peepso-stripe-terms-link {
  color: #6955D7;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.peepso-stripe-checkout .peepso-stripe-terms-link:hover {
  color: #6955D7;
}

.peepso-stripe-checkout .peepso-stripe-email {
  border-radius: 5px;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.03), 0px 3px 6px rgba(0, 0, 0, 0.02);
  display: block;
  margin-top: 0.25rem;
  padding: 0.75rem;
  background-color: #ffffff;
  color: #30313d;
  border: 1px solid #e5e5e5;
  height: 44px;
  transform: none;
  opacity: 1;
  position: inherit;
  outline: none;
  width: 100%;
}

.peepso-stripe-checkout .peepso-stripe-email:focus {
  border: 1px solid hsl(210, 96%, 45%);
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.03), 0px 3px 6px rgba(0, 0, 0, 0.02),
    0 0 0 3px rgba(5, 112, 222, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.08);
}

.peepso-stripe-checkout .peepso-stripe-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.peepso-stripe-checkout .peepso-stripe-address-city-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.peepso-stripe-checkout .peepso-stripe-address-city-row .peepso-stripe-postal-code {
  width: 120px;
}

.peepso-stripe-checkout .peepso-stripe-country {
  height: 44px;
  appearance: auto;
}

.peepso-stripe-checkout .peepso-stripe-address-errors {
  margin-top: 4px;
  color: #df1b41;
  font-size: 14px;
  line-height: 1.35;
  min-height: 0;
}

.peepso-stripe-checkout .peepso-stripe-email-errors,
.peepso-stripe-checkout .peepso-stripe-name-errors,
.peepso-stripe-checkout .peepso-stripe-promo-errors {
  margin-top: 4px;
  color: #df1b41;
  font-size: 14px;
  line-height: 1.35;
  min-height: 0;
}

.peepso-stripe-checkout .peepso-stripe-promo-success {
  margin-top: 4px;
  color: #057a55;
  font-size: 14px;
  line-height: 1.35;
  min-height: 0;
}

.peepso-stripe-checkout .peepso-stripe-promo-errors:empty,
.peepso-stripe-checkout .peepso-stripe-promo-success:empty {
  display: none;
}

.peepso-stripe-checkout .peepso-stripe-promo-label {
  display: block;
  margin-bottom: 0;
}

.peepso-stripe-checkout .peepso-stripe-promo-optional {
  color: #6a7383;
  font-weight: 400;
  font-size: 14px;
}

.peepso-stripe-checkout .peepso-stripe-promo-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 0.25rem;
  align-items: stretch;
}

.peepso-stripe-checkout .peepso-stripe-promo-row .peepso-stripe-promo-input {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 0;
}

.peepso-stripe-checkout .peepso-stripe-promo-apply {
  flex: 0 0 auto;
  align-self: stretch;
  padding: 0 16px;
  border-radius: 5px;
  border: 1px solid #e5e5e5;
  background-color: #ffffff;
  color: #30313d;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.03), 0px 3px 6px rgba(0, 0, 0, 0.02);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.peepso-stripe-checkout .peepso-stripe-promo-apply:hover:not(:disabled) {
  border-color: hsl(210, 96%, 45%);
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.03), 0px 3px 6px rgba(0, 0, 0, 0.02),
    0 0 0 3px rgba(5, 112, 222, 0.15);
}

.peepso-stripe-checkout .peepso-stripe-promo-apply:disabled {
  opacity: 0.55;
  cursor: default;
}

.peepso-stripe-checkout .peepso-stripe-email.error {
  color: #df1b41;
  border: 1px solid #df1b41;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.03), 0px 3px 6px rgba(0, 0, 0, 0.02),
    0 0 0 3px rgba(223, 27, 65, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.08);
}

.peepso-stripe-checkout .peepso-stripe-submit {
  background: rgb(105, 85, 215);
  font-family: Poppins !important;
  color: #ffffff;
  border-radius: 30px;
  border: 0;
  padding: 16px 0px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  transition: all 0.2s ease;
  box-shadow: 0px 4px 5.5px 0px rgba(0, 0, 0, 0.07);
  width: 100%;
  margin-top: 1rem;
}

.peepso-stripe-checkout .peepso-stripe-submit:hover {
  filter: contrast(130%);
}

.peepso-stripe-checkout .peepso-stripe-submit:disabled {
  background: #B8B8FF;
  cursor: default;
}

.peepso-stripe-checkout .peepso-stripe-spinner,
.peepso-stripe-checkout .peepso-stripe-spinner:before,
.peepso-stripe-checkout .peepso-stripe-spinner:after {
  border-radius: 50%;
}

.peepso-stripe-checkout .peepso-stripe-spinner {
  color: #ffffff;
  font-size: 22px;
  text-indent: -99999px;
  margin: 0px auto;
  position: relative;
  width: 20px;
  height: 20px;
  box-shadow: inset 0 0 0 2px;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}

.peepso-stripe-checkout .peepso-stripe-spinner:before,
.peepso-stripe-checkout .peepso-stripe-spinner:after {
  position: absolute;
  content: "";
}

.peepso-stripe-checkout .peepso-stripe-spinner:before {
  width: 10.4px;
  height: 20.4px;
  background: #0055de;
  border-radius: 20.4px 0 0 20.4px;
  top: -0.2px;
  left: -0.2px;
  -webkit-transform-origin: 10.4px 10.2px;
  transform-origin: 10.4px 10.2px;
  -webkit-animation: peepso-stripe-loading 2s infinite ease 1.5s;
  animation: peepso-stripe-loading 2s infinite ease 1.5s;
}

.peepso-stripe-checkout .peepso-stripe-spinner:after {
  width: 10.4px;
  height: 10.2px;
  background: #0055de;
  border-radius: 0 10.2px 10.2px 0;
  top: -0.1px;
  left: 10.2px;
  -webkit-transform-origin: 0px 10.2px;
  transform-origin: 0px 10.2px;
  -webkit-animation: peepso-stripe-loading 2s infinite ease;
  animation: peepso-stripe-loading 2s infinite ease;
}

@-webkit-keyframes peepso-stripe-loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes peepso-stripe-loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@media only screen and (max-width: 600px) {
  .peepso-stripe-checkout .peepso-stripe-checkout-form {
    width: 100%;
    min-width: initial;
    padding: 0;
  }

  .peepso-stripe-checkout .peepso-stripe-name-row,
  .peepso-stripe-checkout .peepso-stripe-address-city-row {
    grid-template-columns: 1fr;
  }

  .peepso-stripe-checkout .peepso-stripe-address-city-row .peepso-stripe-postal-code {
    width: 100%;
  }
}

.peepso-stripe-checkout .peepso-stripe-header {
  padding: 0px !important;
  margin: 15px 0px 5px 0px !important;
  font-weight: 700 !important;
  font-size: 26px !important;
}

.peepso-stripe-checkout .peepso-stripe-secured {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 400;
}