/* Shared notifications use their own surface and geometry, separate from controls. */
@layer sellect-theme {
  .sl-notice-stack {
    position: fixed !important;
    inset: calc(var(--notice-top, 76px) - 12px) 12px auto auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 404px !important;
    max-width: calc(100vw - 8px) !important;
    max-height: calc(100dvh - var(--notice-top, 76px) - 16px) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 12px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    pointer-events: none;
    z-index: 10000 !important;
  }
  .sl-notice-stack[hidden] { display: none !important; }
  .sl-notice-stack::backdrop { display: none !important; }

  html#shellDemo[data-sellect-theme] .sl-notice {
    --fb: #356FA6 !important;

    position: relative !important;
    inset: auto !important;
    transform: none !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) 28px !important;
    gap: 10px !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    padding: 12px !important;
    border: 1px solid var(--sl-border, #DEDCD6) !important;
    border-left: 3px solid var(--fb) !important;
    border-radius: var(--sl-radius-control, 20px) !important;
    background: #FFF !important;
    color: #202D36 !important;
    box-shadow: 0 4px 14px rgb(15 19 22 / 8%) !important;
    font: 400 14px/21px var(--ui-font, Manrope), Arial, sans-serif !important;
    overflow-wrap: anywhere;
    pointer-events: auto;
  }
  html#shellDemo[data-sellect-theme] .sl-notice.is-entering { animation: sl-notice-enter .18s ease-out; }
  html#shellDemo[data-sellect-theme] .sl-notice[data-tone=success] {
    --fb: #22835F !important;

  }
  html#shellDemo[data-sellect-theme] .sl-notice[data-tone=error] {
    --fb: #BA4D55 !important;

  }
  html#shellDemo[data-sellect-theme] .sl-notice > .i {
    align-self: center !important;
    width: 28px !important;
    height: 28px !important;
    padding: 6px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border-radius: 8px !important;
    background: var(--fb) !important;
    color: #FFF !important;
    stroke-width: 2px !important;
    flex: none;
  }
  html#shellDemo[data-sellect-theme] .sl-notice .cs-toast-copy { min-width: 0; padding-top: 0; }
  html#shellDemo[data-sellect-theme] .sl-notice strong {
    display: block;
    font-size: 14px !important;
    line-height: 21px !important;
    font-weight: 600 !important;
    color: #202D36 !important;
  }
  html#shellDemo[data-sellect-theme] .sl-notice p {
    font-size: 13px !important;
    line-height: 20px !important;
    color: #505F6C !important;
    margin: 5px 0 0 !important;
  }
  html#shellDemo[data-sellect-theme] .sl-notice [hidden] { display: none !important; }
  html#shellDemo[data-sellect-theme] .sl-notice .cs-toast-close {
    align-self: start !important;
    display: grid !important;
    place-items: center !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 3px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #71818E !important;
    box-shadow: none !important;
    cursor: pointer;
  }
  html#shellDemo[data-sellect-theme] .sl-notice .cs-toast-close .i { width: 18px !important; height: 18px !important; stroke-linecap: round !important; stroke-linejoin: round !important; }
  html#shellDemo[data-sellect-theme] .sl-notice .cs-toast-close:hover { background: #F0F3F5 !important; color: #202D36 !important; }
  html#shellDemo[data-sellect-theme] .sl-notice .ds-toast-undo {
    display: inline-block;
    margin: 9px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    font: 600 13px/20px var(--ui-font, Manrope), Arial, sans-serif !important;
    color: var(--sl-accent-ink, #315AC4) !important;
    cursor: pointer;
  }
  html#shellDemo[data-sellect-theme] .sl-notice .ds-toast-undo:hover { text-decoration: underline; }
  html#shellDemo[data-sellect-theme] .sl-notice button:focus-visible { outline: 2px solid var(--sl-accent, #3864D9) !important; outline-offset: 2px !important; }
  @media(max-width:600px) {
    .sl-notice-stack { left: 0 !important; right: 0 !important; width: auto !important; max-width: none !important; }
    html#shellDemo[data-sellect-theme] .sl-notice { padding: 12px !important; gap: 10px !important; }
  }
  @media(prefers-reduced-motion:reduce) { html#shellDemo[data-sellect-theme] .sl-notice.is-entering { animation: none; } }
}
@keyframes sl-notice-enter { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
