
#cookie-banner {
    max-width: 100%;
    max-height: calc(100vh - 20px);
    
    position: fixed;
    bottom: 10px;
    right: 10px;
    padding: 15px 20px;
    
    background: white;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    transition: 1s;
    border: solid;
    border-color: var(--default-border-color);
    border-width: thin;
    border-radius: 12px;

    display: none;
}

#cookie-banner:hover {
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
}

#cookie-manage-consent {
    max-width: 100%;
    max-height: calc(100vh - 20px);
    
    position: fixed;
    bottom: -40px;
    right: 40px;
    padding: 15px 20px;
    
    background: white;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    border: solid;
    border-color: var(--default-border-color);
    border-width: thin;
    border-radius: 12px;

    display: none;

    cursor: pointer;
    
    font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
    font-size: 17px;

    transition: 0.2s;
}

#cookie-manage-consent:hover {
    bottom: -8px;
}

.cookie-header {
    align-items: center;
    grid-template-columns: 100px 1fr 100px;
    display: grid;
    margin-bottom: 16px;
}

.cookie-header div:nth-child(1) a img{
    max-height: 40px
}

.cookie-header div:nth-child(2) {
    justify-self: center;
    font-size: 15px;
    color: var(--text-color);
    font-weight: 500;
    font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
}

.cookie-header div:nth-child(3) {
    line-height: 20px;
    justify-self: end;
    font-size: 20px;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.cookie-body {
    max-height: 55vh;
    overflow-y: scroll;
}

.cookie-message {
    font-size: 12px;
    color: var(--text-color);
    line-height: 150%;
    margin-bottom: 16px;
    max-width: 100%;
}

.cookie-buttons {
    font-size: 12px;
    color: var(--text-color);
    line-height: 150%;
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
    padding-top: 16px;
}

.cookie-buttons button {
    height: 45px;
    width: 100%;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.cookie-button-blue {
      background-color: #1e73be;
      border: 1px solid #1e73be;
      color: white;
}

.cookie-button-gray {
      background-color: #f9f9f9;
      border: 1px solid #f2f2f2;
      color: var(--text-color);
}

.cookie-option-wrapper {
    background-color: rgba(239, 239, 239, 0.5);
    margin-bottom: 10px;
}

.reveal-cookie-label {
    display: flex;
    grid-gap: 10px;
    padding: 10px;
}

#cookie-options {
    display: none;
}

.cookie-label-name {
    flex-grow: 1;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.cookie-label-infotext {
    font-size: 12px;
    font-weight: 500;
    color: green;
}

.cookie-description {
    font-size: 12px;
    color: var(--text-color);
    line-height: 1.5;
    font-weight: 400;
    padding: 10px;
    display: none;
}

.reveal-cookie-description-button:checked ~ .cookie-description {
    display: block;
}

.cookie-label-arrow {
    transition: 0.2s;
}

.reveal-cookie-description-button:checked ~ .reveal-cookie-label .cookie-label-arrow{
    rotate: 180deg;
}

.cookie-label-switch {
    position: relative;
}

.cookie-switch-label {
    position: absolute;
    bottom: 16px;
    right: 28px;
    cursor: pointer;
}

.cookie-switch-label:before,
.cookie-switch-label:after {
    box-sizing: border-box;
    position: absolute;
    border-radius: 10px;
    transition: background-color 0.3s, left 0.3s;
}

.cookie-switch-label:before {
    display: block;
    content: "";
    color: #fff;
    box-sizing: border-box;
    font-family: 'FontAwesome', sans-serif;
    padding-left: 23px;
    font-size: 12px;
    line-height: 20px;
    background-color: #f56e28;
    left: 0px;
    top: -7px;
    height: 15px;
    width: 28px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}
.cookie-switch-label:after {
    display: block;
    content: "";
    letter-spacing: 20px;
    background: white;
    left: 4px;
    top: -5px;
    height: 11px;
    width: 11px;
}

.switch-cookie-setting-button:checked ~ .cookie-switch-label::before {
    background-color: #1e73be;
}

.switch-cookie-setting-button:checked ~ .cookie-switch-label::after {
    left: 14px;
}

@media (max-width: 768px) {
  #cookie-banner {
      left: initial;
      right: initial;
      bottom: 0;
      width: calc(100% - 40px);
  }

  .cookie-buttons {
      flex-wrap: wrap;
  }
}

@media only screen and (min-width: 768px) {
    #cookie-banner {
	min-width: 526px;
    }
    
    .cookie-body {
	width: 528px;
    }
}
