:root {
  --nd121-primary: var(--wp--preset--color--primary, #315cde);
  --nd121-primary-dark: var(--wp--preset--color--primary-dark, #173ba8);
  --nd121-primary-soft: var(--wp--preset--color--primary-soft, #e8edff);
  --nd121-accent: var(--wp--preset--color--accent, #315cde);
  --nd121-base: var(--wp--preset--color--base, #ffffff);
  --nd121-surface: var(--wp--preset--color--surface, #f6f7fa);
  --nd121-foreground: var(--wp--preset--color--foreground, #1f2933);
  --nd121-text-muted: var(--wp--preset--color--text-muted, #64748b);
  --nd121-border: var(--wp--preset--color--border, #d8deea);
}

.nd121-cookiebar {
  position: fixed;
  z-index: 2147483000;
  left: 16px;
  right: 16px;
  bottom: 16px;
  width: auto;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 22px;
  box-sizing: border-box;
  color: var(--nd121-base);
  background: var(--nd121-primary);
  border: 1px solid var(--nd121-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(23, 36, 74, .18);
  font-family: inherit;
}

.nd121-cookiebar[hidden] { display: none !important; }
.nd121-cookiebar__message { flex: 1 1 auto; margin: 0; font-size: 14px; line-height: 1.35; }
.nd121-cookiebar__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.nd121-cookiebar button {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--nd121-base) 72%, transparent);
  border-radius: 4px;
  padding: 9px 13px;
  min-height: 38px;
  background: transparent;
  color: var(--nd121-base);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.nd121-cookiebar button:first-child { background: var(--nd121-base); color: var(--nd121-primary-dark); border-color: var(--nd121-base); }
.nd121-cookiebar button:hover, .nd121-cookiebar button:focus-visible { background: var(--nd121-primary-soft); color: var(--nd121-primary-dark); border-color: var(--nd121-primary-soft); }
.nd121-label-short { display: none; }

/* Complianz remains installed and handles storage/blocking; only its visible UI is suppressed. */
body.nd121-independent-consent-active .cmplz-cookiebanner { display: none !important; }

.nd121-preferences { position: fixed; inset: 0; z-index: 2147483001; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .42); }
.nd121-preferences[hidden] { display: none !important; }
.nd121-preferences__panel { position: relative; width: min(460px, 100%); padding: 28px; box-sizing: border-box; color: var(--nd121-foreground); background: var(--nd121-base); border: 1px solid var(--nd121-border); border-radius: 8px; box-shadow: 0 18px 50px rgba(23, 36, 74, .22); }
.nd121-preferences__panel h2 { margin: 0 0 10px; font-size: 22px; }
.nd121-preferences__panel p { margin: 0 0 22px; font-size: 15px; line-height: 1.5; }
.nd121-preferences__close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: var(--nd121-foreground); font-size: 26px; line-height: 1; cursor: pointer; }
.nd121-preferences__actions { display: flex; gap: 10px; }
.nd121-preferences__actions button { flex: 1; min-height: 40px; padding: 9px 12px; border: 1px solid var(--nd121-primary-dark); border-radius: 4px; background: transparent; color: var(--nd121-primary-dark); font: inherit; font-weight: 600; cursor: pointer; }
.nd121-preferences__actions button:last-child { background: var(--nd121-primary); color: var(--nd121-base); }

@media (max-width: 700px) {
  .nd121-cookiebar { left: 10px; right: 10px; bottom: 10px; padding: 14px; display: block; }
  .nd121-cookiebar__message { margin-bottom: 12px; }
  .nd121-cookiebar__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .nd121-cookiebar button { width: 100%; }
  .nd121-cookiebar button:last-child { grid-column: 1 / -1; }
}

/* At phone widths the action labels are intentionally shortened: the context
   is already explained in the message, so the buttons remain compact and calm. */
@media (max-width: 480px) {
  .nd121-label-full { display: none; }
  .nd121-label-short { display: inline; }
}
