:root {
  /* Default = dark theme (site default) */
  --cookie-accent: #4ECDC4;
  --cookie-accent-2: #C7F464;
  --cookie-accent-danger: #FF6B6B;
  --cookie-text: #ffffff;
  --cookie-text-muted: rgba(255, 255, 255, 0.75);
  --cookie-surface: #0A0A0F;
  --cookie-surface-2: rgba(255, 255, 255, 0.06);
  --cookie-border: rgba(255, 255, 255, 0.12);
  --cookie-overlay: rgba(0, 0, 0, 0.6);
  --cookie-shadow: 0px 5px 60px -3px rgba(0, 0, 0, 0.55);
}

body.light-mode {
  --cookie-text: #0A0A0F;
  --cookie-text-muted: rgba(10, 10, 15, 0.70);
  --cookie-surface: #F9FFF8;
  --cookie-surface-2: rgba(10, 10, 15, 0.06);
  --cookie-border: rgba(10, 10, 15, 0.12);
  --cookie-overlay: rgba(10, 10, 15, 0.45);
  --cookie-shadow: 0px 5px 60px -3px rgba(10, 10, 15, 0.25);
}

.cookie-popup-container {
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
  width: 100%;
  height: 100%;
  background: var(--cookie-overlay);
  position: fixed;
  left: 0px;
  top: 0px;
  z-index: 9999999;
  padding: 20px;
}

.cookie-popup-container .cookie-popup {
  max-width: 750px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0px;
  box-shadow: var(--cookie-shadow);
  overflow: visible;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  border-radius: 16px;
  color: var(--cookie-text-muted);
  overflow: hidden;
  background: var(--cookie-surface);
}

.cookie-category{
  padding: 10px;
  border: 1px solid var(--cookie-border);
  margin: 0 0 20px;
}



.cookie-popup-container .cookie-popup .cookie-popup-content-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  position: static;
  top: 0;
  left: 0;
  width: 100%;
  height: 0px;
  overflow: hidden;
  overflow-y: scroll;
  color: var(--cookie-text);
  transition: all 0.1s;
  border-radius: 12px 12px 0 0;
  background: var(--cookie-surface);

}
.cookie-popup-container .cookie-popup .cookie-popup-content-container * {
  color: var(--cookie-text);
}

.cookie-popup-container .cookie-popup .cookie-popup-content-container.open {
  height: 300px !important;
}

.cookie-popup .cookie-panel ul {
  list-style-type: none;
  display: flex;
  padding-left: 0 !important;
  margin: 0 !important;

}

.cookie-cookies-display{
  padding: 20px;
}

.cookie-popup .cookie-panel ul li {
  width: 100%;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  line-height: 18px;
  padding-bottom: 15px;
  padding-top: 15px;
  /*    background-color: rgb(0, 0, 0);*/
  margin-bottom: 0;
}

.cookie-popup .cookie-panel ul li.active {
  color: var(--cookie-text);
  border-bottom: 1px solid var(--cookie-border);
}




.cookie-cookies-display .cookie-category .cookie-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-cookies-display .cookie-category .cookie-toggle-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.cookie-cookies-display .cookie-category .cookie-toggle-slider {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--cookie-surface);
  border: 1px solid var(--cookie-border);
  transition: 200ms;
  position: relative;
}

.cookie-cookies-display .cookie-category .cookie-toggle-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--cookie-text);
  transition: 200ms;
}

.cookie-cookies-display .cookie-category .cookie-toggle-input:checked + .cookie-toggle-slider {
  background: var(--cookie-accent);
  border-color: var(--cookie-accent);
}

.cookie-cookies-display .cookie-category .cookie-toggle-input:checked + .cookie-toggle-slider::before {
  left: 19px;
  background: var(--cookie-surface);
}

.cookie-cookies-display .cookie-category .cookie-toggle-input:disabled {
  cursor: not-allowed;
}

.cookie-cookies-display .cookie-category .cookie-toggle-input:disabled + .cookie-toggle-slider {
  opacity: 0.65;
}

.cookie-cookies-display .cookie-category .cookie-toggle-input:focus-visible + .cookie-toggle-slider {
  outline: 2px solid var(--cookie-accent);
  outline-offset: 2px;
}
.cookie-cookies-display .cookie-category .data .data-resume .cat-main,
.cookie-cookies-display .cookie-category .data .data-resume .cat-main > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-cookies-display .cookie-category .data .data-resume .cat-main {
  margin-bottom: 10px;
}

.data-resume .cookie-cat-name {
  font-weight: bold;
  cursor: pointer;
  transition: 300ms;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
}

.cookie-cookies-display .cookie-category .data .data-resume .cat-describe {
  font-size: 14px;
  line-height: 18px;
}

.cookie-decide {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--cookie-surface);
  display: flex;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  z-index: 1;
}


.cookie-decide .pre-cookie-box {
  flex-grow: 1;
  padding: 40px;
  color: var(--cookie-text);
}
.cookie-decide .pre-cookie-box * {
  color: var(--cookie-text);
  -webkit-text-fill-color: var(--cookie-text);
}

.cookie-decide .pre-cookie-box a{
  color: var(--cookie-accent);
}
.cookie-decide .imgBox{
  position: absolute;
  width: 300px;
  margin: 0 auto 20px;
  top: 0;
  right: 0;
  z-index: -1;
  opacity: 0.2;
}

.cookie-decide .btnList {
  list-style-type: none;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 !important;
  flex-grow: 1;
  padding: 20px 40px;
  background: var(--cookie-surface-2);
}

.cookie-decide .btnList li {
  width: auto;
  text-align: center;
  cursor: pointer;
  transition: 300ms;
  color: var(--cookie-text);
  background: transparent;
  border: 2px solid #fff;
  width: 50%;
  font-weight: 400;
  letter-spacing: 0;
  overflow: visible;

}


.cookie-decide .btnList li.allow-selection {
  display: none;
}

@media (max-width: 768px) {
  .cookie-decide .pre-cookie-box{
    font-size: 14px;
    line-height: 20px;
  }

  .cookie-popup-container .cookie-popup {
    bottom: 0;
    top: auto;
  }
  .cookie-decide {
    bottom: 0;
  }
  .cookie-decide .btnList li {
    font-size: 14px;
    width: 100%;
  }

  .btnList{
    flex-direction: column;
  }
}
