* {
  box-sizing: border-box;
}
/* styles.css */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap");

html {
  font-size: 100%;
} /* Esto significa 1rem por defecto */

body {
  font-family: "Lato", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  /* display: flex; */
  justify-content: center;
  align-content: center;
  /* height: 100vh; */
  width: 100vw;
  align-items: center;
  background-color: var(--Gray-gray-50, #f9f9fb);
  justify-content: center;
  margin: 0; /* Asegura que no haya márgenes predeterminados */
  font-family: "Lato";
  /* padding-top: 100px; */
}

form {
  width: 30vw;
  min-width: 500px;
  align-self: center;
  box-shadow: 0px 0px 0px 0.5px rgba(50, 50, 93, 0.1),
    0px 2px 5px 0px rgba(50, 50, 93, 0.1), 0px 1px 1.5px 0px rgba(0, 0, 0, 0.07);
  border-radius: 7px;
  padding: 40px;
}

.hidden {
  display: none;
}

#payment-message {
  color: #697386;
  font-size: 16px;
  line-height: 20px;
  padding-top: 12px;
  text-align: center;
}

#payment-element {
  margin-bottom: 24px;
}

.circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #2096f3;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 16px;
  font-weight: bold;
}

/* Buttons and links */
button {
  background: #5469d4;
  font-family: Arial, sans-serif;
  color: #ffffff;
  border-radius: 4px;
  border: 0;
  padding: 12px 16px;
  font-size: 16px;
  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%;
}
button:hover {
  filter: contrast(115%);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* spinner/processing state, errors */
.spinner,
.spinner:before,
.spinner:after {
  border-radius: 50%;
}
.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);
}
.spinner:before,
.spinner:after {
  position: absolute;
  content: "";
}
.spinner:before {
  width: 10.4px;
  height: 20.4px;
  background: #5469d4;
  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: loading 2s infinite ease 1.5s;
  animation: loading 2s infinite ease 1.5s;
}
.spinner:after {
  width: 10.4px;
  height: 10.2px;
  background: #5469d4;
  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: loading 2s infinite ease;
  animation: loading 2s infinite ease;
}

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

@media only screen and (max-width: 800px) {
  form {
    width: 80vw;
    min-width: initial;
    margin: 0px 3%;
  }
  body {
    display: block;
  }
  #payment-form {
    width: 90%;
  }
}

/* Estilos específicos para tamaños de pantalla pequeños (Mobile) */
@media screen and (max-width: 800px) {
  #container-body {
    display: flex;
    flex-direction: column-reverse;
  }

  #card-form-container {
    width: 100%;
    padding-top: 50px;
  }

  #card-widget-container,
  #resume-container {
    width: 100%;
    max-width: 1000px;
    display: block;
  }

  #card-form-data-container {
    max-width: 100%;
  }

  #navhub-addcard,
  #navhub-payment {
    display: none;
  }

  #cardPaymentResume {
    margin: 24px 3%;
  }
  /* Otros estilos específicos para dispositivos móviles */
}

/* Estilos específicos para tamaños de pantalla medianos (Tablet) */
@media screen and (min-width: 601px) and (max-width: 1024px) {
  /* Estilos específicos para tabletas */

  #container-body {
    display: flex;
    flex-direction: column-reverse;
  }

  #card-form-container {
    width: 100%;
    padding-top: 50px;
  }

  #card-widget-container,
  #resume-container {
    width: 100%;
  }

  #card-form-data-container {
    max-width: 500px;
  }

  #navhub-addcard,
  #navhub-payment {
    display: none;
  }

  #cardPaymentResume {
    margin: 50px 10%;
  }
}

/* Estilos específicos para tamaños de pantalla grandes (Web) */
@media screen and (min-width: 1025px) {
  /* Estilos específicos para pantallas grandes */
  #container-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    justify-content: center;
  }

  #card-form-container {
    width: 50%;
  }

  #payment-form {
    width: 50%;
    max-width: 1000px;
    margin-left: 10%;
  }

  #card-widget-container,
  #resume-container {
    width: 50%;
  }

  #card-form-data-container {
    max-width: 500px;
  }

  #navhub-addcard,
  #navhub-payment {
    display: flex;
  }

  #cardPaymentResume {
    margin: 50px 10%;
  }

  #row-date-cvv {
    display: flex;
  }
}

