#modalOverlay, .popupClassSmartship {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  height: 100%;
  width: 100%;
}

.modalPopup {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 50%;
  padding: 30px 0 10px;
  -webkit-box-shadow: 0 2px 10px 3px rgba(0, 0, 0, .2);
  -moz-box-shadow: 0 2px 10px 3px rgba(0, 0, 0, .2);
  box-shadow: 0 2px 10px 3px rgba(0, 0, 0, .2);
}

.modalContent {
  padding: 0 2em;
  font-size: large;
}

.headerBar {
  width: 100%;
  margin: 0;
  text-align: center;
  border-bottom: 2px solid #de3818;
}

.headerBar img {
  margin: 1em .7em;
}

.modalContent h1 {
  margin-bottom: .2em;
  font-size: 26px;
  text-transform: capitalize;
}

.modalContent p {
  margin: .75em 0 1.5em;
}

.addToSmartsipButton {
  background-color: #ffe088;
  font-size: 12px;
  text-transform: uppercase;
  border-radius: 0.33em;
  margin-top: 11px;
  padding: 6px 16px;
}

.page-template-template-products-shop .addToSmartsipButton {
  width: 97%;
  margin: 10px 5px 0px 5px;
}

.buttonStyle {
  border: transparent;
  border-radius: 0;
  background: #252525;
  color: #eee !important;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  padding: 6px 25px;
  text-decoration: none;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
}

.buttonStyle:hover,
.buttonStyle:focus {
  background: #6d6d6d;
  color: #fff;
}

.smartshipAgreeButton {
  background: #08b115;
  color: #fff;
  text-transform: uppercase;
  font-size: large;
}
.smartshipAgreeButton:hover {
  background: #08b115;
}

.returnToProfile {
  text-align: center;
  margin: 3em;
}

.returnToProfile a,
.returnToProfile a:visited {
  color: #ddd;
}

.returnToProfile a:hover {
  color: #fff;
}

.button-grouped {
  float: right;
  margin-bottom: 5px;
}

a#add-smartship {
  background: #75a23f;
  color: #fff;
  text-transform: uppercase;
  font-size: 14px;
  border-radius: 0px;
  padding: 9px 25px 7px;
  display: inline-block;
  line-height: 1.4;
  margin: 0 auto!important;
}

a#add-smartship:hover,
a#add-smartship:focus{
  background: #8bc349;
}

button.buttonStyle {
  margin-left: 10px;
}


/* SMARTSHIP BUTTON */
.by-button-wrap {
	-webkit-display: flex;
	-moz-display: flex;
	-ms-display: flex;
	-o-display: flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	-moz-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	-o-flex-wrap: wrap;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction: column;
}

.by-button-wrap a.button, .by-button-wrap .button.smartship-btn  {
  margin: 10px 5px 0px !important;
}

.by-button-wrap .button.smartship-btn{font-size: 12px;}

@media screen and (max-width: 767px) {
  .headerBar img {
    width: 50%;
  }

  .modalPopup {
    position: absolute;
    top: 50%;
    width: 90%;
    max-height: 80%;
    overflow-y: scroll;
  }
}

@media screen and (max-width: 400px) {
  .modalPopup{
    padding: 10px 0px;
  }

  .button-grouped{
    float: none;
    text-align: center;
  }

  a#add-smartship{
    font-size: 13px;
    padding: 9px 20px 7px;
  }

  .buttonStyle{
    font-size: 13px;
    padding: 6px 20px;
  }
}
