:root {
  --lfw-banner-bg: #0f172a;
  --lfw-banner-text: #f8fafc;
  --lfw-panel-bg: #0b1220;
  --lfw-panel-text: #f8fafc;
  --lfw-panel-heading: #f8fafc;
  --lfw-accent: #22c55e;
  --lfw-accent-text: #0f172a;
  --lfw-ghost-text: #f8fafc;
  --lfw-overlay: rgba(15, 23, 42, 0.6);
}

/*
 * Component baseline. The ID-scoped selectors intentionally outrank normal
 * theme rules without affecting any element outside the consent interface.
 */
#lfw-cookie-consent,
#lfw-cookie-consent-overlay,
#lfw-cookie-consent-reopen,
#lfw-cookie-consent *,
#lfw-cookie-consent-overlay *,
#lfw-cookie-consent-reopen * {
  box-sizing: border-box;
  font-family: inherit;
  letter-spacing: normal;
  text-shadow: none;
}

#lfw-cookie-consent,
#lfw-cookie-consent-overlay,
#lfw-cookie-consent-reopen {
  font-style: normal;
  text-align: left;
  text-transform: none;
  word-spacing: normal;
}

#lfw-cookie-consent h2,
#lfw-cookie-consent-overlay h2,
#lfw-cookie-consent p,
#lfw-cookie-consent-overlay p {
  margin: 0;
  padding: 0;
}

#lfw-cookie-consent button,
#lfw-cookie-consent-overlay button,
#lfw-cookie-consent-reopen {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  min-height: 44px;
  line-height: 1.25;
  text-decoration: none;
  text-transform: none;
}

#lfw-cookie-consent a,
#lfw-cookie-consent-overlay a {
  font: inherit;
}

#lfw-cookie-consent strong,
#lfw-cookie-consent-overlay strong {
  color: inherit;
  font-family: inherit;
}

.lfw-cookie-consent {
	font-family: var(--lfw-font-family, "LFW Ubuntu", Ubuntu, Arial, sans-serif);
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 99999;
  width: 700px;
  max-width: calc(100% - 40px);
  background: var(--lfw-banner-bg);
  color: var(--lfw-banner-text);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  padding: 18px;
  line-height: 1.5;
  font-size: 15px;
}

