.macc-preferences {
  background-color: #aaa;
  border-radius: 12px;
  bottom: 8px;
  color: #eee;
  cursor: pointer;
  display: inline-block;
  font-family: arial;
  font-size: 19px;
  font-weight: bolder;
  height: 24px;
  left: 8px;
  line-height: 24px;
  position: fixed;
  text-align: center;
  width: 24px;
}

#macc-bg {
  background-color: black;
  height: 100%;
  opacity: 0.8;
  position: fixed;
  width: 100%;
  z-index: 99998;
}

#macc-wrap {
  box-sizing: border-box;
  height: 100%;
  padding: 100px 10px;
  position: fixed;
  width: 100%;
  z-index: 99999;
}

#macc-wrap * {
  color: #333;
}

#macc-box {
  background-color: #eee;
  border-radius: 8px;
  box-sizing: border-box;
  height: 100%;
  margin: auto auto;
  overflow-y: auto;
  position: relative;
  max-width: 540px;
  width: 100%;
}

#macc-summary {
  padding: 30px;
}

#macc-footer {
  background-color: white;
  border-radius: 0 0 8px 8px;
  bottom: 0;
  box-sizing: border-box;
  left: 0;
  padding: 30px;
  position: absolute;
  width: 100%;
}

#macc-title {
  font-size: 35px;
  font-weight: bold;
  line-height: 50px;
  margin-bottom: 30px;
}

#macc-message {
  font-size: 18px;
  line-height: 28px;
}

#macc-buttons {
  position: relative;
}

#macc-buttons button {
  border: #333 solid 1px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  height: 50px;
  text-transform: uppercase;
}

#macc-buttons #macc-accept {
  background-color: #333;
  border-style: none;
  color: white;
}

@media only screen and (min-width: 500px) {
  #macc-buttons button {
    width: 200px;
  }

  #macc-buttons #macc-accept {
    right: 0;
    position: absolute;
  }
}

@media only screen and (max-width: 499px) {
  #macc-summary {
    padding: 10px;
  }

  #macc-footer {
    position: sticky;
  }

  #macc-buttons button {
    display: block;
    width: 100%;
  }

  #macc-buttons #macc-accept {
    margin-top: 10px;
  }
}

@media only screen and (max-width: 425px) {
  #macc-title {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 10px;
  }
}

@media only screen and (max-width: 325px) {
  #macc-message {
    font-size: 16px;
    line-height: 20px;
  }
}

@media only screen and (max-height: 800px) {
  #macc-wrap {
    padding-bottom: 50px;
    padding-top: 50px;
  }
}

@media only screen and (max-height: 700px) {
  #macc-wrap {
    padding-bottom: 20px;
    padding-top: 20px;
  }
}

@media only screen and (max-height: 630px) {
  #macc-wrap {
    padding: 0;
  }
}

@media only screen and (max-height: 600px) {
  #macc-footer {
    position: sticky;
  }
}

@media only screen and (max-height: 400px) {
  #macc-title {
    font-size: 24px;
    margin-bottom: 10px;
  }

  #macc-message {
    font-size: 16px;
    line-height: 20px;
  }
}