/**
 * Cookie Consent Banner Styles
 */

/* Base styles for the cookie consent banner */
.cookie-consent-banner {
  --cookie-consent-muted-text: #595959;
  position: fixed;
  z-index: 99999;
  background-color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  display: none;
  visibility: hidden;
  box-sizing: border-box;
  max-width: 100%;
  transition: transform var(--cookie-consent-animation-speed, 0.3s) cubic-bezier(0.4, 0, 0.2, 1), opacity var(--cookie-consent-animation-speed, 0.3s) ease;
  overflow: visible;
}

/* Presentation layer: semantic modifiers own sizing tokens; legacy classes remain compatible. */
.cookie-consent-banner.presentation-banner {
  --banner-max-width: 100%;
  --banner-max-height: 40vh;
  --cookie-consent-banner-edge-border-color: rgba(76, 76, 255, 0.87);
  width: 100%;
  max-width: 100%;
  border-radius: 0 !important;
  padding: 1rem 1.25rem;
  max-height: min(40vh, var(--banner-max-height, 40vh));
  overflow-y: auto;
}

.cookie-consent-banner.presentation-banner.position-bottom {
  border-top: 1px solid var(--cookie-consent-banner-edge-border-color, rgba(76, 76, 255, 0.87)) !important;
}

.cookie-consent-banner.presentation-banner.position-top {
  border-bottom: 1px solid var(--cookie-consent-banner-edge-border-color, rgba(76, 76, 255, 0.87)) !important;
}

.cookie-consent-banner.presentation-banner .cookie-consent-tab {
  font-size: 12px !important;
  line-height: 1.37;
  padding: 0.5rem 0.75rem;
}

