// :root {
//   font-size: (16 * 100vw / 375);
// }

#root {
  overflow-y: auto;
}

body {
  font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
  line-height: 1.5;
  color: var(--color-text-1);
}

.demo-index {
  padding: 20px 16px;
  box-sizing: border-box;
  min-height: 100vh;
  background: var(--color-fill-1);
}

.demo-nav {
  &-title {
    margin: 24px 0 8px 12px;
    color: var(--color-text-2);
    font-size: 14px;
    font-weight: 400;
  }
  &-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
  }
  &-link {
    position: relative;
    display: flex;
    margin-bottom: 12px;
    padding: 10px 20px;
    background: var(--color-fill-2);
    border-radius: 99px;
    transition: 0.3s;
    color: var(--color-text-1);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
  }
}

.demo-page {
  min-height: 100vh;
  background: var(--app-bg);

  &[data-page='avatar'] {
    .Avatar + .Avatar {
      margin-left: 16px;
    }
  }
  &[data-page='button'] {
    .Btn + .Btn {
      margin-left: 16px;
    }
  }
  &[data-page='card'] {
    .demo-section {
      background: var(--app-bg);
    }
    .Card + .Card {
      margin-top: 16px;
    }
  }
  &[data-page="flex"] {
    p {
      margin: 6px;
      padding: 6px;
      border-radius: 4px;
      background: var(--color-fill-2);
      text-align: center;
      font-size: 14px;
    }
  }
  &[data-page='goods'] {
    .demo-section {
      background: var(--app-bg);
    }
  }
  &[data-page='search'] {
    .demo-section {
      background: var(--app-bg);
    }
  }
}

.demo-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin-bottom: 12px;
  background: var(--color-fill-1);

  &-back {
    position: absolute;
    top: ((48px - 24px) / 2);
    left: 16px;

    svg {
      display: block;
      width: 24px;
      height: 24px;
      fill: var(--color-text-1);
    }
  }
  &-title {
    margin: 0;
    font-size: 18px;
  }
}

.demo-section {
  padding: 16px;
  
  &:not(:last-child) {
    margin-bottom: 8px;
  }
  &.bg-white {
    background: var(--color-fill-1);
  }
  &.bg-gray {
    background: var(--app-bg);
  }
  &-title {
    margin: 10px 0;
    color: var(--color-text-2);
    font-weight: normal;
    font-size: 14px;
    line-height: 16px;
  }
}

.demo-row {
  margin-bottom: 12px;
}

// icon-list
.icon-box {
  display: inline-block;
  width: 108px;
  text-align: center;
  font-size: 32px;

  span {
    display: block;
    font-size: 12px;
  }
}

// Chat Demo
.guess-you-aside {
  width: 72px;
  padding: 12px 14px;
  box-sizing: border-box;
  background: var(--color-fill-1);

  h1 {
    margin: 8px 0;
    color: #424754;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;

    &::first-line {
      color: var(--brand-1);
    }
  }
}

.skill-cards {
  .Card {
    width: 72px;
    height: 72px;
    margin-bottom: 5px;
  }
  .CardTitle {
    padding: 10px 8px;
  }
  .CardTitle-title {
    font-size: 14px;
  }
  .CardText {
    padding: 2px 8px;
    font-size: 12px;
  }
}

// OrderSelector
.OrdderSelector {
  .Popup-dialog {
    background: var(--gray-7);
  }
  .Popup-body {
    padding: 0 6px 9px;
  }
}

.OrderGroup {
  &-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 12px 0;

    h3 {
      margin: 0;
      font-size: 16px;
    }
  }
  &-actions {
    padding: 0 12px 12px;
    text-align: right;

    .Btn {
      min-width: 86px;
      margin-left: 9px;
    }
  }
}

.OrderGroup-status {
  color: var(--highlight-1);
  font-size: 14px;
}
