/* Avisos de vidrio: una sola piel, accesible en Cube y Ventalogic. */
:root {
  --nn-glass: rgba(255, 255, 255, 0.94);
  --nn-ink: #0a0f1e;
  --nn-muted: #647087;
  --nn-line: rgba(18, 31, 56, 0.1);
  --nn-soft: rgba(95, 112, 160, 0.09);
  --nn-blue: #1f4fe0;
  --nn-shadow: 0 16px 50px #1520421f, 0 3px 12px #1520420f;
}
[data-theme="dark"],
body.dark,
body.theme-dark {
  --nn-glass: rgba(30, 34, 46, 0.96);
  --nn-ink: #f4f6ff;
  --nn-muted: #b2bcd0;
  --nn-line: #e9efff24;
  --nn-soft: #bec8ee1a;
  --nn-blue: #7598ff;
  --nn-shadow: 0 16px 50px #0005;
}
.nn-notice-bell,
.nn-notice-panel button,
.nn-notice-card button {
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nn-notice-bell {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--nn-line);
  border-radius: 50%;
  background: var(--nn-glass);
  color: var(--nn-ink);
  padding: 10px;
}
.nn-notice-bell svg {
  width: 22px;
  height: 22px;
}
.nn-notice-bell > span {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 20px;
  background: #1f4fe0;
  color: white;
  font-size: 10px;
  line-height: 19px;
  font-weight: 700;
  border: 2px solid var(--nn-glass);
}
.nn-notice-bell > span[hidden] {
  display: none;
}
.nn-notice-stack {
  position: fixed;
  z-index: 24000;
  right: max(24px, env(safe-area-inset-right));
  top: calc(84px + env(safe-area-inset-top));
  width: min(410px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}
.nn-notice-card {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
  padding: 18px 38px 18px 16px;
  background: var(--nn-glass);
  color: var(--nn-ink);
  border: 1px solid var(--nn-line);
  border-radius: 24px;
  box-shadow: var(--nn-shadow);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  pointer-events: auto;
  animation: nn-notice-enter 0.4s cubic-bezier(0.2, 0.8, 0.25, 1.12);
  touch-action: pan-y;
  font:
    14px/1.45 "DM Sans",
    system-ui,
    sans-serif;
}
.nn-notice-icon {
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(155deg, #6b90ff, #1f4fe0);
  box-shadow: 0 4px 10px #1f4fe029;
}
.nn-notice-icon svg {
  width: 24px;
  height: 24px;
}
.nn-kind-payments {
  background: linear-gradient(150deg, #48d5a0, #07835c);
}
.nn-kind-inventory {
  background: linear-gradient(150deg, #ffd36a, #e99811);
  color: #312005;
}
.nn-kind-menu {
  background: linear-gradient(150deg, #bd9aff, #7750df);
}
.nn-kind-messages {
  background: linear-gradient(150deg, #5bddad, #1b9a64);
}
.nn-kind-errors {
  background: linear-gradient(150deg, #ff827e, #dd383e);
}
.nn-notice-copy {
  min-width: 0;
  flex: 1;
}
.nn-notice-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-content: space-between;
}
.nn-notice-heading strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.35;
}
.nn-notice-heading time {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--nn-muted);
  white-space: nowrap;
}
.nn-notice-copy > p {
  margin: 5px 0 0;
  color: var(--nn-muted);
  font-size: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.nn-notice-actions {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  position: relative;
  z-index: 2;
}
.nn-notice-actions button,
.nn-notice-device button,
.nn-notice-preferences > button,
.nn-notice-empty button {
  border: 1px solid var(--nn-line);
  border-radius: 12px;
  padding: 8px 11px;
  background: var(--nn-soft);
  color: var(--nn-ink);
  font-size: 11px;
  font-weight: 600;
  min-height: 36px;
}
.nn-notice-actions .nn-notice-primary,
.nn-notice-primary {
  background: #1f4fe0 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px;
  padding: 10px 14px;
}
.nn-notice-dismiss {
  position: absolute;
  top: 12px;
  right: 9px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: var(--nn-muted);
  padding: 5px;
}
.nn-notice-dismiss svg {
  width: 15px;
  height: 15px;
}
.nn-notice-short {
  position: fixed;
  bottom: calc(110px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: calc(100vw - 32px);
  align-items: center;
  z-index: 24001;
  padding: 12px 38px 12px 14px;
}
.nn-notice-short .nn-notice-icon {
  width: 29px;
  height: 29px;
  flex-basis: 29px;
  border-radius: 10px;
  background: #e4f7ee;
  color: #087c56;
  box-shadow: none;
}
.nn-notice-short time {
  display: none;
}
.nn-notice-short .nn-notice-heading strong {
  white-space: normal;
}
.nn-notice-leave {
  animation: nn-notice-exit 0.25s ease forwards !important;
}
.nn-notice-panel {
  position: fixed;
  z-index: 23900;
  right: 24px;
  top: calc(78px + env(safe-area-inset-top));
  width: min(440px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 110px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--nn-line);
  border-radius: 28px;
  background: var(--nn-glass);
  color: var(--nn-ink);
  box-shadow: var(--nn-shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  font:
    14px/1.45 "DM Sans",
    system-ui,
    sans-serif;
  animation: nn-notice-enter 0.3s ease;
}
.nn-notice-panel > header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 23px 22px 15px;
  border-bottom: 1px solid var(--nn-line);
}
.nn-notice-panel > header > div {
  flex: 1;
}
.nn-notice-panel h2 {
  margin: 3px 0 0;
  font-size: 23px;
  letter-spacing: -0.7px;
  color: var(--nn-ink);
}
.nn-notice-eyebrow {
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 1.7px;
  color: var(--nn-muted);
}
.nn-notice-panel > header > button {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--nn-soft);
  color: var(--nn-ink);
  padding: 8px;
}
.nn-notice-panel > header svg {
  width: 17px;
  height: 17px;
}
.nn-notice-content {
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 200px;
  padding-bottom: 20px;
  scrollbar-width: thin;
}
.nn-notice-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px 7px;
  gap: 10px;
}
.nn-notice-toolbar button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--nn-blue);
  font-size: 11px;
}
.nn-notice-toolbar small {
  font-size: 9px;
  color: var(--nn-muted);
}
.nn-notice-filters {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 9px 20px 16px;
  scrollbar-width: none;
}
.nn-notice-filters button {
  flex-shrink: 0;
  border: 0;
  border-radius: 20px;
  padding: 8px 12px;
  background: var(--nn-soft);
  color: var(--nn-muted);
  font-size: 11px;
}
.nn-notice-filters button[aria-pressed="true"] {
  background: #1f4fe0;
  color: #fff;
}
.nn-notice-day {
  margin: 7px 22px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  font-weight: 500;
  color: var(--nn-muted);
}
.nn-notice-row {
  display: flex;
  position: relative;
  gap: 12px;
  padding: 16px 24px 16px 20px;
  border-bottom: 1px solid var(--nn-line);
}
.nn-notice-row .nn-notice-icon {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-radius: 11px;
}
.nn-notice-row .nn-notice-icon svg {
  width: 20px;
  height: 20px;
}
.nn-notice-row.nn-unread:after {
  content: "";
  position: absolute;
  right: 9px;
  top: 25px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1f4fe0;
}
.nn-notice-open {
  position: absolute;
  inset: 0;
  background: none;
  border: 0;
  z-index: 1;
}
.nn-notice-row:has(.nn-notice-open:focus-visible) {
  outline: 2px solid var(--nn-blue);
  outline-offset: -3px;
}
.nn-notice-empty {
  text-align: center;
  padding: 38px 28px;
  color: var(--nn-muted);
}
.nn-notice-empty strong {
  display: block;
  color: var(--nn-ink);
  font-size: 17px;
}
.nn-notice-empty > span svg {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
}
.nn-notice-empty p {
  font-size: 12px;
}
.nn-notice-more {
  display: block;
  margin: 15px auto 0;
  padding: 9px 16px;
  border: 0;
  border-radius: 20px;
  background: var(--nn-soft);
  color: var(--nn-blue);
}
.nn-notice-return {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 16px 20px;
  background: none;
  border: 0;
  color: var(--nn-blue);
  font-size: 12px;
}
.nn-notice-return svg {
  width: 15px;
  height: 15px;
}
.nn-notice-preferences,
.nn-notice-device {
  padding: 0 22px 18px;
}
.nn-notice-preferences h3,
.nn-notice-device h3 {
  margin: 20px 0 3px;
  font-size: 20px;
  color: var(--nn-ink);
  letter-spacing: -0.5px;
}
.nn-notice-preferences p,
.nn-notice-device p {
  margin: 5px 0 14px;
  font-size: 12px;
  color: var(--nn-muted);
}
.nn-notice-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  padding: 13px 0;
  border-bottom: 1px solid var(--nn-line);
  font-size: 13px;
}
.nn-notice-switch small {
  display: block;
  font-size: 10px;
  line-height: 1.4;
  color: var(--nn-muted);
  margin-top: 3px;
}
.nn-notice-switch input {
  position: absolute;
  right: 0;
  width: 44px;
  height: 28px;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.nn-notice-switch i {
  position: relative;
  flex: 0 0 44px;
  height: 27px;
  border-radius: 20px;
  background: #abb3c2;
  transition: background 0.2s;
}
.nn-notice-switch i:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 5px #0002;
  transition: transform 0.2s;
}
.nn-notice-switch input:checked + i {
  background: #1f4fe0;
}
.nn-notice-switch input:checked + i:after {
  transform: translateX(17px);
}
.nn-notice-switch input:focus-visible + i {
  outline: 3px solid var(--nn-blue);
  outline-offset: 3px;
}
.nn-notice-range {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  font-size: 12px;
  align-items: center;
}
.nn-notice-range input {
  width: 100%;
  accent-color: #1f4fe0;
}
.nn-notice-times {
  display: flex;
  gap: 15px;
  margin: 12px 0;
}
.nn-notice-times label {
  flex: 1;
  font-size: 11px;
  color: var(--nn-muted);
}
.nn-notice-times input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 9px 7px;
  border: 1px solid var(--nn-line);
  border-radius: 12px;
  background: var(--nn-soft);
  color: var(--nn-ink);
  font: 16px system-ui;
}
.nn-notice-preferences > small,
.nn-notice-device > small {
  display: block;
  font-size: 10px;
  color: var(--nn-muted);
  line-height: 1.5;
}
.nn-notice-preferences > button {
  margin-top: 20px;
  width: 100%;
  font: 600 13px system-ui;
  min-height: 44px;
}
.nn-notice-device {
  border-top: 1px solid var(--nn-line);
}
.nn-notice-device > button {
  display: block;
  width: 100%;
  margin-top: 10px;
}
.nn-notice-device-status {
  padding-top: 12px;
}
.nn-notice-panel button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.nn-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@keyframes nn-notice-enter {
  from {
    opacity: 0;
    translate: 0 -25px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes nn-notice-exit {
  to {
    opacity: 0;
    translate: 100% 0;
  }
}
@supports not (backdrop-filter: blur(24px)) {
  .nn-notice-card,
  .nn-notice-panel {
    background: #fff;
  }
  [data-theme="dark"] .nn-notice-card,
  [data-theme="dark"] .nn-notice-panel {
    background: #1e222e;
  }
}
@media (max-width: 600px) {
  .nn-notice-stack {
    right: 12px;
    top: calc(12px + env(safe-area-inset-top));
    width: calc(100vw - 24px);
  }
  .nn-notice-panel {
    right: 8px;
    top: calc(8px + env(safe-area-inset-top));
    width: calc(100vw - 16px);
    max-height: calc(
      100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)
    );
  }
  .nn-notice-card {
    padding: 16px 34px 16px 14px;
  }
  .nn-notice-heading strong {
    font-size: 13px;
  }
  .nn-notice-heading {
    gap: 6px;
  }
  .nn-notice-short {
    bottom: calc(102px + env(safe-area-inset-bottom));
  }
  .nn-notice-bell {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    padding: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nn-notice-card,
  .nn-notice-panel,
  .nn-notice-leave {
    animation: none !important;
  }
  .nn-notice-switch i,
  .nn-notice-switch i:after {
    transition: none;
  }
}

/* La capa nativa evita recortes por hojas y diálogos; conserva la posición en el viewport. */
.nn-notice-stack[popover] {
  left: auto;
  bottom: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.nn-notice-short[popover] {
  top: auto;
  right: auto;
  margin: 0;
  overflow: visible;
}

/* Los porcentajes y ambos bordes respetan el espacio del scrollbar y las áreas seguras del móvil. */
@media (max-width:600px) {
 .nn-notice-panel {left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));width:auto;max-width:none;box-sizing:border-box}
 .nn-notice-stack,.nn-notice-stack[popover] {left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));width:auto;box-sizing:border-box}
 .nn-notice-short {max-width:calc(100% - 32px);box-sizing:border-box}
}