.lfw-cookie-consent__content {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.lfw-cookie-consent__title {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	color: var(--lfw-banner-text);
}

.lfw-cookie-consent__message {
	margin: 0;
	font-size: 15px;
}

.lfw-cookie-consent__message--panel {
  color: var(--lfw-panel-text);
}

.lfw-cookie-consent__message--panel a {
	color: var(--lfw-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lfw-cookie-consent__message a {
	color: var(--lfw-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lfw-cookie-consent__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 600;
}

.lfw-cookie-consent__links a {
  color: var(--lfw-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.12s ease;
}

.lfw-cookie-consent__links a:hover {
  color: var(--lfw-banner-text);
}

.lfw-cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lfw-cookie-consent__btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
	font-family: inherit;
	line-height: 1.25;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease, border-color 0.12s ease;
}

.lfw-cookie-consent__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.lfw-cookie-consent__btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.lfw-cookie-consent__btn--primary {
  background: var(--lfw-accent);
  color: var(--lfw-accent-text);
  border-color: var(--lfw-accent);
}

.lfw-cookie-consent__btn--ghost {
  background: transparent;
  color: var(--lfw-ghost-text);
  border-color: rgba(248, 250, 252, 0.25);
}

.lfw-cookie-consent__btn--outline {
  background: transparent;
  color: var(--lfw-accent);
  border-color: var(--lfw-accent);
}

.lfw-cookie-consent__overlay {
	font-family: var(--lfw-font-family, "LFW Ubuntu", Ubuntu, Arial, sans-serif);
	font-size: 15px;
	line-height: 1.5;
  position: fixed;
  inset: 0;
  background: var(--lfw-overlay);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 100000;
  transition: opacity 0.2s ease;
}

.lfw-cookie-consent__overlay[hidden] {
  display: none !important;
}

.lfw-cookie-consent__panel {
  width: 500px;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  background: var(--lfw-panel-bg);
  color: var(--lfw-panel-text);
  padding: 20px;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lfw-cookie-consent__panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lfw-cookie-consent__panel-header h2 {
  margin: 0;
  font-size: 18px;
  color: var(--lfw-panel-heading);
}

.lfw-cookie-consent__close {
  background: transparent;
  color: var(--lfw-panel-text);
  border: 1px solid rgba(248, 250, 252, 0.3);
  border-radius: 50%;
	min-width: 44px;
	width: 44px;
	height: 44px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.lfw-cookie-consent__panel-body {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#lfw-cookie-consent-overlay .lfw-cookie-consent__preferences {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  visibility: visible !important;
  opacity: 1 !important;
}

#lfw-cookie-consent-overlay .lfw-cookie-consent__pref-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid rgba(248, 250, 252, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  gap: 12px;
  visibility: visible !important;
  opacity: 1 !important;
}

.lfw-cookie-consent__pref-copy {
	margin: 4px 0 0 !important;
  color: #cbd5e1;
  font-size: 13px;
}

.lfw-cookie-consent__pref-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.lfw-cookie-consent__pref-actions--stacked {
  flex-direction: column;
}

.lfw-cookie-consent__pref-actions--stacked .lfw-cookie-consent__btn {
  width: 100%;
  text-align: center;
}

#lfw-cookie-consent-overlay .lfw-cookie-consent__switch {
  position: relative;
	display: inline-flex !important;
	align-items: center;
	min-width: 44px;
	min-height: 44px;
	cursor: pointer;
  visibility: visible !important;
  opacity: 1 !important;
}

.lfw-cookie-consent__switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lfw-cookie-consent__switch-label {
  font-weight: 600;
}

#lfw-cookie-consent-overlay .lfw-cookie-consent__switch-track {
  display: inline-flex !important;
  align-items: center;
  width: 44px;
  height: 24px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.25);
  padding: 4px;
  transition: background 0.15s ease;
	flex: 0 0 auto;
}

.lfw-cookie-consent__switch-thumb {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f8fafc;
  transform: translateX(0);
  transition: transform 0.15s ease, background 0.15s ease;
}

.lfw-cookie-consent__switch
  input[type="checkbox"]:checked
  + .lfw-cookie-consent__switch-track {
  background: #00b67a;
}

.lfw-cookie-consent__switch
  input[type="checkbox"]:checked
  + .lfw-cookie-consent__switch-track
  .lfw-cookie-consent__switch-thumb {
  transform: translateX(20px);
  background: #0d1b2a;
}

.lfw-cookie-consent__switch
  input[type="checkbox"]:focus-visible
  + .lfw-cookie-consent__switch-track,
.lfw-cookie-consent__switch
  input[type="checkbox"]:focus
  + .lfw-cookie-consent__switch-track {
  outline: 2px solid var(--lfw-accent);
  outline-offset: 2px;
}

.lfw-cookie-consent-reopen {
	font-family: var(--lfw-font-family, "LFW Ubuntu", Ubuntu, Arial, sans-serif);
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 99998;
  border: 1px solid rgba(248, 250, 252, 0.2);
  background: #1f2933;
  color: #f8fafc;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
	min-width: 44px;
	min-height: 44px;
}

#lfw-cookie-consent .lfw-cookie-consent__btn:focus-visible,
#lfw-cookie-consent-overlay .lfw-cookie-consent__btn:focus-visible,
#lfw-cookie-consent-overlay .lfw-cookie-consent__close:focus-visible,
#lfw-cookie-consent-reopen:focus-visible,
#lfw-cookie-consent a:focus-visible,
#lfw-cookie-consent-overlay a:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #0f172a;
}

.lfw-cookie-consent-reopen:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.lfw-cookie-consent-reopen:active {
  transform: translateY(0);
  box-shadow: none;
}

.lfw-cookie-consent-reopen__icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbD0icmdiYSgyNDAsMjQ2LDI1MiwuNikiIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMjMuOTk5IDEyLjE0OWMtLjA0OSAzLjgzNC0xLjg5MyA3LjIyMy00LjcwNiA5LjM3OC0xLjk5MyAxLjUzLTQuNDg1IDIuNDQ5LTcuMTk4IDIuNDczLTYuNDY0LjA1Ny0xMi4wNTEtNS4xMDctMTIuMDk1LTEyIDMuOTY2IDEuMDY2IDcuNjgyLTEuOTkzIDYtNiA0LjY2OC42NTUgNi44NTktMi4zODkgNi4wNzctNiA2LjcyNC4wNjQgMTEuOTk5IDUuNTQyIDExLjkyMiAxMi4xNDl6bS0xNS41NzYtNC4xMjNjLS4wNjUgMy4zOTMtMi44MDEgNS44NjgtNi4xODIgNi4xNjYgMS4wMDggNC40ODkgNS4wMTUgNy44MDcgOS43NTkgNy44MDcgNS4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ip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .lfw-cookie-consent__overlay {
    justify-content: center;
  }

  .lfw-cookie-consent__panel {
    width: 100%;
    max-width: 100%;
    height: 100%;
  }
}

html.lfw-inert body {
	overflow: hidden !important;
	pointer-events: none !important;
}

html.lfw-inert #lfw-cookie-consent-overlay,
html.lfw-inert #lfw-cookie-consent,
html.lfw-inert #lfw-cookie-consent-reopen {
	pointer-events: auto !important;
}

#lfw-cookie-consent.lfw-cookie-consent--hidden {
  display: none !important;
}

#lfw-cookie-consent-reopen[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  #lfw-cookie-consent *,
  #lfw-cookie-consent-overlay *,
  #lfw-cookie-consent-reopen {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  #lfw-cookie-consent,
  #lfw-cookie-consent-overlay .lfw-cookie-consent__panel,
  #lfw-cookie-consent-reopen {
    border: 1px solid CanvasText;
  }

  #lfw-cookie-consent .lfw-cookie-consent__btn,
  #lfw-cookie-consent-overlay .lfw-cookie-consent__btn,
  #lfw-cookie-consent-overlay .lfw-cookie-consent__close {
    forced-color-adjust: auto;
  }
}

@media (max-width: 700px) {
  #lfw-cookie-consent {
    bottom: 10px;
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    margin: 0 10px;
    padding: 14px;
  }

  .lfw-cookie-consent__actions {
    flex-direction: column;
  }
  .lfw-cookie-consent__btn {
    width: 100%;
    text-align: center;
  }
}
