@import url("https://api.fontshare.com/v2/css?f[]=satoshi@1&display=swap");

.modal {
  position: fixed;
  z-index: 85;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  transition: all 0.3s;
}

.modal .container {
  box-sizing: border-box;
  background-color: #fefefe;
  padding: 1.5rem;
  padding-bottom: 1rem;
  border: 1px solid #888;
  width: 300px; /* temporary */
  border-radius: 1.5rem;
  font-family: "Satoshi", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  /* dialog on mobile */
  @media screen and (max-width: 440px) {
    width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    bottom: 0;
    top: auto;
    transform: translate(-50%, 0);
  }
}

.container h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.container .header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #333;
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
}

.container .header .small-modal-icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.container .header .wallet-address {
  font-size: 0.75rem;
  color: #777;
  font-weight: normal;
  margin-top: 0.5rem;
}

.container .close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: white;
  border: 2px solid #ddd;
  border-radius: 100%;
  font-size: 1.5rem;
  color: #aaa;
  width: 1.25rem;
  height: 1.25rem;
  transition: color 0.15s;
}

.close-button > .close-icon {
  position: relative;
  display: block;
  width: 1rem;
  height: 1rem;
  padding: 0.15rem;
}

.container .close-button:hover {
  background-color: #ddd;
  color: #888;
  cursor: pointer;
}

.container .linking-text {
  color: #777;
  font-size: 1rem;
  text-align: center;
  /* margin-top: 0; */
  /* margin-bottom: 2rem; */
}

.provider-list {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.75rem;
  max-height: 17.9rem;
  overflow-y: auto;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #ccc #f1f1f1;
}

.provider-list.big {
  max-height: 16rem;
}

.provider-list::-webkit-scrollbar {
  width: 0.5rem;
  border-radius: 0.25rem;
}
.provider-list::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 0.25rem;
}
.provider-list::-webkit-scrollbar-track {
  background-color: #f1f1f1;
  border-radius: 0.25rem;
}

.spinner::after {
  content: "";
  display: block;
  width: 1rem;
  height: 1rem;
  border: 0.25rem solid #f3f3f3;
  border-top: 0.25rem solid #ff6f00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.spinner {
  display: flex;
  margin-left: auto;
  margin-right: 0.25rem;
  align-self: center;
  justify-content: center;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.modal-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  padding: 0.35rem;
}
.modal-icon svg {
  width: 3.6rem;
  height: 3.6rem;
}

.container a.footer-text {
  /* margin-top: 1rem; */
  font-size: 0.75rem;
  color: #bbbbbb;
  text-decoration: none;
}

.container a.footer-text:hover {
  text-decoration: underline;
}

.disconnect-button {
  background-color: #ff6f00;
  color: white;
  border: none;
  border-radius: 0.75rem;
  padding: 1rem;
  padding-block: 0;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 0.75rem;
  margin-top: 1rem;
  height: 2.5rem;
  box-shadow: hsla(0, 0%, 100%, 0.15) 0 2px 0 inset,
    rgba(0, 0, 0, 0.05) 0 -2px 4px inset, rgba(46, 54, 80, 0.075) 0 1px 1px;
}

.disconnect-button:hover {
  background-color: #cc4e02;
  cursor: pointer;
}

.disconnect-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.linking-button {
  background-color: #ff6f00;
  color: white;
  border: none;
  border-radius: 0.75rem;
  padding: 1rem;
  padding-block: 0;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 0.75rem;
  margin-top: 1rem;
  height: 2.5rem;
  box-shadow: hsla(0, 0%, 100%, 0.15) 0 2px 0 inset,
    rgba(0, 0, 0, 0.05) 0 -2px 4px inset, rgba(46, 54, 80, 0.075) 0 1px 1px;
}

.linking-button:hover {
  background-color: #cc4e02;
  cursor: pointer;
}

.linking-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.socials-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-block: 0.5rem;
  width: 100%;
}

.socials-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.socials-container .connector-container {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.25rem;
}

.socials-container .connector-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  background-color: #fefefe;
  color: #333;
  border: 1px solid #ddd;
  width: 100%;
  height: 2.5rem;
}

.socials-container .connector-button:hover {
  background-color: #ddd;
  cursor: pointer;
}

.socials-container .connector-button:disabled {
  cursor: default;
  background-color: #fefefe;
}

.socials-container .connector-button svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #333;
  margin-right: 0.5rem;
}

.socials-container .connector-connected {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  background-color: #eee;
  border-radius: 0.25rem;
  color: #333;
  border: 1px solid #ddd;
  width: 100%;
  flex: 1;
}

.socials-container .connector-connected svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #333;
  margin-right: 0.5rem;
}

.socials-container h3 {
  color: #333;
  margin: 0;
}

.connector-button .connector-checkmark {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 1rem !important;
  height: 1rem !important;
}

.unlink-connector-button {
  position: absolute;
  right: 0.375rem;
  border: none;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  padding-right: 0.675rem;
  border-radius: 0.5rem;
  text-align: center;
  background-color: #999;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: hsla(0, 0%, 100%, 0.15) 0 2px 0 inset,
    rgba(0, 0, 0, 0.05) 0 -2px 4px inset, rgba(46, 54, 80, 0.075) 0 1px 1px;
  transition: background-color 0.15s;
}

.unlink-connector-button svg {
  stroke: white !important;
  width: 0.875rem !important;
  height: 0.875rem !important;
  margin-right: 0 !important;
}

.unlink-connector-button:hover {
  background-color: #888;
  cursor: pointer;
}

.unlink-connector-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

@keyframes loader {
  0% {
    transform: translateX(0%);
  }
  50% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0%);
  }
}

.loader {
  position: relative;
  width: 4rem;
  height: 0.4rem;
  background-color: #ddd;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 0.125rem;
}

.loader::before {
  content: "";
  display: block;
  width: 2rem;
  height: 0.4rem;
  background-color: #ff6f00;
  position: absolute;
  left: 0;
  animation: loader 1.5s ease-in-out infinite;
  border-radius: 0.125rem;
}

.no-socials {
  color: #777;
  font-size: 0.875rem;
  text-align: center;
  margin-top: 0.5rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ddd;
}

input.tiktok-input {
  border: 1px solid gray;
  border-radius: 0.75rem;
  color: black;
  font-family: Satoshi, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI,
    Roboto, Oxygen, Ubuntu, Cantarell, Open Sans, Helvetica Neue, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  height: 2.75rem;
  line-height: 1.333rem;
  padding-inline: 1rem;
  margin-top: 1rem;
  width: 100%;
}

input.tiktok-input.invalid {
  border-color: #dc3545;
  outline-color: #dc3545;
}

.otp-input-container {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.otp-input {
  width: 2rem;
  height: 2.5rem;
  text-align: center;
  font-size: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s;
}

.otp-input:focus {
  border-color: #ff6f00;
}
