.cookie-monster {
  --primary: #5E94BF;
  --primaryLight: #7BA8CC;
  --white: #FFFFFF;
  --black: #1D1D1B;
  --warmBlack: #454540;
  --genericLight: #CCCCCC;
  --lightGray: #E5E5E5;
  --success: #91b496;
  --spaceXSmall: 8px;
  --spaceSmall: 16px;
  --spaceLarge: 32px;
  --defaultFontSize: 16px;
  --defaultFontSizeSmall: 14px;
  --buttonFontSize: 16px;
  --buttonWidth: 165px;
  --lighterGray: #F5F5F5;
}

.cookie-monster {
  background: var(--white);
  bottom: 2rem;
  -webkit-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, .25);
  -moz-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, .25);
  box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, .25);
  max-height: calc(100vh - 4rem);
  overflow: auto;
  padding: 0 32px 32px 32px;
  position: fixed;
  right: 2rem;
  transition: opacity ease .3s;
  width: 460px;
  z-index: 10000;
  direction: ltr;
  color: var(--black);
  font-family: 'labLight', sans-serif;
  word-wrap: break-word;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .cookie-monster {
    --defaultFontSize: 14px;
    --defaultFontSizeSmall: 12px;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 100vh;
    padding: 0 1rem 2rem 1rem;
    }
}

.cookie-monster .cookie-title {
  font-size: 28px;
  margin: 0 0 var(--spaceXSmall) 0;
  padding-top: 32px;
  font-weight: 300;
  line-height: 1.4;
}

.cookie-monster p {
  font-size: var(--defaultFontSize);
  font-weight: 300;
  line-height: 1.4;
  font-weight: 300;
  text-align: left;
  display: block;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}

.cookie-monster a {
  color: var(--primary);
  text-decoration: underline;
  transition: color ease 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.cookie-monster a:not(.button):hover {
  color: var(--primaryLight);
}  

.cookie-description {
  color: var(--generic);
  font-family: inherit;
  font-size: 20px;
  font-weight: 300;
}

.cookie-description p {
  margin: 0 0 var(--spaceLarge) 0;
}

.cookie-settings {
  display: none;
}

.cookie-settings ul {
  padding: 0;
  margin: 0 0 var(--spaceSmall) 0;
  list-style: none;
  box-sizing: border-box;
  display: block;
  margin-block-start: 1em;
  margin-block-end: 1em;
}

.cookie-settings li {
  margin-bottom: var(--spaceXSmall);
  display: list-item;
  text-align: match-parent;
  padding-left: 0;
}

.cookie-settings strong {
  display: block;
  position: relative;
  color: var(--warmBlack);
  font-size: var(--defaultFontSize);
  line-height: 1.4;
  font-family: 'labBold', sans-serif;
  font-weight: normal;
}

.cookie-on strong::after {
  border: solid var(--success);
  border-width: 0px 2px 2px 0;
  content: "";
  display: inline-block;
  height: 0.45em;
  margin: 0 0 0 1em;
  position: relative;
  top: -.35em;
  transform: scale(2) rotate(45deg);
  transition: transform .2s ease-out;
  width: 0.23em;
}

.cookie-off strong::after {
  background: linear-gradient(to bottom, transparent 40%, #d00 40%, #d00 60%, transparent 60%),
              linear-gradient(to right, transparent 40%, #d00 40%, #d00 60%, transparent 60%);
  content: "";
  display: inline-block;
  height: 16px;
  margin: -0.15em 0 0 .5em;
  position: relative;
  top: .15em;
  transform: rotate(45deg);
  transition: transform .2s ease-out;
  width: 16px;
}

.cookie-control button {
  background: none;
  border-color: var(--primary);
  border-style: dotted;
  border-width: 0 0 2px 0;
  color: var(--primary);
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-size: var(--defaultFontSize);
  font-weight: 400;
  padding: 0;
}

.cookie-control button:focus {
  border-bottom-color: var(--primaryLight);
  color: var(--primaryLight);
  outline: none;
}

.cookie-readonly strong::after {
  border-color: var(--lightGray);
}

.cookie-readonly button {
  border: 0 0 2px 0 dotted var(--genericLight);
  color: var(--genericLight);
  cursor: default;
}

.cookie-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spaceXSmall);
  justify-content: flex-start;
}

.cookie-monster .button {
  border: 2px solid var(--primary);
  display: inline-block;
  font-family: 'labRegular', sans-serif;
  font-size: var(--buttonFontSize);
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
  height: 42px;
  line-height: 42px;
  min-width: calc(var(--buttonWidth) * .5);
  cursor: pointer;
  border-radius: 2px;
  padding: 0 var(--spaceSmall);
  transition: all ease 0.2s;
  white-space: nowrap;
}

.cookie-monster .button.primary {
  border: 2px solid var(--primary);
  background-color: var(--primary);
  color: var(--white);
}

.cookie-monster .button.primary:hover {
  border-color: var(--primaryLight);
  background-color: var(--primaryLight);
}

.cookie-monster .button.secondary {
  border: 2px solid var(--primary);
  background-color: var(--white);
  color: var(--primary);  
}

.cookie-monster .button.secondary:hover {
  background-color: var(--lighterGray);
  border-color: var(--primaryLight);
}

.cookie-monster .button.transparent {
  background-color: transparent;
  color: var(--primary);
  font-size: 14px;
  padding-left: 0;
  padding-right: 0;
}

.cookie-info {
  color: var(--genericLight);
  font-size: var(--defaultFontSizeSmall);
  font-weight: 300;
  display: inline-block;
  line-height: 1.4;
  padding: 0 var(--spaceSmall);
}

.cookie-monster--show-settings .cookie-settings {
  display: block;
}

.cookie-monster--show-settings .cookie-description {
  display: none;
}

.open-cookie-monster button {
  background: none;
  border: none;
  color: var(--lightGray);
  cursor: pointer;
  line-height: 1.4;
  font-family: inherit;
  font-size: var(--defaultFontSize);
  font-weight: 300;
  padding: 0;
}

.open-cookie-monster button:focus,
.open-cookie-monster button:hover {
  color: var(--white);
  outline: none;
}