.app-bar {
  background: transparent;
  color: white;
  text-align: center;
  display: flex;
  padding: 20px 50px;
  justify-content: space-between;
  align-items: flex-start;
}

.containerRow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}

.checkboxText {
  color: var(--Gray-gray-800, #6b6c74);
  /* text-sm/font-normal */
  font-family: Lato;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
}

.checkBoxItem {
  margin-top: 1rem;
  align-content: center;
}

#card-form-container {
  background-color: white;
  padding: 0 10px;
}

#resume-container {
  align-items: center;
  display: flex;
  justify-content: center;
}

#card-widget-container {
  display: flex;
  justify-content: center;
  padding: 0 10px;
}

#titleContainer {
  width: 100%;
  font-family: "Lato";
  font-style: normal;
  line-height: 40px;
  margin-bottom: 24px;
  letter-spacing: -0.68px;
  color: black;
  font-size: 28px;
  font-family: Lato;
  font-weight: 700;
  line-height: 32px;
  word-wrap: break-word;
}

#profile-picture {
  width: 45px;
  height: 45px;
  object-fit: contain;
  stroke-width: 1px;
  stroke: var(--Color-Grays-White, #fff);
  background-color: white;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid white;
}

.paymentSubtitle {
  display: flex;
  justify-content: space-between;
  font-family: Lato;
  width: 100%;
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 600;
  margin-bottom: 8px;
}

.secondNavhubText {
  font-family: Lato;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  color: #727591;
  line-height: 24px; /* 150% */
  letter-spacing: -0.32px;
}

.mainNavhubText {
  font-family: Lato;
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  line-height: 24px; /* 150% */
  letter-spacing: -0.32px;
}

.cardForm {
  display: flex;
  padding: 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  border-radius: 12px;
  border: 1px solid var(--Gray-gray-100, #ecedf1);
  background: var(--White, #fff);
  box-shadow: 2px 2px 15px 0px rgba(0, 0, 0, 0.1);
}

.cardForm div,
.cardForm iframe,
#payment-form iframe {
  width: 100%;
}

#creditCardInfo {
  display: flex;
  padding: 1rem;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  border-radius: 8px;
  width: auto;
  background: var(--Gray-gray-50, #f9f9fb);
  color: var(--Black, #000);
  font-family: Lato;
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  line-height: 24px; /* 150% */
  letter-spacing: -0.32px;
}

#ss-banner {
  background: transparent
    url(https://github.com/hps/heartland-php/blob/master/examples/end-to-end/assets/images/ss-shield@2x.png?raw=true)
    no-repeat right center;
  height: 40px;
  background-size: contain;
  width: 270px;
}

.extraFormElement {
  display: flex;
  flex-direction: column;
}

#billing-zip {
  width: 100%;
  height: 40px;
  border-bottom: 1px solid #6b6c74;
  font-family: Lato;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 150% */
  letter-spacing: -0.32px;
  border-top: 0px;
  border-left: 0px;
  border-right: 0px;
}

#billing-zip:focus {
  outline: none;
  box-shadow: none;
  border-top: 0px !important;
  border-left: 0px !important;
  border-bottom: 1px solid #6b6c74 !important;
  border-right: 0px !important;
}

.inputLabel {
  color: var(--Gray-gray-800, #6b6c74);
  /* text-sm/font-medium */
  font-family: Lato;
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  line-height: 24px; /* 150% */
  letter-spacing: -0.32px;
}

#cardPaymentResume {
  border-radius: 12px;
  border: 1px solid var(--Gray-gray-100, #ecedf1);
  background: #fff;
  max-width: 450px;
  padding: 24px 32px;
}

.divider {
  background: #ecedf1;
  height: 1px;
  width: 100%;
  margin: 1rem 0px;
}

#buttonContainer {
  color: var(--Black, #000);
  text-align: center;
  font-family: Lato;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.28px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#showAllButton,
#showLessButton {
  margin: 5px;
  cursor: pointer;
}

#productsQuantity {
  color: var(--Gray-gray-800, #6b6c74);
  /* text-sm/font-normal */
  font-family: Lato;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 150% */
  letter-spacing: -0.32px;
}

#navhub-addcard,
#navhub-payment {
  padding: 20px 30px;
}
