@font-face {
  font-family: "X5 Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../fonts/X5-Sans_Regular.woff2") format("woff2");
}

@font-face {
  font-family: "X5 Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../../fonts/X5-Sans_Medium.woff2") format("woff2");
}

@font-face {
  font-family: "X5 Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../../fonts/X5-Sans_Bold.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20rem;
  min-height: 100vh;
  background: #fff;
  color: #302e33;
  font-family: "X5 Sans", Arial, Helvetica, sans-serif;
}

.fallback-wrapper {
  width: 100%;
  max-width: 80rem;
  padding: 1rem;
}

.fallback-page {
  width: 100%;
}

.fallback-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;
  padding: 1.5rem;
  background: #f6f7f8;
  border-radius: 1.5rem;
}

.fallback-content,
.fallback-titles {
  display: flex;
  flex-direction: column;
}

.fallback-content {
  flex: 0 0 auto;
  gap: 1.5rem;
}

.fallback-titles {
  gap: 1rem;
}

.fallback-title,
.fallback-subtitle {
  margin: 0;
}

.fallback-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.fallback-subtitle {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.2;
}

.store-buttons {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.store-buttons::-webkit-scrollbar {
  display: none;
}

.store-button {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  background: #292929;
  border-radius: 1.5rem;
  color: #fff;
  text-decoration: none;
}

.store-button:focus-visible {
  outline: 2px solid #292929;
  outline-offset: 2px;
}

.store-button img {
  width: 1.5rem;
  height: 1.5rem;
}

.store-button span {
  font-family: "X5 Sans", Arial, Helvetica, sans-serif;
  font-size: 0.8125rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.phone-image {
  position: relative;
  height: 22.0625rem;
  flex: 0 0 auto;
  margin-bottom: -1.625rem;
  overflow: hidden;
}

.phone-device {
  position: absolute;
  aspect-ratio: 593 / 860;
}

.phone-shell,
.phone-pattern,
.phone-logo {
  display: block;
}

.phone-screen {
  position: absolute;
  top: 2.3256%;
  left: 7.2513%;
  width: 58.0101%;
  height: 83.7209%;
  overflow: hidden;
  background: #48a83f;
  border-radius: 14.5349% / 6.9444%;
}

.phone-device--tc5 .phone-screen {
  background: linear-gradient(180deg, #24880a 0%, #4a910a 100%);
}

.phone-pattern {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 54.8611%;
  object-fit: fill;
}

.phone-device--tcx .phone-pattern {
  height: 47%;
}

.phone-logo {
  position: absolute;
  top: 15.9722%;
  left: 25%;
  width: 50%;
  height: auto;
}

.phone-device--tcx .phone-logo {
  top: 15.28%;
  left: 27.62%;
  width: 44.77%;
}

.phone-shell {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.phone-device--mobile {
  top: 1.8125rem;
  left: calc(50% + 2.5625rem);
  width: 25.2544rem;
  transform: translateX(-50%);
}

.phone-device--desktop {
  display: none;
}

.phone-qr {
  position: absolute;
  top: 12.3611%;
  left: 17.7326%;
  width: 64.5349%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff;
  border-radius: 0.875rem;
}

.phone-instruction {
  position: absolute;
  top: 45.4167%;
  left: 0;
  width: 100%;
  margin: 0;
  color: #fff;
  font-size: 0.912rem;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
}

@media (max-width: 48rem) {
  body {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .fallback-wrapper {
    display: flex;
    height: 100%;
  }

  .fallback-page {
    display: flex;
    min-height: 0;
  }

  .fallback-card {
    flex: 1 1 auto;
    min-height: 0;
  }

  .phone-image {
    flex: 1 1 0;
    height: auto;
    min-height: 10rem;
  }
}

@media (min-width: 48.0625rem) {
  .fallback-wrapper {
    padding: 1.875rem 2.5rem;
  }

  .fallback-card {
    min-height: 33rem;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 2.5rem;
  }

  .fallback-content {
    flex: 0 1 auto;
    justify-content: center;
    max-width: 37.5rem;
    gap: 2.625rem;
    min-width: 0;
  }

  .fallback-title {
    font-size: 2rem;
  }

  .fallback-subtitle {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  .store-buttons {
    width: auto;
  }

  .phone-image {
    flex: 1 1 0;
    min-width: 10rem;
    height: auto;
    align-self: stretch;
    margin-bottom: 0;
    overflow: visible;
  }

  .phone-device--mobile {
    display: none;
  }

  .phone-device--desktop {
    display: block;
    top: 1.5rem;
    right: -9.0625rem;
    left: auto;
    width: auto;
    height: 55vw;
  }
}

@media (min-width: 48.0625rem) and (max-width: 75rem) {
  .fallback-content {
    max-width: min(37.5rem, calc(100vw - 24rem));
  }

  .store-buttons {
    flex-wrap: wrap;
    overflow: visible;
  }

  .phone-device--desktop {
    right: -2rem;
    height: 45vw;
  }
}

@media (min-width: 97.5rem) {
  .phone-device--desktop {
    height: 53.75rem;
  }
}