.cookie-consent-banner.presentation-banner .cookie-consent-tab[aria-selected="true"] {
  border-block-end-color: var(--cookie-consent-tab-accent-color, #3939CC);
}

.cookie-consent-banner.presentation-banner .cookie-consent-content h3,
.cookie-consent-banner.presentation-banner .category-info h4 {
  font-size: 16px !important;
  line-height: 1.37;
}

.cookie-consent-banner.presentation-banner .cookie-consent-content p,
.cookie-consent-banner.presentation-banner .category-info p,
.cookie-consent-banner.presentation-banner .cookie-consent-about-panel p {
  font-size: 12px !important;
  line-height: 1.37;
}

@media (min-width: 768px) {
  .cookie-consent-banner.presentation-banner .cookie-consent-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    justify-content: stretch;
    width: 100%;
    margin-top: 1rem;
  }

  .cookie-consent-banner.presentation-banner .cookie-consent-buttons button {
    flex: 1 1 0;
    min-width: 0;
    max-width: 162px;
    width: auto !important;
    height: 35px;
    min-height: 35px;
    padding: 0 0.5rem;
    font-size: 12px !important;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.cookie-consent-banner.presentation-banner .cookie-consent-details-panel .cookie-consent-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .cookie-consent-banner.presentation-banner .cookie-consent-details-panel .cookie-consent-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Konsept 2 Banner uses tab/panel flow — disable legacy layout-bar side-by-side grid. */
.cookie-consent-banner.presentation-banner.layout-bar .cookie-consent-content {
  display: block !important;
  padding-top: 0;
}

.cookie-consent-banner.presentation-banner.layout-bar .cookie-consent-content > header,
.cookie-consent-banner.presentation-banner.layout-bar .cookie-consent-preferences-toggle,
.cookie-consent-banner.presentation-banner.layout-bar .cookie-consent-options,
.cookie-consent-banner.presentation-banner.layout-bar .cookie-consent-buttons,
.cookie-consent-banner.presentation-banner.layout-bar .cookie-consent-footer,
.cookie-consent-banner.presentation-banner.layout-bar .cookie-consent-tabs,
.cookie-consent-banner.presentation-banner.layout-bar .cookie-consent-tabpanel {
  grid-column: auto !important;
  grid-row: auto !important;
}

.cookie-consent-banner.presentation-banner.layout-bar .cookie-consent-buttons {
  margin-top: 1rem;
  justify-content: stretch;
  width: 100%;
  max-width: 100%;
}

.cookie-consent-banner.presentation-banner.layout-bar[data-preferences-open="true"] .cookie-consent-content {
  display: block !important;
}

.cookie-consent-banner.presentation-banner.layout-bar[data-preferences-open="true"] .cookie-consent-buttons {
  margin-top: 1rem;
  flex-wrap: nowrap;
}

/* Konsept 2 Box uses tab/panel flow — disable legacy layout-bar side-by-side grid. */
.cookie-consent-banner.presentation-box.layout-bar .cookie-consent-content {
  display: block !important;
  padding-top: 0;
}

.cookie-consent-banner.presentation-box.layout-bar .cookie-consent-content > header,
.cookie-consent-banner.presentation-box.layout-bar .cookie-consent-preferences-toggle,
.cookie-consent-banner.presentation-box.layout-bar .cookie-consent-options,
.cookie-consent-banner.presentation-box.layout-bar .cookie-consent-buttons,
.cookie-consent-banner.presentation-box.layout-bar .cookie-consent-footer,
.cookie-consent-banner.presentation-box.layout-bar .cookie-consent-tabs,
.cookie-consent-banner.presentation-box.layout-bar .cookie-consent-tabpanel {
  grid-column: auto !important;
  grid-row: auto !important;
}

.cookie-consent-banner.presentation-box.layout-bar .cookie-consent-buttons {
  margin-top: 1rem;
  justify-content: stretch;
  width: 100%;
  max-width: 100%;
  flex-wrap: nowrap;
}

.cookie-consent-banner.presentation-box.layout-bar[data-preferences-open="true"] .cookie-consent-content {
  display: block !important;
}

.cookie-consent-banner.presentation-box.layout-bar[data-preferences-open="true"] .cookie-consent-buttons {
  margin-top: 1rem;
  flex-wrap: nowrap;
}

/* Konsept toggle row: keep four-column layout; never legacy bar 2-col options grid. */
.cookie-consent-banner.presentation-box.layout-bar[data-preferences-open="true"] .cookie-consent-category-toggles:not([hidden]),
.cookie-consent-banner.presentation-banner.layout-bar[data-preferences-open="true"] .cookie-consent-category-toggles:not([hidden]),
.cookie-consent-banner.presentation-popup.layout-modal[data-preferences-open="true"] .cookie-consent-category-toggles:not([hidden]),
.cookie-consent-banner.layout-bar[data-preferences-open="true"] .cookie-consent-category-toggles:not([hidden]) {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0;
}

.cookie-consent-banner.presentation-box {
  --banner-max-width: min(92vw, 558px);
  --banner-max-height: min(90vh, 524px);
  --cookie-consent-box-border-color: rgba(76, 76, 255, 0.87);
  border: 1px solid var(--cookie-consent-box-border-color, rgba(76, 76, 255, 0.87)) !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 20.7px 1px rgba(0, 0, 0, 0.06);
  padding: 1rem 1.25rem;
  max-height: min(90vh, 524px);
  overflow-y: auto;
}

.cookie-consent-banner.presentation-box .cookie-consent-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}

.cookie-consent-banner.presentation-box .cookie-consent-tab {
  font-size: 12px !important;
  line-height: 1.37;
  padding: 0.5rem 0.75rem;
}

.cookie-consent-banner.presentation-box .cookie-consent-tab[aria-selected="true"] {
  border-block-end-color: var(--cookie-consent-tab-accent-color, #3939CC);
}

.cookie-consent-banner.presentation-box .cookie-consent-content h3,
.cookie-consent-banner.presentation-box .category-info h4 {
  font-size: 16px !important;
  line-height: 1.37;
}

.cookie-consent-banner.presentation-box .cookie-consent-content p,
.cookie-consent-banner.presentation-box .category-info p,
.cookie-consent-banner.presentation-box .cookie-consent-about-panel p {
  font-size: 12px !important;
  line-height: 1.37;
}

@media (min-width: 768px) {
  .cookie-consent-banner.presentation-box .cookie-consent-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    justify-content: stretch;
    width: 100%;
    margin-top: 1rem;
  }

  .cookie-consent-banner.presentation-box .cookie-consent-buttons button {
    flex: 1 1 0;
    min-width: 0;
    max-width: 162px;
    height: 35px;
    min-height: 35px;
    padding: 0 0.5rem;
    font-size: 12px !important;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.cookie-consent-banner.presentation-box .cookie-consent-details-panel .cookie-consent-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .cookie-consent-banner.presentation-box .cookie-consent-details-panel .cookie-consent-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Konsept presentations: hide legacy Manage Preferences — Details tab supersedes. */
.cookie-consent-banner.presentation-box .cookie-consent-preferences-toggle,
.cookie-consent-banner.presentation-banner .cookie-consent-preferences-toggle,
.cookie-consent-banner.presentation-popup .cookie-consent-preferences-toggle {
  display: none !important;
}

/* Shared horizontal category toggle row (Consent + Details). */
.cookie-consent-banner.presentation-box[data-preferences-open="true"] .cookie-consent-category-toggles:not([hidden]),
.cookie-consent-banner.presentation-banner[data-preferences-open="true"] .cookie-consent-category-toggles:not([hidden]),
.cookie-consent-banner.presentation-popup[data-preferences-open="true"] .cookie-consent-category-toggles:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 1rem 0 0;
  padding: 0.75rem 0;
  border-top: 1px solid #e0e0e0;
}

.cookie-consent-category-toggles[hidden] {
  display: none !important;
}

.cookie-consent-banner.presentation-box .cookie-category-toggle-column,
.cookie-consent-banner.presentation-banner .cookie-category-toggle-column,
.cookie-consent-banner.presentation-popup .cookie-category-toggle-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0 0.5rem;
  border-right: 1px solid #e0e0e0;
  margin-bottom: 0;
  border-bottom: none;
}

.cookie-consent-banner.presentation-box .cookie-category-toggle-column:last-child,
.cookie-consent-banner.presentation-banner .cookie-category-toggle-column:last-child,
.cookie-consent-banner.presentation-popup .cookie-category-toggle-column:last-child {
  border-right: none;
}

.cookie-consent-banner.presentation-box .cookie-category-toggle-label,
.cookie-consent-banner.presentation-banner .cookie-category-toggle-label,
.cookie-consent-banner.presentation-popup .cookie-category-toggle-label {
  font-size: 12px !important;
  font-weight: 600;
  line-height: 1.37;
  color: #222;
}

.cookie-consent-banner.presentation-box .cookie-consent-details-descriptions .cookie-category,
.cookie-consent-banner.presentation-banner .cookie-consent-details-descriptions .cookie-category,
.cookie-consent-banner.presentation-popup .cookie-consent-details-descriptions .cookie-category {
  border-bottom: none;
  padding: 0.25rem 0;
  margin-bottom: 0;
}

.cookie-consent-banner.presentation-popup {
  --banner-max-width: min(92vw, 560px);
  --banner-max-height: min(90vh, 720px);
  --cookie-consent-popup-border-color: rgba(76, 76, 255, 0.87);
  border: 1px solid var(--cookie-consent-popup-border-color, rgba(76, 76, 255, 0.87)) !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 20.7px 1px rgba(0, 0, 0, 0.06) !important;
  padding: 1rem 1.25rem;
  overflow-y: auto;
}

.cookie-consent-banner.presentation-popup .cookie-consent-tab {
  font-size: 12px !important;
  line-height: 1.37;
  padding: 0.5rem 0.75rem;
}

.cookie-consent-banner.presentation-popup .cookie-consent-tab[aria-selected="true"] {
  border-block-end-color: var(--cookie-consent-tab-accent-color, #3939CC);
}

.cookie-consent-banner.presentation-popup .cookie-consent-content h3,
.cookie-consent-banner.presentation-popup .category-info h4 {
  font-size: 16px !important;
  line-height: 1.37;
}

.cookie-consent-banner.presentation-popup .cookie-consent-content p,
.cookie-consent-banner.presentation-popup .category-info p,
.cookie-consent-banner.presentation-popup .cookie-consent-about-panel p {
  font-size: 12px !important;
  line-height: 1.37;
}

@media (min-width: 768px) {
  .cookie-consent-banner.presentation-popup .cookie-consent-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    justify-content: stretch;
    width: 100%;
    margin-top: 1rem;
  }

  .cookie-consent-banner.presentation-popup .cookie-consent-buttons button {
    flex: 1 1 0;
    min-width: 0;
    max-width: 162px;
    width: auto !important;
    height: 35px;
    min-height: 35px;
    padding: 0 0.5rem;
    font-size: 12px !important;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.cookie-consent-banner.presentation-popup .cookie-consent-details-panel .cookie-consent-options {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .cookie-consent-banner.presentation-popup .cookie-consent-details-panel .cookie-consent-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Konsept 2 Popup uses tab/panel flow — disable legacy layout-modal side-by-side grid. */
.cookie-consent-banner.presentation-popup.layout-modal .cookie-consent-content {
  display: block !important;
}

.cookie-consent-banner.presentation-popup.layout-modal .cookie-consent-content > header,
.cookie-consent-banner.presentation-popup.layout-modal .cookie-consent-preferences-toggle,
.cookie-consent-banner.presentation-popup.layout-modal .cookie-consent-options,
.cookie-consent-banner.presentation-popup.layout-modal .cookie-consent-buttons,
.cookie-consent-banner.presentation-popup.layout-modal .cookie-consent-footer {
  grid-column: auto !important;
  grid-row: auto !important;
  margin-top: 0;
}

.cookie-consent-banner.presentation-popup.layout-modal[data-preferences-open="true"] .cookie-consent-content {
  display: block !important;
  grid-template-columns: none !important;
}

/* Position-specific styles — slide animation for bar layouts only */
.cookie-consent-banner.position-bottom.layout-bar,
.cookie-consent-banner.position-bottom.layout-modal,
.cookie-consent-banner.presentation-banner.position-bottom,
.cookie-consent-banner.presentation-popup.position-bottom {
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
}

.cookie-consent-banner.position-top.layout-bar,
.cookie-consent-banner.position-top.layout-modal,
.cookie-consent-banner.presentation-banner.position-top,
.cookie-consent-banner.presentation-popup.position-top {
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-100%);
}

.cookie-consent-banner.position-center.layout-modal {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  max-width: min(92vw, var(--banner-max-width, 560px));
  width: min(92vw, var(--banner-max-width, 560px));
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-consent-banner.presentation-popup.position-center {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  max-width: min(92vw, var(--banner-max-width, 560px));
  width: min(92vw, var(--banner-max-width, 560px));
  border-radius: 6px !important;
  box-shadow: 0 2px 20.7px 1px rgba(0, 0, 0, 0.06) !important;
}

/* Legacy position-center without modal is unsupported — geometry owned by presentation migration. */
.cookie-consent-banner.position-center:not(.layout-modal) {
  top: auto;
  left: auto;
  transform: none;
  max-width: min(92vw, var(--banner-max-width, 560px));
  width: auto;
}

/* Overlay for modal/center position */
.cookie-consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99998;
  opacity: 0;
  transition: opacity var(--cookie-consent-animation-speed, 0.3s) ease;
  display: block;
  visibility: hidden;
}

.cookie-consent-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* Visible state for all positions */
.cookie-consent-banner.visible {
  display: block;
  visibility: visible;
  /* Beat stale cached template rules that used :not(.active){opacity:0} (BEH-004). */
  opacity: 1 !important;
  pointer-events: auto;
}

.cookie-consent-banner:not(.visible) {
  pointer-events: none;
}

.cookie-consent-banner.position-bottom.layout-bar.visible,
.cookie-consent-banner.position-bottom.layout-modal.visible,
.cookie-consent-banner.presentation-banner.position-bottom.visible,
.cookie-consent-banner.presentation-popup.position-bottom.visible {
  transform: translateY(0);
}

.cookie-consent-banner.position-top.layout-bar.visible,
.cookie-consent-banner.position-top.layout-modal.visible,
.cookie-consent-banner.presentation-banner.position-top.visible,
.cookie-consent-banner.presentation-popup.position-top.visible {
  transform: translateY(0);
}

.cookie-consent-banner.position-center.layout-modal.visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.cookie-consent-banner.presentation-popup.position-center.visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Base styles for the banner content */
.cookie-consent-content {
  color: #222;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.cookie-consent-content h2 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #222;
}

.cookie-consent-content p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Styles for the buttons container */
.cookie-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* General button styles */
.cookie-consent-banner button {
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s, transform 0.1s;
}

.cookie-consent-banner button:hover {
  transform: translateY(-1px);
}

.cookie-consent-banner button:focus {
  outline: 2px solid #3939CC;
  outline-offset: 2px;
}

/* Specific button styles */
.cookie-consent-accept {
  background-color: #3939CC;
  color: white;
  border: none;
}

.cookie-consent-accept:hover {
  background-color: #2b2baa;
}

.cookie-consent-decline {
  background-color: #f0f0f0;
  color: #222;
  border: 1px solid #ccc;
}

.cookie-consent-decline:hover {
  background-color: #e5e5e5;
}

.cookie-consent-save-custom {
  background-color: #e0e0fd;
  color: #222;
  border: 1px solid #3939CC;
}

.cookie-consent-save-custom:hover {
  background-color: #d0d0fc;
}

/* Close button styles */
.cookie-consent-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid transparent;
  font-size: 1rem;
  padding: 0.5rem;
  cursor: pointer;
  color: #444;
  border-radius: 50%;
  height: 2rem;
  width: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cookie-consent-close:hover {
  background-color: #f5f5f5;
  border-color: #ddd;
}

/* Toggle switch styles */
.toggle-container {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 0.25rem;
  margin-right: 0.75rem;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--cookie-consent-toggle-off-color, #999999);
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--cookie-consent-toggle-on-color, #3939CC);
}

input:focus + .slider {
  box-shadow: 0 0 2px var(--cookie-consent-toggle-on-color, #3939CC);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* For disabled toggles */
input:disabled + .slider {
  background-color: #ccc;
  cursor: not-allowed;
}

input:disabled + .slider:before {
  background-color: #e5e5e5;
}

/* Toggle label styles */
.toggle-label {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.toggle-description {
  font-size: 0.875rem;
  color: var(--cookie-consent-muted-text, #595959);
}

/* Branding styles */
.cookie-consent-branding {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  opacity: 0.9;
  text-align: center;
}

.devora-name {
  color: #3939CC;
  font-weight: 600;
}

/* Custom settings section */
.cookie-consent-custom-settings {
  margin-top: 1.5rem;
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
}

/* Mobile optimizations */
@media (max-width: 600px) {
  .cookie-consent-banner {
    padding: 1rem;
  }
  
  .cookie-consent-buttons {
    flex-direction: column;
  }
  
  .cookie-consent-buttons button {
    width: 100%;
  }
  
  .cookie-consent-banner.position-center.layout-modal {
    width: 95%;
  }
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .cookie-consent-banner,
  .cookie-consent-overlay,
  .slider,
  .slider:before {
    transition-duration: 0.1s;
  }
}

/* Cookie Consent Banner - Fixed Version 1.1.8 */

.cookie-consent-banner {
    position: fixed;
    z-index: 99999;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 1.25rem;
    padding-inline-end: 3.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    overflow: visible;
    height: auto;
    display: none;
    visibility: hidden;
    box-sizing: border-box;
}

.cookie-consent-banner.position-bottom.layout-bar {
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    transform: translateY(100%);
    transition: transform var(--cookie-consent-animation-speed, 0.3s) cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent-banner.position-top.layout-bar {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    transition: transform var(--cookie-consent-animation-speed, 0.3s) cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay for center modal */
.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 99998;
    opacity: 0;
    transition: opacity var(--cookie-consent-animation-speed, 0.3s) ease;
    display: none;
}

.cookie-consent-overlay.visible {
    opacity: 1;
    display: block;
}

/* Visible state for all positions */
.cookie-consent-banner.visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto;
}

.cookie-consent-banner.position-bottom.layout-bar.visible,
.cookie-consent-banner.position-bottom.layout-modal.visible {
    transform: translateY(0);
}

.cookie-consent-banner.position-top.layout-bar.visible,
.cookie-consent-banner.position-top.layout-modal.visible {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 0.25rem;
}

.cookie-consent-content h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    line-height: 1.4;
    color: #222;
    font-weight: 600;
}

.cookie-consent-options {
    margin: 1.5rem 0;
}

.cookie-category {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    border-bottom: 1px solid #ddd;
    margin-bottom: 0.5rem;
}

.category-info {
    margin-left: 1rem;
    flex: 1;
}

.category-info h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    color: #222;
    font-weight: 500;
}

.category-info p {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #444;
}

.category-info small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #666;
    font-style: italic;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch input:focus + .slider {
    box-shadow: 0 0 0 2px rgba(57, 57, 204, 0.25);
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--cookie-consent-toggle-off-color, #999999);
    transition: .4s;
    border-radius: 22px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--cookie-consent-toggle-on-color, #3939CC);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

input:disabled + .slider {
    background-color: #E6E6FF;
    cursor: not-allowed;
}

.cookie-consent-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent-buttons button {
    min-width: 140px;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.cookie-consent-buttons button:focus,
.cookie-consent-buttons button:hover {
    outline: none;
    box-shadow: 0 0 0 2px rgba(57, 57, 204, 0.25);
    transform: translateY(-1px);
}

/* High contrast mode support */
@media (forced-colors: active) {
    .cookie-consent-buttons button:focus,
    .cookie-consent-buttons button:hover {
        outline: 2px solid CanvasText;
    }
}

.cookie-consent-accept {
    background: #3939CC;
    color: white;
}

.cookie-consent-accept:hover,
.cookie-consent-accept:focus {
    background: #2E2EA3;
}

.cookie-consent-decline {
    background: #f0f0f0;
    color: #222;
    border: 1px solid #ccc !important;
}

.cookie-consent-decline:hover,
.cookie-consent-decline:focus {
    background: #e5e5e5;
}

.cookie-consent-save-custom {
    background: #e0e0fd;
    color: #222;
    border: 1px solid #3939CC !important;
}

.cookie-consent-save-custom:hover,
.cookie-consent-save-custom:focus {
    background: #d0d0fc;
}

.cookie-settings-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #f0f0f0;
    color: #444;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus {
    background: #e0e0e0;
    color: #222;
    text-decoration: none;
}

.cookie-consent-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: 1px solid transparent;
    font-size: 1rem;
    line-height: 1;
    padding: 0.5rem;
    cursor: pointer;
    color: #444;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.cookie-consent-close .close-x {
    font-size: 1.25rem;
    line-height: 1;
    margin-left: 2px;
}

.cookie-consent-close:hover {
    color: #000;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

/* Footer and Branding */
.cookie-consent-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 0.875rem;
}

.cookie-consent-links {
    margin: 0 0 0.75rem;
    color: var(--cookie-consent-muted-text, #595959);
}

.cookie-consent-links a {
    color: var(--cookie-consent-link-color, #3939CC);
    text-decoration: underline;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 0.25rem 0;
}

.cookie-consent-links a:hover {
    color: var(--cookie-consent-link-hover-color, #2E2EA3);
    text-decoration: underline;
}

/* Devora branding styles - Made more visible */
.cookie-consent-branding {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    opacity: 0.9;
    transition: opacity 0.2s ease;
    display: block !important;
    visibility: visible !important;
}

.cookie-consent-branding:hover {
    opacity: 1;
}

.devora-branding {
    color: #444;
    text-decoration: none;
    display: inline-block;
}

.devora-name {
    color: #3939CC;
    font-weight: 600;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1.25rem;
    }

    .cookie-consent-content {
        padding-top: 1.5rem;
    }

    .cookie-consent-content h3 {
        font-size: 1.1rem;
    }

    .cookie-category {
        padding: 0.5rem 0;
    }

    .cookie-consent-buttons button {
        min-width: 110px;
        padding: 0.6rem 1rem;
        flex: 1;
        font-size: 0.85rem;
    }

    .cookie-consent-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-consent-footer {
        margin-top: 1rem;
        padding-top: 0.75rem;
    }

    .cookie-consent-links a {
        display: block;
        margin: 0.25rem 0;
    }
}

/* Only show cookie overlay when banner is visible */
.cookie-consent-banner {
    transition: all var(--cookie-consent-animation-speed, 0.3s) ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    .slider:before,
    .cookie-consent-buttons button,
    .cookie-consent-close,
    .cookie-consent-links a {
        transition: none !important;
    }
}

/* Safari specific fixes */
@supports (-webkit-touch-callout: none) {
  /* iOS Safari */
  .cookie-consent-content {
    margin: 0; /* Reset auto margins for iOS */
    text-align: left; /* Ensure text is left-aligned */
  }
  
  .cookie-consent-buttons {
    justify-content: space-between; /* Different flexbox handling */
    width: 100%;
  }
  
  .toggle-switch input {
    position: absolute;
    left: -9999px; /* Alternative to opacity:0 for Safari */
  }
  
  .cookie-consent-close {
    -webkit-appearance: none; /* Remove default styling */
    appearance: none;
  }
  
  /* Fix for center alignment */
  .cookie-consent-footer,
  .cookie-consent-buttons {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .cookie-consent-buttons button {
    margin: 0.25rem 0; /* Vertical spacing */
  }
}

/* Fix for transparent backgrounds in some Safari versions */
.cookie-consent-banner {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Additional fixes for WebKit browsers */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .cookie-consent-content {
    width: 100%;
  }
  
  .cookie-category {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: flex-start;
    -webkit-align-items: flex-start;
    align-items: flex-start;
  }
}

/* Progressive disclosure — categories collapsed by default (BEH-048) */
.cookie-consent-tabs {
  display: flex;
  gap: 0.25rem;
  align-items: stretch;
  flex-wrap: wrap;
  margin-block: 0 1rem;
  border-block-end: 1px solid #d9d9d9;
}

.cookie-consent-tab {
  min-height: 44px;
  padding: 0.625rem 1rem;
  border: 0;
  border-block-end: 3px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.cookie-consent-tab[aria-selected="true"] {
  border-block-end-color: var(--cookie-consent-tab-accent-color, #3939CC);
  font-weight: 600;
}

.cookie-consent-tab:focus-visible,
.cookie-consent-tabpanel:focus-visible {
  outline: 2px solid var(--cookie-consent-tab-accent-color, #3939CC);
  outline-offset: 2px;
}

.cookie-consent-tabpanel[hidden] {
  display: none !important;
}

.cookie-consent-details-panel .cookie-consent-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  margin-block: 0;
}

@media (min-width: 768px) {
  .cookie-consent-details-panel .cookie-consent-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cookie-consent-about-panel {
  min-block-size: 8rem;
}

.cookie-consent-banner[dir="rtl"] .cookie-consent-tabs {
  direction: rtl;
}

/* Legacy (non-Konsept): tabs are Konsept-only; progressive disclosure uses the toggle. */
.cookie-consent-banner:not(.presentation-box):not(.presentation-banner):not(.presentation-popup) .cookie-consent-tabs,
.cookie-consent-banner:not(.presentation-box):not(.presentation-banner):not(.presentation-popup) .cookie-consent-tabpanel[hidden],
.cookie-consent-banner:not(.presentation-box):not(.presentation-banner):not(.presentation-popup) #cookie-consent-panel-details,
.cookie-consent-banner:not(.presentation-box):not(.presentation-banner):not(.presentation-popup) #cookie-consent-panel-about {
  display: none !important;
}

.cookie-consent-banner:not(.presentation-box):not(.presentation-banner):not(.presentation-popup) #cookie-consent-panel-consent {
  display: block !important;
}

.cookie-consent-banner:not(.presentation-box):not(.presentation-banner):not(.presentation-popup):not([data-preferences-open="true"]) .cookie-consent-options,
.cookie-consent-banner:not(.presentation-box):not(.presentation-banner):not(.presentation-popup):not([data-preferences-open="true"]) .cookie-consent-footer {
  display: none;
}

.cookie-consent-banner.presentation-box:not([data-preferences-open="true"]) .cookie-consent-footer,
.cookie-consent-banner.presentation-banner:not([data-preferences-open="true"]) .cookie-consent-footer,
.cookie-consent-banner.presentation-popup:not([data-preferences-open="true"]) .cookie-consent-footer {
  display: none;
}

.cookie-consent-banner[data-preferences-open="true"] .cookie-consent-options {
  display: block;
}

.cookie-consent-preferences-toggle {
  min-height: 44px;
  min-width: 44px;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0 0;
  background: #f0f0f0;
  color: #222;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.cookie-consent-preferences-toggle:hover,
.cookie-consent-preferences-toggle:focus {
  background: #e5e5e5;
  outline: 2px solid #3939CC;
  outline-offset: 2px;
}

/* Bar layout — compact horizontal strip (edge positions only; not center/modal). */
.cookie-consent-banner.layout-bar:not(.layout-modal):not(.position-center) .cookie-consent-content {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-top: 1rem;
}

.cookie-consent-banner.layout-bar .cookie-consent-content > header {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
}

.cookie-consent-banner.layout-bar .cookie-consent-preferences-toggle {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  margin: 0;
}

.cookie-consent-banner.layout-bar .cookie-consent-options {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0;
}

.cookie-consent-banner.layout-bar .cookie-consent-buttons {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-top: 0;
  flex-wrap: nowrap;
  align-self: center;
}

.cookie-consent-banner.layout-bar[data-preferences-open="true"] .cookie-consent-content {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}

.cookie-consent-banner.layout-bar[data-preferences-open="true"] .cookie-consent-buttons {
  grid-column: 1;
  grid-row: auto;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.cookie-consent-banner.layout-bar[data-preferences-open="true"] .cookie-consent-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .cookie-consent-banner.layout-bar[data-preferences-open="true"] .cookie-consent-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cookie-consent-banner.layout-bar[data-preferences-open="true"] .cookie-category {
  padding: 0.5rem;
  margin-bottom: 0;
}

/* Desktop two-column when preferences open on card/modal */
@media (min-width: 768px) {
  .cookie-consent-banner.layout-card[data-preferences-open="true"] .cookie-consent-content,
  .cookie-consent-banner.layout-modal[data-preferences-open="true"] .cookie-consent-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    align-items: start;
  }

  .cookie-consent-banner.layout-card[data-preferences-open="true"] .cookie-consent-content > header,
  .cookie-consent-banner.layout-modal[data-preferences-open="true"] .cookie-consent-content > header {
    grid-column: 1;
    grid-row: 1;
  }

  .cookie-consent-banner.layout-card[data-preferences-open="true"] .cookie-consent-preferences-toggle,
  .cookie-consent-banner.layout-modal[data-preferences-open="true"] .cookie-consent-preferences-toggle {
    grid-column: 1;
    grid-row: 2;
  }

  .cookie-consent-banner.layout-card[data-preferences-open="true"] .cookie-consent-options,
  .cookie-consent-banner.layout-modal[data-preferences-open="true"] .cookie-consent-options {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 0;
  }

  .cookie-consent-banner.layout-card[data-preferences-open="true"] .cookie-consent-buttons,
  .cookie-consent-banner.layout-modal[data-preferences-open="true"] .cookie-consent-buttons {
    grid-column: 1;
    grid-row: 3;
  }

  .cookie-consent-banner.layout-card[data-preferences-open="true"] .cookie-consent-footer,
  .cookie-consent-banner.layout-modal[data-preferences-open="true"] .cookie-consent-footer {
    grid-column: 1 / -1;
    grid-row: 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent-preferences-toggle {
    transition: none !important;
  }
}

/* Floating card at bottom position — elevated, prominent panel (reference-style placement) */
.cookie-consent-banner.layout-card.position-bottom:not(.position-bottom-left):not(.position-bottom-right) {
  bottom: auto;
  top: clamp(20px, 5vh, 88px);
  left: 50%;
  right: auto;
  width: min(92vw, 720px);
  max-width: min(92vw, 720px);
  min-height: min(524px, calc(100vh - clamp(20px, 5vh, 88px) - 1.5rem));
  max-height: min(615px, calc(100vh - clamp(20px, 5vh, 88px) - 1.5rem));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
}

.cookie-consent-banner.layout-card.position-bottom.visible:not(.position-bottom-left):not(.position-bottom-right) {
  transform: translateX(-50%);
}

.cookie-consent-banner.layout-card.position-bottom:not(.position-bottom-left):not(.position-bottom-right) .cookie-consent-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: min(420px, calc(100vh - clamp(20px, 5vh, 88px) - 8rem));
}

.cookie-consent-banner.layout-card.position-bottom:not(.position-bottom-left):not(.position-bottom-right) .cookie-consent-buttons {
  margin-top: auto;
}

.cookie-consent-banner.layout-card.position-bottom:not(.position-bottom-left):not(.position-bottom-right) .cookie-consent-footer {
  margin-top: 0.75rem;
}

/* Corner anchors — compact width, no full-bleed stretch */
.cookie-consent-banner.position-bottom-left,
.cookie-consent-banner.position-bottom-right {
  width: auto;
  max-width: var(--banner-max-width, min(92vw, 560px));
}

.cookie-consent-banner.position-bottom-left {
  bottom: 20px !important;
  inset-inline-start: 20px !important;
  inset-inline-end: auto !important;
  top: auto !important;
  transform: none !important;
}

.cookie-consent-banner.position-bottom-right {
  bottom: 20px !important;
  inset-inline-end: 20px !important;
  inset-inline-start: auto !important;
  top: auto !important;
  transform: none !important;
}

/* Card / modal presentation polish */
.cookie-consent-banner.layout-card,
.cookie-consent-banner.layout-modal {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Modal layout — always centered regardless of position class */
.cookie-consent-banner.layout-modal {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: min(92vw, var(--banner-max-width, 560px));
  max-width: var(--banner-max-width, 560px);
  max-height: min(90vh, var(--banner-max-height, 720px));
  overflow-x: hidden;
  overflow-y: auto;
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
}

.cookie-consent-banner.layout-modal .cookie-consent-content {
  max-height: inherit;
  overflow-y: auto;
}

.cookie-consent-banner.layout-modal.visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Edge bar anchors */
.cookie-consent-banner.position-bottom.layout-bar:not(.position-bottom-left):not(.position-bottom-right) {
  bottom: 0;
  top: auto;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
}

.cookie-consent-banner.position-top.layout-bar {
  top: 0;
  bottom: auto;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
}

.cookie-consent-banner.layout-bar.position-bottom-left,
.cookie-consent-banner.layout-bar.position-bottom-right {
  width: auto;
  max-width: var(--banner-max-width, min(92vw, 560px));
}

.cookie-consent-banner.position-bottom-left {
  bottom: 20px !important;
  inset-inline-start: 20px !important;
  inset-inline-end: auto !important;
  top: auto !important;
  transform: none !important;
}

.cookie-consent-banner.position-bottom-right {
  bottom: 20px !important;
  inset-inline-end: 20px !important;
  inset-inline-start: auto !important;
  top: auto !important;
  transform: none !important;
}

/* Corner bar — compact consent box (not full-width strip) */
.cookie-consent-banner.layout-bar.position-bottom-left,
.cookie-consent-banner.layout-bar.position-bottom-right {
  width: auto;
  max-width: var(--banner-max-width, min(92vw, 560px));
}

.cookie-consent-banner.layout-bar.position-bottom-left:not([data-preferences-open="true"]) .cookie-consent-content,
.cookie-consent-banner.layout-bar.position-bottom-right:not([data-preferences-open="true"]) .cookie-consent-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.cookie-consent-banner.layout-bar.position-bottom-left:not([data-preferences-open="true"]) .cookie-consent-preferences-toggle,
.cookie-consent-banner.layout-bar.position-bottom-right:not([data-preferences-open="true"]) .cookie-consent-preferences-toggle {
  align-self: flex-start;
  margin: 0;
}

.cookie-consent-banner.layout-bar.position-bottom-left:not([data-preferences-open="true"]) .cookie-consent-buttons,
.cookie-consent-banner.layout-bar.position-bottom-right:not([data-preferences-open="true"]) .cookie-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0;
  justify-content: flex-start;
}

/* Bar layout — compact horizontal strip, grows upward when preferences open */
.cookie-consent-banner.layout-bar {
  max-height: none;
  overflow: visible;
}

.cookie-consent-banner.layout-bar.position-bottom {
  bottom: 0;
  top: auto;
}

.cookie-consent-banner.layout-bar.position-top {
  top: 0;
  bottom: auto;
}

.cookie-consent-banner.layout-bar.position-bottom[data-preferences-open="true"],
.cookie-consent-banner.layout-bar.position-top[data-preferences-open="true"] {
  max-height: min(90vh, 85vh);
  overflow: visible;
}

.cookie-consent-banner.layout-bar .cookie-consent-content {
  margin-bottom: 0;
}

/* Modal shows category controls immediately */
.cookie-consent-banner.layout-modal[data-preferences-open="true"] .cookie-consent-options,
.cookie-consent-banner.layout-modal[data-preferences-open="true"] .cookie-consent-footer {
  display: block;
}


@media (max-width: 768px) {
  .cookie-consent-banner.position-bottom-left,
  .cookie-consent-banner.position-bottom-right {
    inset-inline-start: 12px;
    inset-inline-end: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }

  .cookie-consent-banner.layout-bar.position-bottom-left,
  .cookie-consent-banner.layout-bar.position-bottom-right {
    width: auto;
    max-width: calc(100vw - 24px);
  }
}

/* Native cookie settings trigger: preserve link-like visual styling while using button semantics. */
.cookie-settings-trigger {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  margin: 0;
  padding: 0;
  text-align: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Design settings override button borders without reintroducing generated template CSS. */
.cookie-consent-banner .cookie-consent-accept {
  border: 1px solid var(--cookie-consent-accept-button-border-color, #3939CC) !important;
}

.cookie-consent-banner .cookie-consent-save-custom {
  border-color: var(--cookie-consent-save-button-border-color, #3939CC) !important;
}

.cookie-consent-banner .cookie-consent-decline {
  border-color: var(--cookie-consent-decline-button-border-color, #ccc) !important;
}

/* Konsept 2 v2 — Save primary; Reject/Accept outlined on presentation banners. */
.cookie-consent-banner.presentation-box .cookie-consent-save-custom,
.cookie-consent-banner.presentation-banner .cookie-consent-save-custom,
.cookie-consent-banner.presentation-popup .cookie-consent-save-custom {
  background-color: var(--cookie-consent-konsept-primary-bg, #3939CC) !important;
  color: var(--cookie-consent-konsept-primary-text, #ffffff) !important;
  border: 1px solid var(--cookie-consent-save-button-border-color, #3939CC) !important;
}

.cookie-consent-banner.presentation-box .cookie-consent-save-custom:hover,
.cookie-consent-banner.presentation-banner .cookie-consent-save-custom:hover,
.cookie-consent-banner.presentation-popup .cookie-consent-save-custom:hover,
.cookie-consent-banner.presentation-box .cookie-consent-save-custom:focus,
.cookie-consent-banner.presentation-banner .cookie-consent-save-custom:focus,
.cookie-consent-banner.presentation-popup .cookie-consent-save-custom:focus,
.cookie-consent-banner.presentation-box .cookie-consent-save-custom:focus-visible,
.cookie-consent-banner.presentation-banner .cookie-consent-save-custom:focus-visible,
.cookie-consent-banner.presentation-popup .cookie-consent-save-custom:focus-visible {
  background-color: #2E2EA3 !important;
  color: #ffffff !important;
}

.cookie-consent-banner.presentation-box .cookie-consent-save-custom:active,
.cookie-consent-banner.presentation-banner .cookie-consent-save-custom:active,
.cookie-consent-banner.presentation-popup .cookie-consent-save-custom:active {
  background-color: #25257a !important;
  color: #ffffff !important;
}

.cookie-consent-banner.presentation-box .cookie-consent-accept,
.cookie-consent-banner.presentation-banner .cookie-consent-accept,
.cookie-consent-banner.presentation-popup .cookie-consent-accept {
  background-color: var(--cookie-consent-konsept-accept-outlined-bg, #f0f0f0) !important;
  color: var(--cookie-consent-konsept-accept-outlined-text, #222222) !important;
}

.cookie-consent-banner.presentation-box .cookie-consent-decline,
.cookie-consent-banner.presentation-banner .cookie-consent-decline,
.cookie-consent-banner.presentation-popup .cookie-consent-decline {
  background-color: var(--cookie-consent-konsept-decline-outlined-bg, #f0f0f0) !important;
  color: var(--cookie-consent-konsept-decline-outlined-text, #222222) !important;
}

.cookie-consent-banner.presentation-box .cookie-consent-accept,
.cookie-consent-banner.presentation-banner .cookie-consent-accept,
.cookie-consent-banner.presentation-popup .cookie-consent-accept {
  border: 1px solid var(--cookie-consent-accept-button-border-color, #3939CC) !important;
}

.cookie-consent-banner.presentation-box .cookie-consent-decline,
.cookie-consent-banner.presentation-banner .cookie-consent-decline,
.cookie-consent-banner.presentation-popup .cookie-consent-decline {
  border: 1px solid var(--cookie-consent-decline-button-border-color, #ccc) !important;
}

.cookie-consent-banner.presentation-box .cookie-consent-accept:hover,
.cookie-consent-banner.presentation-banner .cookie-consent-accept:hover,
.cookie-consent-banner.presentation-popup .cookie-consent-accept:hover,
.cookie-consent-banner.presentation-box .cookie-consent-decline:hover,
.cookie-consent-banner.presentation-banner .cookie-consent-decline:hover,
.cookie-consent-banner.presentation-popup .cookie-consent-decline:hover,
.cookie-consent-banner.presentation-box .cookie-consent-accept:focus,
.cookie-consent-banner.presentation-banner .cookie-consent-accept:focus,
.cookie-consent-banner.presentation-popup .cookie-consent-accept:focus,
.cookie-consent-banner.presentation-box .cookie-consent-decline:focus,
.cookie-consent-banner.presentation-banner .cookie-consent-decline:focus,
.cookie-consent-banner.presentation-popup .cookie-consent-decline:focus,
.cookie-consent-banner.presentation-box .cookie-consent-accept:focus-visible,
.cookie-consent-banner.presentation-banner .cookie-consent-accept:focus-visible,
.cookie-consent-banner.presentation-popup .cookie-consent-accept:focus-visible,
.cookie-consent-banner.presentation-box .cookie-consent-decline:focus-visible,
.cookie-consent-banner.presentation-banner .cookie-consent-decline:focus-visible,
.cookie-consent-banner.presentation-popup .cookie-consent-decline:focus-visible {
  background-color: #e5e5e5 !important;
}

.cookie-consent-banner.presentation-box .cookie-consent-accept:active,
.cookie-consent-banner.presentation-banner .cookie-consent-accept:active,
.cookie-consent-banner.presentation-popup .cookie-consent-accept:active,
.cookie-consent-banner.presentation-box .cookie-consent-decline:active,
.cookie-consent-banner.presentation-banner .cookie-consent-decline:active,
.cookie-consent-banner.presentation-popup .cookie-consent-decline:active {
  background-color: #d9d9d9 !important;
}

.cookie-consent-banner.presentation-box .cookie-consent-save-custom:focus-visible,
.cookie-consent-banner.presentation-banner .cookie-consent-save-custom:focus-visible,
.cookie-consent-banner.presentation-popup .cookie-consent-save-custom:focus-visible,
.cookie-consent-banner.presentation-box .cookie-consent-accept:focus-visible,
.cookie-consent-banner.presentation-banner .cookie-consent-accept:focus-visible,
.cookie-consent-banner.presentation-popup .cookie-consent-accept:focus-visible,
.cookie-consent-banner.presentation-box .cookie-consent-decline:focus-visible,
.cookie-consent-banner.presentation-banner .cookie-consent-decline:focus-visible,
.cookie-consent-banner.presentation-popup .cookie-consent-decline:focus-visible {
  outline: 2px solid #3939CC !important;
  outline-offset: 2px;
  box-shadow: none !important;
}

.cookie-consent-banner.presentation-box .cookie-consent-save-custom:disabled,
.cookie-consent-banner.presentation-banner .cookie-consent-save-custom:disabled,
.cookie-consent-banner.presentation-popup .cookie-consent-save-custom:disabled,
.cookie-consent-banner.presentation-box .cookie-consent-accept:disabled,
.cookie-consent-banner.presentation-banner .cookie-consent-accept:disabled,
.cookie-consent-banner.presentation-popup .cookie-consent-accept:disabled,
.cookie-consent-banner.presentation-box .cookie-consent-decline:disabled,
.cookie-consent-banner.presentation-banner .cookie-consent-decline:disabled,
.cookie-consent-banner.presentation-popup .cookie-consent-decline:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Konsept 2 v2 header row — branding left, Close right, above tabs. */
.cookie-consent-banner.presentation-box .cookie-consent-header-row,
.cookie-consent-banner.presentation-banner .cookie-consent-header-row,
.cookie-consent-banner.presentation-popup .cookie-consent-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  min-height: 1.75rem;
}

.cookie-consent-banner.presentation-box .cookie-consent-header-branding,
.cookie-consent-banner.presentation-banner .cookie-consent-header-branding,
.cookie-consent-banner.presentation-popup .cookie-consent-header-branding {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 10px;
  line-height: 1.488;
  min-width: 0;
}

.cookie-consent-banner.presentation-box .cookie-consent-powered-by,
.cookie-consent-banner.presentation-banner .cookie-consent-powered-by,
.cookie-consent-banner.presentation-popup .cookie-consent-powered-by {
  color: #5b5b5b;
}

.cookie-consent-banner.presentation-box .cookie-consent-header-branding .devora-branding,
.cookie-consent-banner.presentation-banner .cookie-consent-header-branding .devora-branding,
.cookie-consent-banner.presentation-popup .cookie-consent-header-branding .devora-branding {
  color: #4c4cff;
  font-size: 10px;
  text-decoration: none;
}

.cookie-consent-banner.presentation-box .cookie-consent-header-branding .devora-name,
.cookie-consent-banner.presentation-banner .cookie-consent-header-branding .devora-name,
.cookie-consent-banner.presentation-popup .cookie-consent-header-branding .devora-name {
  color: #4c4cff;
  font-weight: 600;
}

.cookie-consent-banner.presentation-box .cookie-consent-header-close,
.cookie-consent-banner.presentation-banner .cookie-consent-header-close,
.cookie-consent-banner.presentation-popup .cookie-consent-header-close {
  position: static;
  top: auto;
  right: auto;
  flex-shrink: 0;
  width: auto;
  height: auto;
  min-height: 1.75rem;
  padding: 0.25rem 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--cookie-consent-close-text-color, #222222);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.488;
  gap: 0.35rem;
}

.cookie-consent-banner.presentation-box .cookie-consent-header-close .close-x,
.cookie-consent-banner.presentation-banner .cookie-consent-header-close .close-x,
.cookie-consent-banner.presentation-popup .cookie-consent-header-close .close-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 0;
  border-radius: 50%;
  background-color: var(--cookie-consent-close-icon-bg, #4c4cff);
  color: var(--cookie-consent-close-icon-color, #ffffff);
  font-size: 10px;
  line-height: 1;
}

.cookie-consent-banner.presentation-box .cookie-consent-header-close:hover,
.cookie-consent-banner.presentation-banner .cookie-consent-header-close:hover,
.cookie-consent-banner.presentation-popup .cookie-consent-header-close:hover,
.cookie-consent-banner.presentation-box .cookie-consent-header-close:focus,
.cookie-consent-banner.presentation-banner .cookie-consent-header-close:focus,
.cookie-consent-banner.presentation-popup .cookie-consent-header-close:focus {
  background: none;
  color: var(--cookie-consent-close-text-color, #222222);
}

.cookie-consent-banner.presentation-box .cookie-consent-header-close:focus-visible,
.cookie-consent-banner.presentation-banner .cookie-consent-header-close:focus-visible,
.cookie-consent-banner.presentation-popup .cookie-consent-header-close:focus-visible {
  outline: 2px solid var(--cookie-consent-tab-accent-color, #3939CC);
  outline-offset: 2px;
}

.cookie-consent-banner.presentation-box .cookie-consent-footer .cookie-consent-branding,
.cookie-consent-banner.presentation-banner .cookie-consent-footer .cookie-consent-branding,
.cookie-consent-banner.presentation-popup .cookie-consent-footer .cookie-consent-branding {
  display: none !important;
}

.cookie-settings-trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Consent data block/shortcode display (authority: enqueued fixed.css only). */
@keyframes cookie-consent-spin {
  to {
    transform: rotate(360deg);
  }
}

.cookie-consent-data-display {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.5;
}

.cookie-consent-data-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: #111827;
}

.cookie-consent-data-empty {
  margin: 0;
  color: #4b5563;
}

.cookie-consent-data-categories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cookie-consent-data-category {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.cookie-consent-data-category-label {
  font-weight: 600;
  color: #111827;
}

.cookie-consent-data-category-status {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.cookie-consent-data-category-status--granted {
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
}

.cookie-consent-data-category-status--denied {
  color: #9f1239;
  background: #ffe4e6;
  border: 1px solid #fecdd3;
}

.cookie-consent-data-meta {
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.cookie-consent-data-cookies {
  margin-top: 1.5rem;
}

.cookie-consent-data-cookies-heading {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}

.cookie-consent-data-cookies-scope {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.cookie-consent-data-cookies-empty {
  margin: 0;
  color: #6b7280;
}

.cookie-consent-data-recognized,
.cookie-consent-data-unrecognized {
  margin-top: 1rem;
}

.cookie-consent-data-recognized-heading,
.cookie-consent-data-unrecognized-heading {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.cookie-consent-data-unrecognized-disclosure {
  margin: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.35rem 0.75rem 0.75rem;
}

.cookie-consent-data-unrecognized-disclosure > summary.cookie-consent-data-unrecognized-heading {
  cursor: pointer;
  list-style-position: outside;
  padding: 0.5rem 0.15rem;
}

.cookie-consent-data-unrecognized-disclosure > summary.cookie-consent-data-unrecognized-heading:focus-visible {
  outline: 2px solid #4c4cff;
  outline-offset: 2px;
  border-radius: 4px;
}

.cookie-consent-data-unrecognized-disclosure .cookie-consent-data-cookie-list {
  margin-top: 0.35rem;
}

.cookie-consent-data-cookie-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookie-consent-data-cookie {
  margin: 0;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.03);
}

.cookie-consent-data-cookie-name {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: #111827;
  word-break: break-word;
}

.cookie-consent-data-cookie-meta {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: #374151;
}

.cookie-consent-data-cookie-meta:last-child {
  margin-bottom: 0;
}

.cookie-consent-data-cookie-meta strong {
  display: inline-block;
  min-width: 5.5rem;
  margin-right: 0.35rem;
  color: #6b7280;
  font-weight: 600;
}

.cookie-consent-data-cookie--unrecognized .cookie-consent-data-cookie-purpose {
  color: #4b5563;
}

.cookie-consent-data-uncategorized-notice {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #78350f;
  font-size: 0.9rem;
}

.cookie-consent-data-actions {
  margin-top: 1.75rem;
  text-align: center;
}

.cookie-consent-data-display .cookie-settings-trigger.cookie-consent-data-manage {
  display: inline-block;
  background-color: var(--cookie-consent-manage-button-bg, var(--cookie-consent-konsept-primary-bg, #e0e0fd));
  color: var(--cookie-consent-manage-button-text, var(--cookie-consent-konsept-primary-text, #333333));
  border: 1px solid var(--cookie-consent-manage-button-border, var(--cookie-consent-save-button-border-color, #4C4CFF));
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

.cookie-consent-data-display .cookie-settings-trigger.cookie-consent-data-manage:hover,
.cookie-consent-data-display .cookie-settings-trigger.cookie-consent-data-manage:focus {
  background-color: #2E2EA3;
  color: #ffffff;
  border-color: #2E2EA3;
}

.cookie-consent-data-credit {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.cookie-consent-data-credit .devora-branding {
  color: inherit;
  text-decoration: none;
}

.cookie-consent-data-credit .devora-name {
  font-weight: 600;
}

.cookie-consent-loading {
  text-align: center;
  padding: 2rem;
}

.cookie-consent-loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(42, 46, 100, 0.3);
  border-radius: 50%;
  border-top-color: #2a2e64;
  animation: cookie-consent-spin 1s ease-in-out infinite;
}
