#cookie-consent-layer {
  position: fixed;
  inset: 0;
  background-color: rgb(0 0 0 / 50%);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-family: system-ui, sans-serif;
  font-size: 16px;
  line-height: normal;
}

#cookie-consent-layer a {
  color: #2d4156;
  border-bottom: 1px solid #2d4156;
  display: inline;
  padding-bottom: 0;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}

#cookie-consent-layer a:hover {
  border-color: transparent;
}

#cookie-consent-layer .cookie-popup {
  display: flex;
  flex-direction: column;
  max-height: 75vh;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  max-width: 800px;
  width: 100%;
}

@media (width <= 640px) {
  #cookie-consent-layer .cookie-popup {
    flex-direction: row;
  }
}

#cookie-consent-layer .cookie-popup .cc-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  flex-direction: row;
}

@media (width <= 640px) {
  #cookie-consent-layer .cookie-popup .cc-body {
    flex-direction: column;
  }
}

#cookie-consent-layer .cookie-popup .cc-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

#cookie-consent-layer .cookie-popup .cc-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
}

#cookie-consent-layer .cookie-popup .cc-tabs .cc-tab {
  flex: 1;
  padding: 1rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  background-color: #eaeff2;
  color: #2d4156;
  overflow-wrap: break-word;
}

#cookie-consent-layer .cookie-popup .cc-tabs .cc-tab:hover {
  background-color: #d8e0e6;
}

#cookie-consent-layer .cookie-popup .cc-tabs .cc-tab.active {
  border-color: #007bff;
  background-color: #d8e0e6;
}

#cookie-consent-layer .cookie-popup .cc-tab-content {
  flex: 1;
  overflow: hidden;
  padding: 1rem;
}

#cookie-consent-layer .cookie-popup .cc-tab-content .cc-tab-panel {
  display: none;
  color: #2d4156;
  height: 100%;
}

#cookie-consent-layer .cookie-popup .cc-tab-content .cc-tab-panel .cc-panel-inner {
  height: 100%;
  overflow-y: auto;
}

#cookie-consent-layer .cookie-popup .cc-tab-content .cc-tab-panel .cc-panel-inner h2 {
  font-size: 16px;
  line-height: normal;
  font-weight: 600;
  margin-bottom: 1em;
  text-align: left;
}

#cookie-consent-layer .cookie-popup .cc-tab-content .cc-tab-panel .cc-panel-inner h2:first-child {
  margin-top: 0;
}

#cookie-consent-layer .cookie-popup .cc-tab-content .cc-tab-panel .cc-panel-inner p {
  display: block;
  margin-top: 0;
  font-size: 0.9em;
  line-height: 1.5em;
  margin-bottom: 1em;
  text-align: left;
}

#cookie-consent-layer .cookie-popup .cc-tab-content .cc-tab-panel .cc-panel-inner > :last-child {
  margin-bottom: 0;
}

#cookie-consent-layer .cookie-popup .cc-tab-content .cc-tab-panel .cc-panel-inner > * + * {
  margin-top: 0.5em;
}

#cookie-consent-layer .cookie-popup .cc-actions {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  flex-direction: column;
  min-width: 150px;
}

@media (width >= 641px) {
  #cookie-consent-layer .cookie-popup .cc-actions {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    border-left: 1px solid #eee;
    padding: 1rem;
  }
}

#cookie-consent-layer .cookie-popup .cc-actions button {
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.82em;
  font-weight: bold;
  width: 100%;
  color: #2d4156;
  background: #eaeff2;
  padding: 1em 1.7em;
}

#cookie-consent-layer .cookie-popup .cc-actions button:hover {
  background: #d8e0e6;
}

#cookie-consent-layer.visible {
  opacity: 1;
  pointer-events: auto;
}

#cookie-consent-layer .cc-accordion-section {
  background: #f0f4f7;
  padding: 0;
  border-radius: 0.35em;
}

#cookie-consent-layer .cc-accordion-section .cc-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 1rem;
  position: relative;
  gap: 1rem;
}

#cookie-consent-layer .cc-accordion-section .cc-accordion-header::before {
  border: solid #2d4156;
  border-width: 0 2px 2px 0;
  padding: 0.2em;
  display: inline-block;
  content: "";
  margin-right: 15px;
  position: absolute;
  transform: translateY(-50%) rotate(45deg);
  left: 1.2em;
  top: 50%;
  z-index: 1;
}

