[data-c-notice] {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--os-rule);
  border-radius: var(--os-radius-sm);
  background: var(--os-ground);
  color: var(--os-ink);
}

[data-c-notice][hidden] {
  display: none;
}

[data-c-notice][data-play] {
  animation: c-notice-in 240ms var(--os-ease-out, ease-out) both;
}

[data-c-notice][data-still] {
  animation: none;
}

[data-c-notice] [data-c-notice-dismiss] {
  margin-left: auto;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--os-rule);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

@keyframes c-notice-in {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-c-notice][data-play] {
    animation: none;
  }
}
