@use "./components/mixins" as *;

.summary {
  display: flex;
  align-items: flex-end;
  overflow: visible;
  @media (min-width: 1080px) {
    .app-edit & {
      position: fixed;
      bottom: 0;
      padding: 0 12px;
      margin-left: -12px;
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
      @include elevation(4);
    }
  }
  .app-view & > span:not(.summary_divider) {
    margin-top: -2px;
    margin-bottom: 2px;
  }
}

.summary_divider {
  align-self: stretch;
  border-left: $table-border;
  margin: 0 -.5px;
}

.summary_left {
  position: relative;
  width: 320px;
  height: 49px;
}
.summary_middle {
  position: relative;
  width: 277px;
}

.summary_clan {
  position: absolute;
  left: 4px;
  bottom: 5px;
  height: 35px;
  padding: 0 12px;
}

.summary_equipped-level {
  position: absolute;
  left: 260px;
  bottom: 0;
  font-size: 12px;
  line-height: 44px;
  color: #00000060;
}

.summary_tiers-toggle {
  position: absolute;
  left: 10px;
  bottom: 5px;
  height: 35px;
}
.summary_tiers-spacer {
  height: 16px;
}

.summary_stat {
  width: 60px;
  padding-top: 9px;
  padding-bottom: 4px;
  line-height: 18px;
  text-align: center;
  &.-skeleton {
    width: 86px;
  }
}
.summary_stat-tier {
  margin-top: 2px;
  font-size: 12px;
  line-height: 14px;
}
.summary_stat-prev,
.summary_stat-next {
  display: inline-block;
  width: 21px;
  vertical-align: top;
  white-space: nowrap;
}
.summary_stat-prev {
  text-align: left;
}
.summary_stat-next {
  text-align: right;
}
.summary_stat-name {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.65);
}
.summary_stat-effect {
  font-size: 12px;
  white-space: nowrap;
  &.-tip {
    text-decoration: underline dotted;
    cursor: default;
  }
  + .summary_stat-name {
    display: none;
  }
}
.summary_stat-small {
  display: inline-block;
  margin: 0 -2px;
  transform: scale(.83) translateY(1px);
}
.app-view .summary_stat:last-child .summary_stat-effect-hp {
  transform: translateX(-4px);
}

.summary_damage {
  float: right;
  width: 120px;
}
.summary_damage-tip {
  display: inline-block;
  width: 16px;
  margin: -1px -6px -1px 1px;
  vertical-align: 1px;
  color: rgba(0, 0, 0, 0.55);
}
