/* the popup window */

.cc-window, .cc-revoke {
  position: fixed;
  overflow: hidden;
  box-sizing: border-box;
  /* exclude padding when dealing with width */
  font-family: Helvetica, Calibri, Arial, sans-serif;
  font-size: 16px;
  /* by setting the base font here, we can size the rest of the popup using CSS `em` */
  line-height: 1.5em;
  display: flex;
  flex-wrap: nowrap;
  /* the following are random unjustified styles - just because - should probably be removed */
  z-index: 9999;
}

.cc-window {
  &.cc-static {
    position: static;
  }
  &.cc-floating {
    padding: 2em;
    max-width: 24em;
    /* 1em == 16px therefore 24em == 384px */
    flex-direction: column;
  }
  &.cc-banner {
    padding: 1em 1.8em;
    width: 100%;
    flex-direction: row;
  }
}

/* 2 basic types of window - floating / banner */

.cc-revoke {
  padding: .5em;
  &:hover {
    text-decoration: none;
  }
}

.cc-header {
  font-size: 18px;
  font-weight: 700;
}

/* clickable things */

.cc-btn, .cc-link, .cc-close, .cc-revoke {
  cursor: pointer;
}

.cc-link {
  color: #29b6f6 !important;
  opacity: .8;
  display: inline-block;
  padding: .2em;
  text-decoration: none;
  &:hover {
    opacity: 1;
  }
  &:active, &:visited {
    color: initial;
  }
}

.cc-btn {
  display: block;
  padding: .4em .8em;
  font-size: .9em;
  font-weight: 700;
  border-width: 2px;
  border-style: solid;
  text-align: center;
  white-space: nowrap;
}

.cc-banner .cc-btn:last-child {
  min-width: 125px;
}

.cc-highlight .cc-btn:first-child {
  background-color: transparent;
  border-color: transparent;
  &:hover, &:focus {
    background-color: transparent;
    text-decoration: underline;
  }
}

.cc-close {
  display: block;
  position: absolute;
  top: .5em;
  right: .5em;
  font-size: 1.6em;
  opacity: .9;
  /* seeing as this contains text and not an image, the element taller than it is wide (because it is text) */
  /*  - we want it to be a square, because it's acting as an icon */
  /*  - setting the line height normalises the height */
  line-height: .75;
  &:hover, &:focus {
    opacity: 1;
  }
}