@keyframes popup-wide {
  0% {
    width: 6%;
  }
  100% {
    width: 55%;
  }
}

@keyframes popup-wide-mobile {
  0% {
    width: 16%;
    height: 80px;
  }
  100% {
    width: 90%;
    height: 100%;
  }
}

@keyframes text-opacity {
  0% {
    opacity: 0;
    height: 80px;
  }
  100% {
    opacity: 1;
    height: fit-content;
  }
}

#sliding-popup p,
#sliding-popup h2,
#sliding-popup button {
  all: unset;
}

#sliding-popup {
  background: transparent !important;
  width: 100%;
}
#sliding-popup.sliding-popup-bottom,
#sliding-popup.sliding-popup-bottom .eu-cookie-withdraw-banner,
.eu-cookie-withdraw-tab {
  background: #f0f0f0;
}

.eu-cookie-compliance-banner {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  background: #f5f5f5;
  margin-bottom: 30px;
  margin-left: 30px;
  padding: 0;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
  max-width: 60%;
  height: fit-content;
  animation-name: popup-wide;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-delay: 1s;
  animation-fill-mode: backwards;
}

.eu-cookie-compliance-banner::before {
  content: "";
  background-image: url(../images/cookie-icon.svg);
  display: inline-block;
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  left: 0;
  transform: translate(35%, -50%);
  top: 50%;
}

.eu-cookie-compliance-banner::after {
  content: "";
  width: 10px;
  height: 10px;
  background: red;
  border-radius: 100px;
  position: absolute;
  top: 16px;
  left: 12px;
}

.eu-cookie-compliance-banner .popup-content {
  margin: 0 auto;
  max-width: 100%;
  display: flex;
  width: 100%;
  height: 100%;
  padding-left: 60px;
  box-sizing: border-box;
  justify-content: space-around;
  align-items: center;
  animation-name: text-opacity;
  animation-duration: 0.5s;
  animation-timing-function: ease-in;
  animation-delay: 1.7s;
  animation-fill-mode: backwards;
  overflow: hidden;
  padding-right: 5px;
}
/*.eu-cookie-compliance-banner .popup-content::before {
  font-family: "Font Awesome Pro";
  content: "\f05a";
  font-size: 40px;
  font-weight: 100;
  padding: 20px;
  top: 16px;
  position: relative;
}*/

.eu-cookie-compliance-banner .popup-content #popup-text {
  font-size: 13px !important;
  max-width: 90%;
  width: 90%;
  letter-spacing: normal;
}

.eu-cookie-compliance-banner .popup-content #popup-text h2 {
  font-size: 15px !important;
  padding: 0 !important;
  margin: 0 0 5px 0 !important;
  text-align: inherit;
  display: block;
}

.eu-cookie-compliance-banner .popup-content #popup-text h2::after {
  content: none;
}

.eu-cookie-compliance-banner .popup-content #popup-text p {
  font-size: 13px !important;
  font-weight: normal !important;
  display: inline;
  line-height: normal;
}

.eu-cookie-compliance-banner .popup-content #popup-buttons {
  text-align: end;
  margin: 1.2em 0 1em 0 !important;
}

.eu-cookie-compliance-banner .popup-content #popup-buttons button {
  margin: 0 !important;
  line-height: 1em;
}

.eu-cookie-compliance-banner .popup-content #popup-buttons .decline-button {
  box-shadow: none !important;
  text-decoration: underline;
  font-size: 15px;
}

.eu-cookie-compliance-banner .popup-content #popup-buttons .agree-button {
  background: transparent !important;
  color: #000;
  font-size: 17px;
  border-radius: 0;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.eu-cookie-compliance-banner .popup-content #popup-buttons .agree-button:hover {
  text-decoration: underline !important;
}

.eu-cookie-compliance-banner .popup-content #popup-buttons .agree-button:focus {
  text-decoration: underline !important;
}

.eu-cookie-compliance-banner .info {
  background-image: none;
}

@media only screen and (max-width: 600px) {
  .eu-cookie-compliance-banner .popup-content {
    display: flex !important;
  }
  .eu-cookie-compliance-banner {
    width: 90%;
    max-width: 90%;
    animation-name: popup-wide-mobile;
    margin: auto;
    margin-bottom: 20px;
  }
  .eu-cookie-compliance-banner .popup-content #popup-text {
    width: 70%;
    max-width: 70%;
  }
  .eu-cookie-compliance-banner .popup-content::before {
    display: none;
  }
}

#sliding-popup .eu-cookie-compliance-more-button {
  font-size: 13px !important;
  text-align: inherit;
  cursor: pointer;
  display: inline;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
  text-decoration: underline;
  background: none;
}

html[dir="rtl"] .eu-cookie-compliance-banner {
  margin-left: 0;
  margin-right: 30px;
}

html[dir="rtl"] .eu-cookie-compliance-banner .popup-content {
  padding-left: 10px;
  padding-right: 60px;
}

html[dir="rtl"] .eu-cookie-compliance-banner::before {
  left: auto;
  transform: translate(35%, -50%);
  top: 50%;
  right: 26px;
}

html[dir="rtl"] .eu-cookie-compliance-banner::after {
  top: 16px;
  right: 45px;
}
