#lei-cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  display: none;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 10px;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

body[data-domain="bg"] {
  #lei-cookie-notice {
    font-family: Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  }
}

.lei-cookie-notice-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

@media (max-width: 600px) {
  .lei-cookie-notice-content {
    text-align: center;
    flex-direction: column;
  }
}

#lei-cookie-notice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

#lei-cookie-notice p a {
  text-decoration: underline;
}

#lei-cookie-notice p a:hover {
  color: #fefefe;
}

.lei-cookie-notice-bottons {
  display: flex;
  align-items: center;
  gap: 10px;
}

#customize-cookie,
#accept-cookie {
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 5px;
  line-height: 1;
  transition: background-color 0.1s ease-out;
  cursor: pointer;
}

@media (max-width: 600px) {
  #customize-cookie,
  #accept-cookie {
    padding: 8px 15px;
  }
}

#customize-cookie {
  white-space: nowrap;
  border: 1px solid white;
  color: white;
  line-height: 1;
  text-decoration: none;
}

#customize-cookie:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

#accept-cookie {
  background-color: #15803d;
  border: 1px solid #15803d;
  color: white;
}

#accept-cookie:hover {
  background-color: #27a054;
}

/*
////////////////////////
*/

.cookie-popup {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(107, 114, 128, 0.75);
  z-index: 99999;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  overflow-y: auto; /* Allow scrolling for the entire popup */
}

body[data-domain="bg"] {
  .cookie-popup {
    font-family: Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  }
}

.cookie-popup-content {
  position: relative;
  background-color: #fff;
  width: 50%;
  max-width: 600px;
  margin: 5% auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  max-height: 80vh; /* Limit the max height of the content */
  overflow-y: auto; /* Enable scrolling within the content */
}

.cookie-popup-top {
  padding: 20px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .cookie-popup-content {
    margin-top: 30%;
    width: 90%;
    max-height: 80vh;
  }
}

.cookie-popup-content-close {
  position: absolute;
  top: 12px;
  right: 12px;
  height: 24px;
  width: 24px;
  color: #484848;
  outline: none;
  cursor: pointer;
  transition: color 0.1s ease-out;
}

.cookie-popup-content-close:hover {
  color: #060606;
}

.cookie-popup-content a, .cookie-popup-content a:visited {
  text-decoration: underline;
  color: #666;
}

.cookie-popup-content a:hover, .cookie-popup-content a:visited:hover {
  color: #333;
}

.cookie-popup h2 {
  margin-bottom: 20px;
  margin-top: 0;
  font-size: 21px;
  font-weight: 700;
  color: #333;
}

.cookie-popup p {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.cookie-options label {
  cursor: pointer;
  display: flex;
  align-items: center;
  width: max-content;
  margin: 10px 0;
  color: #4e4e4e;
  font-size: 14px;
}

.cookie-options label:last-child {
  margin-bottom: 0;
}

.cookie-options input[type="checkbox"] {
  height: 14px;
  width: 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin-right: 10px;
  outline: none;
  appearance: none;
  color: #ffffff;
  transition: 0.1s ease-out;
}

.cookie-options input[type="checkbox"]:disabled {
  opacity: 0.4;
  background-color: #eee;
}

.cookie-options label:hover > input[type="checkbox"] {
  border-color: #000000;
}

.cookie-options input[type="checkbox"]:checked {
  border-color: #7b7b7b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2.5' stroke='%237b7b7b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m4.5 12.75 6 6 9-13.5' /%3E%3C/svg%3E%0A");
  background-size: cover;
}

.cookie-options input[type="checkbox"]:focus {
  box-shadow: none;
}

.cookie-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background-color: #f2f2f2;
}

#save-cookie-settings {
  padding: 10px 20px;
  font-size: 12px;
  line-height: 1;
  background-color: #15803d;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.1s ease-out;
}

#save-cookie-settings:hover {
  background-color: #27a054;
}

#decline-all-cookies {
  border: none;
  background: none;
  color: #666;
  text-decoration: underline;
  padding: 0;
  font-size: 12px;
  display: block;
  text-align: right;
  cursor: pointer;
}

#decline-all-cookies:hover {
  color: #333;
}