/* BUTTON STYLES */

.button--waitlist-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.waitlist-button {
  background-color: black;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 16px;
  font-size: 16px;
  font-family: 'Public Sans', sans-serif;
  font-weight: 400;
  border-radius: 8px;
  margin: 16px 0;
  width: 100%;
  position: relative;
}
.small--button-waitlist {
  height: 30px;
}
.medium--button-waitlist {
  height: 45px;
}
.large--button-waitlist {
  height: 60px;
}
.autow--button-waitlist {
  width: auto;
}
.mediumw--button-waitlist {
  width: 300px;
}
.largew--button-waitlist {
  width: 100%;
}
.rounded-full {
  border-radius: 30px;
}
.soft-corners {
  border-radius: 10px;
}
.squared-corners {
  border-radius: 0;
}
.waitlist-button-loading-spinner {
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}
.waitlist-button-loading-spinner div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  animation: loading-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #fff transparent transparent transparent;
}
.waitlist-button-loading-spinner div:nth-child(1) {
  animation-delay: -0.45s;
}
.waitlist-button-loading-spinner div:nth-child(2) {
  animation-delay: -0.3s;
}
.waitlist-button-loading-spinner div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes loading-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* FORM STYLES */
.waitlist--popup--overlay {
  display: block;
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.49);
  backdrop-filter: blur(7px);
  top: 0;
  left: 0;
  z-index: 10000;
}
.waitlist--close-icon {
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;
}
.waitlist--close-icon {
  width: 18px;
  height: 18px;
}
.waitlist--popup-header {
  position: relative;
  padding: 16px;
  padding-bottom: 0px;
  text-align: left;
  border-bottom: 1px solid #F3F3F3;
}
.waitlist--popup-header > h2 {
  margin: 0px;
  text-transform: uppercase;
}
.waitlist--popup-header h2 {
  font-weight: 700;
  font-size: 18px;
  font-family: "Public Sans", sans-serif;
}
.waitlist--popup-header .success {
  text-transform: none;
  text-align: center;
}
.waitlist--popup-image-container {
  display: flex;
  justify-content: center;
  padding: 16px;
  border-bottom: 1px solid #F3F3F3;
}
.waitlist--popup-image {
  width: 130px;
  height: auto;
}
.waitlist--popup-main-content {
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.waitlist--form {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0%);
  z-index: 20000;
  background-color: white;
  display: flex;
  flex-direction: column;
  width: 100vw;
  border-radius: 12px 12px 0 0;
  max-width: 100vw;
  height: 0;
  transition: height 0.6s;
}
.waitlist--form.grow {
  height: 600px;
}

.waitlist--form input {
  border: 1px solid black;
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 8px;
}
.waitlist--form input::placeholder {
  color: #c4c4c4;
}
.waitlist--form--button:disabled {
  background-color: #c4c4c4 !important;
}
.waitlist--form input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  margin: 0;
  margin-right: 5px;
  width: 15px;
  height: 15px;
  border: 1px solid #c4c4c4;
  display: grid;
  place-content: center;
  color: #c4c4c4;
  padding: 0px;
  border-radius: 0;
}
.waitlist--form input[type="checkbox"]::before {
  content: "";
  width: 8px;
  height: 8px;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  clip-path: polygon(
    8% 0,
    0 8%,
    41% 49%,
    0 92%,
    9% 100%,
    50% 57%,
    93% 100%,
    100% 91%,
    58% 50%,
    100% 7%,
    92% 0,
    50% 42%
  );
  background-color: #c4c4c4;
  transform-origin: center;
}
.waitlist--form input[type="checkbox"]:checked::before {
  transform: scale(1);
}
.size--selected {
  display: flex;
  justify-content: center;
  align-items: center;
}
.waitlist--size-selector {
  width: 100%;
  margin-bottom: 12px;
  border: 1px solid black;
  border-radius: 8px;
  background-color: white;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
}
.waitlist--size-selector::-ms-expand {
  display: none;
  }
