html {
  box-sizing: border-box;
}

*,
*::after,
*::before {
  box-sizing: inherit;
}

body {
  align-items: center;
  background: #f4f4f4;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  min-height: 100vh;
}

.container {
  display: flex;
  font-size: 0.7rem;
  margin: 0 auto;
  max-width: 100%;
  width: 800px;
}

.actions {
  border-right: 1px solid #111;
  padding: 1em 1em;
  width: 140px;
}

button {
  background-color: white;
  border: 1px solid #111;
  border-radius: 5px;
  cursor: pointer;
  display: block;
  font-size: 0.6rem;
  font-weight: bold;
  margin-bottom: 1em;
  padding: 0.8em 0.4em;
  width: 100%;
}

.list {
  flex: 1;
  padding: 1em 1.5em;
}

.list__title {
  border-bottom: 1px solid #111;
  display: flex;
  font-weight: 300;
  justify-content: space-between;
  margin: 0 0 1em;
  padding-bottom: 0.4em;
}

.list__item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5em;
}

.total {
  background-color: white;
  border-bottom: 1px solid #111;
  display: flex;
  font-size: 0.7rem;
  font-weight: 300;
  justify-content: space-between;
  margin: 1em 0 0;
  padding: 0.4em 0;
}

@media (min-width: 600px) {
  .container,
  .total {
    font-size: 1rem;
  }

  .actions {
    width: 210px;
  }

  button {
    font-size: 0.8rem;
    padding: 1em 0.2em;
  }
}

@media (min-width: 720px) {
  .container,
  .total {
    font-size: 1.1rem;
  }

  .actions {
    width: 300px;
  }

  button {
    font-size: 1rem;
    padding: 1em 0;
  }
}
