
.c-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  overflow-y: scroll;
  opacity: 0;
  display: none;
  animation-duration: 0.5s;
  animation-name: fade-out-100;
  -webkit-animation-duration: 0.5s;
  -webkit-animation-name: fade-out-100;
  -webkit-overflow-scrolling: touch;
}

.c-modal__panel {
  position: relative;
  width: 94%;
  margin: 40px auto;
  background: #fff;
  -webkit-box-shadow: 0 0 8px rgba(10, 2, 4, 0.5);
  box-shadow: 0 0 8px rgba(10, 2, 4, 0.5);
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  border-radius: 8px;
  z-index: 2;
}

.c-modal.is-fadein, .c-modal[aria-activedescendant="true"] {
  display: block;
  opacity: 1;
  animation-duration: 0.5s;
  animation-name: fade-in-100;
  -webkit-animation-duration: 0.5s;
  -webkit-animation-name: fade-in-100;
}

.c-modal.is-fadeout {
  opacity: 0;
  animation-duration: 0.5s;
  animation-name: fade-out-100;
  -webkit-animation-duration: 0.5s;
  -webkit-animation-name: fade-out-100;
}

.c-modal__overlay {
  display: block;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.c-modal__header {
  /*border-bottom: 1px solid #e5e5e5;*/
  padding: 16px 16px  0 16px;
  font-weight: bold;
  font-size: 16px;
  text-align: right;
  font-size: 2em;
}
.c-modal__header span{
  display: inline-block;
  cursor: pointer;
}
.c-modal__content {
  position: relative;
  padding: 16px;
  min-height: 300px;
}

.c-modal__bottom {
  border-top: 1px solid #e5e5e5;
  padding: 16px;
  text-align: right;
}

.c-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 20px;
}
.c-modal__close--circle {
  top: -38px;
  font-size: 16px;
}

.c-modal--full {
  width: 100%;
  left: 0;
}

@media (min-width: 768px) {
  .c-modal__panel {
    width: 80%;
  }
}
