@keyframes tuiSkeletonVibe {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.5;
  }
}

html {
  height: 100%;
  font-size: 16px;
  -webkit-overflow-scrolling: touch;
}

body {
  overflow-x: hidden;
  min-width: 20rem;
  padding: 0;
  margin: 0;
  font: var(--tui-font-text-s);
  color: var(--tui-text-primary);
  height: 100%;
  min-height: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-overflow-scrolling: touch;
  background-color: #f6f7f8;
}

.skeleton {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #f6f7f8;
  box-sizing: border-box;
}

.skeleton__header {
  display: flex;
  height: 2.25rem;
  margin-top: 0.75rem;
}

.skeleton__header .skeleton-block {
  width: 100%;
}

.skeleton__container {
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
  width: 23rem;
  flex-shrink: 0;
}

.skeleton__container:last-child {
  margin-bottom: 0.75rem;
}

.skeleton__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.skeleton__content {
  width: 100%;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  box-sizing: border-box;
}

.skeleton__detail-info {
  display: flex;
  align-items: center;
  padding: 1.5rem 1.25rem;
  margin-top: 1.75rem;
  justify-content: space-between;
}

.skeleton__amount,
.skeleton__logo {
  height: 1.5rem;
  width: 9rem;
}

.skeleton__title {
  width: 9rem;
  height: 1.75rem;
}

.skeleton__pay-type,
.skeleton__card-form {
  display: flex;
  margin-top: 1rem;
  flex-direction: column;
}

.skeleton__pay-type .skeleton-block:not(:first-child) {
  margin-top: 0.75rem;
}

.skeleton__card-form .skeleton-block:not(:first-child) {
  margin-top: 1.25rem;
}

.skeleton__button {
  height: 2.8125rem;
  width: 100%;
}

.skeleton__field {
  height: 2.75rem;
  width: 100%;
}

.skeleton-white-block {
  padding: 1.25rem;
  background-color: #fff;
  border-radius: 1.5rem;
}

.skeleton-block {
  position: relative;
  color: transparent !important;
  background: transparent !important;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  border-radius: 0.5rem;
}

.skeleton-block::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: tuiSkeletonVibe ease-in-out 1s infinite alternate;
  background-color: #ebebeb;
  border-radius: 0.25rem;
}

@media screen and (max-width: 26.8375em) {
  .skeleton__container {
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
  }

  .skeleton__content-wrapper {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

  .skeleton__header {
    margin-top: 0.5rem;
  }

  .skeleton__detail-info {
    margin-top: 0.75rem;
  }

  .skeleton__pay-type,
  .skeleton__card-form {
    margin-top: 0.75rem;
  }

  .skeleton__button {
    height: 44px;
  }

  .skeleton__amount,
  .skeleton__logo {
    width: 127px;
  }
}

@media screen and (max-width: 22.4625em) {
  .skeleton {
    background: #fff;
  }

  .skeleton__container {
    padding: 0;
  }

  .skeleton-white-block {
    border-radius: 0;
  }

  .skeleton__header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .skeleton__detail-info {
    margin-top: 0;

    box-shadow: inset 0 -1px 0 #dddfe0;
  }

  .skeleton__pay-type {
    box-shadow: inset 0 -1px 0 #dddfe0;
  }

  .skeleton__pay-type,
  .skeleton__card-form {
    margin-top: 0;
  }
}
