.chaperone {
    position: fixed;
    z-index: 9999;
    bottom:-200px;
    left:0;
    right: 0;
    height: 200px;
    background-color: rgba(250,250,250,.98);
    box-shadow: 0 -2px 4px rgba(0,0,0,.4);
    color: #333;
    transition: all .3s;
}

.chaperone-active.message .throbber {
  display: none;
}

.chaperone-active.message .chaperone {
  background: #EDD155;
}

.chaperone-active.message .chaperone  .chaperone__header{
  display: none;
}

.chaperone-active.message .chaperone  .chaperone__body {
  margin-top: 40px;
}

.chaperone-active.message .chaperone  .chaperone__controls{
  display: none;
}

.chaperone-active {
    margin-bottom: 200px;
}

.chaperone.active  {
    bottom:0;
}

.chaperone .chaperone__header,
.chaperone .chaperone__body,
.chaperone .chaperone__controls {
    padding: 0 15px;
}

.chaperone .chaperone__header .chaperone__title {
    position: absolute;
    padding: 12px 0;
    color: #61A159;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.chaperone .chaperone__header .chaperone__progress {
    color: #ADB4BB;
    padding: 12px 0;
    text-align: right;
}

.chaperone .chaperone__body {
    font-size: 16px;
    font-weight: 200;
}

.chaperone .chaperone__controls {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: right;
    padding: 0;
    background: rgba(255,255,255,.9);
    border-top: 1px solid #ddd;
}

.chaperone .chaperone__controls a {
    cursor: pointer;
}

.chaperone .close-chaperone {
  display: block;
  position: absolute;
  width: 24px;
  height:24px;
  padding: 10px 11px;
  text-align: center;
}

.chaperone .close{
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  overflow: hidden;
}

.chaperone .close:hover::before,
.chaperone .close:hover::after {
    background: red;
}

.chaperone .close::before,
.chaperone .close::after {
  content: '';
  position: absolute;
  height: 2px;
  width: 100%;
  top: 50%;
  left: 0;
  margin-top: -1px;
  background: #999;
  height: 2px;
  margin-top: -2px;
}

.chaperone .close::before {
  transform: rotate(45deg);
}
.chaperone .close::after {
  transform: rotate(-45deg);
}

.chaperone .chaperone__controls .chaperone-btn {
    box-sizing: border-box;
    width: 100px;
    margin:0;
    border-radius: 0;
    position: relative;
    display: inline-block;
    padding: 12px 15px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-align: center;
    background-color: transparent;
    border: none;
    text-transform: uppercase;
}

.chaperone .chaperone__controls .chaperone-btn.hide {
    display: none;
}

.chaperone .chaperone__controls .chaperone-btn:first-of-type {
    border-right:2px solid #222;
}


.throbber {
    display: block;
    position: absolute;
    z-index: 9999;
    margin-left: -11px;
    margin-top: -11px;
    cursor: help;
}

.throbber .dot {
    display: block;
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 32px;
    background: rgba( 255,255,255,.6 );
    border: 1px solid #aaa;
}

.throbber.active .dot {
    background: rgba(97, 161, 89, 0.6);
    border-color: #61A159;
}

.throbber .dot::after{
    content:'';
    display: block;
    position: absolute;
    z-index: -1;
    width: 18px;
    height: 18px;
    margin: 1px 0 0 1px;
    border-radius: 32px;
    border: 1px solid #999;
    -webkit-animation: throb 2s infinite;
    -moz-animation: throb 2s infinite;
    -o-animation: throb 2s infinite;
    animation: throb 2s infinite;
}

.throbber.active .dot:after {
    background: rgba(97, 161, 89, 0.3);
    border-color: #61A159;
    animation: throb-active 2s infinite;
}

@-webkit-keyframes throb {
  0% {
    -webkit-transform: scale(1);
     opacity: 1;
  }
  100% {
      -webkit-transform:scale(2.5);
      opacity: 0;
  }
}

@-moz-keyframes throb {
  0% {
    -webkit-transform: scale(1);
     opacity: 1;
  }
  100% {
      -webkit-transform:scale(2.5);
      opacity: 0;
  }
}

@-o-keyframes throb {
  0% {
    -webkit-transform: scale(1);
     opacity: 1;
  }
  100% {
      -webkit-transform:scale(2.5);
      opacity: 0;
  }
}

@keyframes throb {
  0% {
    -webkit-transform: scale(1);
     opacity: 1;
  }
  100% {
      -webkit-transform:scale(2.5);
      opacity: 0;
  }
}

@-webkit-keyframes throb-active {
  0% {
    -webkit-transform: scale(1);
     opacity: 1;
  }
  100% {
      -webkit-transform:scale(4.5);
      opacity: 0;
  }
}

@-moz-keyframes throb-active {
  0% {
    -webkit-transform: scale(1);
     opacity: 1;
  }
  100% {
      -webkit-transform:scale(4.5);
      opacity: 0;
  }
}

@-o-keyframes throb-active {
  0% {
    -webkit-transform: scale(1);
     opacity: 1;
  }
  100% {
      -webkit-transform:scale(4.5);
      opacity: 0;
  }
}

@keyframes throb-active {
  0% {
    -webkit-transform: scale(1);
     opacity: 1;
  }
  100% {
      -webkit-transform:scale(4.5);
      opacity: 0;
  }
}

@media (min-width: 640px) {
    .chaperone .chaperone__header,
    .chaperone .chaperone__body,
    .chaperone .chaperone__controls__wrapper{
        width: 60%;
        max-width: 560px;
        margin: 0 auto;
        padding: 0;
    }
    .chaperone .chaperone__controls {
        text-align: right;
    }

    .chaperone .chaperone__controls__wrapper{ 
        position: relative;
    }

    .chaperone .chaperone__controls .close-chaperone {
        position: absolute;
        left: -15px;
        top: -2px;
    }

    .chaperone .chaperone__controls .chaperone-btn{
        right: -30px;
    }
}
