:root {
  --lncc-accent: #56306b;
  --lncc-secondary: #d98cff;
  --lncc-dark: #16151c;
  --lncc-bg: #ffffff;
  --lncc-soft: #f4fbfa;
  --lncc-lilac: #f4d7ff;
  --lncc-border: rgba(86, 48, 107, 0.18);
  --lncc-text: #16151c;
  --lncc-muted: #5e6270;
  --lncc-shadow: 0 24px 80px rgba(32, 18, 41, 0.22);
}

.lncc-cookie-banner[hidden],
.lncc-cookie-modal[hidden],
.lncc-cookie-floating[hidden],
.lncc-inline-settings[hidden] {
  display: none !important;
}

.lncc-cookie-banner,
.lncc-cookie-modal,
.lncc-cookie-floating,
.lncc-cookie-banner *,
.lncc-cookie-modal *,
.lncc-cookie-floating * {
  box-sizing: border-box;
}

.lncc-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 0 18px;
  font-family: inherit;
}

.lncc-cookie-card {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--lncc-border);
  border-radius: 26px;
  background:
    radial-gradient(circle at 94% 8%, rgba(217, 140, 255, 0.32), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 250, 0.98));
  box-shadow: var(--lncc-shadow);
  backdrop-filter: blur(14px);
}

.lncc-cookie-mark {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--lncc-accent);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 14px 32px rgba(86, 48, 107, 0.28);
}

.lncc-cookie-mark span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block;
  background:
    radial-gradient(circle at 9px 9px, #fff 0 3px, transparent 3.5px),
    radial-gradient(circle at 21px 9px, #fff 0 2.5px, transparent 3px),
    radial-gradient(circle at 21px 22px, #fff 0 3px, transparent 3.5px),
    rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.82);
}

.lncc-cookie-content h2,
.lncc-modal-header h2,
.lncc-preference-item h3 {
  margin: 0;
  color: var(--lncc-text);
  line-height: 1.08;
}

.lncc-kicker,
.lncc-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0 0 8px !important;
  color: var(--lncc-accent) !important;
  background: rgba(86, 48, 107, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.lncc-cookie-content h2 {
  font-size: clamp(1.2rem, 2.15vw, 1.75rem);
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}

.lncc-cookie-content p,
.lncc-modal-header p,
.lncc-preference-item p {
  margin: 0;
  color: var(--lncc-muted);
  line-height: 1.55;
}

.lncc-cookie-content p {
  font-size: 0.96rem;
  max-width: 760px;
}

.lncc-cookie-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
}

.lncc-cookie-links a,
.lncc-inline-settings {
  color: var(--lncc-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 900;
}

.lncc-cookie-actions,
.lncc-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lncc-btn,
.lncc-inline-settings {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
  border-radius: 999px;
  min-height: 46px;
  padding: 12px 19px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.lncc-btn:hover,
.lncc-inline-settings:hover,
.lncc-cookie-floating:hover {
  transform: translateY(-1px);
}

.lncc-btn-primary {
  color: #fff;
  background: var(--lncc-accent);
  box-shadow: 0 12px 24px rgba(86, 48, 107, 0.26);
}

.lncc-btn-soft {
  color: var(--lncc-text);
  background: var(--lncc-lilac);
  border: 1px solid rgba(86, 48, 107, 0.10);
}

.lncc-btn-ghost {
  color: var(--lncc-text);
  background: #ffffff;
  border: 1px solid rgba(22, 21, 28, 0.12);
}

.lncc-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: 18px;
  font-family: inherit;
}

.lncc-cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 21, 28, 0.54);
  backdrop-filter: blur(8px);
}

.lncc-cookie-modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 140, 255, 0.22), transparent 32%),
    linear-gradient(145deg, #ffffff, #f7fffd);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 28px 90px rgba(22, 21, 28, 0.34);
}

.lncc-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--lncc-border);
  border-radius: 50%;
  background: #fff;
  color: var(--lncc-text);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.lncc-modal-header {
  padding-right: 42px;
}

.lncc-modal-header h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  margin-bottom: 10px;
  letter-spacing: -0.04em;
}

.lncc-preference-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.lncc-preference-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(86, 48, 107, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
}

.lncc-preference-item h3 {
  font-size: 1rem;
  margin-bottom: 5px;
  letter-spacing: -0.02em;
}

.lncc-preference-item p {
  font-size: 0.92rem;
}

.lncc-required {
  background: rgba(86, 48, 107, 0.06);
}

.lncc-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.lncc-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lncc-switch span {
  position: relative;
  width: 56px;
  height: 32px;
  border-radius: 999px;
  background: rgba(22, 21, 28, 0.16);
  transition: background 0.18s ease;
}

.lncc-switch span::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(22, 21, 28, 0.18);
  transition: transform 0.18s ease;
}

.lncc-switch input:checked + span {
  background: var(--lncc-accent);
}

.lncc-switch input:checked + span::after {
  transform: translateX(24px);
}

.lncc-switch input:focus-visible + span,
.lncc-btn:focus-visible,
.lncc-modal-close:focus-visible,
.lncc-cookie-floating:focus-visible,
.lncc-inline-settings:focus-visible {
  outline: 3px solid rgba(217, 140, 255, 0.74);
  outline-offset: 3px;
}

.lncc-cookie-floating {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 999998;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
  background: var(--lncc-accent);
  box-shadow: 0 14px 30px rgba(86, 48, 107, 0.28);
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
}

.lncc-inline-settings {
  color: #fff;
  background: var(--lncc-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 920px) {
  .lncc-cookie-card {
    grid-template-columns: auto 1fr;
  }

  .lncc-cookie-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .lncc-cookie-banner {
    bottom: 12px;
    padding: 0 12px;
  }

  .lncc-cookie-card {
    grid-template-columns: 1fr;
    border-radius: 22px;
    padding: 18px;
  }

  .lncc-cookie-mark {
    width: 48px;
    height: 48px;
    border-radius: 17px;
  }

  .lncc-cookie-actions,
  .lncc-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .lncc-btn,
  .lncc-inline-settings {
    width: 100%;
  }

  .lncc-cookie-modal-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .lncc-preference-item {
    grid-template-columns: 1fr;
  }

  .lncc-cookie-floating {
    left: 12px;
    bottom: 12px;
  }
}
