/* ==========================================================================
  Global - Variables
========================================================================== */

/* Breakpoints -> No Breakpoint SASS to save some space, deal with it
----------------------------------------------- */

$xs: 500px;

/* Dimensions
----------------------------------------------- */

$plugin-height: 75px !default; // only affects to animation, doesn't have to be correct!

/* ==========================================================================
  Global - Animation
========================================================================== */

@keyframes appearUp {
  0% {
    opacity: 0;
    transform: translateY($plugin-height);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes disappearDown {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY($plugin-height);
  }
}

.cc-container {
  animation-duration: .8s;
  animation-timing-function: ease-out;
  animation-name: appearUp;
}

.dismissed .cc-container {
  animation-duration: .4s;
  animation-timing-function: ease-out;
  animation-name: disappearDown;
  opacity: 0;
  transform: translateY($plugin-height);
  pointer-events: none;
}


/* ==========================================================================
  Global - Base
========================================================================== */
#shadow-indicator {
  display: none;
}
.cc-padding {
  padding-bottom: 4.375rem;
}
.cc-banner-wrapper {
  z-index: 10;
  position: relative;
}

.cc-container {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  padding: .75rem 0; // 12px 0
  box-shadow: 0 -4px 25px 0 rgba(0,0,0,.1); // make it stand out from background
}

.cc-btn-wrap {
  flex-shrink: 0;
}

.cc-btn {
  transition: all .2s;
  text-align: center;
  font-size: 87.5%; // 14px
  text-decoration: none;
  display: inline-block;
}

.cc-message {
  transition: all .2s;
  line-height: 1.25;
  font-size: 87.5%; // 14px
  display:  block;
  margin: 0;
  padding: 0 1rem 0 0;
}

@media screen and (min-width: $xs) {
  .cc-message {
    padding: 0 1.75rem 0 0;
  }
}

.cc-container-inner {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-more-info {
  display: inline-block; // prevent line breaking
}

@media screen and (min-width: $xs) {
  .cc-btn,
  .cc-message {
    font-size: 100%; // 16px
  }
}

@media print {
  .cc-banner-wrapper,
  .cc-container {
    display: none;
  }
}