.waitlist--size-selector > option {
  cursor: pointer;
  background-color: white;
  font-size: 16px;
}
.waitlist--size-selector > option:checked {
  background-color: black;
  color: white;
}
.waitlist--size-selector > option:hover {
  background-color: black;
  color: white;
}
.waitlist--input--container {
  margin-top: 5px;
  display: flex;
  align-items: start;
  margin-bottom: 12px;
}
.waitlist--input--container > label {
  max-width: 90%;
}
#waitlist--email {
  margin: 0px 0px 12px 0px;
}

.waitlist--form--title {
  color: black;
  font-size: 14px;
  text-align: left;
  font-family: "Public Sans", sans-serif;
  margin: 8px 0;
}

.waitlist--form--text {
  text-align: center;
}
.waitlist--form--text.baskerville {
  font-size: 1.2rem;
  font-family: "Baskerville";
}
.waitlist--form--text.confirmed {
  font-size: 1.2rem;
  font-weight: 400;
  color: black;
}
.size--selected > .waitlist--form--text {
  color: black;
  font-size: 1.2rem;
}
.mini--text {
  font-size: 12px;
  line-height: 16px;
  margin: 0px;
  font-weight: 400;
  color: black;
}
.waitlist--form--button {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  font-family: "Public Sans", sans-serif;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 16px;
  background-color: black;
  color: white;
}
.waitlist--form--button.disabled {
  background-color: #BBBBBB;
}

.waitlist--error {
  color: #CC0824;
  margin: 8px 0;
  margin-top: 16px;
  font-size: 12px;
  text-align: center;
  font-weight: 400;
  padding: 8px 16px;
  background-color: #F3F3F3;
  border-radius: 8px;
}
.waitlist--success--popup {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 0%);
  z-index: 20000;
  background-color: white;
  display: flex;
  flex-direction: column;
  width: 100vw;
  border-radius: 12px 12px 0 0;
  height: 0;
  transition: height 0.6s;
}
.waitlist--success--popup.grow {
  height: 400px;
}
.waitlist--extra-info {
  text-align: center;
  color: black;
  font-size: 14px;
  margin: 30px 0;
  font-weight: 400;
}
.waitlist--send-error {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20000;
  background-color: white;
  display: flex;
  flex-direction: column;
  width: 350px;
  text-align: center;
  border-radius:12px;
}

@media screen and (min-width: 768px) {
  .waitlist--form {
    top: 50%;
    bottom: unset;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    height: auto;
    width: 375px;
  }
  .waitlist--form.grow {
    height: auto;
  }
  .waitlist--success--popup {
    top: 40%;
    transform: translate(-50%, -50%);
    width: 375px;
    border-radius: 12px;
    bottom: unset;
    height: auto;
  }
  .waitlist--success--popup.grow {
    height: auto;
  }
}

@media screen and (min-width: 1280px) {
  .waitlist--form {
    top: 45%;
  }
  .size--selected > .waitlist--form--text {
    font-size: 1.6rem;
  }
  .waitlist--size-selector {
    font-size: 1.2rem;
  }
  .waitlist--form input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }
  .waitlist--input--container {
    margin-top: 5px;
  }
  .waitlist--form input[type="checkbox"]::before {
    width: 11px;
    height: 11px;
    background-color: black;
  }
  .waitlist--form--text.confirmed {
    margin-top: 10px;
  }
  .waitlist--popup--overlay {
    height: calc(var(--vh, 1vh) * 100);
  }
  .waitlist--spinner {
    height: calc(var(--vh, 1vh) * 100);
  }
}

/* SPINNER */
.waitlist--spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;
  z-index: 30000;
}
.waitlist--spinner-header {
  display: flex;
  justify-content: center;
  padding: 20px;
}
.waitlist--spinner-logo {
  width: 150px;
}
.waitlist--spinner-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.waitlist--spinner-text {
  font-size: 2rem;
  text-align: center;
  color: black;
  transform: translate(0px, -120px);
  line-height: 1.3;
  max-width: 800px;
}
.waitlist--spinner-text.baskerville {
  font-family: "Baskerville";
}
.waitlist--spinner-text.josefin {
  font-weight: 400;
  font-size: 1.5rem;
}
.waitlist--progress {
  width: 100%;
  height: 1px;
  background-color: #e9e9e9;
}
.waitlist--bar {
  display: block !important;
  background-color: black;
  height: 1px;
  width: 2px;
}
