.lf-cookie-root {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 3000;
  display: flex;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}

.lf-cookie-root[hidden] {
  display: none !important;
}

.lf-cookie-banner,
.lf-cookie-panel {
  pointer-events: auto;
  width: min(640px, 100%);
  background: #f6f0e7;
  color: #1a3340;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  border: 1px solid rgba(26, 51, 64, 0.12);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  border-radius: 12px 12px 0 0;
  padding: 20px 20px 18px;
}

.lf-cookie-banner__title {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 8px;
}

.lf-cookie-banner__text {
  font-size: 14px;
  line-height: 1.5;
  color: #3d4f4a;
  margin: 0 0 16px;
}

.lf-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.lf-cookie-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  padding: 11px 16px;
  min-height: 44px;
  cursor: pointer;
  border: 1px solid transparent;
}

.lf-cookie-btn--primary {
  background: #1a3340;
  color: #f6f0e7;
}

.lf-cookie-btn--secondary {
  background: transparent;
  color: #1a3340;
  border-color: rgba(26, 51, 64, 0.35);
}

.lf-cookie-btn--ghost {
  background: transparent;
  color: #2f5a4a;
  border-color: transparent;
  text-decoration: underline;
  padding-left: 8px;
  padding-right: 8px;
}

.lf-cookie-btn:focus-visible {
  outline: 2px solid #1a3340;
  outline-offset: 2px;
}

.lf-cookie-banner__links {
  margin: 0;
  font-size: 13px;
}

.lf-cookie-banner__links a {
  color: #2f5a4a;
}

.lf-cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(26, 51, 64, 0.1);
}

.lf-cookie-option__label {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 4px;
}

.lf-cookie-option__desc {
  font-size: 13px;
  color: #5a6e65;
  margin: 0;
  line-height: 1.45;
}

.lf-cookie-option__fixed {
  font-size: 12px;
  color: #5a6e65;
  white-space: nowrap;
  padding-top: 2px;
}

.lf-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.lf-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.lf-switch__ui {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: rgba(26, 51, 64, 0.2);
  position: relative;
  transition: background 0.15s ease;
}

.lf-switch__ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.lf-switch input:checked + .lf-switch__ui {
  background: #2f5a4a;
}

.lf-switch input:checked + .lf-switch__ui::after {
  transform: translateX(18px);
}

.lf-switch input:focus-visible + .lf-switch__ui {
  outline: 2px solid #1a3340;
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .lf-cookie-root {
    padding: 0;
  }

  .lf-cookie-banner,
  .lf-cookie-panel {
    width: 100%;
    border-radius: 12px 12px 0 0;
    padding: 18px 16px 16px;
  }

  .lf-cookie-banner__actions {
    flex-direction: column;
  }

  .lf-cookie-btn {
    width: 100%;
  }

  .lf-cookie-btn--ghost {
    width: auto;
    align-self: center;
  }
}
