.popup-overlay{
  /*Hides pop-up when there is no "active" class*/
  visibility:hidden;
  background: rgba(255, 255, 255, .7);
  bottom: 0;
  display: block;
  height: 100%;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  vertical-align: middle;
  width: 100%;
  z-index: 700;
}
.popup-overlay, .popup-content {
  /*Hides pop-up content when there is no "active" class */
  visibility:hidden;
}

.active .popup-overlay, .active .popup-content  {
  /*displays pop-up when "active" class is present*/
  visibility:visible;
}

.popup-content {
  background: #fff;
  border: 2px solid #2998cd;
  box-shadow: 0 0 15px rgba(0, 0, 0, .2);
  bottom: 0;
  height: 70vh;
  left: 0;
  margin: auto;
  padding: 30px 10px 10px;
  position: absolute;
  text-align: left;
  top: 0;
  right: 0;
  z-index:1000;
}

.popup-content .close {
  background: #eee;
  border: 2px solid #2998cd;
  color: #777;
  height: 30px;
  font-size: 35px;
  line-height: 24px;
  outline: none;
  top: -2px;
  position: absolute;
  right: -2px;
  text-align: center;
  width: 30px;
}
.popup-content .close:after {
  content: '\000D7';
  left: 3px;
  position: absolute;
  top: -1px;
}
@media print, screen and (min-width: 900px) {
  .popup-content  {
    height:500px;
    width: 700px;
  }
}

.details button {
	background: #2998cd;
	border-bottom: 3px solid #00689a;
	border-radius: 4px;
	color: #fff;
	display: inline-block;
	font-size: 16px;
	font-weight: 700;
	height: 34px;
	line-height: 31px;
	text-align: center;
	text-transform: uppercase;
	width: 100%;
}
.button-large:hover, .details button:hover {
	border-bottom: none;
    border-top: 3px solid #00689a;
}
.details button {
    max-width:300px;
}
.list-objects {
	display: none;
}
.list-objects__opened {
	display: block;
}
.list-objects__container {
	margin-bottom: 15px;
}
.list-objects {
	border-bottom: 1px solid #ccc;
	margin: 6px 0 0;
	padding-bottom: 5px;
}
.list-objects__item {
	display: flex;
	margin-bottom: 10px;
}
.list-objects__item .builder-button {
	margin-left: 6px;
}
.element__active, .builder-container .element__active {
	border:2px solid #2998cd;
}
.builder-product {
	display: flex;
	justify-content: center;
	width: 100%;
}
.edit-item__preview {
	width: 100px;
}
.edit-item__preview-small {
	width: 40px;
	margin-right: 10px;
}
.modal-bg { 
	background: rgba(255, 255, 255, .7);
	bottom: 0;
	display: block;
	height: 100%;
	left: 0;
	position: fixed;
	right:0;
	top:0;
	vertical-align: middle;
	width: 100%;
	z-index:700;
}
.modal-wrapper {
	background: #fff;
	border:2px solid #2998cd;
	box-shadow: 0 0 15px rgba(0, 0, 0, .2);
	bottom: 0;
	height: 60vh;
	left: 0;
	margin: auto;
	padding: 30px 10px 10px;
	position: absolute;
    top: 0;
    right: 0;
}
.modal-close {
	background: #eee;
	border:2px solid #2998cd;
	color: #777;
	height: 30px;
	font-size: 30px;
	line-height: 24px;
	top:-2px;
	position: absolute;
	right: -2px;
	text-align: center;
	width: 30px;
}
.shapes-container {
	height: 100%;
	overflow-x: scroll;
}
.shapes-container img {
	margin: 10px;
	width:90px;
}
@media print, screen and (min-width: 900px)  {
	.builder-container {
		display: flex;
		margin: 20px auto 5px;
		max-width: 1180px;
	}
	.builder-aside {
		min-width: 220px;
		width: 220px;
	}	
	.builder-content {
		flex-grow:1;
	}
	.builder-actions .builder-action {
		flex-grow: 1;
		margin-right: 35px;
	}
	.modal-wrapper {
		height: 60vh;
		width: 50vw;
	}
}
/* **************************   Builder modal content   ******************************/
.details {
    margin-top:8px;
    text-align: center;
}
.details p {
    margin-bottom: 8px;
}
.details img {
    margin: 10px;
}
.details input[type="text"] {
    border: 2px solid #888;
    height: 36px;
    padding: 4px;
    width:300px;
}
.popup-content h2 {
    color: #0064bf;
    margin: 0 0 12px;
    text-align: center;
    text-transform: uppercase;
}
/* **************************   /Builder modal content   ******************************/