.cc-modal__container {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.cc-modal__wrapper {
  position: absolute;
  background: white;
  padding: 0 1em;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 940px;
  max-height: 100%;
  overflow-y: auto;
  box-shadow: 0 0 5px #34495e;
  border-radius: 2px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 48em) {
  .cc-modal__wrapper {
    top: 10%;
    max-height: 80%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
  }
}

.cc-modal__wrapper h2 {
  margin-top: 0;
}

.cc-modal__wrapper p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 1em;
}

.cc-modal__wrapper:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.5;
  z-index: -1;
}

@media (min-width: 48em) {
  .cc-modal__wrapper:after {
    background-size: 228px;
  }
}

.cc-modal__content-header {
	border-bottom: 1px solid #ddd;
    padding: 1em 0;
    margin-bottom: 1em;
    overflow: hidden;
    text-align: center
}

.cc-modal__content-header img {
	display: block;
    margin: 0 auto 1em;
}

.cc-modal__content-header h2 {
    margin-bottom: 0;
    font-size: 1.5em;
    font-weight: 400
}

@media (min-width: 35.5em) {
    .cc-modal__content-header h2 {
        float: left;
    }

    .cc-modal__content-header img {
        float: right;
        margin: 0;
    }
}

.cc-modal__content-footer {
	padding: 0 0 1em;
    overflow: hidden;
}

.cc-modal__content-footer a {
    display: inline-block;
    padding: .5em 0;
    width: 100%;
    text-align: center;
}

.cc-modal__content-footer .submit-button {
    width: 100%;
}

@media (min-width: 35.5em) {
	.cc-modal__content-footer .submit-button {
	    width: 220px;
	}
    .cc-modal__content-footer--secondary {
        display: block;
        float: right;
    }

    .cc-modal__content-footer--primary {
        display: block;
        float: left;
    }
}