.popup-container {
  font-family: 'Roboto', sans-serif;
  color: #545454;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0);
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.1);
  background-clip: padding-box;
  border: solid rgba(0, 0, 0, 0);
  border-width: 2px 3px 2px 3px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.15);
}

.popup-container {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.6);
  -webkit-transition: opacity 0.1s linear;
  transition: opacity 0.1s linear;
  overflow-y: hidden;
}

.popup-container.hide {
  opacity: 0;
  pointer-events: none;
}

.popup-table {
  position: absolute;
  top: 0;
  left: 0;
  display: table;
  table-layout: fixed;
  width: 100%;
  height: 100%;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
}

.popup-container.hide .popup-table {
  opacity: 0;
  pointer-events: none;
  -webkit-transform: translateY(6px);
  transform: translateY(6px);
}

.popup-table-cell {
  display: table-cell;
  vertical-align: middle;
  box-sizing: border-box;
  padding: 16px;
}

.popup {
  position: relative;
  margin: auto;
  max-width: 720px;
  /* a regular height must be set here, or nothing works */
  height: auto;
  max-height: 80vh;
  overflow-y: auto;
  overflow: hidden;
  padding: 48px 0 65px 0;
  background-color: #fafafa;
  border-radius: 2px;
  box-sizing: border-box;
  font-size: 100%;
  color: #303030;
  box-shadow: 0 10px 40px 4px rgba(0, 0, 0, 0.3);
}

.popup .title {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 48px;
  min-width: 200px;
  line-height: 48px;
  box-sizing: border-box;
  padding: 0 12px;
  -webkit-transition: background-color 0.1s linear;
  transition: background-color 0.1s linear;
  font-weight: 500;
  font-size: 1.05em;
  border-bottom: 1px solid #EAEAEA;
  background-color: #FAFAFA;
  border-radius: 2px 2px 0 0;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.popup .content {
  width: 100%;
  min-width: 200px;
  height: 100%;
  overflow: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
}

.popup .subtitle {
  color: #009688;
}

.popup .text {
  box-sizing: border-box;
  padding: 12px;
  line-height: 1.5em;
}

.popup-container .buttons {
  padding: 8px 10px;
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: right;
  font-weight: 500;
  box-sizing: border-box;
  border-top: 1px solid #EAEAEA;
  background-color: #FAFAFA;
  border-radius: 0 0 2px 2px;
}

.popup-container .button {
  display: inline-block;
  box-sizing: border-box;
  text-align: center;
  min-width: 60px;
  height: 48px;
  line-height: 50px;
  padding: 0 12px;
  color: #009688;
  cursor: pointer;
  border-radius: 3px;
  -webkit-transition: background-color 0.1s linear;
  transition: background-color 0.1s linear;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.popup-container .button:hover {
  background-color: #eeeeee;
}

.popup-container .button:active {
  background-color: #e5e5e5;
}