:root{
    --consent-color: #65A779;
  }
  
  #consent-popup {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 32px 68px rgba(0, 0, 0, .3);
    box-sizing: border-box;
    color: #141414;
    font-family: sans-serif;
    font-size: 15px;
    height: auto;
    left: 50%;
    letter-spacing: .1px;
    line-height: 24px;
    max-height: calc(100% - 16px);
    overflow: hidden;
    position: fixed;
    text-align: initial;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all .5s ease;
    width: calc(100% - 16px);
    z-index: 2147483631;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    vertical-align: baseline;
  }
  
  #consent-popup .tab-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
  }
  
  #consent-popup .cc-tab-link {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    cursor: pointer;
    padding: 10px 16px;
    transition: background-color 0.3s;
    font-weight: bold;
    color: #333;
    flex: 1;
    text-align: center;
    width: 40%;
  }
  
  #consent-popup .cc-tab-link.active, 
  #consent-popup .cc-tab-link:hover {
    background-color: #fff;
    box-shadow: none; 
    border: 1px solid #fff; 
    outline: none; 
  }
  
  #consent-popup .cc-tab-content, 
  #consent-popup .cc-grid-container, 
  #consent-popup .cc-button-container {
    width: 100%;
    margin: 0 auto;
  }
  
  #consent-popup .cc-tab-content {
    display: none; 
    padding: 20px;
    border-top: none;
    background-color: #fff;
    font-size: 14px;
    width: 95%;
  }
  
  #consent-popup .cc-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid #ccc;
    padding: 0;
    margin: 20px 0;
  }
  
  #consent-popup .slider-box {
    text-align: center;
    border-right: 1px solid #ccc; 
    padding-top: 5px;
  }
  
  #consent-popup .slider-text {
    display: block;
    margin-top: 0.5rem; 
  }
  
  #consent-popup .slider.disabled {
    opacity: 0.6; 
    cursor: not-allowed; 
  }
  
  #consent-popup .slider-text.disabled {
    color: #888; 
  }
  
  #consent-popup h2 {
      color: var(--consent-color); 
      margin-bottom: 15px;
      margin-top: 5px;
      text-align: center;
    }
  
  #consent-popup p {
    color: #333;
    line-height: 1.5; 
    font-size: 14px; 
  }
  
  #small-consent-box {
    position: fixed; 
    bottom: 10px; 
    left: 10px; 
    padding: 10px; 
    z-index: 1000; 
    cursor: pointer;
  }
  
  #consent-popup .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    color: var(--consent-color); 
    font-size: 24px;
    transition: transform 0.3s ease; 
    }
    
  #consent-popup .material-symbols-outlined:hover {
    transform: scale(1.2);
  }
  
  #consent-popup .cc-button-container {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    margin: 0;
  }
  
  #consent-popup .cc-button[type=button], 
  #consent-popup .cc-button[type=submit] {
      background-color: #f38500; 
  }
  
  #consent-popup button:disabled,
  #consent-popup [type="button"]:disabled,
  #consent-popup [type="submit"]:disabled {
      background-color: #ccc;
      color: #666;
      cursor: not-allowed;
  }
  
  #consent-popup .cc-button {
    flex: 1;
    padding: 10px 15px;
    margin: 0 10px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  #consent-popup .cc-button:first-child {
    margin-left: 0;
  }
  
  #consent-popup .cc-button:last-child {
    margin-right: 0;
  }
  
  #consent-popup .cc-button-necessary {
    background-color: #ffffff; 
    color: #000000; 
    border: 1px solid transparent; 
  }
  
  #consent-popup .cc-button-selected {
    background-color: #ffffff; 
    color: #000000; 
    border: 1px solid transparent; 
  }
  
  #consent-popup .cc-button-all {
    background-color: #129456; 
    color: #ffffff;
    border: none; 
  }
  
  #consent-popup .cc-button-all:hover {
    background-color: #234923; 
    color: #ffffff;
  }
  
  #consent-popup .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 0 10%;
  }
  
  #consent-popup .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  #consent-popup .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  #consent-popup .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  #cookieList {
    max-height: 400px;
    max-width: 100%; 
    overflow-y: auto;
    overflow-x: hidden; 
    margin: 0 auto; 
    padding: 10px;
    border: 2px solid #ccc;
    box-sizing: border-box;
    display: block;
  }
  
  #cookieList table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
  }
  
  #cookieList th, #cookieList td {
    word-wrap: break-word;
    overflow-wrap: break-word; 
    max-width: 0;
    white-space: normal; 
  }
  
  #consent-popup .switch:has(input:checked) .slider {
    background-color: #f38500;
  }
  
  #consent-popup input:focus + .slider {
    box-shadow: 0 0 1px #f38500;
  }
  
  #consent-popup .switch:has(input:checked) .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  #consent-popup .slider.round {
    border-radius: 34px;
  }
  
  #consent-popup .slider.round:before {
    border-radius: 50%;
  }
  

@media (max-width: 768px) {
  #consent-popup {
    font-size: 12px;
    overflow: auto;
    max-height: 90%;
    padding: 5px;
  }
  #consent-popup .cc-tab-content {
    padding: 5px;
    font-size: 12px;
  }
  #consent-popup .cc-tab-content h2 {
    text-align: center;
    margin: 0 0 10px;
  }
  #consent-popup .cc-tab-content h2 img {
    max-width: 200px;
  }
  #consent-popup p {
    font-size: 10px;
    margin-bottom: 0px;
  }
  #consent-popup .cc-grid-container {
    margin: 10px 0px 0;
  }
  #consent-popup .switch {
    width: 50px;
    height: 25px;
  }
  #consent-popup .slider:before {
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
  }
  #consent-popup .slider-text {
    margin: 0;
    font-size: 10px;
  }
  #consent-popup .cc-button-container {
    flex-direction: column;
    padding-top: 0px;
  }
  #consent-popup .cc-button {
    margin: 4px 0;
    padding: 7px;
    font-size: 12px;
  }
  #consent-popup .cc-button-all {
    order: 1; 
  }
  #consent-popup .cc-button-selected {
    order: 2;
  }
  #consent-popup .cc-button-necessary {
    order: 3;
  }
}