#cookie-consent-layer .cc-accordion-section .cc-accordion-header.exp::before {
  transform: translateY(-50%) rotate(225deg);
}

#cookie-consent-layer .cc-accordion-section .cc-accordion-header:hover {
  background: #e9eff4;
  border-radius: 0.35em;
}

#cookie-consent-layer .cc-accordion-section .cc-accordion-header h3 {
  margin: 0;
  font-size: 13.3333px;
  color: #2d4156;
  padding-left: 2.2em;
  flex: 1;
}

#cookie-consent-layer .cc-accordion-section .cc-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
}

#cookie-consent-layer .cc-accordion-section .cc-accordion-body > *:last-child {
  margin-bottom: 1rem;
}

#cookie-consent-layer .cc-accordion-section .cc-accordion-body p {
  margin-top: 0.5rem;
}

#cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-cookie-table {
  margin: 1rem 0;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  color: #2d4156;
}

#cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-cookie-table th,
#cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-cookie-table td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: left;
  font-size: 0.875rem;
  white-space: normal;
  overflow-wrap: break-word;
}

#cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-cookie-table td > div {
  white-space: normal;
  overflow-wrap: break-word;
}

@media (width >= 481px) {
  #cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-cookie-table th:nth-child(1) {
    width: 20%;
    max-width: 20%;
  }

  #cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-cookie-table th:nth-child(2) {
    width: 20%;
    max-width: 20%;
  }

  #cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-cookie-table th:nth-child(3) {
    width: 45%;
    max-width: 45%;
  }

  #cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-cookie-table th:nth-child(4) {
    width: 15%;
    max-width: 15%;
  }
}

@media (width <= 480px) {
  #cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-cookie-table thead {
    display: none;
  }
}

#cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-cookie-table thead th {
  background-color: #f8f8f8;
}

@media (width >= 481px) {
  #cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-cookie-table thead th {
    white-space: normal;
    overflow-wrap: break-word;
  }
}

@media (width <= 480px) {
  #cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-cookie-table tbody tr {
    display: block;
    border-top: 1px solid #d9dde3;
  }
}

@media (width <= 480px) {
  #cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-cookie-table tbody tr td {
    display: flex;
    border: none;
    position: relative;
  }

  #cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-cookie-table tbody tr td > div {
    flex: 1;
    min-width: 0;
  }

  #cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-cookie-table tbody tr td::before {
    left: 1em;
    padding-right: 0.625em;
    word-break: break-all;
    content: attr(data-column);
    color: #2d4156;
    overflow: hidden;
    font-weight: 600;
    width: calc(35% - 16px);
    min-width: calc(35% - 16px);
    max-width: calc(35% - 16px);
  }
}

#cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-services-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-services-container .cc-service-item {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

#cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-services-container .cc-service-item span {
  margin: 0;
  font-size: 13.3333px;
  line-height: 1.2;
  color: #2d4156;
  font-weight: bold;
  flex: 1;
}

#cookie-consent-layer .cc-accordion-section .cc-accordion-header .cc-switch,
#cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

#cookie-consent-layer .cc-accordion-section .cc-accordion-header .cc-switch input,
#cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

#cookie-consent-layer .cc-accordion-section .cc-accordion-header .cc-switch .cc-slider,
#cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-switch .cc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #919ea6;
  transition: 0.2s;
  border-radius: 20px;
}

#cookie-consent-layer .cc-accordion-section .cc-accordion-header .cc-switch .cc-slider::before,
#cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-switch .cc-slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

#cookie-consent-layer .cc-accordion-section .cc-accordion-header .cc-switch input:checked + .cc-slider,
#cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-switch input:checked + .cc-slider {
  background-color: #2d4156;
}

#cookie-consent-layer .cc-accordion-section .cc-accordion-header .cc-switch input:checked + .cc-slider::before,
#cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-switch input:checked + .cc-slider::before {
  transform: translateX(20px);
}

#cookie-consent-layer .cc-accordion-section .cc-accordion-header .cc-switch input:disabled + .cc-slider,
#cookie-consent-layer .cc-accordion-section .cc-accordion-body .cc-switch input:disabled + .cc-slider {
  background-color: #d5dee2;
  cursor: default;
}

/* Responsive: buttons go to bottom full width */
@media (width <= 640px) {
  #cookie-consent-layer .cookie-popup {
    max-height: 85vh;
  }

  #cookie-consent-layer .cookie-popup .cc-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #cookie-consent-layer .cookie-popup .cc-actions button {
    width: 100%;
  }
}
